--- /srv/rebuilderd/tmp/rebuilderdPRh3Hs/inputs/ssg-debian_0.1.80-1_all.deb +++ /srv/rebuilderd/tmp/rebuilderdPRh3Hs/out/ssg-debian_0.1.80-1_all.deb ├── file list │ @@ -1,3 +1,3 @@ │ -rw-r--r-- 0 0 0 4 2026-03-14 07:18:55.000000 debian-binary │ --rw-r--r-- 0 0 0 2564 2026-03-14 07:18:55.000000 control.tar.xz │ --rw-r--r-- 0 0 0 2625896 2026-03-14 07:18:55.000000 data.tar.xz │ +-rw-r--r-- 0 0 0 2568 2026-03-14 07:18:55.000000 control.tar.xz │ +-rw-r--r-- 0 0 0 2625744 2026-03-14 07:18:55.000000 data.tar.xz ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_average.html │ │ │ @@ -20684,129 +20684,129 @@ │ │ │ 00050cb0: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 00050cc0: 743d 2223 6964 3330 2220 7461 6269 6e64 t="#id30" tabind │ │ │ 00050cd0: 6578 3d22 3022 2072 6f6c 653d 2262 7574 ex="0" role="but │ │ │ 00050ce0: 746f 6e22 2061 7269 612d 6578 7061 6e64 ton" aria-expand │ │ │ 00050cf0: 6564 3d22 6661 6c73 6522 2074 6974 6c65 ed="false" title │ │ │ 00050d00: 3d22 4163 7469 7661 7465 2074 6f20 7265 ="Activate to re │ │ │ 00050d10: 7665 616c 2220 6872 6566 3d22 2321 223e veal" href="#!"> │ │ │ -00050d20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00050d30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00050d40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00050d80: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00050d90: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00050da0: 2273 7973 6c6f 672d 6e67 220a 7665 7273  "syslog-ng".vers
│ │ │ -00050db0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -00050e70: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00050e80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00050e90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00050ea0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00050eb0: 7365 2220 6964 3d22 6964 3331 223e 3c74 se" id="id31"> │ │ │ -00050f00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00050f10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00050f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00050f60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00050f70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00050f90: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00050fb0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00050fc0: 7374 616c 6c5f 7379 736c 6f67 2d6e 670a  stall_syslog-ng.
│ │ │ -00050fd0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ -00050fe0: 7973 6c6f 672d 6e67 207b 0a20 2070 6163  yslog-ng {.  pac
│ │ │ -00050ff0: 6b61 6765 207b 2027 7379 736c 6f67 2d6e  kage { 'syslog-n
│ │ │ -00051000: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -00051010: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00051020: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00051030: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ -000510e0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -000510f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ -00051170: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00051180: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000511a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000511b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000511d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000511f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00051220: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00051230: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00051240: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00051250: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00051260: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00051270: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00051280: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00051290: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000512a0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000512b0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000512c0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000512d0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000512e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000512f0: 7061 636b 6167 655f 7379 736c 6f67 6e67  package_syslogng
│ │ │ -00051300: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -00051310: 6d65 3a20 456e 7375 7265 2073 7973 6c6f  me: Ensure syslo
│ │ │ -00051320: 672d 6e67 2069 7320 696e 7374 616c 6c65  g-ng is installe
│ │ │ -00051330: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00051340: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00051350: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -00051360: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -00051370: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00051380: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00051390: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000513a0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000513b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000513c0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000513d0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000513e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000513f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00051400: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00051410: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00051420: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00051430: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -00051440: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +00050dd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00050e70: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00050e80: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00050e90: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00050ea0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00050eb0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00050ec0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00050ed0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00050ee0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00050ef0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00050f00: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00050f10: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00050f20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00050f30: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00050f40: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +00050f50: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00050f60: 7572 6520 7379 736c 6f67 2d6e 6720 6973  ure syslog-ng is
│ │ │ +00050f70: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00050f80: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00050f90: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00050fa0: 7379 736c 6f67 2d6e 670a 2020 2020 7374  syslog-ng.    st
│ │ │ +00050fb0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00050fc0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00050fd0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00050fe0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00050ff0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00051000: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00051010: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00051020: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00051030: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00051040: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00051050: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00051060: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00051070: 0a20 202d 2070 6163 6b61 6765 5f73 7973  .  - package_sys
│ │ │ +00051080: 6c6f 676e 675f 696e 7374 616c 6c65 640a  logng_installed.
│ │ │ +00051090: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +00051140: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00051150: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00050dc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00050df0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00050e00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00050e40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00050e50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00051200: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00051250: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000511e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00051210: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00051230: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00051240: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00051260: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00051270: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00051290: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ +000512a0: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ +000512b0: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ +000512c0: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ +000512d0: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ +000512e0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000512f0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +000513b0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000513c0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000513d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +00051420: 6765 735d 5d0a 6e61 6d65 203d 2022 7379 ges]].name = "sy │ │ │ +00051430: 736c 6f67 2d6e 6722 0a76 6572 7369 6f6e slog-ng".version │ │ │ +00051440: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".Reme │ │ │ -000524f0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00052500: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00052510: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ -00052560: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00052570: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ -00052580: 736c 6f67 2d6e 6722 5d0a 3c2f 636f 6465  slog-ng"].
Remedia │ │ │ -00052640: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00052650: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00052660: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00052670: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00052680: 7365 2220 6964 3d22 6964 3336 223e 3c74 se" id="id36"> │ │ │ -000526d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000526e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000526f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00052730: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00052740: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00052760: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00052780: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -00052790: 6162 6c65 5f73 7973 6c6f 672d 6e67 0a0a  able_syslog-ng..
│ │ │ -000527a0: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ -000527b0: 6c6f 672d 6e67 207b 0a20 2073 6572 7669  log-ng {.  servi
│ │ │ -000527c0: 6365 207b 2773 7973 6c6f 672d 6e67 273a  ce {'syslog-ng':
│ │ │ -000527d0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -000527e0: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -000527f0: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00052800: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ -000528c0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000528d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000528e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00052910: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00052920: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00052930: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00052940: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00052950: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00052960: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00052970: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000529b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000529c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000529e0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000529f0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00052a10: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00052a20: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00052a30: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00052a40: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00052a50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00052a60: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00052a70: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00052a80: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00052a90: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00052aa0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00052ab0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00052ac0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00052ad0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00052ae0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00052af0: 655f 7379 736c 6f67 6e67 5f65 6e61 626c  e_syslogng_enabl
│ │ │ -00052b00: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00052b10: 6c65 2073 7973 6c6f 672d 6e67 2053 6572  le syslog-ng Ser
│ │ │ -00052b20: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -00052b30: 7276 6963 6520 7379 736c 6f67 2d6e 670a  rvice syslog-ng.
│ │ │ -00052b40: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -00052b50: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00052b60: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -00052b70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00052b80: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -00052b90: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -00052ba0: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -00052bb0: 6e61 626c 6520 7379 736c 6f67 2d6e 6720  nable syslog-ng 
│ │ │ -00052bc0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00052bd0: 2053 6572 7669 6365 2073 7973 6c6f 672d   Service syslog-
│ │ │ -00052be0: 6e67 0a20 2020 2061 6e73 6962 6c65 2e62  ng.    ansible.b
│ │ │ -00052bf0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00052c00: 2020 2020 2020 6e61 6d65 3a20 7379 736c        name: sysl
│ │ │ -00052c10: 6f67 2d6e 670a 2020 2020 2020 656e 6162  og-ng.      enab
│ │ │ -00052c20: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00052c30: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00052c40: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00052c50: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00052c60: 202d 2027 2273 7973 6c6f 672d 6e67 2220   - '"syslog-ng" 
│ │ │ -00052c70: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00052c80: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00052c90: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00052ca0: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00052cb0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00052cc0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00052cd0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00052ce0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00052cf0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00052d00: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00052d10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00052d20: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00052d30: 655f 7379 736c 6f67 6e67 5f65 6e61 626c  e_syslogng_enabl
│ │ │ -00052d40: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00052d50: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00052d60: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00052d70: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00052d80: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.<
│ │ │ +00052510: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +00052590: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000525a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000525c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000525e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000525f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00052630: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00052640: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00052650: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00052660: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00052670: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00052680: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00052690: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +000526a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +000526b0: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +000526c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000526d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000526e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +000526f0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00052700: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00052710: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00052720: 7669 6365 5f73 7973 6c6f 676e 675f 656e vice_syslogng_en │ │ │ +00052730: 6162 6c65 640a 0a2d 206e 616d 653a 2045 abled..- name: E │ │ │ +00052740: 6e61 626c 6520 7379 736c 6f67 2d6e 6720 nable syslog-ng │ │ │ +00052750: 5365 7276 6963 6520 2d20 456e 6162 6c65 Service - Enable │ │ │ +00052760: 2073 6572 7669 6365 2073 7973 6c6f 672d service syslog- │ │ │ +00052770: 6e67 0a20 2062 6c6f 636b 3a0a 0a20 202d ng. block:.. - │ │ │ +00052780: 206e 616d 653a 2047 6174 6865 7220 7468 name: Gather th │ │ │ +00052790: 6520 7061 636b 6167 6520 6661 6374 730a e package facts. │ │ │ +000527a0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +000527b0: 7469 6e2e 7061 636b 6167 655f 6661 6374 tin.package_fact │ │ │ +000527c0: 733a 0a20 2020 2020 206d 616e 6167 6572 s:. manager │ │ │ +000527d0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65 : auto.. - name │ │ │ +000527e0: 3a20 456e 6162 6c65 2073 7973 6c6f 672d : Enable syslog- │ │ │ +000527f0: 6e67 2053 6572 7669 6365 202d 2045 6e61 ng Service - Ena │ │ │ +00052800: 626c 6520 5365 7276 6963 6520 7379 736c ble Service sysl │ │ │ +00052810: 6f67 2d6e 670a 2020 2020 616e 7369 626c og-ng. ansibl │ │ │ +00052820: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +00052830: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ +00052840: 7973 6c6f 672d 6e67 0a20 2020 2020 2065 yslog-ng. e │ │ │ +00052850: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ +00052860: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ +00052870: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +00052880: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ +00052890: 2020 2020 2d20 2722 7379 736c 6f67 2d6e - '"syslog-n │ │ │ +000528a0: 6722 2069 6e20 616e 7369 626c 655f 6661 g" in ansible_fa │ │ │ +000528b0: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +000528c0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000528d0: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +000528e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +000528f0: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +00052900: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00052910: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00052920: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00052930: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00052940: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00052950: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00052960: 7669 6365 5f73 7973 6c6f 676e 675f 656e vice_syslogng_en │ │ │ +00052970: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ +00052980: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ +00052990: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +000529a0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +000529b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +000529c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
│ │ │ +00052a70: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00052a80: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00052b20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00052b30: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00052b80: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00052bc0: 6c75 6465 2065 6e61 626c 655f 7379 736c  lude enable_sysl
│ │ │ +00052bd0: 6f67 2d6e 670a 0a63 6c61 7373 2065 6e61  og-ng..class ena
│ │ │ +00052be0: 626c 655f 7379 736c 6f67 2d6e 6720 7b0a  ble_syslog-ng {.
│ │ │ +00052bf0: 2020 7365 7276 6963 6520 7b27 7379 736c    service {'sysl
│ │ │ +00052c00: 6f67 2d6e 6727 3a0a 2020 2020 656e 6162  og-ng':.    enab
│ │ │ +00052c10: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +00052c20: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00052c30: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +00052c40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00052cf0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00052d00: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00052d10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00052d50: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00052d60: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00052d70: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +00052d80: 5b22 7379 736c 6f67 2d6e 6722 5d0a 3c2f  ["syslog-ng"].
Remedia │ │ │ -00053ed0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00053ee0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00053ef0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ -00053f40: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ -00053f50: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │ -00053f60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00054010: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00054020: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +00052b10: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00052b40: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00052b50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00052b90: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00052ba0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000540c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000540d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00054120: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00054160: 6c75 6465 2069 6e73 7461 6c6c 5f72 7379  lude install_rsy
│ │ │ -00054170: 736c 6f67 0a0a 636c 6173 7320 696e 7374  slog..class inst
│ │ │ -00054180: 616c 6c5f 7273 7973 6c6f 6720 7b0a 2020  all_rsyslog {.  
│ │ │ -00054190: 7061 636b 6167 6520 7b20 2772 7379 736c  package { 'rsysl
│ │ │ -000541a0: 6f67 273a 0a20 2020 2065 6e73 7572 6520  og':.    ensure 
│ │ │ -000541b0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -000541c0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -000541d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00054280: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00054290: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000542a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000542b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000542c0: 7365 2220 6964 3d22 6964 3432 223e 3c74 se" id="id42"> │ │ │ -00054310: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -000543a0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ -000540b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000540e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000540f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00054130: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00054140: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00054320: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00054330: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00054370: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00054380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -000543c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000543d0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000543e0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000543f0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00054400: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00054410: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00054420: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00054430: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00054440: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00054450: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00054460: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00054470: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00054480: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00054490: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ -000544a0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -000544b0: 6d65 3a20 456e 7375 7265 2072 7379 736c  me: Ensure rsysl
│ │ │ -000544c0: 6f67 2069 7320 696e 7374 616c 6c65 640a  og is installed.
│ │ │ -000544d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000544e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000544f0: 616d 653a 2072 7379 736c 6f67 0a20 2020  ame: rsyslog.   
│ │ │ -00054500: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00054510: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00054520: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00054530: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00054540: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00054550: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00054560: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00054570: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00054580: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00054590: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000545a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000545b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000545c0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000545d0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ -000545e0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00053ed0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +00053ee0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00053ef0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00053f20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00053f30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00053f40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00053f50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00053f60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00053f70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00053f80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00053fc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00053fd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00053ff0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00054000: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00054020: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00054030: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00054040: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00054050: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00054060: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00054070: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +00054080: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00054090: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000540a0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000540b0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000540c0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000540d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000540e0: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +000540f0: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ +00054100: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ +00054110: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ +00054120: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00054130: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00054140: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ +00054150: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00054160: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00054170: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00054180: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00054190: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +000541a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000541b0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +000541c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000541d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000541e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000541f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00054200: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00054210: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00054220: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ +00054230: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00054240: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +000542f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00054300: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +000543d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000543e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00054430: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ +00054440: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ +00054450: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ +00054460: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ +00054470: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ +00054480: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +00054490: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ +00054550: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00054560: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00054570: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +000545b0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +000545c0: 5d5d 0a6e 616d 6520 3d20 2272 7379 736c  ]].name = "rsysl
│ │ │ +000545d0: 6f67 220a 7665 7273 696f 6e20 3d20 222a  og".version = "*
│ │ │ +000545e0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000545f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedi │ │ │ -000557f0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00055800: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00055810: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -00055850: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00055860: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00055870: 656e 6162 6c65 6420 3d20 5b22 7273 7973  enabled = ["rsys
│ │ │ -00055880: 6c6f 6722 5d0a 3c2f 636f 6465 3e3c 2f70  log"].

Remediation │ │ │ -00055940: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00055950: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity:low
Disrup │ │ │ +000543b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000543c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00054400: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00054410: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -000559d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000559f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00055a40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00055a70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00055a90: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ -00055aa0: 656e 6162 6c65 5f72 7379 736c 6f67 207b  enable_rsyslog {
│ │ │ -00055ab0: 0a20 2073 6572 7669 6365 207b 2772 7379  .  service {'rsy
│ │ │ -00055ac0: 736c 6f67 273a 0a20 2020 2065 6e61 626c  slog':.    enabl
│ │ │ -00055ad0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00055ae0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00055af0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00055b00: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00055bb0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00055bc0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:< │ │ │ -000559e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00055a00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00055a50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00055a60: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00055c60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00055c70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00055cc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00055d00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00055d10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00055d20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00055d30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00055d40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00055d50: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -00055d60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00055d70: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00055d80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00055d90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00055da0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00055db0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00055dc0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00055dd0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00055de0: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ -00055df0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -00055e00: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ -00055e10: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00055e20: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ -00055e30: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -00055e40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00055e50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00055e60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00055e70: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ -00055e80: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ -00055e90: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ -00055ea0: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ -00055eb0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -00055ec0: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ -00055ed0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00055ee0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00055ef0: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ -00055f00: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00055f10: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -00055f20: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -00055f30: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -00055f40: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -00055f50: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ -00055f60: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00055f70: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00055f80: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -00055f90: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00055fa0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00055fb0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00055fc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00055fd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00055fe0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00055ff0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00056000: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00056010: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -00056020: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ -00056030: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00056040: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00056050: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00056060: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00056070: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


│ │ │ +00055840: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -00055c50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00055c80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00055c90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00055cd0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00055ce0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +000558b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000558d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00055900: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00055920: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00055890: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000558a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000558e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000558f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00055940: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00055950: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00055960: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00055970: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00055980: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00055990: 2d35 332d 4155 2d34 2831 290a 2020 2d20 -53-AU-4(1). - │ │ │ +000559a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +000559b0: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +000559c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +000559d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +000559e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +000559f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00055a00: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00055a10: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +00055a20: 6365 5f72 7379 736c 6f67 5f65 6e61 626c ce_rsyslog_enabl │ │ │ +00055a30: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +00055a40: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ +00055a50: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ +00055a60: 6963 6520 7273 7973 6c6f 670a 2020 626c ice rsyslog. bl │ │ │ +00055a70: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ +00055a80: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00055a90: 6765 2066 6163 7473 0a20 2020 2061 6e73 ge facts. ans │ │ │ +00055aa0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00055ab0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00055ac0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a manager: auto. │ │ │ +00055ad0: 0a20 202d 206e 616d 653a 2045 6e61 626c . - name: Enabl │ │ │ +00055ae0: 6520 7273 7973 6c6f 6720 5365 7276 6963 e rsyslog Servic │ │ │ +00055af0: 6520 2d20 456e 6162 6c65 2053 6572 7669 e - Enable Servi │ │ │ +00055b00: 6365 2072 7379 736c 6f67 0a20 2020 2061 ce rsyslog. a │ │ │ +00055b10: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +00055b20: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +00055b30: 6d65 3a20 7273 7973 6c6f 670a 2020 2020 me: rsyslog. │ │ │ +00055b40: 2020 656e 6162 6c65 643a 2074 7275 650a enabled: true. │ │ │ +00055b50: 2020 2020 2020 7374 6174 653a 2073 7461 state: sta │ │ │ +00055b60: 7274 6564 0a20 2020 2020 206d 6173 6b65 rted. maske │ │ │ +00055b70: 643a 2066 616c 7365 0a20 2020 2077 6865 d: false. whe │ │ │ +00055b80: 6e3a 0a20 2020 202d 2027 2272 7379 736c n:. - '"rsysl │ │ │ +00055b90: 6f67 2220 696e 2061 6e73 6962 6c65 5f66 og" in ansible_f │ │ │ +00055ba0: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +00055bb0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +00055bc0: 3830 302d 3533 2d41 552d 3428 3129 0a20 800-53-AU-4(1). │ │ │ +00055bd0: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +00055be0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c M-6(a). - enabl │ │ │ +00055bf0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +00055c00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +00055c10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +00055c20: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +00055c30: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +00055c40: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ +00055c50: 7276 6963 655f 7273 7973 6c6f 675f 656e rvice_rsyslog_en │ │ │ +00055c60: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ +00055c70: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ +00055c80: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +00055c90: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +00055ca0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00055cb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
│ │ │ +00055d60: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00055d70: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00055e10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00055e20: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00055e70: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00055eb0: 6c75 6465 2065 6e61 626c 655f 7273 7973  lude enable_rsys
│ │ │ +00055ec0: 6c6f 670a 0a63 6c61 7373 2065 6e61 626c  log..class enabl
│ │ │ +00055ed0: 655f 7273 7973 6c6f 6720 7b0a 2020 7365  e_rsyslog {.  se
│ │ │ +00055ee0: 7276 6963 6520 7b27 7273 7973 6c6f 6727  rvice {'rsyslog'
│ │ │ +00055ef0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00055f00: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +00055f10: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +00055f20: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remedi │ │ │ +00055fe0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00055ff0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00056000: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +00056040: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00056050: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00056060: 656e 6162 6c65 6420 3d20 5b22 7273 7973  enabled = ["rsys
│ │ │ +00056070: 6c6f 6722 5d0a 3c2f 636f 6465 3e3c 2f70  log"].

Remed │ │ │ -00077e70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00077e80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +00055e00: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00055e30: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00055e40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00055e80: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00055e90: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00077f30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00077f50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00077f80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00077f10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00077f20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00077f40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00077f60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00077f70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00077fb0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00077fc0: 6465 2072 656d 6f76 655f 696e 6574 7574 de remove_inetut │ │ │ -00077fd0: 696c 732d 7465 6c6e 6574 640a 0a63 6c61 ils-telnetd..cla │ │ │ -00077fe0: 7373 2072 656d 6f76 655f 696e 6574 7574 ss remove_inetut │ │ │ -00077ff0: 696c 732d 7465 6c6e 6574 6420 7b0a 2020 ils-telnetd {. │ │ │ -00078000: 7061 636b 6167 6520 7b20 2769 6e65 7475 package { 'inetu │ │ │ -00078010: 7469 6c73 2d74 656c 6e65 7464 273a 0a20 tils-telnetd':. │ │ │ -00078020: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -00078030: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ -00078040: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ -000780f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00078100: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00078110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000781e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000781f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00078240: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00078250: 6c6c 2074 6865 2069 6e65 742d 6261 7365  ll the inet-base
│ │ │ -00078260: 6420 7465 6c6e 6574 2073 6572 7665 723a  d telnet server:
│ │ │ -00078270: 2045 6e73 7572 6520 696e 6574 7574 696c   Ensure inetutil
│ │ │ -00078280: 732d 7465 6c6e 6574 6420 6973 2072 656d  s-telnetd is rem
│ │ │ -00078290: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -000782a0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000782b0: 0a20 2020 206e 616d 653a 2069 6e65 7475  .    name: inetu
│ │ │ -000782c0: 7469 6c73 2d74 656c 6e65 7464 0a20 2020  tils-telnetd.   
│ │ │ -000782d0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -000782e0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -000782f0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00078300: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00078310: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00078320: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00078330: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00078340: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00078350: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00078360: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00078370: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00078380: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00078390: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ -000783a0: 7475 7469 6c73 2d74 656c 6e65 7464 5f72  tutils-telnetd_r
│ │ │ -000783b0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity:low
Disrup │ │ │ -000781c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000781d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00078210: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00078220: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +00077f10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00077f20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00077f40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00077f60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00077f70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00077fb0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00077fc0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +00077fd0: 6520 696e 6574 2d62 6173 6564 2074 656c  e inet-based tel
│ │ │ +00077fe0: 6e65 7420 7365 7276 6572 3a20 456e 7375  net server: Ensu
│ │ │ +00077ff0: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ +00078000: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +00078010: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00078020: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00078030: 6e61 6d65 3a20 696e 6574 7574 696c 732d  name: inetutils-
│ │ │ +00078040: 7465 6c6e 6574 640a 2020 2020 7374 6174  telnetd.    stat
│ │ │ +00078050: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00078060: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00078070: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00078080: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00078090: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000780a0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +000780b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +000780c0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +000780d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000780e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000780f0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00078100: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00078110: 7061 636b 6167 655f 696e 6574 7574 696c  package_inetutil
│ │ │ +00078120: 732d 7465 6c6e 6574 645f 7265 6d6f 7665  s-telnetd_remove
│ │ │ +00078130: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00078140: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ +000781f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00078200: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000782d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000782e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00078340: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +00078350: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ +00078360: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +00078370: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ +00078380: 2027 696e 6574 7574 696c 732d 7465 6c6e   'inetutils-teln
│ │ │ +00078390: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ +000783a0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +000783b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.R
│ │ │ -00078d50: 656d 6564 6961 7469 6f6e 2050 7570 7065  emediation Puppe
│ │ │ -00078d60: 7420 736e 6970 7065 7420 e287 b23c 2f61  t snippet ...
low
Disru │ │ │ +000782b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000782c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00078300: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00078310: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00078e00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00078e10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00078e60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00078ea0: 6e63 6c75 6465 2072 656d 6f76 655f 6e69  nclude remove_ni
│ │ │ -00078eb0: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -00078ec0: 6e69 7320 7b0a 2020 7061 636b 6167 6520  nis {.  package 
│ │ │ -00078ed0: 7b20 276e 6973 273a 0a20 2020 2065 6e73  { 'nis':.    ens
│ │ │ -00078ee0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00078ef0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00078fb0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00078fc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -00078df0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00078e20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00078e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00078e70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00078e80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00079070: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00079090: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000790c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00079050: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00079060: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00079080: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000790a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000790b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000790f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00079100: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -00079110: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ -00079120: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ -00079130: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -00079140: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00079150: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ -00079160: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -00079170: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -00079180: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00079190: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -000791a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -000791b0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -000791c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -000791d0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -000791e0: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +00078d50: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00078d60: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +00078e00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00078ea0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00078eb0: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ +00078ec0: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ +00078ed0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00078ee0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00078ef0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +00078f00: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ +00078f10: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +00078f20: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00078f30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00078f40: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00078f50: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00078f60: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00078f70: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00078f80: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ +00078f90: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00079050: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00079060: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00079120: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00079130: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00078df0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00078e20: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00078e30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00078e70: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00078e80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +000790f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00079110: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00079140: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00079160: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00079190: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +000791a0: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ +000791b0: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ +000791c0: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ +000791d0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000791e0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  000791f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00079b80: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00079b90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00079c60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00079c70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00079cc0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00079cd0: 6e74 7064 6174 650a 0a63 6c61 7373 2072  ntpdate..class r
│ │ │ -00079ce0: 656d 6f76 655f 6e74 7064 6174 6520 7b0a  emove_ntpdate {.
│ │ │ -00079cf0: 2020 7061 636b 6167 6520 7b20 276e 7470    package { 'ntp
│ │ │ -00079d00: 6461 7465 273a 0a20 2020 2065 6e73 7572  date':.    ensur
│ │ │ -00079d10: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00079d20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00079d30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -00079de0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00079df0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00079e00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00079e10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00079e20: 7365 2220 6964 3d22 6964 3131 3222 3e3c se" id="id112">< │ │ │ -00079e30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00079e40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00079e50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00079e60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00079e70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00079f00: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00079f10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -00079c40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00079c50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00079c90: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00079ca0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -00079e80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00079e90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00079ed0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00079ee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -00079f30: 2755 6e69 6e73 7461 6c6c 2074 6865 206e 'Uninstall the n │ │ │ -00079f40: 7470 6461 7465 2070 6163 6b61 6765 3a20 tpdate package: │ │ │ -00079f50: 456e 7375 7265 206e 7470 6461 7465 2069 Ensure ntpdate i │ │ │ -00079f60: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ -00079f70: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00079f80: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -00079f90: 6e74 7064 6174 650a 2020 2020 7374 6174 ntpdate. stat │ │ │ -00079fa0: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -00079fb0: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -00079fc0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00079fd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00079fe0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00079ff0: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -0007a000: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0007a010: 6564 0a20 202d 2070 6163 6b61 6765 5f6e ed. - package_n │ │ │ -0007a020: 7470 6461 7465 5f72 656d 6f76 6564 0a3c tpdate_removed.< │ │ │ +00079b70: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00079b80: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00079b90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00079c60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00079c70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00079cd0: 616c 6c20 7468 6520 6e74 7064 6174 6520  all the ntpdate 
│ │ │ +00079ce0: 7061 636b 6167 653a 2045 6e73 7572 6520  package: Ensure 
│ │ │ +00079cf0: 6e74 7064 6174 6520 6973 2072 656d 6f76  ntpdate is remov
│ │ │ +00079d00: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00079d10: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00079d20: 2020 206e 616d 653a 206e 7470 6461 7465     name: ntpdate
│ │ │ +00079d30: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00079d40: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +00079d50: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00079d60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00079d70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00079d80: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00079d90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00079da0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00079db0: 7061 636b 6167 655f 6e74 7064 6174 655f  package_ntpdate_
│ │ │ +00079dc0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00079dd0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00079e80: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00079e90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00079f10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00079fa0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00079fb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00079c40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00079c50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00079c90: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00079ca0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +00079f20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00079f30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00079f70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00079f80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +00079fd0: 7265 6d6f 7665 5f6e 7470 6461 7465 0a0a  remove_ntpdate..
│ │ │ +00079fe0: 636c 6173 7320 7265 6d6f 7665 5f6e 7470  class remove_ntp
│ │ │ +00079ff0: 6461 7465 207b 0a20 2070 6163 6b61 6765  date {.  package
│ │ │ +0007a000: 207b 2027 6e74 7064 6174 6527 3a0a 2020   { 'ntpdate':.  
│ │ │ +0007a010: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0007a020: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0007a030: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -0007b100: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0007b110: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0007b190: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0007b1a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007b1b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0007b1f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007b200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0007b220: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007b230: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0007b250: 7265 6d6f 7665 5f74 656c 6e65 7464 2d73  remove_telnetd-s
│ │ │ -0007b260: 736c 0a0a 636c 6173 7320 7265 6d6f 7665  sl..class remove
│ │ │ -0007b270: 5f74 656c 6e65 7464 2d73 736c 207b 0a20  _telnetd-ssl {. 
│ │ │ -0007b280: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -0007b290: 6574 642d 7373 6c27 3a0a 2020 2020 656e  etd-ssl':.    en
│ │ │ -0007b2a0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0007b2b0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0007b370: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0007b380: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007b410: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007b420: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007b440: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007b460: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007b470: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007b4b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007b4c0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -0007b4d0: 6520 7373 6c20 636f 6d70 6c69 616e 7420  e ssl compliant 
│ │ │ -0007b4e0: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ -0007b4f0: 6e73 7572 6520 7465 6c6e 6574 642d 7373  nsure telnetd-ss
│ │ │ -0007b500: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ -0007b510: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0007b520: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0007b530: 653a 2074 656c 6e65 7464 2d73 736c 0a20  e: telnetd-ssl. 
│ │ │ -0007b540: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0007b550: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0007b560: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0007b570: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0007b580: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -0007b590: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -0007b5a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0007b5b0: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -0007b5c0: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -0007b5d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0007b5e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0007b5f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0007b600: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -0007b610: 656c 6e65 7464 2d73 736c 5f72 656d 6f76  elnetd-ssl_remov
│ │ │ -0007b620: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007b100: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0007b110: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007b120: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007b130: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007b140: 7365 2220 6964 3d22 6964 3131 3522 3e3c se" id="id115">< │ │ │ +0007b150: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007b160: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007b170: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007b180: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007b190: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0007b1a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007b1b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0007b1f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007b200: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0007b220: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0007b230: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0007b250: 2755 6e69 6e73 7461 6c6c 2074 6865 2073 'Uninstall the s │ │ │ +0007b260: 736c 2063 6f6d 706c 6961 6e74 2074 656c sl compliant tel │ │ │ +0007b270: 6e65 7420 7365 7276 6572 3a20 456e 7375 net server: Ensu │ │ │ +0007b280: 7265 2074 656c 6e65 7464 2d73 736c 2069 re telnetd-ssl i │ │ │ +0007b290: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ +0007b2a0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +0007b2b0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +0007b2c0: 7465 6c6e 6574 642d 7373 6c0a 2020 2020 telnetd-ssl. │ │ │ +0007b2d0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ +0007b2e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0007b2f0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0007b300: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0007b310: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +0007b320: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +0007b330: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0007b340: 6779 0a20 202d 2068 6967 685f 7365 7665 gy. - high_seve │ │ │ +0007b350: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d rity. - low_com │ │ │ +0007b360: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0007b370: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +0007b380: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0007b390: 2020 2d20 7061 636b 6167 655f 7465 6c6e - package_teln │ │ │ +0007b3a0: 6574 642d 7373 6c5f 7265 6d6f 7665 640a etd-ssl_removed. │ │ │ +0007b3b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ +0007b460: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0007b470: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0007b510: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0007b5b0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +0007b5c0: 656c 6e65 7464 2d73 736c 0a0a 636c 6173  elnetd-ssl..clas
│ │ │ +0007b5d0: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ +0007b5e0: 2d73 736c 207b 0a20 2070 6163 6b61 6765  -ssl {.  package
│ │ │ +0007b5f0: 207b 2027 7465 6c6e 6574 642d 7373 6c27   { 'telnetd-ssl'
│ │ │ +0007b600: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0007b610: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0007b620: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0007b630: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 │ │ │ -0007c6f0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007c700: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +0007b500: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007b530: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007b540: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007b580: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007b590: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0007c7a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007c840: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -0007c850: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ -0007c860: 6d6f 7665 5f74 656c 6e65 7464 207b 0a20  move_telnetd {. 
│ │ │ -0007c870: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -0007c880: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -0007c890: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007c8a0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0007c960: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0007c970: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0007c9f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0007ca80: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007ca90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -0007c790: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007c7c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007c7d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007c810: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007c820: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0007ca00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007ca10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0007ca50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007ca60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -0007cab0: 556e 696e 7374 616c 6c20 7468 6520 7465  Uninstall the te
│ │ │ -0007cac0: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ -0007cad0: 7572 6520 7465 6c6e 6574 6420 6973 2072  ure telnetd is r
│ │ │ -0007cae0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0007caf0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0007cb00: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -0007cb10: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ -0007cb20: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0007cb30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007cb40: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0007cb50: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0007cb60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007cb70: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0007cb80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0007cb90: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -0007cba0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0007cbb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0007cbc0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0007cbd0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0007cbe0: 6b61 6765 5f74 656c 6e65 7464 5f72 656d  kage_telnetd_rem
│ │ │ -0007cbf0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +0007c7e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007c7f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007c840: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007c850: 6c6c 2074 6865 2074 656c 6e65 7420 7365  ll the telnet se
│ │ │ +0007c860: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +0007c870: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +0007c880: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0007c890: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0007c8a0: 6e61 6d65 3a20 7465 6c6e 6574 640a 2020  name: telnetd.  
│ │ │ +0007c8b0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0007c8c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0007c8d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0007c8e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0007c8f0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0007c900: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0007c910: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0007c920: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +0007c930: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +0007c940: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007c950: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0007c960: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0007c970: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ +0007c980: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Re │ │ │ +0007ca40: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0007ca50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007ca60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +0007c7c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007c7d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007c810: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007c820: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +0007cb00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007cb50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0007cb90: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +0007cba0: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +0007cbb0: 7665 5f74 656c 6e65 7464 207b 0a20 2070  ve_telnetd {.  p
│ │ │ +0007cbc0: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ +0007cbd0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +0007cbe0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0007cbf0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Rem
│ │ │ -0007eb20: 6564 6961 7469 6f6e 204f 5342 7569 6c64  ediation OSBuild
│ │ │ -0007eb30: 2042 6c75 6570 7269 6e74 2073 6e69 7070   Blueprint snipp
│ │ │ -0007eb40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...

.[[pack │ │ │ -0007eb90: 6167 6573 5d5d 0a6e 616d 6520 3d20 226e ages]].name = "n │ │ │ -0007eba0: 7470 220a 7665 7273 696f 6e20 3d20 222a tp".version = "* │ │ │ -0007ebb0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".

< │ │ │ -0007ebc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -0007ec70: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0007ec80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Co │ │ │ +0007cae0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007cb10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007cb30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007cb40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007cb60: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007cb70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -0007ed50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007ed60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0007edb0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -0007edc0: 6e74 700a 0a63 6c61 7373 2069 6e73 7461  ntp..class insta
│ │ │ -0007edd0: 6c6c 5f6e 7470 207b 0a20 2070 6163 6b61  ll_ntp {.  packa
│ │ │ -0007ede0: 6765 207b 2027 6e74 7027 3a0a 2020 2020  ge { 'ntp':.    
│ │ │ -0007edf0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -0007ee00: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -0007ee10: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0007eec0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0007eed0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0007eee0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ -0007ed30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007ed40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007ed80: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0007ed90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0007efb0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007efc0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0007f010: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0007f020: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0007f030: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0007f040: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0007f050: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -0007f060: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0007f070: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -0007f080: 6571 2d31 302e 340a 2020 2d20 656e 6162  eq-10.4.  - enab
│ │ │ -0007f090: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0007f0a0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -0007f0b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0007f0c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0007f0d0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0007f0e0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0007f0f0: 6b61 6765 5f6e 7470 5f69 6e73 7461 6c6c  kage_ntp_install
│ │ │ -0007f100: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -0007f110: 7265 206e 7470 2069 7320 696e 7374 616c  re ntp is instal
│ │ │ -0007f120: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -0007f130: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0007f140: 2020 206e 616d 653a 206e 7470 0a20 2020     name: ntp.   
│ │ │ -0007f150: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -0007f160: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0007f170: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0007f180: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -0007f190: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0007f1a0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0007f1b0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0007f1c0: 2d31 302e 340a 2020 2d20 656e 6162 6c65  -10.4.  - enable
│ │ │ -0007f1d0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -0007f1e0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -0007f1f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0007f200: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0007f210: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0007f220: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0007f230: 6765 5f6e 7470 5f69 6e73 7461 6c6c 6564  ge_ntp_installed
│ │ │ +0007eb20: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +0007eb30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +0007eb40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Complexity:low
Disrup │ │ │ -0007ef90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007efa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007efe0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0007eff0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +0007ebe0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007ec30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0007ebc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007ebf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007ec10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007ec20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007ec40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0007ec50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007ec70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0007ec80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0007ec90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0007eca0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0007ecb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0007ecc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0007ecd0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +0007ece0: 3130 2e34 0a20 202d 2065 6e61 626c 655f  10.4.  - enable_
│ │ │ +0007ecf0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +0007ed00: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +0007ed10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0007ed20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0007ed30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0007ed40: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0007ed50: 655f 6e74 705f 696e 7374 616c 6c65 640a  e_ntp_installed.
│ │ │ +0007ed60: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +0007ed70: 6e74 7020 6973 2069 6e73 7461 6c6c 6564  ntp is installed
│ │ │ +0007ed80: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0007ed90: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0007eda0: 6e61 6d65 3a20 6e74 700a 2020 2020 7374  name: ntp.    st
│ │ │ +0007edb0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0007edc0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0007edd0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0007ede0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0007edf0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0007ee00: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0007ee10: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +0007ee20: 2e34 0a20 202d 2065 6e61 626c 655f 7374  .4.  - enable_st
│ │ │ +0007ee30: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +0007ee40: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +0007ee50: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0007ee60: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0007ee70: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0007ee80: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0007ee90: 6e74 705f 696e 7374 616c 6c65 640a 3c2f  ntp_installed.
Re │ │ │ +0007ef50: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0007ef60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007ef70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0007f010: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007f060: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0007eff0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007f020: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007f040: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007f050: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007f070: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0007f080: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0007f0a0: 7564 6520 696e 7374 616c 6c5f 6e74 700a  ude install_ntp.
│ │ │ +0007f0b0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ +0007f0c0: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +0007f0d0: 2027 6e74 7027 3a0a 2020 2020 656e 7375   'ntp':.    ensu
│ │ │ +0007f0e0: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +0007f0f0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +0007f110: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0007f120: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0007f130: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0007f140: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0007f150: 6431 3235 2220 7461 6269 6e64 6578 3d22 d125" tabindex=" │ │ │ +0007f160: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0007f170: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0007f180: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0007f190: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0007f1a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0007f1b0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0007f1c0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0007f1d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +0007f220: 6765 735d 5d0a 6e61 6d65 203d 2022 6e74 ges]].name = "nt │ │ │ +0007f230: 7022 0a76 6572 7369 6f6e 203d 2022 2a22 p".version = "*" │ │ │ 0007f240: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
'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: │ │ │ │ @@ -1904,14 +1887,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -1941,31 +1941,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2002,14 +1985,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2041,31 +2041,14 @@ │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _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: │ │ │ │ @@ -2088,14 +2071,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/ │ │ │ │ @@ -2127,31 +2127,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ _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] │ │ │ │ -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: │ │ │ │ @@ -2188,14 +2171,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/ │ │ │ │ @@ -4472,27 +4472,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' │ │ │ │ @@ -4505,14 +4492,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 │ │ │ │ @@ -4527,27 +4527,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -4556,14 +4543,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 │ │ │ │ @@ -4579,27 +4579,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: │ │ │ │ @@ -4608,14 +4595,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 │ │ │ │ @@ -4648,27 +4648,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' │ │ │ │ @@ -4681,14 +4668,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 │ │ │ │ @@ -4722,27 +4722,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -4754,14 +4741,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 │ │ │ │ @@ -4837,31 +4837,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -4886,14 +4869,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_high.html │ │ │ @@ -21280,128 +21280,128 @@ │ │ │ 000531f0: 2d74 6172 6765 743d 2223 6964 3333 2220 -target="#id33" │ │ │ 00053200: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 00053210: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 00053220: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 00053230: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 00053240: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 00053250: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -00053260: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00053270: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00053280: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ -000532d0: 616d 6520 3d20 2273 7973 6c6f 672d 6e67  ame = "syslog-ng
│ │ │ -000532e0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -000532f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -000533a0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000533b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -00053460: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000534b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00053440: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00053470: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00053490: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000534a0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000534c0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000534d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000534f0: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ -00053500: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ -00053510: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ -00053520: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ -00053530: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ -00053540: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -00053550: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ -00053610: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00053620: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00053630: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -000536b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000536e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00053700: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00053710: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00053730: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00053750: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00053760: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00053770: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00053780: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00053790: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -000537a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -000537b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000537c0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000537d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000537e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000537f0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00053800: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00053810: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00053820: 640a 2020 2d20 7061 636b 6167 655f 7379  d.  - package_sy
│ │ │ -00053830: 736c 6f67 6e67 5f69 6e73 7461 6c6c 6564  slogng_installed
│ │ │ -00053840: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -00053850: 2073 7973 6c6f 672d 6e67 2069 7320 696e   syslog-ng is in
│ │ │ -00053860: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -00053870: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00053880: 653a 0a20 2020 206e 616d 653a 2073 7973  e:.    name: sys
│ │ │ -00053890: 6c6f 672d 6e67 0a20 2020 2073 7461 7465  log-ng.    state
│ │ │ -000538a0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000538b0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -000538c0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000538d0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000538e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000538f0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00053900: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00053910: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00053920: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00053930: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00053940: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00053950: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00053960: 2d20 7061 636b 6167 655f 7379 736c 6f67  - package_syslog
│ │ │ -00053970: 6e67 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ng_installed.
Complexity │ │ │ +00053300: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00053320: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00053330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00053340: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00053350: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00053370: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000533b0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000533c0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000533d0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000533e0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000533f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00053400: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00053410: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00053420: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00053430: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00053440: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00053450: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00053460: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00053470: 6163 6b61 6765 5f73 7973 6c6f 676e 675f  ackage_syslogng_
│ │ │ +00053480: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00053490: 653a 2045 6e73 7572 6520 7379 736c 6f67  e: Ensure syslog
│ │ │ +000534a0: 2d6e 6720 6973 2069 6e73 7461 6c6c 6564  -ng is installed
│ │ │ +000534b0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000534c0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000534d0: 6e61 6d65 3a20 7379 736c 6f67 2d6e 670a  name: syslog-ng.
│ │ │ +000534e0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000534f0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00053500: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00053510: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00053520: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00053530: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00053540: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +00053550: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00053560: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00053570: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00053580: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00053590: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000535a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000535b0: 6765 5f73 7973 6c6f 676e 675f 696e 7374  ge_syslogng_inst
│ │ │ +000535c0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediation │ │ │ +00053680: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00053690: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00053710: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00053730: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00053780: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000537b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +000537d0: 6c5f 7379 736c 6f67 2d6e 670a 0a63 6c61  l_syslog-ng..cla
│ │ │ +000537e0: 7373 2069 6e73 7461 6c6c 5f73 7973 6c6f  ss install_syslo
│ │ │ +000537f0: 672d 6e67 207b 0a20 2070 6163 6b61 6765  g-ng {.  package
│ │ │ +00053800: 207b 2027 7379 736c 6f67 2d6e 6727 3a0a   { 'syslog-ng':.
│ │ │ +00053810: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00053820: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00053830: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +000538f0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00053900: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00053910: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +00053950: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00053960: 203d 2022 7379 736c 6f67 2d6e 6722 0a76   = "syslog-ng".v
│ │ │ +00053970: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00053990: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation OS │ │ │ -00054a30: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00054a40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00054a50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ -00054a90: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00054aa0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -00054ab0: 3d20 5b22 7379 736c 6f67 2d6e 6722 5d0a  = ["syslog-ng"].
│ │ │ -00054ac0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00054b70: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00054b80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +00053720: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00053740: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00053790: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000537a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -00054c30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00054c80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00054c10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00054c40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00054c60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00054c70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00054c90: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00054ca0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00054cc0: 7564 6520 656e 6162 6c65 5f73 7973 6c6f  ude enable_syslo
│ │ │ -00054cd0: 672d 6e67 0a0a 636c 6173 7320 656e 6162  g-ng..class enab
│ │ │ -00054ce0: 6c65 5f73 7973 6c6f 672d 6e67 207b 0a20  le_syslog-ng {. 
│ │ │ -00054cf0: 2073 6572 7669 6365 207b 2773 7973 6c6f   service {'syslo
│ │ │ -00054d00: 672d 6e67 273a 0a20 2020 2065 6e61 626c  g-ng':.    enabl
│ │ │ -00054d10: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00054d20: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00054d30: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00054d40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00054df0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00054e00: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00054ea0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00054eb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00054f00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00054f40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00054f50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00054f60: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00054f70: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00054f80: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00054f90: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -00054fa0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00054fb0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00054fc0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00054fd0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00054fe0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00054ff0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00055000: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00055010: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00055020: 7365 7276 6963 655f 7379 736c 6f67 6e67  service_syslogng
│ │ │ -00055030: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -00055040: 3a20 456e 6162 6c65 2073 7973 6c6f 672d  : Enable syslog-
│ │ │ -00055050: 6e67 2053 6572 7669 6365 202d 2045 6e61  ng Service - Ena
│ │ │ -00055060: 626c 6520 7365 7276 6963 6520 7379 736c  ble service sysl
│ │ │ -00055070: 6f67 2d6e 670a 2020 626c 6f63 6b3a 0a0a  og-ng.  block:..
│ │ │ -00055080: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -00055090: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000550a0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -000550b0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -000550c0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -000550d0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -000550e0: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ -000550f0: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ -00055100: 456e 6162 6c65 2053 6572 7669 6365 2073  Enable Service s
│ │ │ -00055110: 7973 6c6f 672d 6e67 0a20 2020 2061 6e73  yslog-ng.    ans
│ │ │ -00055120: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00055130: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00055140: 3a20 7379 736c 6f67 2d6e 670a 2020 2020  : syslog-ng.    
│ │ │ -00055150: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -00055160: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -00055170: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -00055180: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -00055190: 6e3a 0a20 2020 202d 2027 2273 7973 6c6f  n:.    - '"syslo
│ │ │ -000551a0: 672d 6e67 2220 696e 2061 6e73 6962 6c65  g-ng" in ansible
│ │ │ -000551b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000551c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000551d0: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -000551e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000551f0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00055200: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00055210: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00055220: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00055230: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00055240: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00055250: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00055260: 7365 7276 6963 655f 7379 736c 6f67 6e67  service_syslogng
│ │ │ -00055270: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -00055280: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00055290: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -000552a0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -000552b0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -000552c0: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation An │ │ │ +00054a30: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00054a40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ -00054e90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00054ec0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00054ed0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00054f10: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00054f20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +00054b10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00054b20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00054b70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00054b80: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00054b90: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00054ba0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00054bb0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00054bc0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00054bd0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00054be0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00054bf0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00054c00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00054c10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00054c20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00054c30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00054c40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00054c50: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ +00054c60: 676e 675f 656e 6162 6c65 640a 0a2d 206e  gng_enabled..- n
│ │ │ +00054c70: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ +00054c80: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ +00054c90: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ +00054ca0: 7973 6c6f 672d 6e67 0a20 2062 6c6f 636b  yslog-ng.  block
│ │ │ +00054cb0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +00054cc0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00054cd0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +00054ce0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00054cf0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +00054d00: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +00054d10: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00054d20: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ +00054d30: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +00054d40: 6520 7379 736c 6f67 2d6e 670a 2020 2020  e syslog-ng.    
│ │ │ +00054d50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00054d60: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00054d70: 616d 653a 2073 7973 6c6f 672d 6e67 0a20  ame: syslog-ng. 
│ │ │ +00054d80: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ +00054d90: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ +00054da0: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ +00054db0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ +00054dc0: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ +00054dd0: 736c 6f67 2d6e 6722 2069 6e20 616e 7369  slog-ng" in ansi
│ │ │ +00054de0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00054df0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00054e00: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00054e10: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00054e20: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00054e30: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00054e40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00054e50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00054e60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00054e70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00054e80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00054e90: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ +00054ea0: 676e 675f 656e 6162 6c65 640a 2020 2d20  gng_enabled.  - 
│ │ │ +00054eb0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +00054ec0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +00054ed0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00054ee0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00054ef0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediatio
│ │ │ +00054fb0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00054fc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00055090: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000550e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +00054af0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00054b00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00054b40: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00054b50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00055050: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00055070: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000550c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000550d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +00055100: 655f 7379 736c 6f67 2d6e 670a 0a63 6c61  e_syslog-ng..cla
│ │ │ +00055110: 7373 2065 6e61 626c 655f 7379 736c 6f67  ss enable_syslog
│ │ │ +00055120: 2d6e 6720 7b0a 2020 7365 7276 6963 6520  -ng {.  service 
│ │ │ +00055130: 7b27 7379 736c 6f67 2d6e 6727 3a0a 2020  {'syslog-ng':.  
│ │ │ +00055140: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +00055150: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +00055160: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +00055170: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +00055230: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00055240: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00055250: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ +000552a0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +000552b0: 6c65 6420 3d20 5b22 7379 736c 6f67 2d6e  led = ["syslog-n
│ │ │ +000552c0: 6722 5d0a 3c2f 636f 6465 3e3c 2f70 7265  g"].
R │ │ │ -00056400: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00056410: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00056420: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00056430: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00056460: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00056470: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00056480: 7273 7973 6c6f 6722 0a76 6572 7369 6f6e rsyslog".version │ │ │ -00056490: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediatio │ │ │ -00056550: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00056560: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -000565f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00056610: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00056630: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00056660: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00056670: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00056680: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -000566a0: 6c6c 5f72 7379 736c 6f67 0a0a 636c 6173  ll_rsyslog..clas
│ │ │ -000566b0: 7320 696e 7374 616c 6c5f 7273 7973 6c6f  s install_rsyslo
│ │ │ -000566c0: 6720 7b0a 2020 7061 636b 6167 6520 7b20  g {.  package { 
│ │ │ -000566d0: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ -000566e0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000566f0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00056700: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -000567b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000567c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low< │ │ │ -00056870: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000568c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00056850: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00056880: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000568a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000568b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000568d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000568e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00056900: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00056910: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00056920: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00056930: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00056940: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00056950: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00056960: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00056970: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00056980: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00056990: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000569a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000569b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000569c0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -000569d0: 7379 736c 6f67 5f69 6e73 7461 6c6c 6564  syslog_installed
│ │ │ -000569e0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -000569f0: 2072 7379 736c 6f67 2069 7320 696e 7374   rsyslog is inst
│ │ │ -00056a00: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -00056a10: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00056a20: 0a20 2020 206e 616d 653a 2072 7379 736c  .    name: rsysl
│ │ │ -00056a30: 6f67 0a20 2020 2073 7461 7465 3a20 7072  og.    state: pr
│ │ │ -00056a40: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00056a50: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00056a60: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00056a70: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00056a80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00056a90: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -00056aa0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00056ab0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00056ac0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00056ad0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00056ae0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00056af0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00056b00: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ -00056b10: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00056400: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00056410: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +000564b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000564c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00056510: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00056550: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00056560: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00056570: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00056580: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00056590: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000565a0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000565b0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000565c0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000565d0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000565e0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000565f0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00056600: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00056610: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00056620: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +00056630: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +00056640: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ +00056650: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00056660: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00056670: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ +00056680: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ +00056690: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000566a0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000566b0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000566c0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000566d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000566e0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +000566f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00056700: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00056710: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00056720: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00056730: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00056740: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00056750: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +00056760: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00056770: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +00056820: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00056830: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +000568b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +000568f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ +000564a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000564d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000564e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00056520: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00056530: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +000568c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000568e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00056910: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00056930: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00056960: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00056970: 7461 6c6c 5f72 7379 736c 6f67 0a0a 636c  tall_rsyslog..cl
│ │ │ +00056980: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ +00056990: 6c6f 6720 7b0a 2020 7061 636b 6167 6520  log {.  package 
│ │ │ +000569a0: 7b20 2772 7379 736c 6f67 273a 0a20 2020  { 'rsyslog':.   
│ │ │ +000569b0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +000569c0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000569d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00056a80: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00056a90: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00056aa0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00056ae0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00056af0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +00056b00: 2272 7379 736c 6f67 220a 7665 7273 696f  "rsyslog".versio
│ │ │ +00056b10: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00056b20: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
│ │ │ -00057d20: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00057d30: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00057d40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00057d80: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00057d90: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00057da0: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -00057db0: 5b22 7273 7973 6c6f 6722 5d0a 3c2f 636f  ["rsyslog"].
< │ │ │ -00057dd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00057de0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00057df0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00057e00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00057e10: 6434 3922 2074 6162 696e 6465 783d 2230 d49" tabindex="0 │ │ │ -00057e20: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00057e30: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00057e40: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00057e50: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00057e60: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00057e70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00057e80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00057ec0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00057f30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00057f50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00057f80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00057fa0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00057f10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00057f20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00057f60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00057f70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00057fc0: 656e 6162 6c65 5f72 7379 736c 6f67 0a0a enable_rsyslog.. │ │ │ -00057fd0: 636c 6173 7320 656e 6162 6c65 5f72 7379 class enable_rsy │ │ │ -00057fe0: 736c 6f67 207b 0a20 2073 6572 7669 6365 slog {. service │ │ │ -00057ff0: 207b 2772 7379 736c 6f67 273a 0a20 2020 {'rsyslog':. │ │ │ -00058000: 2065 6e61 626c 6520 3d26 6774 3b20 7472 enable => tr │ │ │ -00058010: 7565 2c0a 2020 2020 656e 7375 7265 203d ue,. ensure = │ │ │ -00058020: 2667 743b 2027 7275 6e6e 696e 6727 2c0a > 'running',. │ │ │ -00058030: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -000580f0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00058100: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -00058190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -000581b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -000581d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00058200: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00058210: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00058220: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -00058240: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00058250: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00058260: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00058270: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00058280: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00058290: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -000582a0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000582b0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000582c0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000582d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000582e0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000582f0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00058300: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00058310: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -00058320: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ -00058330: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ -00058340: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ -00058350: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ -00058360: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ -00058370: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00058380: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00058390: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -000583a0: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -000583b0: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -000583c0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -000583d0: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ -000583e0: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ -000583f0: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ -00058400: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ -00058410: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00058420: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -00058430: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ -00058440: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00058450: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -00058460: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -00058470: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00058480: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ -00058490: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000584a0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000584b0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000584c0: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -000584d0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000584e0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000584f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00058500: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00058510: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00058520: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00058530: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00058540: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00058550: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -00058560: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00058570: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00058580: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00058590: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000585a0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
│ │ │ +00057dd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00057e70: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00057e80: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00057e90: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00057ea0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00057eb0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00057ec0: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +00057ed0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00057ee0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00057ef0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00057f00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00057f10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00057f20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00057f30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00057f40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00057f50: 2073 6572 7669 6365 5f72 7379 736c 6f67   service_rsyslog
│ │ │ +00057f60: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ +00057f70: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ +00057f80: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00057f90: 6520 7365 7276 6963 6520 7273 7973 6c6f  e service rsyslo
│ │ │ +00057fa0: 670a 2020 626c 6f63 6b3a 0a0a 2020 2d20  g.  block:..  - 
│ │ │ +00057fb0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00057fc0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00057fd0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00057fe0: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +00057ff0: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +00058000: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +00058010: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +00058020: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00058030: 2053 6572 7669 6365 2072 7379 736c 6f67   Service rsyslog
│ │ │ +00058040: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00058050: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00058060: 2020 2020 6e61 6d65 3a20 7273 7973 6c6f      name: rsyslo
│ │ │ +00058070: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ +00058080: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00058090: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +000580a0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +000580b0: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +000580c0: 2272 7379 736c 6f67 2220 696e 2061 6e73  "rsyslog" in ans
│ │ │ +000580d0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000580e0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +000580f0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00058100: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +00058110: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00058120: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00058130: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00058140: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00058150: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00058160: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00058170: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00058180: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ +00058190: 6c6f 675f 656e 6162 6c65 640a 2020 2d20  log_enabled.  - 
│ │ │ +000581a0: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +000581b0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +000581c0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +000581d0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000581e0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediatio
│ │ │ +000582a0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +000582b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00058380: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000583d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
│ │ │ +00057dc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00057df0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00057e00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00057e40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00057e50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00058340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00058360: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000583b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000583c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +000583f0: 655f 7273 7973 6c6f 670a 0a63 6c61 7373  e_rsyslog..class
│ │ │ +00058400: 2065 6e61 626c 655f 7273 7973 6c6f 6720   enable_rsyslog 
│ │ │ +00058410: 7b0a 2020 7365 7276 6963 6520 7b27 7273  {.  service {'rs
│ │ │ +00058420: 7973 6c6f 6727 3a0a 2020 2020 656e 6162  yslog':.    enab
│ │ │ +00058430: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +00058440: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00058450: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +00058460: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00058510: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00058520: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00058530: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00058570: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00058580: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00058590: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +000585a0: 5b22 7273 7973 6c6f 6722 5d0a 3c2f 636f  ["rsyslog"].
< │ │ │ 000585c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000585d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000585e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000585f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00058600: 6435 3122 2074 6162 696e 6465 783d 2230 d51" tabindex="0 │ │ │ 00058610: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -31304,131 +31304,131 @@ │ │ │ 0007a470: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 0007a480: 2223 6964 3130 3622 2074 6162 696e 6465 "#id106" tabinde │ │ │ 0007a490: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 0007a4a0: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 0007a4b0: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 0007a4c0: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 0007a4d0: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -0007a4e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0007a4f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0007a500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007a510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007a540: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -0007a550: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -0007a560: 2263 726f 6e22 0a76 6572 7369 6f6e 203d  "cron".version =
│ │ │ -0007a570: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -0007a630: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0007a640: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0007a6d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0007a6f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0007a710: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0007a740: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007a750: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0007a760: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -0007a780: 6c6c 5f63 726f 6e0a 0a63 6c61 7373 2069  ll_cron..class i
│ │ │ -0007a790: 6e73 7461 6c6c 5f63 726f 6e20 7b0a 2020  nstall_cron {.  
│ │ │ -0007a7a0: 7061 636b 6167 6520 7b20 2763 726f 6e27  package { 'cron'
│ │ │ -0007a7b0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007a7c0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -0007a7d0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0007a890: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0007a8a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007a920: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0007a930: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0007a950: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0007a960: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0007a980: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0007a9a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0007a9d0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0007a9e0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0007a9f0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0007aa00: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0007aa10: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0007aa20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0007aa30: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0007aa40: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0007aa50: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -0007aa60: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -0007aa70: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0007aa80: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0007aa90: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0007aaa0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0007aab0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0007aac0: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ -0007aad0: 6f6e 5f69 6e73 7461 6c6c 6564 0a0a 2d20  on_installed..- 
│ │ │ -0007aae0: 6e61 6d65 3a20 456e 7375 7265 2063 726f  name: Ensure cro
│ │ │ -0007aaf0: 6e20 6973 2069 6e73 7461 6c6c 6564 0a20  n is installed. 
│ │ │ -0007ab00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0007ab10: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0007ab20: 6d65 3a20 6372 6f6e 0a20 2020 2073 7461  me: cron.    sta
│ │ │ -0007ab30: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -0007ab40: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0007ab50: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0007ab60: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0007ab70: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0007ab80: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0007ab90: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0007aba0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0007abb0: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ -0007abc0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0007abd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0007abe0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0007abf0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0007ac00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0007ac10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0007ac20: 655f 6372 6f6e 5f69 6e73 7461 6c6c 6564  e_cron_installed
│ │ │ +0007a4e0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0007a4f0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ +0007a590: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +0007a630: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0007a640: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0007a650: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0007a660: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0007a670: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +0007a680: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0007a690: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +0007a6a0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0007a6b0: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ +0007a6c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0007a6d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0007a6e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0007a6f0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0007a700: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0007a710: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007a720: 6163 6b61 6765 5f63 726f 6e5f 696e 7374  ackage_cron_inst
│ │ │ +0007a730: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +0007a740: 6e73 7572 6520 6372 6f6e 2069 7320 696e  nsure cron is in
│ │ │ +0007a750: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +0007a760: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007a770: 653a 0a20 2020 206e 616d 653a 2063 726f  e:.    name: cro
│ │ │ +0007a780: 6e0a 2020 2020 7374 6174 653a 2070 7265  n.    state: pre
│ │ │ +0007a790: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ +0007a7a0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0007a7b0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0007a7c0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +0007a7d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0007a7e0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0007a7f0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +0007a800: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +0007a810: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0007a820: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0007a830: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0007a840: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0007a850: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0007a860: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0007a870: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ +0007a880: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
Remedi │ │ │ +0007a940: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0007a950: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0007a960: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007a990: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +0007a580: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007a5b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007a5c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007a600: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0007a610: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0007aa00: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007aa20: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007aa50: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0007aa70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0007a9e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007a9f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007aa30: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007aa40: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0007aa90: 696e 7374 616c 6c5f 6372 6f6e 0a0a 636c install_cron..cl │ │ │ +0007aaa0: 6173 7320 696e 7374 616c 6c5f 6372 6f6e ass install_cron │ │ │ +0007aab0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +0007aac0: 6372 6f6e 273a 0a20 2020 2065 6e73 7572 cron':. ensur │ │ │ +0007aad0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +0007aae0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +0007aba0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0007abb0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0007abc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +0007ac10: 6573 5d5d 0a6e 616d 6520 3d20 2263 726f  es]].name = "cro
│ │ │ +0007ac20: 6e22 0a76 6572 7369 6f6e 203d 2022 2a22  n".version = "*"
│ │ │  0007ac30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -0007c170: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0007c180: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0007c210: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0007c230: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0007c240: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007c250: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0007c260: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0007c280: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007c2b0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0007c2c0: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ -0007c2d0: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ -0007c2e0: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ -0007c2f0: 656c 6e65 7464 207b 0a20 2070 6163 6b61  elnetd {.  packa
│ │ │ -0007c300: 6765 207b 2027 696e 6574 7574 696c 732d  ge { 'inetutils-
│ │ │ -0007c310: 7465 6c6e 6574 6427 3a0a 2020 2020 656e  telnetd':.    en
│ │ │ -0007c320: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0007c330: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0007c3f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0007c400: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007c490: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007c4a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007c4c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007c4e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007c4f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007c530: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007c540: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -0007c550: 6520 696e 6574 2d62 6173 6564 2074 656c  e inet-based tel
│ │ │ -0007c560: 6e65 7420 7365 7276 6572 3a20 456e 7375  net server: Ensu
│ │ │ -0007c570: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ -0007c580: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ -0007c590: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0007c5a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0007c5b0: 6e61 6d65 3a20 696e 6574 7574 696c 732d  name: inetutils-
│ │ │ -0007c5c0: 7465 6c6e 6574 640a 2020 2020 7374 6174  telnetd.    stat
│ │ │ -0007c5d0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0007c5e0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0007c5f0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0007c600: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0007c610: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0007c620: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0007c630: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0007c640: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0007c650: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0007c660: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0007c670: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0007c680: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0007c690: 7061 636b 6167 655f 696e 6574 7574 696c  package_inetutil
│ │ │ -0007c6a0: 732d 7465 6c6e 6574 645f 7265 6d6f 7665  s-telnetd_remove
│ │ │ -0007c6b0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007c170: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +0007c180: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0007c200: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0007c210: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0007c230: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0007c240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0007c260: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0007c280: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0007c2b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0007c2c0: 6e69 6e73 7461 6c6c 2074 6865 2069 6e65  ninstall the ine
│ │ │ +0007c2d0: 742d 6261 7365 6420 7465 6c6e 6574 2073  t-based telnet s
│ │ │ +0007c2e0: 6572 7665 723a 2045 6e73 7572 6520 696e  erver: Ensure in
│ │ │ +0007c2f0: 6574 7574 696c 732d 7465 6c6e 6574 6420  etutils-telnetd 
│ │ │ +0007c300: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +0007c310: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0007c320: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0007c330: 2069 6e65 7475 7469 6c73 2d74 656c 6e65   inetutils-telne
│ │ │ +0007c340: 7464 0a20 2020 2073 7461 7465 3a20 6162  td.    state: ab
│ │ │ +0007c350: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0007c360: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0007c370: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +0007c380: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +0007c390: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0007c3a0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +0007c3b0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +0007c3c0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +0007c3d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0007c3e0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0007c3f0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0007c400: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0007c410: 6765 5f69 6e65 7475 7469 6c73 2d74 656c  ge_inetutils-tel
│ │ │ +0007c420: 6e65 7464 5f72 656d 6f76 6564 0a3c 2f63  netd_removed.
│ │ │ +0007c440: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0007c4e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0007c4f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0007c500: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0007c580: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007c5b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007c5d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007c5e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007c600: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007c610: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0007c630: 6c75 6465 2072 656d 6f76 655f 696e 6574  lude remove_inet
│ │ │ +0007c640: 7574 696c 732d 7465 6c6e 6574 640a 0a63  utils-telnetd..c
│ │ │ +0007c650: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ +0007c660: 7574 696c 732d 7465 6c6e 6574 6420 7b0a  utils-telnetd {.
│ │ │ +0007c670: 2020 7061 636b 6167 6520 7b20 2769 6e65    package { 'ine
│ │ │ +0007c680: 7475 7469 6c73 2d74 656c 6e65 7464 273a  tutils-telnetd':
│ │ │ +0007c690: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0007c6a0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0007c6b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0007c6c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedi │ │ │ -0007d050: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0007d060: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007d070: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007d0a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0007d110: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007d130: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007d160: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0007d0f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007d100: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007d140: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007d150: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

Remediation │ │ │ -0007d2b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0007d2c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0007d350: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0007d370: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0007d380: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007d390: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0007d3a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0007d3c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0007d3f0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0007d400: 696e 7374 616c 6c20 7468 6520 6e69 7320  install the nis 
│ │ │ -0007d410: 7061 636b 6167 653a 2045 6e73 7572 6520  package: Ensure 
│ │ │ -0007d420: 6e69 7320 6973 2072 656d 6f76 6564 270a  nis is removed'.
│ │ │ -0007d430: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0007d440: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0007d450: 616d 653a 206e 6973 0a20 2020 2073 7461  ame: nis.    sta
│ │ │ -0007d460: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0007d470: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0007d480: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0007d490: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0007d4a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0007d4b0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -0007d4c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007d4d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007d4e0: 6e69 735f 7265 6d6f 7665 640a 3c2f 636f  nis_removed.
│ │ │ +0007d110: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007d130: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007d160: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007d0f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007d100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007d120: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007d140: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007d150: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0007d190: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0007d1a0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ +0007d1b0: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ +0007d1c0: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ +0007d1d0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ +0007d1e0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +0007d1f0: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ +0007d200: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0007d210: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ +0007d220: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +0007d230: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +0007d240: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +0007d250: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ +0007d260: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0007d270: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0007d280: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +0007d290: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Remediation Pup │ │ │ +0007d350: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0007d360: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0007d430: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007d440: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007d490: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0007d4a0: 6e69 730a 0a63 6c61 7373 2072 656d 6f76  nis..class remov
│ │ │ +0007d4b0: 655f 6e69 7320 7b0a 2020 7061 636b 6167  e_nis {.  packag
│ │ │ +0007d4c0: 6520 7b20 276e 6973 273a 0a20 2020 2065  e { 'nis':.    e
│ │ │ +0007d4d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0007d4e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0007d500: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007d510: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007d520: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007d530: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007d540: 6431 3137 2220 7461 6269 6e64 6578 3d22 d117" tabindex=" │ │ │ 0007d550: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -32225,90 +32225,90 @@ │ │ │ 0007de00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007de10: 6431 3139 2220 7461 6269 6e64 6578 3d22 d119" tabindex=" │ │ │ 0007de20: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 0007de30: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 0007de40: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 0007de50: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 0007de60: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007de70: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007de80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +0007d410: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007d420: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007d460: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007d470: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0007df10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007df20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007df40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007df60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007df70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007dfb0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0007dfc0: 7564 6520 7265 6d6f 7665 5f6e 7470 6461  ude remove_ntpda
│ │ │ -0007dfd0: 7465 0a0a 636c 6173 7320 7265 6d6f 7665  te..class remove
│ │ │ -0007dfe0: 5f6e 7470 6461 7465 207b 0a20 2070 6163  _ntpdate {.  pac
│ │ │ -0007dff0: 6b61 6765 207b 2027 6e74 7064 6174 6527  kage { 'ntpdate'
│ │ │ -0007e000: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007e010: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0007e020: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0007e030: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0007e0e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0007e0f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007e170: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007e190: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007e1e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007e210: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007e180: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007e1a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007e1f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007e200: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0007e230: 7374 616c 6c20 7468 6520 6e74 7064 6174  stall the ntpdat
│ │ │ -0007e240: 6520 7061 636b 6167 653a 2045 6e73 7572  e package: Ensur
│ │ │ -0007e250: 6520 6e74 7064 6174 6520 6973 2072 656d  e ntpdate is rem
│ │ │ -0007e260: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007e270: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007e280: 0a20 2020 206e 616d 653a 206e 7470 6461  .    name: ntpda
│ │ │ -0007e290: 7465 0a20 2020 2073 7461 7465 3a20 6162  te.    state: ab
│ │ │ -0007e2a0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -0007e2b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0007e2c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0007e2d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0007e2e0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0007e2f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0007e300: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0007e310: 2d20 7061 636b 6167 655f 6e74 7064 6174  - package_ntpdat
│ │ │ -0007e320: 655f 7265 6d6f 7665 640a 3c2f 636f 6465  e_removed.<
│ │ │ +0007de90: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0007df10: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007df40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007df60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007df70: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007df90: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007dfa0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007dfc0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +0007dfd0: 6865 206e 7470 6461 7465 2070 6163 6b61  he ntpdate packa
│ │ │ +0007dfe0: 6765 3a20 456e 7375 7265 206e 7470 6461  ge: Ensure ntpda
│ │ │ +0007dff0: 7465 2069 7320 7265 6d6f 7665 6427 0a20  te is removed'. 
│ │ │ +0007e000: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0007e010: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0007e020: 6d65 3a20 6e74 7064 6174 650a 2020 2020  me: ntpdate.    
│ │ │ +0007e030: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0007e040: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +0007e050: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0007e060: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0007e070: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0007e080: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ +0007e090: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0007e0a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0007e0b0: 6765 5f6e 7470 6461 7465 5f72 656d 6f76  ge_ntpdate_remov
│ │ │ +0007e0c0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007e0d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0007e180: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0007e190: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007e210: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007e230: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007e280: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007e2b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0007e2d0: 655f 6e74 7064 6174 650a 0a63 6c61 7373  e_ntpdate..class
│ │ │ +0007e2e0: 2072 656d 6f76 655f 6e74 7064 6174 6520   remove_ntpdate 
│ │ │ +0007e2f0: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +0007e300: 7470 6461 7465 273a 0a20 2020 2065 6e73  tpdate':.    ens
│ │ │ +0007e310: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0007e320: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation P │ │ │ -0007f400: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0007f410: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ +0007e240: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007e250: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007e290: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007e2a0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -0007f490: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007f4b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007f500: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0007f530: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0007f550: 655f 7465 6c6e 6574 642d 7373 6c0a 0a63  e_telnetd-ssl..c
│ │ │ -0007f560: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -0007f570: 6574 642d 7373 6c20 7b0a 2020 7061 636b  etd-ssl {.  pack
│ │ │ -0007f580: 6167 6520 7b20 2774 656c 6e65 7464 2d73  age { 'telnetd-s
│ │ │ -0007f590: 736c 273a 0a20 2020 2065 6e73 7572 6520  sl':.    ensure 
│ │ │ -0007f5a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0007f5b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0007f670: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0007f680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007f700: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0007f740: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ -0007f4c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007f4d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007f510: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0007f520: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ -0007f710: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0007f730: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0007f760: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0007f780: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0007f7b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0007f7c0: 6e69 6e73 7461 6c6c 2074 6865 2073 736c  ninstall the ssl
│ │ │ -0007f7d0: 2063 6f6d 706c 6961 6e74 2074 656c 6e65   compliant telne
│ │ │ -0007f7e0: 7420 7365 7276 6572 3a20 456e 7375 7265  t server: Ensure
│ │ │ -0007f7f0: 2074 656c 6e65 7464 2d73 736c 2069 7320   telnetd-ssl is 
│ │ │ -0007f800: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0007f810: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0007f820: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ -0007f830: 6c6e 6574 642d 7373 6c0a 2020 2020 7374  lnetd-ssl.    st
│ │ │ -0007f840: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0007f850: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0007f860: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0007f870: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0007f880: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0007f890: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0007f8a0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0007f8b0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -0007f8c0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -0007f8d0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0007f8e0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0007f8f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0007f900: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ -0007f910: 642d 7373 6c5f 7265 6d6f 7665 640a 3c2f  d-ssl_removed.Remediation A
│ │ │ +0007f400: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0007f410: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0007f490: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007f4b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007f500: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007f530: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007f4a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007f4c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007f510: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007f520: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0007f550: 7374 616c 6c20 7468 6520 7373 6c20 636f  stall the ssl co
│ │ │ +0007f560: 6d70 6c69 616e 7420 7465 6c6e 6574 2073  mpliant telnet s
│ │ │ +0007f570: 6572 7665 723a 2045 6e73 7572 6520 7465  erver: Ensure te
│ │ │ +0007f580: 6c6e 6574 642d 7373 6c20 6973 2072 656d  lnetd-ssl is rem
│ │ │ +0007f590: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0007f5a0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0007f5b0: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ +0007f5c0: 7464 2d73 736c 0a20 2020 2073 7461 7465  td-ssl.    state
│ │ │ +0007f5d0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0007f5e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007f5f0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0007f600: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0007f610: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007f620: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0007f630: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0007f640: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +0007f650: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0007f660: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0007f670: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0007f680: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007f690: 6163 6b61 6765 5f74 656c 6e65 7464 2d73  ackage_telnetd-s
│ │ │ +0007f6a0: 736c 5f72 656d 6f76 6564 0a3c 2f63 6f64  sl_removed.
Remed │ │ │ +0007f760: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0007f770: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0007f820: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0007f840: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0007f870: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0007f800: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0007f810: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0007f830: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0007f850: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0007f860: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0007f8a0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0007f8b0: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ +0007f8c0: 642d 7373 6c0a 0a63 6c61 7373 2072 656d d-ssl..class rem │ │ │ +0007f8d0: 6f76 655f 7465 6c6e 6574 642d 7373 6c20 ove_telnetd-ssl │ │ │ +0007f8e0: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ +0007f8f0: 656c 6e65 7464 2d73 736c 273a 0a20 2020 elnetd-ssl':. │ │ │ +0007f900: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +0007f910: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Remed │ │ │ -000809f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00080a00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00080ab0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00080ad0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00080b00: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00080a90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00080aa0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00080ac0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00080ae0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00080af0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00080b30: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00080b40: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ -00080b50: 640a 0a63 6c61 7373 2072 656d 6f76 655f d..class remove_ │ │ │ -00080b60: 7465 6c6e 6574 6420 7b0a 2020 7061 636b telnetd {. pack │ │ │ -00080b70: 6167 6520 7b20 2774 656c 6e65 7464 273a age { 'telnetd': │ │ │ -00080b80: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00080b90: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ -00080ba0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.
< │ │ │ -00080bb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00080c60: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00080c70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00080cf0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00080d10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00080d60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00080d90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00080db0: 7461 6c6c 2074 6865 2074 656c 6e65 7420  tall the telnet 
│ │ │ -00080dc0: 7365 7276 6572 3a20 456e 7375 7265 2074  server: Ensure t
│ │ │ -00080dd0: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ -00080de0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00080df0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00080e00: 2020 6e61 6d65 3a20 7465 6c6e 6574 640a    name: telnetd.
│ │ │ -00080e10: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00080e20: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -00080e30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00080e40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00080e50: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00080e60: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00080e70: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00080e80: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -00080e90: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -00080ea0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00080eb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00080ec0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00080ed0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00080ee0: 7465 6c6e 6574 645f 7265 6d6f 7665 640a  telnetd_removed.
│ │ │ +000809f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00080a00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -00080d20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00080d30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00080d70: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00080d80: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +00080a90: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00080aa0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00080ac0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00080ae0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00080af0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00080b30: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00080b40: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +00080b50: 6520 7465 6c6e 6574 2073 6572 7665 723a  e telnet server:
│ │ │ +00080b60: 2045 6e73 7572 6520 7465 6c6e 6574 6420   Ensure telnetd 
│ │ │ +00080b70: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +00080b80: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00080b90: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00080ba0: 2074 656c 6e65 7464 0a20 2020 2073 7461   telnetd.    sta
│ │ │ +00080bb0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00080bc0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00080bd0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00080be0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00080bf0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00080c00: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00080c10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00080c20: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00080c30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00080c40: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00080c50: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00080c60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00080c70: 2070 6163 6b61 6765 5f74 656c 6e65 7464   package_telnetd
│ │ │ +00080c80: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00080c90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00080d40: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00080d50: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00080d60: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00080d70: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00080d80: 7365 2220 6964 3d22 6964 3132 3822 3e3c se" id="id128">< │ │ │ +00080d90: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00080da0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00080db0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00080dc0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00080dd0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00080de0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00080df0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00080e30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00080e40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00080e60: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00080e70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00080e90: 2072 656d 6f76 655f 7465 6c6e 6574 640a remove_telnetd. │ │ │ +00080ea0: 0a63 6c61 7373 2072 656d 6f76 655f 7465 .class remove_te │ │ │ +00080eb0: 6c6e 6574 6420 7b0a 2020 7061 636b 6167 lnetd {. packag │ │ │ +00080ec0: 6520 7b20 2774 656c 6e65 7464 273a 0a20 e { 'telnetd':. │ │ │ +00080ed0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +00080ee0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 00080ef0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediat │ │ │ -00082e20: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00082e30: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00082e40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00082e90: 5d0a 6e61 6d65 203d 2022 6e74 7022 0a76  ].name = "ntp".v
│ │ │ -00082ea0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00082ec0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00082f60: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00082f70: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00082f80: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00083000: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00083030: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00083050: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00083060: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00083080: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000830a0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000830b0: 6465 2069 6e73 7461 6c6c 5f6e 7470 0a0a  de install_ntp..
│ │ │ -000830c0: 636c 6173 7320 696e 7374 616c 6c5f 6e74  class install_nt
│ │ │ -000830d0: 7020 7b0a 2020 7061 636b 6167 6520 7b20  p {.  package { 
│ │ │ -000830e0: 276e 7470 273a 0a20 2020 2065 6e73 7572  'ntp':.    ensur
│ │ │ -000830f0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00083100: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000831c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000831d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00083260: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00083270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00083290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000832b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000832c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00083300: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00083310: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00083320: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00083330: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00083340: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00083350: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -00083360: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -00083370: 2d20 5043 492d 4453 532d 5265 712d 3130 - PCI-DSS-Req-10 │ │ │ -00083380: 2e34 0a20 202d 2065 6e61 626c 655f 7374 .4. - enable_st │ │ │ -00083390: 7261 7465 6779 0a20 202d 2068 6967 685f rategy. - high_ │ │ │ -000833a0: 7365 7665 7269 7479 0a20 202d 206c 6f77 severity. - low │ │ │ -000833b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -000833c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -000833d0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -000833e0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -000833f0: 6e74 705f 696e 7374 616c 6c65 640a 0a2d ntp_installed..- │ │ │ -00083400: 206e 616d 653a 2045 6e73 7572 6520 6e74 name: Ensure nt │ │ │ -00083410: 7020 6973 2069 6e73 7461 6c6c 6564 0a20 p is installed. │ │ │ -00083420: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00083430: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -00083440: 6d65 3a20 6e74 700a 2020 2020 7374 6174 me: ntp. stat │ │ │ -00083450: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -00083460: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00083470: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00083480: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00083490: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -000834a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -000834b0: 5043 492d 4453 532d 5265 712d 3130 2e34 PCI-DSS-Req-10.4 │ │ │ -000834c0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ -000834d0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ -000834e0: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ -000834f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00083500: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00083510: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00083520: 640a 2020 2d20 7061 636b 6167 655f 6e74 d. - package_nt │ │ │ -00083530: 705f 696e 7374 616c 6c65 640a 3c2f 636f p_installed.
< │ │ │ +00082e40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00082e50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00082e60: 7365 2220 6964 3d22 6964 3133 3122 3e3c se" id="id131">< │ │ │ +00082e70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00082e80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00082e90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00082ea0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00082eb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00082ec0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00082ed0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00082f10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00082f20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00082f40: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00082f50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00082f70: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00082f80: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00082f90: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00082fa0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00082fb0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00082fc0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +00082fd0: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +00082fe0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00082ff0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00083000: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00083010: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00083020: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00083030: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00083040: 0a20 202d 2070 6163 6b61 6765 5f6e 7470  .  - package_ntp
│ │ │ +00083050: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +00083060: 6d65 3a20 456e 7375 7265 206e 7470 2069  me: Ensure ntp i
│ │ │ +00083070: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00083080: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00083090: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +000830a0: 206e 7470 0a20 2020 2073 7461 7465 3a20   ntp.    state: 
│ │ │ +000830b0: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +000830c0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +000830d0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000830e0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000830f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00083100: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00083110: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ +00083120: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00083130: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00083140: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00083150: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00083160: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00083170: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00083180: 202d 2070 6163 6b61 6765 5f6e 7470 5f69   - package_ntp_i
│ │ │ +00083190: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000831a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00083250: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00083260: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00083270: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00083280: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00083290: 7365 2220 6964 3d22 6964 3133 3222 3e3c se" id="id132">< │ │ │ +000832a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000832b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000832c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000832d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000832e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000832f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00083300: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00083340: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00083350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00083370: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00083380: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +000833a0: 6e73 7461 6c6c 5f6e 7470 0a0a 636c 6173  nstall_ntp..clas
│ │ │ +000833b0: 7320 696e 7374 616c 6c5f 6e74 7020 7b0a  s install_ntp {.
│ │ │ +000833c0: 2020 7061 636b 6167 6520 7b20 276e 7470    package { 'ntp
│ │ │ +000833d0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000833e0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000833f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000834b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000834c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000834d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ +00083520: 0a6e 616d 6520 3d20 226e 7470 220a 7665  .name = "ntp".ve
│ │ │ +00083530: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00083550: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00083560: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00083570: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00083580: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00083590: 6431 3334 2220 7461 6269 6e64 6578 3d22 d134" tabindex=" │ │ │ 000835a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -33896,159 +33896,159 @@ │ │ │ 00084670: 7461 7267 6574 3d22 2369 6431 3336 2220 target="#id136" │ │ │ 00084680: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 00084690: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 000846a0: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 000846b0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 000846c0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 000846d0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -000846e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000846f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00084700: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00084750: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00084760: 626c 6564 203d 205b 226e 7470 225d 0a3c  bled = ["ntp"].<
│ │ │ -00084770: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00084820: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00084830: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -000848d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000848e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00084930: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00084970: 6c75 6465 2065 6e61 626c 655f 6e74 700a  lude enable_ntp.
│ │ │ -00084980: 0a63 6c61 7373 2065 6e61 626c 655f 6e74  .class enable_nt
│ │ │ -00084990: 7020 7b0a 2020 7365 7276 6963 6520 7b27  p {.  service {'
│ │ │ -000849a0: 6e74 7027 3a0a 2020 2020 656e 6162 6c65  ntp':.    enable
│ │ │ -000849b0: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ -000849c0: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ -000849d0: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ -000849e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00084a90: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00084aa0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -000848c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000848f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00084900: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00084940: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00084950: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00084b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00084be0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00084bf0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00084c00: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00084c10: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00084c20: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00084c30: 5354 2d38 3030 2d35 332d 4155 2d38 2831  ST-800-53-AU-8(1
│ │ │ -00084c40: 2928 6129 0a20 202d 204e 4953 542d 3830  )(a).  - NIST-80
│ │ │ -00084c50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00084c60: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00084c70: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00084c80: 3130 2e36 0a20 202d 2050 4349 2d44 5353  10.6.  - PCI-DSS
│ │ │ -00084c90: 7634 2d31 302e 362e 310a 2020 2d20 656e  v4-10.6.1.  - en
│ │ │ -00084ca0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00084cb0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -00084cc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00084cd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00084ce0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00084cf0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00084d00: 6572 7669 6365 5f6e 7470 5f65 6e61 626c  ervice_ntp_enabl
│ │ │ -00084d10: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00084d20: 6c65 2074 6865 204e 5450 2044 6165 6d6f  le the NTP Daemo
│ │ │ -00084d30: 6e20 2d20 456e 6162 6c65 2073 6572 7669  n - Enable servi
│ │ │ -00084d40: 6365 206e 7470 0a20 2062 6c6f 636b 3a0a  ce ntp.  block:.
│ │ │ -00084d50: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ -00084d60: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00084d70: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ -00084d80: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ -00084d90: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ -00084da0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ -00084db0: 6e61 6d65 3a20 456e 6162 6c65 2074 6865  name: Enable the
│ │ │ -00084dc0: 204e 5450 2044 6165 6d6f 6e20 2d20 456e   NTP Daemon - En
│ │ │ -00084dd0: 6162 6c65 2053 6572 7669 6365 206e 7470  able Service ntp
│ │ │ -00084de0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00084df0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00084e00: 2020 2020 6e61 6d65 3a20 6e74 700a 2020      name: ntp.  
│ │ │ -00084e10: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ -00084e20: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00084e30: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ -00084e40: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ -00084e50: 6865 6e3a 0a20 2020 202d 2027 226e 7470  hen:.    - '"ntp
│ │ │ -00084e60: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00084e70: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00084e80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00084e90: 302d 3533 2d41 552d 3828 3129 2861 290a  0-53-AU-8(1)(a).
│ │ │ -00084ea0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00084eb0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -00084ec0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ -00084ed0: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ -00084ee0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00084ef0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ -00084f00: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -00084f10: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -00084f20: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00084f30: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00084f40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00084f50: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00084f60: 655f 6e74 705f 656e 6162 6c65 640a 2020  e_ntp_enabled.  
│ │ │ -00084f70: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00084f80: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a  e_block.  when:.
│ │ │ -00084f90: 2020 2d20 2722 6c69 6e75 782d 6261 7365    - '"linux-base
│ │ │ -00084fa0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00084fb0: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ -00084fc0: 2027 226e 7470 2220 696e 2061 6e73 6962   '"ntp" in ansib
│ │ │ -00084fd0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00084fe0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +000846e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +000846f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00084770: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000847b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ -00084b30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00084b60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00084b70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00084bb0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00084bc0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +00084780: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000847a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000847d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000847f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00084820: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00084830: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00084840: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00084850: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00084860: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00084870: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00084880: 2d41 552d 3828 3129 2861 290a 2020 2d20  -AU-8(1)(a).  - 
│ │ │ +00084890: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +000848a0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +000848b0: 5265 712d 3130 2e34 0a20 202d 2050 4349  Req-10.4.  - PCI
│ │ │ +000848c0: 2d44 5353 7634 2d31 302e 360a 2020 2d20  -DSSv4-10.6.  - 
│ │ │ +000848d0: 5043 492d 4453 5376 342d 3130 2e36 2e31  PCI-DSSv4-10.6.1
│ │ │ +000848e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000848f0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +00084900: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +00084910: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00084920: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00084930: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00084940: 640a 2020 2d20 7365 7276 6963 655f 6e74  d.  - service_nt
│ │ │ +00084950: 705f 656e 6162 6c65 640a 0a2d 206e 616d  p_enabled..- nam
│ │ │ +00084960: 653a 2045 6e61 626c 6520 7468 6520 4e54  e: Enable the NT
│ │ │ +00084970: 5020 4461 656d 6f6e 202d 2045 6e61 626c  P Daemon - Enabl
│ │ │ +00084980: 6520 7365 7276 6963 6520 6e74 700a 2020  e service ntp.  
│ │ │ +00084990: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +000849a0: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +000849b0: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +000849c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000849d0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +000849e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +000849f0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +00084a00: 626c 6520 7468 6520 4e54 5020 4461 656d  ble the NTP Daem
│ │ │ +00084a10: 6f6e 202d 2045 6e61 626c 6520 5365 7276  on - Enable Serv
│ │ │ +00084a20: 6963 6520 6e74 700a 2020 2020 616e 7369  ice ntp.    ansi
│ │ │ +00084a30: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00084a40: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00084a50: 206e 7470 0a20 2020 2020 2065 6e61 626c   ntp.      enabl
│ │ │ +00084a60: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00084a70: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00084a80: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00084a90: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00084aa0: 2d20 2722 6e74 7022 2069 6e20 616e 7369  - '"ntp" in ansi
│ │ │ +00084ab0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00084ac0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00084ad0: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ +00084ae0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ +00084af0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00084b00: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +00084b10: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ +00084b20: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ +00084b30: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ +00084b40: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00084b50: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00084b60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00084b70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00084b80: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00084b90: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00084ba0: 2073 6572 7669 6365 5f6e 7470 5f65 6e61   service_ntp_ena
│ │ │ +00084bb0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00084bc0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00084bd0: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ +00084be0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00084bf0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00084c00: 6573 270a 2020 2d20 2722 6e74 7022 2069  es'.  - '"ntp" i
│ │ │ +00084c10: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00084c20: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +00084ce0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00084cf0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00084d00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00084d30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00084da0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00084dc0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00084df0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00084e10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00084d80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00084d90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00084dd0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00084de0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00084e30: 656e 6162 6c65 5f6e 7470 0a0a 636c 6173 enable_ntp..clas │ │ │ +00084e40: 7320 656e 6162 6c65 5f6e 7470 207b 0a20 s enable_ntp {. │ │ │ +00084e50: 2073 6572 7669 6365 207b 276e 7470 273a service {'ntp': │ │ │ +00084e60: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +00084e70: 3b20 7472 7565 2c0a 2020 2020 656e 7375 ; true,. ensu │ │ │ +00084e80: 7265 203d 2667 743b 2027 7275 6e6e 696e re => 'runnin │ │ │ +00084e90: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 g',. }.}.
Remedi │ │ │ +00084f50: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00084f60: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00084f70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00084fb0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00084fc0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00084fd0: 0a65 6e61 626c 6564 203d 205b 226e 7470  .enabled = ["ntp
│ │ │ +00084fe0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00084ff0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
│ │ │ -000934e0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000934f0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00093500: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -00093550: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -00093560: 2022 6175 6469 7464 220a 7665 7273 696f   "auditd".versio
│ │ │ -00093570: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00093580: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00093630: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00093640: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000936c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000936d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000936e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00093720: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00093730: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00093750: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00093770: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00093780: 7374 616c 6c5f 6175 6469 7464 0a0a 636c  stall_auditd..cl
│ │ │ -00093790: 6173 7320 696e 7374 616c 6c5f 6175 6469  ass install_audi
│ │ │ -000937a0: 7464 207b 0a20 2070 6163 6b61 6765 207b  td {.  package {
│ │ │ -000937b0: 2027 6175 6469 7464 273a 0a20 2020 2065   'auditd':.    e
│ │ │ -000937c0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000937d0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000937e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00093890: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000938a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00093940: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000939e0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000939f0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00093a00: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00093a10: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00093a20: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00093a30: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ -00093a40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00093a50: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ -00093a60: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -00093a70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093a80: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ -00093a90: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ -00093aa0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093ab0: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ -00093ac0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00093ad0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -00093ae0: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ -00093af0: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ -00093b00: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ -00093b10: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00093b20: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00093b30: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00093b40: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00093b50: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00093b60: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00093b70: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -00093b80: 6974 5f69 6e73 7461 6c6c 6564 0a0a 2d20  it_installed..- 
│ │ │ -00093b90: 6e61 6d65 3a20 456e 7375 7265 2061 7564  name: Ensure aud
│ │ │ -00093ba0: 6974 6420 6973 2069 6e73 7461 6c6c 6564  itd is installed
│ │ │ -00093bb0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00093bc0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00093bd0: 6e61 6d65 3a20 6175 6469 7464 0a20 2020  name: auditd.   
│ │ │ -00093be0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00093bf0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00093c00: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00093c10: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00093c20: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00093c30: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ -00093c40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093c50: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ -00093c60: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ -00093c70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00093c80: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ -00093c90: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ -00093ca0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00093cb0: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ -00093cc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00093cd0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -00093ce0: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -00093cf0: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -00093d00: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -00093d10: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00093d20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00093d30: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00093d40: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00093d50: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00093d60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00093d70: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ -00093d80: 745f 696e 7374 616c 6c65 640a 3c2f 636f  t_installed.
│ │ │ -00093930: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00093960: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00093970: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000939b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000939c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000935d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000935e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00093630: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00093640: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00093650: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00093660: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00093670: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00093680: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ +00093690: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +000936a0: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ +000936b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +000936c0: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ +000936d0: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ +000936e0: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ +000936f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00093700: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ +00093710: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00093720: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +00093730: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ +00093740: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ +00093750: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ +00093760: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00093770: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00093780: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00093790: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000937a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000937b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000937c0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ +000937d0: 6469 745f 696e 7374 616c 6c65 640a 0a2d  dit_installed..-
│ │ │ +000937e0: 206e 616d 653a 2045 6e73 7572 6520 6175   name: Ensure au
│ │ │ +000937f0: 6469 7464 2069 7320 696e 7374 616c 6c65  ditd is installe
│ │ │ +00093800: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +00093810: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00093820: 206e 616d 653a 2061 7564 6974 640a 2020   name: auditd.  
│ │ │ +00093830: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +00093840: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00093850: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00093860: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00093870: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +00093880: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ +00093890: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +000938a0: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ +000938b0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ +000938c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000938d0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ +000938e0: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ +000938f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00093900: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ +00093910: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00093920: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +00093930: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +00093940: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +00093950: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +00093960: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00093970: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00093980: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00093990: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000939a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000939b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000939c0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ +000939d0: 6974 5f69 6e73 7461 6c6c 6564 0a3c 2f63  it_installed.
│ │ │ +000939f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00093a90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00093aa0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00093ab0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +000935b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000935c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00093600: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00093610: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00093b30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00093b60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00093b80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00093b90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00093bb0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00093bd0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00093be0: 6465 2069 6e73 7461 6c6c 5f61 7564 6974  de install_audit
│ │ │ +00093bf0: 640a 0a63 6c61 7373 2069 6e73 7461 6c6c  d..class install
│ │ │ +00093c00: 5f61 7564 6974 6420 7b0a 2020 7061 636b  _auditd {.  pack
│ │ │ +00093c10: 6167 6520 7b20 2761 7564 6974 6427 3a0a  age { 'auditd':.
│ │ │ +00093c20: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00093c30: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00093c40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00093d00: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00093d10: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00093d60: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +00093d70: 6d65 203d 2022 6175 6469 7464 220a 7665  me = "auditd".ve
│ │ │ +00093d80: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00093da0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00093db0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00093dc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00093dd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00093de0: 6431 3539 2220 7461 6269 6e64 6578 3d22 d159" tabindex=" │ │ │ 00093df0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -38294,192 +38294,192 @@ │ │ │ 00095950: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 00095960: 6964 3136 3122 2074 6162 696e 6465 783d id161" tabindex= │ │ │ 00095970: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ 00095980: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ 00095990: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ 000959a0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ 000959b0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -000959c0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000959d0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000959e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00095a30: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00095a40: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -00095a50: 6175 6469 7464 225d 0a3c 2f63 6f64 653e auditd"]. │ │ │ -00095a60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -00095b10: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00095b20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00095b30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00095b40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00095b50: 7365 2220 6964 3d22 6964 3136 3222 3e3c se" id="id162">< │ │ │ -00095b60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00095b70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00095b80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00095b90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00095ba0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00095bb0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00095bc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00095c00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00095c10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00095c30: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00095c40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -00095c60: 6e61 626c 655f 6175 6469 7464 0a0a 636c  nable_auditd..cl
│ │ │ -00095c70: 6173 7320 656e 6162 6c65 5f61 7564 6974  ass enable_audit
│ │ │ -00095c80: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -00095c90: 6175 6469 7464 273a 0a20 2020 2065 6e61  auditd':.    ena
│ │ │ -00095ca0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -00095cb0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00095cc0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -00095cd0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00095ce0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00095d90: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00095da0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00095e20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00095e40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00095e90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00095ee0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00095ef0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00095f00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00095f10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00095f20: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ -00095f30: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -00095f40: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ -00095f50: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ -00095f60: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -00095f70: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ -00095f80: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ -00095f90: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -00095fa0: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ -00095fb0: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ -00095fc0: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ -00095fd0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00095fe0: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ -00095ff0: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ -00096000: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ -00096010: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ -00096020: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00096030: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00096040: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ -00096050: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -00096060: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -00096070: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00096080: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -00096090: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000960a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000960b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000960c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000960d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000960e0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000960f0: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ -00096100: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ -00096110: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ -00096120: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ -00096130: 6963 6520 6175 6469 7464 0a20 2062 6c6f  ice auditd.  blo
│ │ │ -00096140: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -00096150: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00096160: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -00096170: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00096180: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -00096190: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -000961a0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -000961b0: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ -000961c0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -000961d0: 2061 7564 6974 640a 2020 2020 616e 7369   auditd.    ansi
│ │ │ -000961e0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -000961f0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00096200: 2061 7564 6974 640a 2020 2020 2020 656e   auditd.      en
│ │ │ -00096210: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ -00096220: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ -00096230: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ -00096240: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ -00096250: 2020 202d 2027 2261 7564 6974 6422 2069     - '"auditd" i
│ │ │ -00096260: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00096270: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00096280: 3a0a 2020 2d20 434a 4953 2d35 2e34 2e31  :.  - CJIS-5.4.1
│ │ │ -00096290: 2e31 0a20 202d 204e 4953 542d 3830 302d  .1.  - NIST-800-
│ │ │ -000962a0: 3137 312d 332e 332e 310a 2020 2d20 4e49  171-3.3.1.  - NI
│ │ │ -000962b0: 5354 2d38 3030 2d31 3731 2d33 2e33 2e32  ST-800-171-3.3.2
│ │ │ -000962c0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -000962d0: 312d 332e 332e 360a 2020 2d20 4e49 5354  1-3.3.6.  - NIST
│ │ │ -000962e0: 2d38 3030 2d35 332d 4143 2d32 2867 290a  -800-53-AC-2(g).
│ │ │ -000962f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00096300: 4143 2d36 2839 290a 2020 2d20 4e49 5354  AC-6(9).  - NIST
│ │ │ -00096310: 2d38 3030 2d35 332d 4155 2d31 300a 2020  -800-53-AU-10.  
│ │ │ -00096320: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00096330: 2d31 3228 6329 0a20 202d 204e 4953 542d  -12(c).  - NIST-
│ │ │ -00096340: 3830 302d 3533 2d41 552d 3134 2831 290a  800-53-AU-14(1).
│ │ │ -00096350: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00096360: 4155 2d32 2864 290a 2020 2d20 4e49 5354  AU-2(d).  - NIST
│ │ │ -00096370: 2d38 3030 2d35 332d 4155 2d33 0a20 202d  -800-53-AU-3.  -
│ │ │ -00096380: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00096390: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -000963a0: 302d 3533 2d53 492d 3428 3233 290a 2020  0-53-SI-4(23).  
│ │ │ -000963b0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -000963c0: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ -000963d0: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ -000963e0: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ -000963f0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00096400: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00096410: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00096420: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00096430: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00096440: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00096450: 2d20 7365 7276 6963 655f 6175 6469 7464  - service_auditd
│ │ │ -00096460: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -00096470: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00096480: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ -00096490: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000964a0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000964b0: 636b 6167 6573 270a 2020 2d20 2722 6175  ckages'.  - '"au
│ │ │ -000964c0: 6469 7464 2220 696e 2061 6e73 6962 6c65  ditd" in ansible
│ │ │ -000964d0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000959c0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000959d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000959e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -00095e50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00095e60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00095ea0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00095eb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +00095a80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00095ad0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00095a60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00095a90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00095ab0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00095ac0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00095ae0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00095af0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00095b10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00095b20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00095b30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00095b40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00095b50: 2020 7461 6773 3a0a 2020 2d20 434a 4953    tags:.  - CJIS
│ │ │ +00095b60: 2d35 2e34 2e31 2e31 0a20 202d 204e 4953  -5.4.1.1.  - NIS
│ │ │ +00095b70: 542d 3830 302d 3137 312d 332e 332e 310a  T-800-171-3.3.1.
│ │ │ +00095b80: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +00095b90: 2d33 2e33 2e32 0a20 202d 204e 4953 542d  -3.3.2.  - NIST-
│ │ │ +00095ba0: 3830 302d 3137 312d 332e 332e 360a 2020  800-171-3.3.6.  
│ │ │ +00095bb0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +00095bc0: 2d32 2867 290a 2020 2d20 4e49 5354 2d38  -2(g).  - NIST-8
│ │ │ +00095bd0: 3030 2d35 332d 4143 2d36 2839 290a 2020  00-53-AC-6(9).  
│ │ │ +00095be0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00095bf0: 2d31 300a 2020 2d20 4e49 5354 2d38 3030  -10.  - NIST-800
│ │ │ +00095c00: 2d35 332d 4155 2d31 3228 6329 0a20 202d  -53-AU-12(c).  -
│ │ │ +00095c10: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00095c20: 3134 2831 290a 2020 2d20 4e49 5354 2d38  14(1).  - NIST-8
│ │ │ +00095c30: 3030 2d35 332d 4155 2d32 2864 290a 2020  00-53-AU-2(d).  
│ │ │ +00095c40: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00095c50: 2d33 0a20 202d 204e 4953 542d 3830 302d  -3.  - NIST-800-
│ │ │ +00095c60: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00095c70: 4953 542d 3830 302d 3533 2d53 492d 3428  IST-800-53-SI-4(
│ │ │ +00095c80: 3233 290a 2020 2d20 5043 492d 4453 532d  23).  - PCI-DSS-
│ │ │ +00095c90: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ +00095ca0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ +00095cb0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ +00095cc0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00095cd0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00095ce0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00095cf0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00095d00: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00095d10: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00095d20: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00095d30: 6175 6469 7464 5f65 6e61 626c 6564 0a0a  auditd_enabled..
│ │ │ +00095d40: 2d20 6e61 6d65 3a20 456e 6162 6c65 2061  - name: Enable a
│ │ │ +00095d50: 7564 6974 6420 5365 7276 6963 6520 2d20  uditd Service - 
│ │ │ +00095d60: 456e 6162 6c65 2073 6572 7669 6365 2061  Enable service a
│ │ │ +00095d70: 7564 6974 640a 2020 626c 6f63 6b3a 0a0a  uditd.  block:..
│ │ │ +00095d80: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +00095d90: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00095da0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +00095db0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +00095dc0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +00095dd0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +00095de0: 616d 653a 2045 6e61 626c 6520 6175 6469  ame: Enable audi
│ │ │ +00095df0: 7464 2053 6572 7669 6365 202d 2045 6e61  td Service - Ena
│ │ │ +00095e00: 626c 6520 5365 7276 6963 6520 6175 6469  ble Service audi
│ │ │ +00095e10: 7464 0a20 2020 2061 6e73 6962 6c65 2e62  td.    ansible.b
│ │ │ +00095e20: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00095e30: 2020 2020 2020 6e61 6d65 3a20 6175 6469        name: audi
│ │ │ +00095e40: 7464 0a20 2020 2020 2065 6e61 626c 6564  td.      enabled
│ │ │ +00095e50: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +00095e60: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +00095e70: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +00095e80: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +00095e90: 2722 6175 6469 7464 2220 696e 2061 6e73  '"auditd" in ans
│ │ │ +00095ea0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00095eb0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00095ec0: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ +00095ed0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00095ee0: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ +00095ef0: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ +00095f00: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ +00095f10: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ +00095f20: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ +00095f30: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +00095f40: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ +00095f50: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ +00095f60: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ +00095f70: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00095f80: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ +00095f90: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ +00095fa0: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ +00095fb0: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ +00095fc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00095fd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00095fe0: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ +00095ff0: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +00096000: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +00096010: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +00096020: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +00096030: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00096040: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00096050: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00096060: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00096070: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00096080: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00096090: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ +000960a0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +000960b0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +000960c0: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +000960d0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +000960e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000960f0: 7327 0a20 202d 2027 2261 7564 6974 6422  s'.  - '"auditd"
│ │ │ +00096100: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00096110: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00096130: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00096140: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00096150: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00096160: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00096170: 6431 3632 2220 7461 6269 6e64 6578 3d22 d162" tabindex=" │ │ │ +00096180: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00096190: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000961a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000961b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000961c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000961d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000961e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00096270: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00096280: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000962a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000962c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000962d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00096310: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00096320: 6520 656e 6162 6c65 5f61 7564 6974 640a e enable_auditd. │ │ │ +00096330: 0a63 6c61 7373 2065 6e61 626c 655f 6175 .class enable_au │ │ │ +00096340: 6469 7464 207b 0a20 2073 6572 7669 6365 ditd {. service │ │ │ +00096350: 207b 2761 7564 6974 6427 3a0a 2020 2020 {'auditd':. │ │ │ +00096360: 656e 6162 6c65 203d 2667 743b 2074 7275 enable => tru │ │ │ +00096370: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +00096380: 6774 3b20 2772 756e 6e69 6e67 272c 0a20 gt; 'running',. │ │ │ +00096390: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ +00096450: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00096460: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +000964c0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +000964d0: 6c65 6420 3d20 5b22 6175 6469 7464 225d  led = ["auditd"]
│ │ │  000964e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
'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: │ │ │ │ @@ -2096,14 +2079,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -2133,31 +2133,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2194,14 +2177,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2233,31 +2233,14 @@ │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _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: │ │ │ │ @@ -2280,14 +2263,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/ │ │ │ │ @@ -2319,31 +2319,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ _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] │ │ │ │ -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: │ │ │ │ @@ -2380,14 +2363,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/ │ │ │ │ @@ -4667,31 +4667,14 @@ │ │ │ │ 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 │ │ │ │ _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: │ │ │ │ @@ -4718,14 +4701,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/ │ │ │ │ @@ -4764,27 +4764,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' │ │ │ │ @@ -4797,14 +4784,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 │ │ │ │ @@ -4819,27 +4819,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -4848,14 +4835,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 │ │ │ │ @@ -4871,27 +4871,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: │ │ │ │ @@ -4900,14 +4887,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 │ │ │ │ @@ -4940,27 +4940,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' │ │ │ │ @@ -4973,14 +4960,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 │ │ │ │ @@ -5014,27 +5014,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -5046,14 +5033,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 │ │ │ │ @@ -5129,31 +5129,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5178,14 +5161,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ │ │ @@ -5219,31 +5219,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5288,14 +5271,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" 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_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + 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 = ["ntp"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -6197,31 +6197,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -6262,14 +6245,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/ │ │ │ │ @@ -6340,31 +6340,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -6431,14 +6414,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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_minimal.html │ │ │ @@ -15715,128 +15715,128 @@ │ │ │ 0003d620: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 0003d630: 3133 2220 7461 6269 6e64 6578 3d22 3022 13" tabindex="0" │ │ │ 0003d640: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 0003d650: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 0003d660: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 0003d670: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 0003d680: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -0003d690: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0003d6a0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0003d6b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -0003d6f0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0003d700: 5d5d 0a6e 616d 6520 3d20 2273 7973 6c6f  ]].name = "syslo
│ │ │ -0003d710: 672d 6e67 220a 7665 7273 696f 6e20 3d20  g-ng".version = 
│ │ │ -0003d720: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation P │ │ │ -0003d7e0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0003d7f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -0003d8c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003d8d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003d920: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -0003d930: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ -0003d940: 2069 6e73 7461 6c6c 5f73 7973 6c6f 672d   install_syslog-
│ │ │ -0003d950: 6e67 207b 0a20 2070 6163 6b61 6765 207b  ng {.  package {
│ │ │ -0003d960: 2027 7379 736c 6f67 2d6e 6727 3a0a 2020   'syslog-ng':.  
│ │ │ -0003d970: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0003d980: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -0003d990: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0003d9a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -0003da50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0003da60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -0003d8a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003d8b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003d8f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003d900: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0003db30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0003db40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0003db90: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0003dba0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0003dbb0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0003dbc0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0003dbd0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -0003dbe0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0003dbf0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -0003dc00: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0003dc10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0003dc20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0003dc30: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0003dc40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0003dc50: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0003dc60: 655f 7379 736c 6f67 6e67 5f69 6e73 7461  e_syslogng_insta
│ │ │ -0003dc70: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -0003dc80: 7375 7265 2073 7973 6c6f 672d 6e67 2069  sure syslog-ng i
│ │ │ -0003dc90: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -0003dca0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0003dcb0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0003dcc0: 2073 7973 6c6f 672d 6e67 0a20 2020 2073   syslog-ng.    s
│ │ │ -0003dcd0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -0003dce0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0003dcf0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0003dd00: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -0003dd10: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0003dd20: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0003dd30: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -0003dd40: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0003dd50: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0003dd60: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0003dd70: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0003dd80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0003dd90: 640a 2020 2d20 7061 636b 6167 655f 7379  d.  - package_sy
│ │ │ -0003dda0: 736c 6f67 6e67 5f69 6e73 7461 6c6c 6564  slogng_installed
│ │ │ +0003d690: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +0003d6a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ +0003d6e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -0003db10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0003db20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0003db60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0003db70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0003d750: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0003d770: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0003d7a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0003d7c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0003d730: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0003d740: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0003d780: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0003d790: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0003d7e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0003d7f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0003d800: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0003d810: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0003d820: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +0003d830: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +0003d840: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +0003d850: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +0003d860: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +0003d870: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +0003d880: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0003d890: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0003d8a0: 202d 2070 6163 6b61 6765 5f73 7973 6c6f - package_syslo │ │ │ +0003d8b0: 676e 675f 696e 7374 616c 6c65 640a 0a2d gng_installed..- │ │ │ +0003d8c0: 206e 616d 653a 2045 6e73 7572 6520 7379 name: Ensure sy │ │ │ +0003d8d0: 736c 6f67 2d6e 6720 6973 2069 6e73 7461 slog-ng is insta │ │ │ +0003d8e0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62 lled. ansible.b │ │ │ +0003d8f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +0003d900: 2020 2020 6e61 6d65 3a20 7379 736c 6f67 name: syslog │ │ │ +0003d910: 2d6e 670a 2020 2020 7374 6174 653a 2070 -ng. state: p │ │ │ +0003d920: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +0003d930: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +0003d940: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +0003d950: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ +0003d960: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0003d970: 434d 2d36 2861 290a 2020 2d20 656e 6162 CM-6(a). - enab │ │ │ +0003d980: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0003d990: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0003d9a0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0003d9b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +0003d9c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0003d9d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0003d9e0: 6163 6b61 6765 5f73 7973 6c6f 676e 675f ackage_syslogng_ │ │ │ +0003d9f0: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
Remedia │ │ │ +0003dab0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0003dac0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003dad0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003dae0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003daf0: 7365 2220 6964 3d22 6964 3134 223e 3c74 se" id="id14"> │ │ │ +0003db40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0003db50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0003db60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0003dba0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0003dbb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0003dbd0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0003dbf0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +0003dc00: 7374 616c 6c5f 7379 736c 6f67 2d6e 670a  stall_syslog-ng.
│ │ │ +0003dc10: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ +0003dc20: 7973 6c6f 672d 6e67 207b 0a20 2070 6163  yslog-ng {.  pac
│ │ │ +0003dc30: 6b61 6765 207b 2027 7379 736c 6f67 2d6e  kage { 'syslog-n
│ │ │ +0003dc40: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ +0003dc50: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0003dc60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0003dc70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +0003dd20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0003dd30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0003dd40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ +0003dd90: 6e61 6d65 203d 2022 7379 736c 6f67 2d6e  name = "syslog-n
│ │ │ +0003dda0: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │  0003ddb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -0003ee60: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0003ee70: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0003ee80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ -0003eed0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0003eee0: 6c65 6420 3d20 5b22 7379 736c 6f67 2d6e  led = ["syslog-n
│ │ │ -0003eef0: 6722 5d0a 3c2f 636f 6465 3e3c 2f70 7265  g"].
Remediation P │ │ │ -0003efb0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0003efc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -0003f090: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003f0a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003f0f0: 696e 636c 7564 6520 656e 6162 6c65 5f73  include enable_s
│ │ │ -0003f100: 7973 6c6f 672d 6e67 0a0a 636c 6173 7320  yslog-ng..class 
│ │ │ -0003f110: 656e 6162 6c65 5f73 7973 6c6f 672d 6e67  enable_syslog-ng
│ │ │ -0003f120: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ -0003f130: 7973 6c6f 672d 6e67 273a 0a20 2020 2065  yslog-ng':.    e
│ │ │ -0003f140: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -0003f150: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -0003f160: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -0003f170: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -0003f230: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0003f240: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ -0003f070: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003f080: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003f0c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003f0d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0003f2c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0003f2e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0003f330: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -0003f380: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0003f390: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0003f3a0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0003f3b0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0003f3c0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -0003f3d0: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ -0003f3e0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0003f3f0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0003f400: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0003f410: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0003f420: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0003f430: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0003f440: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0003f450: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ -0003f460: 6f67 6e67 5f65 6e61 626c 6564 0a0a 2d20  ogng_enabled..- 
│ │ │ -0003f470: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ -0003f480: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ -0003f490: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ -0003f4a0: 7379 736c 6f67 2d6e 670a 2020 626c 6f63  syslog-ng.  bloc
│ │ │ -0003f4b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -0003f4c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0003f4d0: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -0003f4e0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0003f4f0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -0003f500: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -0003f510: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -0003f520: 7379 736c 6f67 2d6e 6720 5365 7276 6963  syslog-ng Servic
│ │ │ -0003f530: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -0003f540: 6365 2073 7973 6c6f 672d 6e67 0a20 2020  ce syslog-ng.   
│ │ │ -0003f550: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0003f560: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -0003f570: 6e61 6d65 3a20 7379 736c 6f67 2d6e 670a  name: syslog-ng.
│ │ │ -0003f580: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -0003f590: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -0003f5a0: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -0003f5b0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -0003f5c0: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ -0003f5d0: 7973 6c6f 672d 6e67 2220 696e 2061 6e73  yslog-ng" in ans
│ │ │ -0003f5e0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0003f5f0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0003f600: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -0003f610: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ -0003f620: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0003f630: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0003f640: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0003f650: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0003f660: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0003f670: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0003f680: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0003f690: 2020 2d20 7365 7276 6963 655f 7379 736c    - service_sysl
│ │ │ -0003f6a0: 6f67 6e67 5f65 6e61 626c 6564 0a20 202d  ogng_enabled.  -
│ │ │ -0003f6b0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0003f6c0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -0003f6d0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0003f6e0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0003f6f0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0003ee60: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +0003ee70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0003ef30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0003ef40: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0003f2f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0003f300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0003f340: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0003f350: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +0003ef00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0003ef20: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0003ef50: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0003ef70: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0003efb0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0003efc0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0003efd0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0003efe0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0003eff0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0003f000: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +0003f010: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0003f020: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0003f030: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0003f040: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0003f050: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0003f060: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0003f070: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0003f080: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +0003f090: 7973 6c6f 676e 675f 656e 6162 6c65 640a  yslogng_enabled.
│ │ │ +0003f0a0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +0003f0b0: 7379 736c 6f67 2d6e 6720 5365 7276 6963  syslog-ng Servic
│ │ │ +0003f0c0: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ +0003f0d0: 6365 2073 7973 6c6f 672d 6e67 0a20 2062  ce syslog-ng.  b
│ │ │ +0003f0e0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0003f0f0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +0003f100: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +0003f110: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0003f120: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0003f130: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0003f140: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ +0003f150: 6c65 2073 7973 6c6f 672d 6e67 2053 6572  le syslog-ng Ser
│ │ │ +0003f160: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ +0003f170: 7276 6963 6520 7379 736c 6f67 2d6e 670a  rvice syslog-ng.
│ │ │ +0003f180: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0003f190: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0003f1a0: 2020 206e 616d 653a 2073 7973 6c6f 672d     name: syslog-
│ │ │ +0003f1b0: 6e67 0a20 2020 2020 2065 6e61 626c 6564  ng.      enabled
│ │ │ +0003f1c0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +0003f1d0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +0003f1e0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +0003f1f0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +0003f200: 2722 7379 736c 6f67 2d6e 6722 2069 6e20  '"syslog-ng" in 
│ │ │ +0003f210: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0003f220: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +0003f230: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0003f240: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +0003f250: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0003f260: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0003f270: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0003f280: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0003f290: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0003f2a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0003f2b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0003f2c0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +0003f2d0: 7973 6c6f 676e 675f 656e 6162 6c65 640a  yslogng_enabled.
│ │ │ +0003f2e0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0003f2f0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0003f300: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0003f310: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0003f320: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remedi │ │ │ +0003f3e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0003f3f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0003f400: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0003f430: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0003f440: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0003f450: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0003f460: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0003f470: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0003f480: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0003f490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0003f4d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0003f4e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0003f500: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0003f510: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ +0003f530: 6e61 626c 655f 7379 736c 6f67 2d6e 670a  nable_syslog-ng.
│ │ │ +0003f540: 0a63 6c61 7373 2065 6e61 626c 655f 7379  .class enable_sy
│ │ │ +0003f550: 736c 6f67 2d6e 6720 7b0a 2020 7365 7276  slog-ng {.  serv
│ │ │ +0003f560: 6963 6520 7b27 7379 736c 6f67 2d6e 6727  ice {'syslog-ng'
│ │ │ +0003f570: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +0003f580: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +0003f590: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +0003f5a0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remedi │ │ │ +0003f660: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0003f670: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0003f680: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +0003f6c0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0003f6d0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0003f6e0: 656e 6162 6c65 6420 3d20 5b22 7379 736c  enabled = ["sysl
│ │ │ +0003f6f0: 6f67 2d6e 6722 5d0a 3c2f 636f 6465 3e3c  og-ng"].<
│ │ │  0003f700: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation O │ │ │ -00040840: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00040850: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00040860: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -000408a0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000408b0: 203d 2022 7273 7973 6c6f 6722 0a76 6572   = "rsyslog".ver
│ │ │ -000408c0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedi │ │ │ -00040980: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00040990: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000409a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000409d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000409e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000409f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00040a00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00040a10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00040a20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00040a30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00040a70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00040a80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00040aa0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00040ab0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -00040ad0: 6e73 7461 6c6c 5f72 7379 736c 6f67 0a0a  nstall_rsyslog..
│ │ │ -00040ae0: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ -00040af0: 7973 6c6f 6720 7b0a 2020 7061 636b 6167  yslog {.  packag
│ │ │ -00040b00: 6520 7b20 2772 7379 736c 6f67 273a 0a20  e { 'rsyslog':. 
│ │ │ -00040b10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00040b20: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -00040b30: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00040b40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation An │ │ │ -00040bf0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00040c00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -00040cd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00040ce0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00040d30: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00040d40: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00040d50: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00040d60: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00040d70: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00040d80: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00040d90: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -00040da0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00040db0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00040dc0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00040dd0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00040de0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00040df0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00040e00: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ -00040e10: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -00040e20: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ -00040e30: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00040e40: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00040e50: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -00040e60: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ -00040e70: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00040e80: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00040e90: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00040ea0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00040eb0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00040ec0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00040ed0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00040ee0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00040ef0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00040f00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00040f10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00040f20: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00040f30: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -00040f40: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.Remediation A
│ │ │ +00040840: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00040850: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -00040cb0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00040cc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00040d00: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00040d10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000408d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000408f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00040940: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00040990: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000409a0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000409b0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000409c0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000409d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +000409e0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ +000409f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00040a00: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00040a10: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00040a20: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00040a30: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00040a40: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00040a50: 6167 655f 7273 7973 6c6f 675f 696e 7374  age_rsyslog_inst
│ │ │ +00040a60: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +00040a70: 6e73 7572 6520 7273 7973 6c6f 6720 6973  nsure rsyslog is
│ │ │ +00040a80: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00040a90: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00040aa0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00040ab0: 7273 7973 6c6f 670a 2020 2020 7374 6174  rsyslog.    stat
│ │ │ +00040ac0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +00040ad0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00040ae0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00040af0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00040b00: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00040b10: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00040b20: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00040b30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00040b40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00040b50: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00040b60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00040b70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00040b80: 202d 2070 6163 6b61 6765 5f72 7379 736c   - package_rsysl
│ │ │ +00040b90: 6f67 5f69 6e73 7461 6c6c 6564 0a3c 2f63  og_installed.
│ │ │ +00040bb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00040c50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00040c60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00040900: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00040910: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00040950: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00040960: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00040d10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00040d30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00040d60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00040cf0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00040d00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00040d20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00040d40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00040d50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00040da0: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ +00040db0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +00040dc0: 7273 7973 6c6f 6720 7b0a 2020 7061 636b rsyslog {. pack │ │ │ +00040dd0: 6167 6520 7b20 2772 7379 736c 6f67 273a age { 'rsyslog': │ │ │ +00040de0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +00040df0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20 ; 'installed',. │ │ │ +00040e00: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ +00040ec0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00040ed0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ +00040f20: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +00040f30: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ +00040f40: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00040f60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00040f70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00040f80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00040f90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00040fa0: 6432 3622 2074 6162 696e 6465 783d 2230 d26" tabindex="0 │ │ │ 00040fb0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -16912,150 +16912,150 @@ │ │ │ 000420f0: 6172 6765 743d 2223 6964 3238 2220 7461 arget="#id28" ta │ │ │ 00042100: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 00042110: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 00042120: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 00042130: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 00042140: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 00042150: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -00042160: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00042170: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -000421c0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -000421d0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -000421e0: 6420 3d20 5b22 7273 7973 6c6f 6722 5d0a  d = ["rsyslog"].
│ │ │ -000421f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -000422a0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000422b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -00042360: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000423b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00042340: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00042370: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00042390: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000423a0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000423c0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000423d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000423f0: 7564 6520 656e 6162 6c65 5f72 7379 736c  ude enable_rsysl
│ │ │ -00042400: 6f67 0a0a 636c 6173 7320 656e 6162 6c65  og..class enable
│ │ │ -00042410: 5f72 7379 736c 6f67 207b 0a20 2073 6572  _rsyslog {.  ser
│ │ │ -00042420: 7669 6365 207b 2772 7379 736c 6f67 273a  vice {'rsyslog':
│ │ │ -00042430: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00042440: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00042450: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00042460: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ -00042520: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00042530: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00042540: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00042570: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00042580: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00042590: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000425a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000425b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000425c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000425d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00042610: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00042620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00042640: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00042650: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00042670: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00042680: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00042690: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000426a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000426b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000426c0: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -000426d0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -000426e0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -000426f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00042700: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00042710: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00042720: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00042730: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00042740: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00042750: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ -00042760: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ -00042770: 6520 7273 7973 6c6f 6720 5365 7276 6963  e rsyslog Servic
│ │ │ -00042780: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -00042790: 6365 2072 7379 736c 6f67 0a20 2062 6c6f  ce rsyslog.  blo
│ │ │ -000427a0: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -000427b0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000427c0: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -000427d0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000427e0: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -000427f0: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -00042800: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -00042810: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -00042820: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00042830: 6520 7273 7973 6c6f 670a 2020 2020 616e  e rsyslog.    an
│ │ │ -00042840: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00042850: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00042860: 653a 2072 7379 736c 6f67 0a20 2020 2020  e: rsyslog.     
│ │ │ -00042870: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ -00042880: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ -00042890: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ -000428a0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ -000428b0: 3a0a 2020 2020 2d20 2722 7273 7973 6c6f  :.    - '"rsyslo
│ │ │ -000428c0: 6722 2069 6e20 616e 7369 626c 655f 6661  g" in ansible_fa
│ │ │ -000428d0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000428e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -000428f0: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ -00042900: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00042910: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -00042920: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00042930: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00042940: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00042950: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00042960: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00042970: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00042980: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ -00042990: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -000429a0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -000429b0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -000429c0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -000429d0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00042160: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +00042170: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
│ │ │ +000421f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00042210: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00042260: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00042290: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +000422b0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +000422c0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +000422d0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +000422e0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +000422f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00042300: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ +00042310: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00042320: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00042330: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00042340: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00042350: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00042360: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00042370: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00042380: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ +00042390: 736c 6f67 5f65 6e61 626c 6564 0a0a 2d20  slog_enabled..- 
│ │ │ +000423a0: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ +000423b0: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ +000423c0: 6e61 626c 6520 7365 7276 6963 6520 7273  nable service rs
│ │ │ +000423d0: 7973 6c6f 670a 2020 626c 6f63 6b3a 0a0a  yslog.  block:..
│ │ │ +000423e0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +000423f0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00042400: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +00042410: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +00042420: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +00042430: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +00042440: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ +00042450: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ +00042460: 6162 6c65 2053 6572 7669 6365 2072 7379  able Service rsy
│ │ │ +00042470: 736c 6f67 0a20 2020 2061 6e73 6962 6c65  slog.    ansible
│ │ │ +00042480: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +00042490: 3a0a 2020 2020 2020 6e61 6d65 3a20 7273  :.      name: rs
│ │ │ +000424a0: 7973 6c6f 670a 2020 2020 2020 656e 6162  yslog.      enab
│ │ │ +000424b0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +000424c0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +000424d0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +000424e0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +000424f0: 202d 2027 2272 7379 736c 6f67 2220 696e   - '"rsyslog" in
│ │ │ +00042500: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00042510: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00042520: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00042530: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ +00042540: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00042550: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00042560: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00042570: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00042580: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00042590: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000425a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000425b0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000425c0: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ +000425d0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +000425e0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +000425f0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00042600: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00042610: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remedi │ │ │ +000426d0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +000426e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +000426f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00042720: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00042730: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00042740: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00042750: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00042760: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000427f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00042800: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:< │ │ │ +00042200: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00042220: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00042270: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00042280: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complex │ │ │ +00042770: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00042780: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000427c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000427d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include e
│ │ │ +00042820: 6e61 626c 655f 7273 7973 6c6f 670a 0a63  nable_rsyslog..c
│ │ │ +00042830: 6c61 7373 2065 6e61 626c 655f 7273 7973  lass enable_rsys
│ │ │ +00042840: 6c6f 6720 7b0a 2020 7365 7276 6963 6520  log {.  service 
│ │ │ +00042850: 7b27 7273 7973 6c6f 6727 3a0a 2020 2020  {'rsyslog':.    
│ │ │ +00042860: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ +00042870: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +00042880: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ +00042890: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00042950: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00042960: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ +000429b0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +000429c0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +000429d0: 6420 3d20 5b22 7273 7973 6c6f 6722 5d0a  d = ["rsyslog"].
│ │ │  000429e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00058600: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00058610: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -000586c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00058710: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00058750: 636c 7564 6520 7265 6d6f 7665 5f69 6e65  clude remove_ine
│ │ │ -00058760: 7475 7469 6c73 2d74 656c 6e65 7464 0a0a  tutils-telnetd..
│ │ │ -00058770: 636c 6173 7320 7265 6d6f 7665 5f69 6e65  class remove_ine
│ │ │ -00058780: 7475 7469 6c73 2d74 656c 6e65 7464 207b  tutils-telnetd {
│ │ │ -00058790: 0a20 2070 6163 6b61 6765 207b 2027 696e  .  package { 'in
│ │ │ -000587a0: 6574 7574 696c 732d 7465 6c6e 6574 6427  etutils-telnetd'
│ │ │ -000587b0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000587c0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -000587d0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -000587e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -00058890: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000588a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -000586a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000586d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000586f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00058700: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00058720: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00058730: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00058970: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00058980: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -000589e0: 616c 6c20 7468 6520 696e 6574 2d62 6173  all the inet-bas
│ │ │ -000589f0: 6564 2074 656c 6e65 7420 7365 7276 6572  ed telnet server
│ │ │ -00058a00: 3a20 456e 7375 7265 2069 6e65 7475 7469  : Ensure inetuti
│ │ │ -00058a10: 6c73 2d74 656c 6e65 7464 2069 7320 7265  ls-telnetd is re
│ │ │ -00058a20: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00058a30: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00058a40: 3a0a 2020 2020 6e61 6d65 3a20 696e 6574  :.    name: inet
│ │ │ -00058a50: 7574 696c 732d 7465 6c6e 6574 640a 2020  utils-telnetd.  
│ │ │ -00058a60: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -00058a70: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00058a80: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00058a90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00058aa0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00058ab0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00058ac0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00058ad0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -00058ae0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -00058af0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00058b00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00058b10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00058b20: 640a 2020 2d20 7061 636b 6167 655f 696e  d.  - package_in
│ │ │ -00058b30: 6574 7574 696c 732d 7465 6c6e 6574 645f  etutils-telnetd_
│ │ │ -00058b40: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00058600: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00058610: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
low
Disru │ │ │ -00058950: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00058960: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000589a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -000589b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +000586b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000586c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00058710: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00058750: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00058760: 2074 6865 2069 6e65 742d 6261 7365 6420   the inet-based 
│ │ │ +00058770: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ +00058780: 6e73 7572 6520 696e 6574 7574 696c 732d  nsure inetutils-
│ │ │ +00058790: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ +000587a0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +000587b0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +000587c0: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ +000587d0: 6c73 2d74 656c 6e65 7464 0a20 2020 2073  ls-telnetd.    s
│ │ │ +000587e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +000587f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00058800: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00058810: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00058820: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +00058830: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +00058840: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00058850: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00058860: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00058870: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00058880: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00058890: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000588a0: 202d 2070 6163 6b61 6765 5f69 6e65 7475   - package_inetu
│ │ │ +000588b0: 7469 6c73 2d74 656c 6e65 7464 5f72 656d  tils-telnetd_rem
│ │ │ +000588c0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation 
│ │ │ +00058980: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +00058990: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ +000586a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000586d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000586e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00058720: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00058730: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00058a10: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00058a30: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00058a80: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00058ab0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00058ad0: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ +00058ae0: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ +00058af0: 655f 696e 6574 7574 696c 732d 7465 6c6e  e_inetutils-teln
│ │ │ +00058b00: 6574 6420 7b0a 2020 7061 636b 6167 6520  etd {.  package 
│ │ │ +00058b10: 7b20 2769 6e65 7475 7469 6c73 2d74 656c  { 'inetutils-tel
│ │ │ +00058b20: 6e65 7464 273a 0a20 2020 2065 6e73 7572  netd':.    ensur
│ │ │ +00058b30: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00058b40: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00058b50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Reme
│ │ │ -000594e0: 6469 6174 696f 6e20 5075 7070 6574 2073  diation Puppet s
│ │ │ -000594f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ +00058a40: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00058a50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00058a90: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00058aa0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -000595a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000595c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000595f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00059580: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00059590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000595b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000595d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000595e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00059620: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00059630: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ -00059640: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ -00059650: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -00059660: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ -00059670: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -00059680: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -00059740: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00059750: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ -000597e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00059800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00059820: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00059850: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00059860: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00059890: 6e73 7461 6c6c 2074 6865 206e 6973 2070  nstall the nis p
│ │ │ -000598a0: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -000598b0: 6973 2069 7320 7265 6d6f 7665 6427 0a20  is is removed'. 
│ │ │ -000598c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000598d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000598e0: 6d65 3a20 6e69 730a 2020 2020 7374 6174  me: nis.    stat
│ │ │ -000598f0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00059900: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00059910: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00059920: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00059930: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00059940: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00059950: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00059960: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -00059970: 6973 5f72 656d 6f76 6564 0a3c 2f63 6f64  is_removed.<
│ │ │ +00059500: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +00059580: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00059590: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000595b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000595d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000595e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00059620: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00059630: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +00059640: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ +00059650: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ +00059660: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00059670: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00059680: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ +00059690: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +000596a0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +000596b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000596c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000596d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000596e0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +000596f0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00059700: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00059710: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ +00059720: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00059730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +000597e0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +000597f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00059880: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00059920: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +00059930: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ +00059940: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ +00059950: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ +00059960: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00059970: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -0005aa40: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0005aa50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00059870: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000598a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000598b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000598f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00059900: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0005aad0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0005aaf0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0005ab40: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0005ab70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0005ab90: 655f 7465 6c6e 6574 642d 7373 6c0a 0a63  e_telnetd-ssl..c
│ │ │ -0005aba0: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -0005abb0: 6574 642d 7373 6c20 7b0a 2020 7061 636b  etd-ssl {.  pack
│ │ │ -0005abc0: 6167 6520 7b20 2774 656c 6e65 7464 2d73  age { 'telnetd-s
│ │ │ -0005abd0: 736c 273a 0a20 2020 2065 6e73 7572 6520  sl':.    ensure 
│ │ │ -0005abe0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0005abf0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -0005acb0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0005acc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -0005ad90: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ -0005ab00: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0005ab10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0005ab50: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0005ab60: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -0005ad50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0005ad70: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0005adc0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0005add0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0005ae00: 6e73 7461 6c6c 2074 6865 2073 736c 2063  nstall the ssl c
│ │ │ -0005ae10: 6f6d 706c 6961 6e74 2074 656c 6e65 7420  ompliant telnet 
│ │ │ -0005ae20: 7365 7276 6572 3a20 456e 7375 7265 2074  server: Ensure t
│ │ │ -0005ae30: 656c 6e65 7464 2d73 736c 2069 7320 7265  elnetd-ssl is re
│ │ │ -0005ae40: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0005ae50: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0005ae60: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -0005ae70: 6574 642d 7373 6c0a 2020 2020 7374 6174  etd-ssl.    stat
│ │ │ -0005ae80: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0005ae90: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0005aea0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0005aeb0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0005aec0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0005aed0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0005aee0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0005aef0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0005af00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0005af10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0005af20: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0005af30: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0005af40: 7061 636b 6167 655f 7465 6c6e 6574 642d  package_telnetd-
│ │ │ -0005af50: 7373 6c5f 7265 6d6f 7665 640a 3c2f 636f  ssl_removed.
│ │ │ +0005aad0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0005aaf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0005ab40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0005ab70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0005aae0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0005ab00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0005ab50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0005ab60: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +0005ab90: 7374 616c 6c20 7468 6520 7373 6c20 636f  stall the ssl co
│ │ │ +0005aba0: 6d70 6c69 616e 7420 7465 6c6e 6574 2073  mpliant telnet s
│ │ │ +0005abb0: 6572 7665 723a 2045 6e73 7572 6520 7465  erver: Ensure te
│ │ │ +0005abc0: 6c6e 6574 642d 7373 6c20 6973 2072 656d  lnetd-ssl is rem
│ │ │ +0005abd0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0005abe0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0005abf0: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ +0005ac00: 7464 2d73 736c 0a20 2020 2073 7461 7465  td-ssl.    state
│ │ │ +0005ac10: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0005ac20: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0005ac30: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0005ac40: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0005ac50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0005ac60: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0005ac70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0005ac80: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +0005ac90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0005aca0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0005acb0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0005acc0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0005acd0: 6163 6b61 6765 5f74 656c 6e65 7464 2d73  ackage_telnetd-s
│ │ │ +0005ace0: 736c 5f72 656d 6f76 6564 0a3c 2f63 6f64  sl_removed.
Remedi │ │ │ +0005ada0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0005adb0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0005adc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0005adf0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0005ae00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0005ae10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0005ae20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0005ae30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0005ae40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0005ae50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0005ae90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0005aea0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0005aec0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0005aed0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +0005aef0: 2072 656d 6f76 655f 7465 6c6e 6574 642d remove_telnetd- │ │ │ +0005af00: 7373 6c0a 0a63 6c61 7373 2072 656d 6f76 ssl..class remov │ │ │ +0005af10: 655f 7465 6c6e 6574 642d 7373 6c20 7b0a e_telnetd-ssl {. │ │ │ +0005af20: 2020 7061 636b 6167 6520 7b20 2774 656c package { 'tel │ │ │ +0005af30: 6e65 7464 2d73 736c 273a 0a20 2020 2065 netd-ssl':. e │ │ │ +0005af40: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +0005af50: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 0005af70: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0005af80: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0005af90: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0005afa0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0005afb0: 6438 3122 2074 6162 696e 6465 783d 2230 d81" tabindex="0 │ │ │ 0005afc0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -23549,94 +23549,94 @@ │ │ │ 0005bfc0: 7461 7267 6574 3d22 2369 6438 3322 2074 target="#id83" t │ │ │ 0005bfd0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0005bfe0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0005bff0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0005c000: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0005c010: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0005c020: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0005c030: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0005c040: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0005c0c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0005c0e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0005c130: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0005c160: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0005c0d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0005c0f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0005c140: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0005c150: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0005c180: 7665 5f74 656c 6e65 7464 0a0a 636c 6173  ve_telnetd..clas
│ │ │ -0005c190: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ -0005c1a0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -0005c1b0: 7465 6c6e 6574 6427 3a0a 2020 2020 656e  telnetd':.    en
│ │ │ -0005c1c0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0005c1d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -0005c290: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0005c2a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0005c2e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0005c350: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0005c370: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0005c3a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0005c330: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0005c340: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0005c380: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0005c390: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0005c3e0: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -0005c3f0: 7465 6c6e 6574 2073 6572 7665 723a 2045 telnet server: E │ │ │ -0005c400: 6e73 7572 6520 7465 6c6e 6574 6420 6973 nsure telnetd is │ │ │ -0005c410: 2072 656d 6f76 6564 270a 2020 616e 7369 removed'. ansi │ │ │ -0005c420: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -0005c430: 6167 653a 0a20 2020 206e 616d 653a 2074 age:. name: t │ │ │ -0005c440: 656c 6e65 7464 0a20 2020 2073 7461 7465 elnetd. state │ │ │ -0005c450: 3a20 6162 7365 6e74 0a20 2074 6167 733a : absent. tags: │ │ │ -0005c460: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0005c470: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ -0005c480: 542d 3830 302d 3533 2d43 4d2d 3728 6129 T-800-53-CM-7(a) │ │ │ -0005c490: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0005c4a0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973 -CM-7(b). - dis │ │ │ -0005c4b0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0005c4c0: 2d20 6869 6768 5f73 6576 6572 6974 790a - high_severity. │ │ │ -0005c4d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -0005c4e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -0005c4f0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562 ption. - no_reb │ │ │ -0005c500: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -0005c510: 6163 6b61 6765 5f74 656c 6e65 7464 5f72 ackage_telnetd_r │ │ │ -0005c520: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.

Complexity: │ │ │ +0005c0d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0005c0f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0005c110: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0005c140: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0005c150: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0005c180: 6e73 7461 6c6c 2074 6865 2074 656c 6e65  nstall the telne
│ │ │ +0005c190: 7420 7365 7276 6572 3a20 456e 7375 7265  t server: Ensure
│ │ │ +0005c1a0: 2074 656c 6e65 7464 2069 7320 7265 6d6f   telnetd is remo
│ │ │ +0005c1b0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0005c1c0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0005c1d0: 2020 2020 6e61 6d65 3a20 7465 6c6e 6574      name: telnet
│ │ │ +0005c1e0: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ +0005c1f0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0005c200: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0005c210: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0005c220: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0005c230: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0005c240: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +0005c250: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +0005c260: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +0005c270: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0005c280: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0005c290: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0005c2a0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0005c2b0: 655f 7465 6c6e 6574 645f 7265 6d6f 7665  e_telnetd_remove
│ │ │ +0005c2c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0005c2d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +0005c380: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0005c390: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0005c420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +0005c4c0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +0005c4d0: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ +0005c4e0: 6d6f 7665 5f74 656c 6e65 7464 207b 0a20  move_telnetd {. 
│ │ │ +0005c4f0: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ +0005c500: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ +0005c510: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0005c520: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}. '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:
│ │ │ │ @@ -366,14 +349,31 @@
│ │ │ │    - NIST-800-53-CM-6(a)
│ │ │ │    - enable_strategy
│ │ │ │    - low_complexity
│ │ │ │    - low_disruption
│ │ │ │    - medium_severity
│ │ │ │    - no_reboot_needed
│ │ │ │    - package_syslogng_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_syslog-ng
│ │ │ │ +
│ │ │ │ +class install_syslog-ng {
│ │ │ │ +  package { 'syslog-ng':
│ │ │ │ +    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 = "syslog-ng"
│ │ │ │ +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/
│ │ │ │ @@ -403,31 +403,14 @@
│ │ │ │  References:                4.4.2.2, 4.4.2.4
│ │ │ │              _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, SR 6.1,
│ │ │ │                             SR 6.2, SR 7.1, SR 7.2
│ │ │ │              _i_s_o_2_7_0_0_1_-_2_0_1_3  A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4,
│ │ │ │                             A.12.7.1, A.14.2.7, A.15.2.1, 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
│ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"]
│ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng
│ │ │ │ -
│ │ │ │ -class enable_syslog-ng {
│ │ │ │ -  service {'syslog-ng':
│ │ │ │ -    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:
│ │ │ │ @@ -464,14 +447,31 @@
│ │ │ │    - low_complexity
│ │ │ │    - low_disruption
│ │ │ │    - medium_severity
│ │ │ │    - no_reboot_needed
│ │ │ │    - service_syslogng_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_syslog-ng
│ │ │ │ +
│ │ │ │ +class enable_syslog-ng {
│ │ │ │ +  service {'syslog-ng':
│ │ │ │ +    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 = ["syslog-ng"]
│ │ │ │  _R_e_m_e_d_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/
│ │ │ │ @@ -503,31 +503,14 @@
│ │ │ │  References: _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
│ │ │ │              _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
│ │ │ │              _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:
│ │ │ │ @@ -550,14 +533,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/
│ │ │ │ @@ -589,31 +589,14 @@
│ │ │ │                             SR 6.2, SR 7.1, SR 7.2
│ │ │ │              _i_s_o_2_7_0_0_1_-_2_0_1_3  A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4,
│ │ │ │                             A.12.7.1, A.14.2.7, A.15.2.1, 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
│ │ │ │              _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]
│ │ │ │ -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:
│ │ │ │ @@ -650,14 +633,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/
│ │ │ │ @@ -1881,27 +1881,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'
│ │ │ │ @@ -1914,14 +1901,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
│ │ │ │ @@ -1936,27 +1936,14 @@
│ │ │ │  ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ******
│ │ │ │  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
│ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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:
│ │ │ │ @@ -1965,14 +1952,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
│ │ │ │ @@ -2005,27 +2005,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'
│ │ │ │ @@ -2038,14 +2025,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
│ │ │ │ @@ -2079,27 +2079,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
│ │ │ │ -
│ │ │ │ -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:
│ │ │ │ @@ -2111,14 +2098,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
│ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-anssi_np_nt28_restrictive.html
│ │ │ @@ -20695,129 +20695,129 @@
│ │ │  00050d60: 2220 6461 7461 2d74 6172 6765 743d 2223  " data-target="#
│ │ │  00050d70: 6964 3330 2220 7461 6269 6e64 6578 3d22  id30" tabindex="
│ │ │  00050d80: 3022 2072 6f6c 653d 2262 7574 746f 6e22  0" role="button"
│ │ │  00050d90: 2061 7269 612d 6578 7061 6e64 6564 3d22   aria-expanded="
│ │ │  00050da0: 6661 6c73 6522 2074 6974 6c65 3d22 4163  false" title="Ac
│ │ │  00050db0: 7469 7661 7465 2074 6f20 7265 7665 616c  tivate to reveal
│ │ │  00050dc0: 2220 6872 6566 3d22 2321 223e 5265 6d65  " href="#!">Reme
│ │ │ -00050dd0: 6469 6174 696f 6e20 4f53 4275 696c 6420  diation OSBuild 
│ │ │ -00050de0: 426c 7565 7072 696e 7420 736e 6970 7065  Blueprint snippe
│ │ │ -00050df0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
.[[packag
│ │ │ -00050e40: 6573 5d5d 0a6e 616d 6520 3d20 2273 7973  es]].name = "sys
│ │ │ -00050e50: 6c6f 672d 6e67 220a 7665 7273 696f 6e20  log-ng".version 
│ │ │ -00050e60: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -00050f20: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00050f30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0005c410: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0005c440: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0005c450: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0005c490: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0005c4a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00050fb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00050fd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00051020: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00051050: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00051070: 6c5f 7379 736c 6f67 2d6e 670a 0a63 6c61  l_syslog-ng..cla
│ │ │ -00051080: 7373 2069 6e73 7461 6c6c 5f73 7973 6c6f  ss install_syslo
│ │ │ -00051090: 672d 6e67 207b 0a20 2070 6163 6b61 6765  g-ng {.  package
│ │ │ -000510a0: 207b 2027 7379 736c 6f67 2d6e 6727 3a0a   { 'syslog-ng':.
│ │ │ -000510b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000510c0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -000510d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -00051190: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -000511a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -00050fc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00050fe0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00051030: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00051040: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00051220: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00051240: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00051290: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -000512e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -000512f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00051300: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00051310: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00051320: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00051330: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00051340: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00051350: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00051360: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00051370: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00051380: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00051390: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000513a0: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -000513b0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -000513c0: 456e 7375 7265 2073 7973 6c6f 672d 6e67  Ensure syslog-ng
│ │ │ -000513d0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000513e0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000513f0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00051400: 653a 2073 7973 6c6f 672d 6e67 0a20 2020  e: syslog-ng.   
│ │ │ -00051410: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00051420: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00051430: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00051440: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00051450: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00051460: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00051470: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00051480: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00051490: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000514a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000514b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000514c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000514d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000514e0: 7379 736c 6f67 6e67 5f69 6e73 7461 6c6c  syslogng_install
│ │ │ -000514f0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00050dd0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +00050de0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00050df0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -00051250: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00051260: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000512a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000512b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +00050e70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00050e80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00050ea0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00050ec0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00050ed0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00050f10: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00050f20: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00050f30: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00050f40: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00050f50: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00050f60: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00050f70: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00050f80: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +00050f90: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00050fa0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +00050fb0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00050fc0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +00050fd0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00050fe0: 0a20 202d 2070 6163 6b61 6765 5f73 7973 . - package_sys │ │ │ +00050ff0: 6c6f 676e 675f 696e 7374 616c 6c65 640a logng_installed. │ │ │ +00051000: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ +00051010: 7379 736c 6f67 2d6e 6720 6973 2069 6e73 syslog-ng is ins │ │ │ +00051020: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ +00051030: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +00051040: 3a0a 2020 2020 6e61 6d65 3a20 7379 736c :. name: sysl │ │ │ +00051050: 6f67 2d6e 670a 2020 2020 7374 6174 653a og-ng. state: │ │ │ +00051060: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ +00051070: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +00051080: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +00051090: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +000510a0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +000510b0: 332d 434d 2d36 2861 290a 2020 2d20 656e 3-CM-6(a). - en │ │ │ +000510c0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +000510d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +000510e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +000510f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00051100: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00051110: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00051120: 2070 6163 6b61 6765 5f73 7973 6c6f 676e package_syslogn │ │ │ +00051130: 675f 696e 7374 616c 6c65 640a 3c2f 636f g_installed.
< │ │ │ +00051150: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00051160: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00051170: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00051180: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00051190: 6433 3122 2074 6162 696e 6465 783d 2230 d31" tabindex="0 │ │ │ +000511a0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +000511b0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +000511c0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +000511d0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +000511e0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +000511f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00051200: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00051240: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000512b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000512d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00051300: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00051320: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00051290: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000512a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000512e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000512f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00051340: 696e 7374 616c 6c5f 7379 736c 6f67 2d6e install_syslog-n │ │ │ +00051350: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ +00051360: 5f73 7973 6c6f 672d 6e67 207b 0a20 2070 _syslog-ng {. p │ │ │ +00051370: 6163 6b61 6765 207b 2027 7379 736c 6f67 ackage { 'syslog │ │ │ +00051380: 2d6e 6727 3a0a 2020 2020 656e 7375 7265 -ng':. ensure │ │ │ +00051390: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +000513a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ +00051460: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00051470: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00051480: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +000514d0: 5d0a 6e61 6d65 203d 2022 7379 736c 6f67  ].name = "syslog
│ │ │ +000514e0: 2d6e 6722 0a76 6572 7369 6f6e 203d 2022  -ng".version = "
│ │ │ +000514f0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 00051500: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediat │ │ │ -000525a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000525b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000525c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizati
│ │ │ -00052610: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -00052620: 6162 6c65 6420 3d20 5b22 7379 736c 6f67  abled = ["syslog
│ │ │ -00052630: 2d6e 6722 5d0a 3c2f 636f 6465 3e3c 2f70  -ng"].

Remediation │ │ │ -000526f0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00052700: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00052780: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000527a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000527f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00052820: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00052840: 5f73 7973 6c6f 672d 6e67 0a0a 636c 6173  _syslog-ng..clas
│ │ │ -00052850: 7320 656e 6162 6c65 5f73 7973 6c6f 672d  s enable_syslog-
│ │ │ -00052860: 6e67 207b 0a20 2073 6572 7669 6365 207b  ng {.  service {
│ │ │ -00052870: 2773 7973 6c6f 672d 6e67 273a 0a20 2020  'syslog-ng':.   
│ │ │ -00052880: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -00052890: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -000528a0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -000528b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -00052970: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00052980: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -00052a50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00052aa0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00052790: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000527b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00052800: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00052810: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -00052a10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00052a30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00052a80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00052a90: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -00052ac0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00052ad0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00052ae0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00052af0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00052b00: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00052b10: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00052b20: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00052b30: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00052b40: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00052b50: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00052b60: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00052b70: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00052b80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00052b90: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -00052ba0: 736c 6f67 6e67 5f65 6e61 626c 6564 0a0a  slogng_enabled..
│ │ │ -00052bb0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -00052bc0: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ -00052bd0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -00052be0: 6520 7379 736c 6f67 2d6e 670a 2020 626c  e syslog-ng.  bl
│ │ │ -00052bf0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00052c00: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00052c10: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00052c20: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00052c30: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00052c40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00052c50: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00052c60: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ -00052c70: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -00052c80: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ -00052c90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00052ca0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00052cb0: 2020 6e61 6d65 3a20 7379 736c 6f67 2d6e    name: syslog-n
│ │ │ -00052cc0: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ -00052cd0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -00052ce0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -00052cf0: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -00052d00: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -00052d10: 2273 7973 6c6f 672d 6e67 2220 696e 2061  "syslog-ng" in a
│ │ │ -00052d20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00052d30: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00052d40: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00052d50: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00052d60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00052d70: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00052d80: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00052d90: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00052da0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00052db0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00052dc0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00052dd0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -00052de0: 736c 6f67 6e67 5f65 6e61 626c 6564 0a20  slogng_enabled. 
│ │ │ -00052df0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00052e00: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -00052e10: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00052e20: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00052e30: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +000525c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000525d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000525e0: 7365 2220 6964 3d22 6964 3335 223e 3c74 se" id="id35"> │ │ │ +00052630: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00052640: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00052650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00052690: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +000526a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +000526c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +000526e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000526f0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00052700: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00052710: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00052720: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00052730: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00052740: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +00052750: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00052760: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00052770: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00052780: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00052790: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000527a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000527b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000527c0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000527d0: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +000527e0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +000527f0: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ +00052800: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +00052810: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ +00052820: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00052830: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00052840: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00052850: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00052860: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00052870: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00052880: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00052890: 6162 6c65 2073 7973 6c6f 672d 6e67 2053  able syslog-ng S
│ │ │ +000528a0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +000528b0: 5365 7276 6963 6520 7379 736c 6f67 2d6e  Service syslog-n
│ │ │ +000528c0: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ +000528d0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +000528e0: 2020 2020 206e 616d 653a 2073 7973 6c6f       name: syslo
│ │ │ +000528f0: 672d 6e67 0a20 2020 2020 2065 6e61 626c  g-ng.      enabl
│ │ │ +00052900: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00052910: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00052920: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00052930: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00052940: 2d20 2722 7379 736c 6f67 2d6e 6722 2069  - '"syslog-ng" i
│ │ │ +00052950: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00052960: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00052970: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00052980: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +00052990: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000529a0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +000529b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000529c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000529d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000529e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000529f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00052a00: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00052a10: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +00052a20: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00052a30: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00052a40: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00052a50: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00052a60: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00052a80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00052b20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00052b30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00052be0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00052c00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00052c30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00052bc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00052bd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00052bf0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00052c10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00052c20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00052c70: 2065 6e61 626c 655f 7379 736c 6f67 2d6e enable_syslog-n │ │ │ +00052c80: 670a 0a63 6c61 7373 2065 6e61 626c 655f g..class enable_ │ │ │ +00052c90: 7379 736c 6f67 2d6e 6720 7b0a 2020 7365 syslog-ng {. se │ │ │ +00052ca0: 7276 6963 6520 7b27 7379 736c 6f67 2d6e rvice {'syslog-n │ │ │ +00052cb0: 6727 3a0a 2020 2020 656e 6162 6c65 203d g':. enable = │ │ │ +00052cc0: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ +00052cd0: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ +00052ce0: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.

│ │ │ +00052d00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00052da0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00052db0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00052dc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ +00052e10: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00052e20: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ +00052e30: 736c 6f67 2d6e 6722 5d0a 3c2f 636f 6465  slog-ng"].
Remediation │ │ │ -00053f80: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00053f90: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -00053fe0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -00053ff0: 6d65 203d 2022 7273 7973 6c6f 6722 0a76  me = "rsyslog".v
│ │ │ -00054000: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00054020: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Reme │ │ │ -000540c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -000540d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00054180: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000541a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000541d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00054160: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00054170: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00054190: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000541b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000541c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00054210: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ -00054220: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ -00054230: 7273 7973 6c6f 6720 7b0a 2020 7061 636b rsyslog {. pack │ │ │ -00054240: 6167 6520 7b20 2772 7379 736c 6f67 273a age { 'rsyslog': │ │ │ -00054250: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00054260: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20 ; 'installed',. │ │ │ -00054270: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ -00054330: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00054340: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000543c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000543e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00054430: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00054460: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00054480: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00054490: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -000544a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -000544b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -000544c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000544d0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -000544e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000544f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00054500: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00054510: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00054520: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00054530: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00054540: 6b61 6765 5f72 7379 736c 6f67 5f69 6e73  kage_rsyslog_ins
│ │ │ -00054550: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00054560: 456e 7375 7265 2072 7379 736c 6f67 2069  Ensure rsyslog i
│ │ │ -00054570: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00054580: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00054590: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -000545a0: 2072 7379 736c 6f67 0a20 2020 2073 7461   rsyslog.    sta
│ │ │ -000545b0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000545c0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -000545d0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000545e0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000545f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00054600: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00054610: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00054620: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00054630: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00054640: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00054650: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00054660: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00054670: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ -00054680: 6c6f 675f 696e 7374 616c 6c65 640a 3c2f  log_installed.
low< │ │ │ +00054060: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +000540b0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -000543d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000543f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00054440: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00054450: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +00054020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00054040: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00054090: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000540a0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +000540d0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +000540e0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +000540f0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00054100: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00054110: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00054120: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +00054130: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00054140: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00054150: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00054160: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00054170: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00054180: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00054190: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ +000541a0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +000541b0: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ +000541c0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000541d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000541e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000541f0: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ +00054200: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00054210: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00054220: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00054230: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00054240: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00054250: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00054260: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00054270: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00054280: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00054290: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000542a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000542b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000542c0: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ +000542d0: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +000542e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +00054390: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000543a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000543b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +00054430: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00054460: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00054480: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00054490: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000544b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000544d0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000544e0: 6465 2069 6e73 7461 6c6c 5f72 7379 736c  de install_rsysl
│ │ │ +000544f0: 6f67 0a0a 636c 6173 7320 696e 7374 616c  og..class instal
│ │ │ +00054500: 6c5f 7273 7973 6c6f 6720 7b0a 2020 7061  l_rsyslog {.  pa
│ │ │ +00054510: 636b 6167 6520 7b20 2772 7379 736c 6f67  ckage { 'rsyslog
│ │ │ +00054520: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00054530: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +00054540: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +00054600: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00054610: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00054620: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +00054670: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ +00054680: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediatio │ │ │ -000558a0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000558b0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000558c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ -00055910: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00055920: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ -00055930: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00055940: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pup │ │ │ -000559f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00055a00: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00055a90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00055b30: 636c 7564 6520 656e 6162 6c65 5f72 7379  clude enable_rsy
│ │ │ -00055b40: 736c 6f67 0a0a 636c 6173 7320 656e 6162  slog..class enab
│ │ │ -00055b50: 6c65 5f72 7379 736c 6f67 207b 0a20 2073  le_rsyslog {.  s
│ │ │ -00055b60: 6572 7669 6365 207b 2772 7379 736c 6f67  ervice {'rsyslog
│ │ │ -00055b70: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00055b80: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -00055b90: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -00055ba0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -00055bc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00055bd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00055be0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00055bf0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00055c00: 6434 3722 2074 6162 696e 6465 783d 2230 d47" tabindex="0 │ │ │ -00055c10: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00055c20: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00055c30: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00055c40: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00055c50: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00055c60: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00055c70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00055a80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00055ab0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00055ac0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00055b00: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00055b10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00055d20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00055d40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00055d70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00055d00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00055d10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00055d30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00055d50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00055d60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00055db0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00055dc0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00055dd0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00055de0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00055df0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00055e00: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ -00055e10: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00055e20: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -00055e30: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -00055e40: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -00055e50: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -00055e60: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00055e70: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00055e80: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -00055e90: 6963 655f 7273 7973 6c6f 675f 656e 6162 ice_rsyslog_enab │ │ │ -00055ea0: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -00055eb0: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ -00055ec0: 6963 6520 2d20 456e 6162 6c65 2073 6572 ice - Enable ser │ │ │ -00055ed0: 7669 6365 2072 7379 736c 6f67 0a20 2062 vice rsyslog. b │ │ │ -00055ee0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -00055ef0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00055f00: 6167 6520 6661 6374 730a 2020 2020 616e age facts. an │ │ │ -00055f10: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -00055f20: 636b 6167 655f 6661 6374 733a 0a20 2020 ckage_facts:. │ │ │ -00055f30: 2020 206d 616e 6167 6572 3a20 6175 746f manager: auto │ │ │ -00055f40: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162 .. - name: Enab │ │ │ -00055f50: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ -00055f60: 6365 202d 2045 6e61 626c 6520 5365 7276 ce - Enable Serv │ │ │ -00055f70: 6963 6520 7273 7973 6c6f 670a 2020 2020 ice rsyslog. │ │ │ -00055f80: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00055f90: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00055fa0: 616d 653a 2072 7379 736c 6f67 0a20 2020 ame: rsyslog. │ │ │ -00055fb0: 2020 2065 6e61 626c 6564 3a20 7472 7565 enabled: true │ │ │ -00055fc0: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00055fd0: 6172 7465 640a 2020 2020 2020 6d61 736b arted. mask │ │ │ -00055fe0: 6564 3a20 6661 6c73 650a 2020 2020 7768 ed: false. wh │ │ │ -00055ff0: 656e 3a0a 2020 2020 2d20 2722 7273 7973 en:. - '"rsys │ │ │ -00056000: 6c6f 6722 2069 6e20 616e 7369 626c 655f log" in ansible_ │ │ │ -00056010: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -00056020: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -00056030: 2d38 3030 2d35 332d 4155 2d34 2831 290a -800-53-AU-4(1). │ │ │ -00056040: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -00056050: 434d 2d36 2861 290a 2020 2d20 656e 6162 CM-6(a). - enab │ │ │ -00056060: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00056070: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00056080: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00056090: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -000560a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -000560b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -000560c0: 6572 7669 6365 5f72 7379 736c 6f67 5f65 ervice_rsyslog_e │ │ │ -000560d0: 6e61 626c 6564 0a20 202d 2073 7065 6369 nabled. - speci │ │ │ -000560e0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b al_service_block │ │ │ -000560f0: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ -00056100: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ -00056110: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -00056120: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.< │ │ │ +000558a0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +000558b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +00055940: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00055960: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00055970: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00055980: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00055990: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000559b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable

- name: Gath
│ │ │ +000559f0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00055a00: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00055a10: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00055a20: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00055a30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00055a40: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +00055a50: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00055a60: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00055a70: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00055a80: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00055a90: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00055aa0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00055ab0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00055ac0: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +00055ad0: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ +00055ae0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ +00055af0: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ +00055b00: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00055b10: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ +00055b20: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +00055b30: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00055b40: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +00055b50: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00055b60: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +00055b70: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +00055b80: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +00055b90: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +00055ba0: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ +00055bb0: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ +00055bc0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00055bd0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00055be0: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ +00055bf0: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +00055c00: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +00055c10: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +00055c20: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +00055c30: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ +00055c40: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00055c50: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00055c60: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00055c70: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +00055c80: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00055c90: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +00055ca0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00055cb0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00055cc0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00055cd0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00055ce0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00055cf0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00055d00: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +00055d10: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00055d20: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00055d30: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00055d40: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00055d50: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00055d70: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00055e10: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00055e20: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00055ed0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00055ef0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00055f20: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00055eb0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00055ec0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00055ee0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00055f00: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00055f10: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediatio │ │ │ +00056090: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +000560a0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +000560b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ +00056100: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +00056110: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ +00056120: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00056130: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
│ │ │ -00078050: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00078060: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00078070: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000780c0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000780d0: 2022 6372 6f6e 220a 7665 7273 696f 6e20   "cron".version 
│ │ │ -000780e0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -000781a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -000781b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00078240: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00078260: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00078270: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00078280: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00078290: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000782b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -000782f0: 616c 6c5f 6372 6f6e 0a0a 636c 6173 7320  all_cron..class 
│ │ │ -00078300: 696e 7374 616c 6c5f 6372 6f6e 207b 0a20  install_cron {. 
│ │ │ -00078310: 2070 6163 6b61 6765 207b 2027 6372 6f6e   package { 'cron
│ │ │ -00078320: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00078330: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -00078340: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00078400: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00078410: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00078490: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000784a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000784b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000784f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00078500: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00078520: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00078540: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00078550: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00078560: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00078570: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00078580: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00078590: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000785a0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -000785b0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -000785c0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -000785d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000785e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000785f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00078600: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00078610: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00078620: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00078630: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ -00078640: 726f 6e5f 696e 7374 616c 6c65 640a 0a2d  ron_installed..-
│ │ │ -00078650: 206e 616d 653a 2045 6e73 7572 6520 6372   name: Ensure cr
│ │ │ -00078660: 6f6e 2069 7320 696e 7374 616c 6c65 640a  on is installed.
│ │ │ -00078670: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00078680: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00078690: 616d 653a 2063 726f 6e0a 2020 2020 7374  ame: cron.    st
│ │ │ -000786a0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000786b0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000786c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000786d0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000786e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -000786f0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00078700: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -00078710: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00078720: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ -00078730: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00078740: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00078750: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00078760: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00078770: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00078780: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00078790: 6765 5f63 726f 6e5f 696e 7374 616c 6c65  ge_cron_installe
│ │ │ -000787a0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00078050: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00078060: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00078070: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00078140: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00078150: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000781a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000781b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000781c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000781d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000781e0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +000781f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00078200: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +00078210: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00078220: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +00078230: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00078240: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00078250: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00078260: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00078270: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00078280: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00078290: 7061 636b 6167 655f 6372 6f6e 5f69 6e73  package_cron_ins
│ │ │ +000782a0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +000782b0: 456e 7375 7265 2063 726f 6e20 6973 2069  Ensure cron is i
│ │ │ +000782c0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +000782d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +000782e0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6372  ge:.    name: cr
│ │ │ +000782f0: 6f6e 0a20 2020 2073 7461 7465 3a20 7072  on.    state: pr
│ │ │ +00078300: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00078310: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00078320: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00078330: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00078340: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00078350: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00078360: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00078370: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00078380: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00078390: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000783a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000783b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000783c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000783d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000783e0: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ +000783f0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000784b0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000784c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +00078120: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00078130: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00078170: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00078180: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00078570: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00078590: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000785c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00078550: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00078560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00078580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000785a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000785b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00078600: 2069 6e73 7461 6c6c 5f63 726f 6e0a 0a63 install_cron..c │ │ │ +00078610: 6c61 7373 2069 6e73 7461 6c6c 5f63 726f lass install_cro │ │ │ +00078620: 6e20 7b0a 2020 7061 636b 6167 6520 7b20 n {. package { │ │ │ +00078630: 2763 726f 6e27 3a0a 2020 2020 656e 7375 'cron':. ensu │ │ │ +00078640: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +00078650: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +00078670: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00078680: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00078690: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000786a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000786b0: 6431 3035 2220 7461 6269 6e64 6578 3d22 d105" tabindex=" │ │ │ +000786c0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000786d0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000786e0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000786f0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00078700: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00078710: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00078720: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00078730: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +00078780: 6765 735d 5d0a 6e61 6d65 203d 2022 6372 ges]].name = "cr │ │ │ +00078790: 6f6e 220a 7665 7273 696f 6e20 3d20 222a on".version = "* │ │ │ +000787a0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 000787b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediati │ │ │ -00079ce0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00079cf0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00079d70: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00079d80: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00079da0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00079db0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00079dd0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00079df0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00079e20: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00079e30: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ -00079e40: 7465 6c6e 6574 640a 0a63 6c61 7373 2072  telnetd..class r
│ │ │ -00079e50: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ -00079e60: 7465 6c6e 6574 6420 7b0a 2020 7061 636b  telnetd {.  pack
│ │ │ -00079e70: 6167 6520 7b20 2769 6e65 7475 7469 6c73  age { 'inetutils
│ │ │ -00079e80: 2d74 656c 6e65 7464 273a 0a20 2020 2065  -telnetd':.    e
│ │ │ -00079e90: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00079ea0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00079ec0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00079ed0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00079ee0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00079ef0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00079f00: 6431 3039 2220 7461 6269 6e64 6578 3d22 d109" tabindex=" │ │ │ -00079f10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00079f20: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00079f30: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00079f40: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00079f50: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00079f60: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00079f70: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00079f80: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007a000: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007a030: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007a050: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007a060: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007a080: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007a090: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0007a0b0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0007a0c0: 6865 2069 6e65 742d 6261 7365 6420 7465  he inet-based te
│ │ │ -0007a0d0: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ -0007a0e0: 7572 6520 696e 6574 7574 696c 732d 7465  ure inetutils-te
│ │ │ -0007a0f0: 6c6e 6574 6420 6973 2072 656d 6f76 6564  lnetd is removed
│ │ │ -0007a100: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0007a110: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0007a120: 206e 616d 653a 2069 6e65 7475 7469 6c73   name: inetutils
│ │ │ -0007a130: 2d74 656c 6e65 7464 0a20 2020 2073 7461  -telnetd.    sta
│ │ │ -0007a140: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0007a150: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0007a160: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0007a170: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0007a180: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0007a190: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0007a1a0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0007a1b0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -0007a1c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0007a1d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0007a1e0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0007a1f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0007a200: 2070 6163 6b61 6765 5f69 6e65 7475 7469   package_inetuti
│ │ │ -0007a210: 6c73 2d74 656c 6e65 7464 5f72 656d 6f76  ls-telnetd_remov
│ │ │ -0007a220: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00079ce0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +00079cf0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00079d70: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00079d80: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00079d90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00079dd0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00079de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00079e00: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00079e10: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00079e30: 556e 696e 7374 616c 6c20 7468 6520 696e  Uninstall the in
│ │ │ +00079e40: 6574 2d62 6173 6564 2074 656c 6e65 7420  et-based telnet 
│ │ │ +00079e50: 7365 7276 6572 3a20 456e 7375 7265 2069  server: Ensure i
│ │ │ +00079e60: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +00079e70: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00079e80: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00079e90: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00079ea0: 3a20 696e 6574 7574 696c 732d 7465 6c6e  : inetutils-teln
│ │ │ +00079eb0: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ +00079ec0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00079ed0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00079ee0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00079ef0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00079f00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00079f10: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00079f20: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +00079f30: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +00079f40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00079f50: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00079f60: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00079f70: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00079f80: 6167 655f 696e 6574 7574 696c 732d 7465  age_inetutils-te
│ │ │ +00079f90: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Re │ │ │ +0007a050: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0007a060: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007a070: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0007a110: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007a160: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0007a1a0: 636c 7564 6520 7265 6d6f 7665 5f69 6e65  clude remove_ine
│ │ │ +0007a1b0: 7475 7469 6c73 2d74 656c 6e65 7464 0a0a  tutils-telnetd..
│ │ │ +0007a1c0: 636c 6173 7320 7265 6d6f 7665 5f69 6e65  class remove_ine
│ │ │ +0007a1d0: 7475 7469 6c73 2d74 656c 6e65 7464 207b  tutils-telnetd {
│ │ │ +0007a1e0: 0a20 2070 6163 6b61 6765 207b 2027 696e  .  package { 'in
│ │ │ +0007a1f0: 6574 7574 696c 732d 7465 6c6e 6574 6427  etutils-telnetd'
│ │ │ +0007a200: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0007a210: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0007a220: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0007a230: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remed │ │ │ -0007abc0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0007abd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Co │ │ │ +0007a0f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007a120: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007a140: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007a150: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007a170: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007a180: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0007ac80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007aca0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007acd0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007ac60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007ac70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007ac90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007acb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007acc0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007ad00: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0007ad10: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ -0007ad20: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ -0007ad30: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -0007ad40: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ -0007ad50: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -0007ad60: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -0007ae20: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0007ae30: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007aeb0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0007aec0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0007aee0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0007aef0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0007af10: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0007af30: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0007af60: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0007af70: 6e69 6e73 7461 6c6c 2074 6865 206e 6973  ninstall the nis
│ │ │ -0007af80: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ -0007af90: 206e 6973 2069 7320 7265 6d6f 7665 6427   nis is removed'
│ │ │ -0007afa0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0007afb0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0007afc0: 6e61 6d65 3a20 6e69 730a 2020 2020 7374  name: nis.    st
│ │ │ -0007afd0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0007afe0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0007aff0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0007b000: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007b010: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007b020: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -0007b030: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007b040: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007b050: 5f6e 6973 5f72 656d 6f76 6564 0a3c 2f63  _nis_removed.
Comp │ │ │ +0007ac60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007ac70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007ac90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007acb0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007acc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007ad00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0007ad10: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +0007ad20: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ +0007ad30: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ +0007ad40: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0007ad50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0007ad60: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ +0007ad70: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0007ad80: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0007ad90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0007ada0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0007adb0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0007adc0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0007add0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0007ade0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0007adf0: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ +0007ae00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007ae10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0007aec0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0007aed0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007afa0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007afb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0007b010: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ +0007b020: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ +0007b030: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ +0007b040: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0007b050: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0007b070: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007b9e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0007b9f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007ba00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +0007af80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007af90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007afd0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0007afe0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0007ba80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007bab0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007bad0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007bae0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007bb00: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007bb10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0007bb30: 6c75 6465 2072 656d 6f76 655f 6e74 7064  lude remove_ntpd
│ │ │ -0007bb40: 6174 650a 0a63 6c61 7373 2072 656d 6f76  ate..class remov
│ │ │ -0007bb50: 655f 6e74 7064 6174 6520 7b0a 2020 7061  e_ntpdate {.  pa
│ │ │ -0007bb60: 636b 6167 6520 7b20 276e 7470 6461 7465  ckage { 'ntpdate
│ │ │ -0007bb70: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0007bb80: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0007bb90: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0007bc50: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0007bc60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0007bcf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0007bd10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0007bd30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0007bd60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007bd70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0007bda0: 6e73 7461 6c6c 2074 6865 206e 7470 6461  nstall the ntpda
│ │ │ -0007bdb0: 7465 2070 6163 6b61 6765 3a20 456e 7375  te package: Ensu
│ │ │ -0007bdc0: 7265 206e 7470 6461 7465 2069 7320 7265  re ntpdate is re
│ │ │ -0007bdd0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007bde0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007bdf0: 3a0a 2020 2020 6e61 6d65 3a20 6e74 7064  :.    name: ntpd
│ │ │ -0007be00: 6174 650a 2020 2020 7374 6174 653a 2061  ate.    state: a
│ │ │ -0007be10: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -0007be20: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0007be30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0007be40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0007be50: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0007be60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0007be70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0007be80: 202d 2070 6163 6b61 6765 5f6e 7470 6461   - package_ntpda
│ │ │ -0007be90: 7465 5f72 656d 6f76 6564 0a3c 2f63 6f64  te_removed.
│ │ │ +0007ba00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0007baa0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007baf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0007bb30: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0007bb40: 7468 6520 6e74 7064 6174 6520 7061 636b  the ntpdate pack
│ │ │ +0007bb50: 6167 653a 2045 6e73 7572 6520 6e74 7064  age: Ensure ntpd
│ │ │ +0007bb60: 6174 6520 6973 2072 656d 6f76 6564 270a  ate is removed'.
│ │ │ +0007bb70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0007bb80: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0007bb90: 616d 653a 206e 7470 6461 7465 0a20 2020  ame: ntpdate.   
│ │ │ +0007bba0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0007bbb0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +0007bbc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0007bbd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0007bbe0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0007bbf0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +0007bc00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0007bc10: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0007bc20: 6167 655f 6e74 7064 6174 655f 7265 6d6f  age_ntpdate_remo
│ │ │ +0007bc30: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0007bcf0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0007bd00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +0007ba80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007bab0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007bad0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007bae0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007bb00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007bb10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0007bd80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007bda0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007bdf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007be20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007bd90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007bdb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007be00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007be10: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0007be40: 7665 5f6e 7470 6461 7465 0a0a 636c 6173  ve_ntpdate..clas
│ │ │ +0007be50: 7320 7265 6d6f 7665 5f6e 7470 6461 7465  s remove_ntpdate
│ │ │ +0007be60: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0007be70: 6e74 7064 6174 6527 3a0a 2020 2020 656e  ntpdate':.    en
│ │ │ +0007be80: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0007be90: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -0007cf70: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0007cf80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007d000: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007d020: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007d070: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007d0a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007d010: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007d030: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007d080: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007d090: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0007d0c0: 7665 5f74 656c 6e65 7464 2d73 736c 0a0a  ve_telnetd-ssl..
│ │ │ -0007d0d0: 636c 6173 7320 7265 6d6f 7665 5f74 656c  class remove_tel
│ │ │ -0007d0e0: 6e65 7464 2d73 736c 207b 0a20 2070 6163  netd-ssl {.  pac
│ │ │ -0007d0f0: 6b61 6765 207b 2027 7465 6c6e 6574 642d  kage { 'telnetd-
│ │ │ -0007d100: 7373 6c27 3a0a 2020 2020 656e 7375 7265  ssl':.    ensure
│ │ │ -0007d110: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007d120: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0007d1e0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0007d1f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0007d270: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0007d280: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007d290: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0007d2d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007d2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0007d300: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007d310: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -0007d330: 556e 696e 7374 616c 6c20 7468 6520 7373  Uninstall the ss
│ │ │ -0007d340: 6c20 636f 6d70 6c69 616e 7420 7465 6c6e  l compliant teln
│ │ │ -0007d350: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ -0007d360: 6520 7465 6c6e 6574 642d 7373 6c20 6973  e telnetd-ssl is
│ │ │ -0007d370: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007d380: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007d390: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -0007d3a0: 656c 6e65 7464 2d73 736c 0a20 2020 2073  elnetd-ssl.    s
│ │ │ -0007d3b0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0007d3c0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0007d3d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0007d3e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0007d3f0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0007d400: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0007d410: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0007d420: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -0007d430: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -0007d440: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0007d450: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0007d460: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0007d470: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ -0007d480: 7464 2d73 736c 5f72 656d 6f76 6564 0a3c  td-ssl_removed.<
│ │ │ +0007cf70: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +0007cf80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity: │ │ │ +0007d010: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0007d030: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0007d050: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0007d080: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007d090: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0007d0c0: 6e73 7461 6c6c 2074 6865 2073 736c 2063  nstall the ssl c
│ │ │ +0007d0d0: 6f6d 706c 6961 6e74 2074 656c 6e65 7420  ompliant telnet 
│ │ │ +0007d0e0: 7365 7276 6572 3a20 456e 7375 7265 2074  server: Ensure t
│ │ │ +0007d0f0: 656c 6e65 7464 2d73 736c 2069 7320 7265  elnetd-ssl is re
│ │ │ +0007d100: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0007d110: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0007d120: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ +0007d130: 6574 642d 7373 6c0a 2020 2020 7374 6174  etd-ssl.    stat
│ │ │ +0007d140: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0007d150: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0007d160: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0007d170: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0007d180: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0007d190: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +0007d1a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0007d1b0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +0007d1c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0007d1d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0007d1e0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0007d1f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0007d200: 7061 636b 6167 655f 7465 6c6e 6574 642d  package_telnetd-
│ │ │ +0007d210: 7373 6c5f 7265 6d6f 7665 640a 3c2f 636f  ssl_removed.
< │ │ │ +0007d230: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0007d240: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0007d250: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0007d260: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0007d270: 6431 3231 2220 7461 6269 6e64 6578 3d22 d121" tabindex=" │ │ │ +0007d280: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0007d290: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0007d2a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0007d2b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0007d2c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0007d2d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0007d2e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0007d370: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007d380: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007d3a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007d3c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007d3d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007d410: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0007d420: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ +0007d430: 7464 2d73 736c 0a0a 636c 6173 7320 7265  td-ssl..class re
│ │ │ +0007d440: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ +0007d450: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0007d460: 7465 6c6e 6574 642d 7373 6c27 3a0a 2020  telnetd-ssl':.  
│ │ │ +0007d470: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0007d480: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0007d490: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Reme │ │ │ -0007e560: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007e570: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007e600: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007e610: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007e630: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007e650: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007e660: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007e6a0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0007e6b0: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ -0007e6c0: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ -0007e6d0: 5f74 656c 6e65 7464 207b 0a20 2070 6163  _telnetd {.  pac
│ │ │ -0007e6e0: 6b61 6765 207b 2027 7465 6c6e 6574 6427  kage { 'telnetd'
│ │ │ -0007e6f0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007e700: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0007e710: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0007e720: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0007e7d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0007e7e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007e860: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007e880: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007e8d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007e900: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007e870: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007e890: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007e8e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007e8f0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0007e920: 7374 616c 6c20 7468 6520 7465 6c6e 6574  stall the telnet
│ │ │ -0007e930: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ -0007e940: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ -0007e950: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0007e960: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0007e970: 2020 206e 616d 653a 2074 656c 6e65 7464     name: telnetd
│ │ │ -0007e980: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0007e990: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -0007e9a0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0007e9b0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0007e9c0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0007e9d0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0007e9e0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0007e9f0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007ea00: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007ea10: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007ea20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007ea30: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007ea40: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007ea50: 5f74 656c 6e65 7464 5f72 656d 6f76 6564  _telnetd_removed
│ │ │ +0007e560: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0007e570: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0007e580: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0007e600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007e630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007e650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007e660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007e680: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007e690: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0007e6b0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +0007e6c0: 6865 2074 656c 6e65 7420 7365 7276 6572  he telnet server
│ │ │ +0007e6d0: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ +0007e6e0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +0007e6f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0007e700: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0007e710: 3a20 7465 6c6e 6574 640a 2020 2020 7374  : telnetd.    st
│ │ │ +0007e720: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0007e730: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0007e740: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0007e750: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0007e760: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0007e770: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0007e780: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0007e790: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0007e7a0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0007e7b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007e7c0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0007e7d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007e7e0: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +0007e7f0: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
Remedi │ │ │ +0007e8b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0007e8c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0007e8d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007e900: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007e970: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007e990: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007e9c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0007e950: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007e960: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007e9a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007e9b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +0007ea00: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ +0007ea10: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74 ..class remove_t │ │ │ +0007ea20: 656c 6e65 7464 207b 0a20 2070 6163 6b61 elnetd {. packa │ │ │ +0007ea30: 6765 207b 2027 7465 6c6e 6574 6427 3a0a ge { 'telnetd':. │ │ │ +0007ea40: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +0007ea50: 2027 7075 7267 6564 272c 0a20 207d 0a7d 'purged',. }.} │ │ │ 0007ea60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remedia │ │ │ -00080990: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000809a0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000809b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000809f0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -00080a00: 5d5d 0a6e 616d 6520 3d20 226e 7470 220a  ]].name = "ntp".
│ │ │ -00080a10: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -00080ad0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00080ae0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00080af0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00080b90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00080be0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00080b70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00080ba0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00080bc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00080bd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00080bf0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00080c00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00080c20: 7564 6520 696e 7374 616c 6c5f 6e74 700a  ude install_ntp.
│ │ │ -00080c30: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ -00080c40: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ -00080c50: 2027 6e74 7027 3a0a 2020 2020 656e 7375   'ntp':.    ensu
│ │ │ -00080c60: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -00080c70: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -00080c90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00080ca0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00080cb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00080cc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00080cd0: 6431 3330 2220 7461 6269 6e64 6578 3d22 d130" tabindex=" │ │ │ -00080ce0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00080cf0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00080d00: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00080d10: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00080d20: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00080d30: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00080d40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00080d50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00080dd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00080e00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00080e20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00080e30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00080e50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00080e70: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00080e80: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00080e90: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00080ea0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00080eb0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00080ec0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00080ed0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00080ee0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -00080ef0: 302e 340a 2020 2d20 656e 6162 6c65 5f73  0.4.  - enable_s
│ │ │ -00080f00: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -00080f10: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -00080f20: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00080f30: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00080f40: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00080f50: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00080f60: 5f6e 7470 5f69 6e73 7461 6c6c 6564 0a0a  _ntp_installed..
│ │ │ -00080f70: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ -00080f80: 7470 2069 7320 696e 7374 616c 6c65 640a  tp is installed.
│ │ │ -00080f90: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00080fa0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00080fb0: 616d 653a 206e 7470 0a20 2020 2073 7461  ame: ntp.    sta
│ │ │ -00080fc0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00080fd0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00080fe0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00080ff0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00081000: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00081010: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00081020: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00081030: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ -00081040: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -00081050: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -00081060: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00081070: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00081080: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00081090: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -000810a0: 7470 5f69 6e73 7461 6c6c 6564 0a3c 2f63  tp_installed.
│ │ │ +000809b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000809e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00080a50: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00080a70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00080aa0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00080ac0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00080a30: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00080a40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00080a80: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00080a90: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00080ae0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00080af0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00080b00: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00080b10: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00080b20: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00080b30: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00080b40: 5043 492d 4453 532d 5265 712d 3130 2e34 PCI-DSS-Req-10.4 │ │ │ +00080b50: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +00080b60: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +00080b70: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +00080b80: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00080b90: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00080ba0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00080bb0: 640a 2020 2d20 7061 636b 6167 655f 6e74 d. - package_nt │ │ │ +00080bc0: 705f 696e 7374 616c 6c65 640a 0a2d 206e p_installed..- n │ │ │ +00080bd0: 616d 653a 2045 6e73 7572 6520 6e74 7020 ame: Ensure ntp │ │ │ +00080be0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ +00080bf0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +00080c00: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ +00080c10: 3a20 6e74 700a 2020 2020 7374 6174 653a : ntp. state: │ │ │ +00080c20: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ +00080c30: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +00080c40: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +00080c50: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +00080c60: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +00080c70: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +00080c80: 492d 4453 532d 5265 712d 3130 2e34 0a20 I-DSS-Req-10.4. │ │ │ +00080c90: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ +00080ca0: 6779 0a20 202d 2068 6967 685f 7365 7665 gy. - high_seve │ │ │ +00080cb0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d rity. - low_com │ │ │ +00080cc0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00080cd0: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +00080ce0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00080cf0: 2020 2d20 7061 636b 6167 655f 6e74 705f - package_ntp_ │ │ │ +00080d00: 696e 7374 616c 6c65 640a 3c2f 636f 6465 installed.
Remedi │ │ │ +00080dc0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00080dd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00080de0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00080e10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00080e80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00080ea0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00080ed0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00080ef0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00080e60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00080e70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00080eb0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00080ec0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00080f10: 696e 7374 616c 6c5f 6e74 700a 0a63 6c61 install_ntp..cla │ │ │ +00080f20: 7373 2069 6e73 7461 6c6c 5f6e 7470 207b ss install_ntp { │ │ │ +00080f30: 0a20 2070 6163 6b61 6765 207b 2027 6e74 . package { 'nt │ │ │ +00080f40: 7027 3a0a 2020 2020 656e 7375 7265 203d p':. ensure = │ │ │ +00080f50: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ +00080f60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00080f70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00081020: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00081030: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00081040: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +00081090: 5d0a 6e61 6d65 203d 2022 6e74 7022 0a76  ].name = "ntp".v
│ │ │ +000810a0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 000810c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -00082250: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00082260: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00082270: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -000822c0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -000822d0: 6162 6c65 6420 3d20 5b22 6e74 7022 5d0a  abled = ["ntp"].
│ │ │ -000822e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00082390: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000823a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00082440: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000824e0: 636c 7564 6520 656e 6162 6c65 5f6e 7470  clude enable_ntp
│ │ │ -000824f0: 0a0a 636c 6173 7320 656e 6162 6c65 5f6e  ..class enable_n
│ │ │ -00082500: 7470 207b 0a20 2073 6572 7669 6365 207b  tp {.  service {
│ │ │ -00082510: 276e 7470 273a 0a20 2020 2065 6e61 626c  'ntp':.    enabl
│ │ │ -00082520: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00082530: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00082540: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00082550: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00082600: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00082610: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00082620: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00082430: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00082460: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00082470: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000824b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000824c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000826f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00082700: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00082750: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00082760: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00082770: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00082780: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00082790: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -000827a0: 4953 542d 3830 302d 3533 2d41 552d 3828  IST-800-53-AU-8(
│ │ │ -000827b0: 3129 2861 290a 2020 2d20 4e49 5354 2d38  1)(a).  - NIST-8
│ │ │ -000827c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000827d0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -000827e0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -000827f0: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ -00082800: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ -00082810: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00082820: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -00082830: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00082840: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00082850: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00082860: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00082870: 7365 7276 6963 655f 6e74 705f 656e 6162  service_ntp_enab
│ │ │ -00082880: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ -00082890: 626c 6520 7468 6520 4e54 5020 4461 656d  ble the NTP Daem
│ │ │ -000828a0: 6f6e 202d 2045 6e61 626c 6520 7365 7276  on - Enable serv
│ │ │ -000828b0: 6963 6520 6e74 700a 2020 626c 6f63 6b3a  ice ntp.  block:
│ │ │ -000828c0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -000828d0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000828e0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -000828f0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00082900: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -00082910: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -00082920: 206e 616d 653a 2045 6e61 626c 6520 7468   name: Enable th
│ │ │ -00082930: 6520 4e54 5020 4461 656d 6f6e 202d 2045  e NTP Daemon - E
│ │ │ -00082940: 6e61 626c 6520 5365 7276 6963 6520 6e74  nable Service nt
│ │ │ -00082950: 700a 2020 2020 616e 7369 626c 652e 6275  p.    ansible.bu
│ │ │ -00082960: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00082970: 2020 2020 206e 616d 653a 206e 7470 0a20       name: ntp. 
│ │ │ -00082980: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -00082990: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -000829a0: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -000829b0: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -000829c0: 7768 656e 3a0a 2020 2020 2d20 2722 6e74  when:.    - '"nt
│ │ │ -000829d0: 7022 2069 6e20 616e 7369 626c 655f 6661  p" in ansible_fa
│ │ │ -000829e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000829f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00082a00: 3030 2d35 332d 4155 2d38 2831 2928 6129  00-53-AU-8(1)(a)
│ │ │ -00082a10: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00082a20: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00082a30: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ -00082a40: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -00082a50: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00082a60: 302e 362e 310a 2020 2d20 656e 6162 6c65  0.6.1.  - enable
│ │ │ -00082a70: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00082a80: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00082a90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00082aa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00082ab0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00082ac0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00082ad0: 6365 5f6e 7470 5f65 6e61 626c 6564 0a20  ce_ntp_enabled. 
│ │ │ -00082ae0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00082af0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -00082b00: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ -00082b10: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00082b20: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00082b30: 2d20 2722 6e74 7022 2069 6e20 616e 7369  - '"ntp" in ansi
│ │ │ -00082b40: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00082b50: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

│ │ │ +000822e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00082370: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ -000826d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000826e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00082720: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00082730: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +000822f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00082300: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00082340: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00082350: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00082390: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +000823a0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +000823b0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +000823c0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +000823d0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000823e0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000823f0: 332d 4155 2d38 2831 2928 6129 0a20 202d  3-AU-8(1)(a).  -
│ │ │ +00082400: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00082410: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00082420: 2d52 6571 2d31 302e 340a 2020 2d20 5043  -Req-10.4.  - PC
│ │ │ +00082430: 492d 4453 5376 342d 3130 2e36 0a20 202d  I-DSSv4-10.6.  -
│ │ │ +00082440: 2050 4349 2d44 5353 7634 2d31 302e 362e   PCI-DSSv4-10.6.
│ │ │ +00082450: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00082460: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +00082470: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +00082480: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00082490: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000824a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000824b0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +000824c0: 7470 5f65 6e61 626c 6564 0a0a 2d20 6e61  tp_enabled..- na
│ │ │ +000824d0: 6d65 3a20 456e 6162 6c65 2074 6865 204e  me: Enable the N
│ │ │ +000824e0: 5450 2044 6165 6d6f 6e20 2d20 456e 6162  TP Daemon - Enab
│ │ │ +000824f0: 6c65 2073 6572 7669 6365 206e 7470 0a20  le service ntp. 
│ │ │ +00082500: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00082510: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00082520: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00082530: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00082540: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00082550: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00082560: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00082570: 6162 6c65 2074 6865 204e 5450 2044 6165  able the NTP Dae
│ │ │ +00082580: 6d6f 6e20 2d20 456e 6162 6c65 2053 6572  mon - Enable Ser
│ │ │ +00082590: 7669 6365 206e 7470 0a20 2020 2061 6e73  vice ntp.    ans
│ │ │ +000825a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +000825b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +000825c0: 3a20 6e74 700a 2020 2020 2020 656e 6162  : ntp.      enab
│ │ │ +000825d0: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +000825e0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +000825f0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +00082600: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00082610: 202d 2027 226e 7470 2220 696e 2061 6e73   - '"ntp" in ans
│ │ │ +00082620: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00082630: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00082640: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00082650: 3828 3129 2861 290a 2020 2d20 4e49 5354  8(1)(a).  - NIST
│ │ │ +00082660: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00082670: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +00082680: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ +00082690: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ +000826a0: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ +000826b0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000826c0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +000826d0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +000826e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000826f0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00082700: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00082710: 2d20 7365 7276 6963 655f 6e74 705f 656e  - service_ntp_en
│ │ │ +00082720: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00082730: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00082740: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00082750: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00082760: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00082770: 6765 7327 0a20 202d 2027 226e 7470 2220  ges'.  - '"ntp" 
│ │ │ +00082780: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00082790: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +00082850: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00082860: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00082910: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00082930: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00082960: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000828f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00082900: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00082920: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00082940: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00082950: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000829a0: 2065 6e61 626c 655f 6e74 700a 0a63 6c61 enable_ntp..cla │ │ │ +000829b0: 7373 2065 6e61 626c 655f 6e74 7020 7b0a ss enable_ntp {. │ │ │ +000829c0: 2020 7365 7276 6963 6520 7b27 6e74 7027 service {'ntp' │ │ │ +000829d0: 3a0a 2020 2020 656e 6162 6c65 203d 2667 :. enable =&g │ │ │ +000829e0: 743b 2074 7275 652c 0a20 2020 2065 6e73 t; true,. ens │ │ │ +000829f0: 7572 6520 3d26 6774 3b20 2772 756e 6e69 ure => 'runni │ │ │ +00082a00: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ng',. }.}.

Remed │ │ │ +00082ac0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00082ad0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00082ae0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00082b30: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00082b40: 5d0a 656e 6162 6c65 6420 3d20 5b22 6e74  ].enabled = ["nt
│ │ │ +00082b50: 7022 5d0a 3c2f 636f 6465 3e3c 2f70 7265  p"].
Remediation OSB │ │ │ -00091060: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00091070: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000910c0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000910d0: 3d20 2261 7564 6974 6422 0a76 6572 7369  = "auditd".versi
│ │ │ -000910e0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -000910f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000911a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000911b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000911c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000911d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000911e0: 7365 2220 6964 3d22 6964 3135 3422 3e3c se" id="id154">< │ │ │ -000911f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00091200: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00091210: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00091220: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00091230: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00091240: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00091250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00091290: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000912a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000912c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000912d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -000912f0: 6e73 7461 6c6c 5f61 7564 6974 640a 0a63  nstall_auditd..c
│ │ │ -00091300: 6c61 7373 2069 6e73 7461 6c6c 5f61 7564  lass install_aud
│ │ │ -00091310: 6974 6420 7b0a 2020 7061 636b 6167 6520  itd {.  package 
│ │ │ -00091320: 7b20 2761 7564 6974 6427 3a0a 2020 2020  { 'auditd':.    
│ │ │ -00091330: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -00091340: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -00091350: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00091400: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00091410: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00091420: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000914f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00091500: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00091550: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00091560: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00091570: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00091580: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00091590: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -000915a0: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ -000915b0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -000915c0: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ -000915d0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -000915e0: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ -000915f0: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ -00091600: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ -00091610: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00091620: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ -00091630: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00091640: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00091650: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -00091660: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -00091670: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -00091680: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00091690: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000916a0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000916b0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000916c0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000916d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000916e0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ -000916f0: 6469 745f 696e 7374 616c 6c65 640a 0a2d  dit_installed..-
│ │ │ -00091700: 206e 616d 653a 2045 6e73 7572 6520 6175   name: Ensure au
│ │ │ -00091710: 6469 7464 2069 7320 696e 7374 616c 6c65  ditd is installe
│ │ │ -00091720: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00091730: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00091740: 206e 616d 653a 2061 7564 6974 640a 2020   name: auditd.  
│ │ │ -00091750: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -00091760: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00091770: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00091780: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00091790: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -000917a0: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ -000917b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000917c0: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ -000917d0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -000917e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000917f0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ -00091800: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ -00091810: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00091820: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ -00091830: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00091840: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -00091850: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ -00091860: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ -00091870: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ -00091880: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00091890: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000918a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000918b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000918c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -000918d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000918e0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -000918f0: 6974 5f69 6e73 7461 6c6c 6564 0a3c 2f63  it_installed.Remediation Ans
│ │ │ +00091060: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00091070: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:low
Disrup │ │ │ -000914d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000914e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00091520: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00091530: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00091140: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00091150: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000911a0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000911b0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000911c0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000911d0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000911e0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000911f0: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ +00091200: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00091210: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ +00091220: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00091230: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ +00091240: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ +00091250: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ +00091260: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ +00091270: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ +00091280: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00091290: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +000912a0: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +000912b0: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +000912c0: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +000912d0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +000912e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +000912f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00091300: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00091310: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00091320: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00091330: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +00091340: 7564 6974 5f69 6e73 7461 6c6c 6564 0a0a  udit_installed..
│ │ │ +00091350: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ +00091360: 7564 6974 6420 6973 2069 6e73 7461 6c6c  uditd is install
│ │ │ +00091370: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +00091380: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00091390: 2020 6e61 6d65 3a20 6175 6469 7464 0a20    name: auditd. 
│ │ │ +000913a0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +000913b0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +000913c0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +000913d0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000913e0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +000913f0: 4953 542d 3830 302d 3533 2d41 432d 3728  IST-800-53-AC-7(
│ │ │ +00091400: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00091410: 3533 2d41 552d 3132 2832 290a 2020 2d20  53-AU-12(2).  - 
│ │ │ +00091420: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +00091430: 340a 2020 2d20 4e49 5354 2d38 3030 2d35  4.  - NIST-800-5
│ │ │ +00091440: 332d 4155 2d32 2861 290a 2020 2d20 4e49  3-AU-2(a).  - NI
│ │ │ +00091450: 5354 2d38 3030 2d35 332d 4155 2d37 2831  ST-800-53-AU-7(1
│ │ │ +00091460: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00091470: 332d 4155 2d37 2832 290a 2020 2d20 4e49  3-AU-7(2).  - NI
│ │ │ +00091480: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00091490: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +000914a0: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ +000914b0: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ +000914c0: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ +000914d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000914e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000914f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00091500: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00091510: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00091520: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00091530: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ +00091540: 6469 745f 696e 7374 616c 6c65 640a 3c2f  dit_installed.
Re │ │ │ +00091600: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00091610: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00091620: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +00091120: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00091130: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00091170: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00091180: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +000916c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00091710: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000916a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000916d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000916f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00091700: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00091720: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00091730: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00091750: 7564 6520 696e 7374 616c 6c5f 6175 6469  ude install_audi
│ │ │ +00091760: 7464 0a0a 636c 6173 7320 696e 7374 616c  td..class instal
│ │ │ +00091770: 6c5f 6175 6469 7464 207b 0a20 2070 6163  l_auditd {.  pac
│ │ │ +00091780: 6b61 6765 207b 2027 6175 6469 7464 273a  kage { 'auditd':
│ │ │ +00091790: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000917a0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000917b0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00091870: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00091880: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +000918e0: 616d 6520 3d20 2261 7564 6974 6422 0a76  ame = "auditd".v
│ │ │ +000918f0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00091910: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Re │ │ │ -00093530: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00093540: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00093550: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00093560: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00093570: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00093580: 7365 2220 6964 3d22 6964 3135 3822 3e3c se" id="id158">< │ │ │ -00093590: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -000935a0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -000935b0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -000935c0: 2261 7564 6974 6422 5d0a 3c2f 636f 6465 "auditd"].
Remedi │ │ │ -00093680: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00093690: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000936a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000936d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00093740: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00093760: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00093790: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000937b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00093720: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00093730: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00093770: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00093780: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000937d0: 656e 6162 6c65 5f61 7564 6974 640a 0a63 enable_auditd..c │ │ │ -000937e0: 6c61 7373 2065 6e61 626c 655f 6175 6469 lass enable_audi │ │ │ -000937f0: 7464 207b 0a20 2073 6572 7669 6365 207b td {. service { │ │ │ -00093800: 2761 7564 6974 6427 3a0a 2020 2020 656e 'auditd':. en │ │ │ -00093810: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ -00093820: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00093830: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ -00093840: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ -00093850: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00093900: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00093910: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00093990: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000939b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00093a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00093a30: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00093a50: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00093a60: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00093a70: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00093a80: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00093a90: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ -00093aa0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -00093ab0: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ -00093ac0: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ -00093ad0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00093ae0: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ -00093af0: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ -00093b00: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -00093b10: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ -00093b20: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ -00093b30: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00093b40: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ -00093b50: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ -00093b60: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ -00093b70: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ -00093b80: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ -00093b90: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00093ba0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093bb0: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ -00093bc0: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -00093bd0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00093be0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00093bf0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -00093c00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00093c10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00093c20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00093c30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00093c40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00093c50: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00093c60: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ -00093c70: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -00093c80: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ -00093c90: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ -00093ca0: 7669 6365 2061 7564 6974 640a 2020 626c  vice auditd.  bl
│ │ │ -00093cb0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00093cc0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00093cd0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00093ce0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00093cf0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00093d00: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00093d10: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00093d20: 6520 6175 6469 7464 2053 6572 7669 6365  e auditd Service
│ │ │ -00093d30: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00093d40: 6520 6175 6469 7464 0a20 2020 2061 6e73  e auditd.    ans
│ │ │ -00093d50: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00093d60: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00093d70: 3a20 6175 6469 7464 0a20 2020 2020 2065  : auditd.      e
│ │ │ -00093d80: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00093d90: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -00093da0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00093db0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00093dc0: 2020 2020 2d20 2722 6175 6469 7464 2220      - '"auditd" 
│ │ │ -00093dd0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00093de0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00093df0: 733a 0a20 202d 2043 4a49 532d 352e 342e  s:.  - CJIS-5.4.
│ │ │ -00093e00: 312e 310a 2020 2d20 4e49 5354 2d38 3030  1.1.  - NIST-800
│ │ │ -00093e10: 2d31 3731 2d33 2e33 2e31 0a20 202d 204e  -171-3.3.1.  - N
│ │ │ -00093e20: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -00093e30: 320a 2020 2d20 4e49 5354 2d38 3030 2d31  2.  - NIST-800-1
│ │ │ -00093e40: 3731 2d33 2e33 2e36 0a20 202d 204e 4953  71-3.3.6.  - NIS
│ │ │ -00093e50: 542d 3830 302d 3533 2d41 432d 3228 6729  T-800-53-AC-2(g)
│ │ │ -00093e60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093e70: 2d41 432d 3628 3929 0a20 202d 204e 4953  -AC-6(9).  - NIS
│ │ │ -00093e80: 542d 3830 302d 3533 2d41 552d 3130 0a20  T-800-53-AU-10. 
│ │ │ -00093e90: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00093ea0: 552d 3132 2863 290a 2020 2d20 4e49 5354  U-12(c).  - NIST
│ │ │ -00093eb0: 2d38 3030 2d35 332d 4155 2d31 3428 3129  -800-53-AU-14(1)
│ │ │ -00093ec0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00093ed0: 2d41 552d 3228 6429 0a20 202d 204e 4953  -AU-2(d).  - NIS
│ │ │ -00093ee0: 542d 3830 302d 3533 2d41 552d 330a 2020  T-800-53-AU-3.  
│ │ │ -00093ef0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00093f00: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00093f10: 3030 2d35 332d 5349 2d34 2832 3329 0a20  00-53-SI-4(23). 
│ │ │ -00093f20: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -00093f30: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ -00093f40: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ -00093f50: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ -00093f60: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00093f70: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00093f80: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00093f90: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00093fa0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00093fb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00093fc0: 202d 2073 6572 7669 6365 5f61 7564 6974   - service_audit
│ │ │ -00093fd0: 645f 656e 6162 6c65 640a 2020 2d20 7370  d_enabled.  - sp
│ │ │ -00093fe0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -00093ff0: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20  ock.  when:.  - 
│ │ │ -00094000: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00094010: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00094020: 6163 6b61 6765 7327 0a20 202d 2027 2261  ackages'.  - '"a
│ │ │ -00094030: 7564 6974 6422 2069 6e20 616e 7369 626c  uditd" in ansibl
│ │ │ -00094040: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00094050: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00093530: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +00093540: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:< │ │ │ -000939a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000939c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00093a10: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00093a20: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +000935e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000935f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00093640: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00093680: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00093690: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000936a0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000936b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000936c0: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ +000936d0: 532d 352e 342e 312e 310a 2020 2d20 4e49  S-5.4.1.1.  - NI
│ │ │ +000936e0: 5354 2d38 3030 2d31 3731 2d33 2e33 2e31  ST-800-171-3.3.1
│ │ │ +000936f0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +00093700: 312d 332e 332e 320a 2020 2d20 4e49 5354  1-3.3.2.  - NIST
│ │ │ +00093710: 2d38 3030 2d31 3731 2d33 2e33 2e36 0a20  -800-171-3.3.6. 
│ │ │ +00093720: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00093730: 432d 3228 6729 0a20 202d 204e 4953 542d  C-2(g).  - NIST-
│ │ │ +00093740: 3830 302d 3533 2d41 432d 3628 3929 0a20  800-53-AC-6(9). 
│ │ │ +00093750: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00093760: 552d 3130 0a20 202d 204e 4953 542d 3830  U-10.  - NIST-80
│ │ │ +00093770: 302d 3533 2d41 552d 3132 2863 290a 2020  0-53-AU-12(c).  
│ │ │ +00093780: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00093790: 2d31 3428 3129 0a20 202d 204e 4953 542d  -14(1).  - NIST-
│ │ │ +000937a0: 3830 302d 3533 2d41 552d 3228 6429 0a20  800-53-AU-2(d). 
│ │ │ +000937b0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +000937c0: 552d 330a 2020 2d20 4e49 5354 2d38 3030  U-3.  - NIST-800
│ │ │ +000937d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000937e0: 4e49 5354 2d38 3030 2d35 332d 5349 2d34  NIST-800-53-SI-4
│ │ │ +000937f0: 2832 3329 0a20 202d 2050 4349 2d44 5353  (23).  - PCI-DSS
│ │ │ +00093800: 2d52 6571 2d31 302e 310a 2020 2d20 5043  -Req-10.1.  - PC
│ │ │ +00093810: 492d 4453 5376 342d 3130 2e32 0a20 202d  I-DSSv4-10.2.  -
│ │ │ +00093820: 2050 4349 2d44 5353 7634 2d31 302e 322e   PCI-DSSv4-10.2.
│ │ │ +00093830: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00093840: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00093850: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00093860: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00093870: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00093880: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00093890: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000938a0: 5f61 7564 6974 645f 656e 6162 6c65 640a  _auditd_enabled.
│ │ │ +000938b0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +000938c0: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ +000938d0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +000938e0: 6175 6469 7464 0a20 2062 6c6f 636b 3a0a  auditd.  block:.
│ │ │ +000938f0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +00093900: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00093910: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +00093920: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +00093930: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +00093940: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +00093950: 6e61 6d65 3a20 456e 6162 6c65 2061 7564  name: Enable aud
│ │ │ +00093960: 6974 6420 5365 7276 6963 6520 2d20 456e  itd Service - En
│ │ │ +00093970: 6162 6c65 2053 6572 7669 6365 2061 7564  able Service aud
│ │ │ +00093980: 6974 640a 2020 2020 616e 7369 626c 652e  itd.    ansible.
│ │ │ +00093990: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +000939a0: 0a20 2020 2020 206e 616d 653a 2061 7564  .      name: aud
│ │ │ +000939b0: 6974 640a 2020 2020 2020 656e 6162 6c65  itd.      enable
│ │ │ +000939c0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +000939d0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +000939e0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +000939f0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00093a00: 2027 2261 7564 6974 6422 2069 6e20 616e   '"auditd" in an
│ │ │ +00093a10: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00093a20: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00093a30: 2d20 434a 4953 2d35 2e34 2e31 2e31 0a20  - CJIS-5.4.1.1. 
│ │ │ +00093a40: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00093a50: 332e 332e 310a 2020 2d20 4e49 5354 2d38  3.3.1.  - NIST-8
│ │ │ +00093a60: 3030 2d31 3731 2d33 2e33 2e32 0a20 202d  00-171-3.3.2.  -
│ │ │ +00093a70: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +00093a80: 332e 360a 2020 2d20 4e49 5354 2d38 3030  3.6.  - NIST-800
│ │ │ +00093a90: 2d35 332d 4143 2d32 2867 290a 2020 2d20  -53-AC-2(g).  - 
│ │ │ +00093aa0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +00093ab0: 2839 290a 2020 2d20 4e49 5354 2d38 3030  (9).  - NIST-800
│ │ │ +00093ac0: 2d35 332d 4155 2d31 300a 2020 2d20 4e49  -53-AU-10.  - NI
│ │ │ +00093ad0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +00093ae0: 6329 0a20 202d 204e 4953 542d 3830 302d  c).  - NIST-800-
│ │ │ +00093af0: 3533 2d41 552d 3134 2831 290a 2020 2d20  53-AU-14(1).  - 
│ │ │ +00093b00: 4e49 5354 2d38 3030 2d35 332d 4155 2d32  NIST-800-53-AU-2
│ │ │ +00093b10: 2864 290a 2020 2d20 4e49 5354 2d38 3030  (d).  - NIST-800
│ │ │ +00093b20: 2d35 332d 4155 2d33 0a20 202d 204e 4953  -53-AU-3.  - NIS
│ │ │ +00093b30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00093b40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00093b50: 2d53 492d 3428 3233 290a 2020 2d20 5043  -SI-4(23).  - PC
│ │ │ +00093b60: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +00093b70: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00093b80: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00093b90: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +00093ba0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00093bb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00093bc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00093bd0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00093be0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00093bf0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00093c00: 7276 6963 655f 6175 6469 7464 5f65 6e61  rvice_auditd_ena
│ │ │ +00093c10: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00093c20: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00093c30: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ +00093c40: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00093c50: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00093c60: 6573 270a 2020 2d20 2722 6175 6469 7464  es'.  - '"auditd
│ │ │ +00093c70: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00093c80: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00093ca0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00093d40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00093d50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00093d60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +000935d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00093600: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00093610: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00093650: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00093660: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00093de0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00093e10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00093e30: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00093e40: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00093e60: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00093e80: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00093e90: 6465 2065 6e61 626c 655f 6175 6469 7464  de enable_auditd
│ │ │ +00093ea0: 0a0a 636c 6173 7320 656e 6162 6c65 5f61  ..class enable_a
│ │ │ +00093eb0: 7564 6974 6420 7b0a 2020 7365 7276 6963  uditd {.  servic
│ │ │ +00093ec0: 6520 7b27 6175 6469 7464 273a 0a20 2020  e {'auditd':.   
│ │ │ +00093ed0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ +00093ee0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ +00093ef0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ +00093f00: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00093fc0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00093fd0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00093fe0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +00094030: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +00094040: 626c 6564 203d 205b 2261 7564 6974 6422  bled = ["auditd"
│ │ │ +00094050: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00094060: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
'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: │ │ │ │ @@ -1906,14 +1889,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -1943,31 +1943,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2004,14 +1987,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2043,31 +2043,14 @@ │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _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: │ │ │ │ @@ -2090,14 +2073,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/ │ │ │ │ @@ -2129,31 +2129,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ _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] │ │ │ │ -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: │ │ │ │ @@ -2190,14 +2173,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/ │ │ │ │ @@ -4477,31 +4477,14 @@ │ │ │ │ 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 │ │ │ │ _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: │ │ │ │ @@ -4528,14 +4511,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/ │ │ │ │ @@ -4574,27 +4574,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' │ │ │ │ @@ -4607,14 +4594,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 │ │ │ │ @@ -4629,27 +4629,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -4658,14 +4645,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 │ │ │ │ @@ -4681,27 +4681,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: │ │ │ │ @@ -4710,14 +4697,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 │ │ │ │ @@ -4750,27 +4750,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' │ │ │ │ @@ -4783,14 +4770,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 │ │ │ │ @@ -4824,27 +4824,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -4856,14 +4843,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 │ │ │ │ @@ -4939,31 +4939,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -4988,14 +4971,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ │ │ @@ -5029,31 +5029,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5098,14 +5081,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" 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_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + 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 = ["ntp"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -6007,31 +6007,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -6072,14 +6055,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/ │ │ │ │ @@ -6150,31 +6150,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -6241,14 +6224,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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian11-guide-standard.html │ │ │ @@ -19750,128 +19750,128 @@ │ │ │ 0004d250: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 0004d260: 6765 743d 2223 6964 3234 2220 7461 6269 get="#id24" tabi │ │ │ 0004d270: 6e64 6578 3d22 3022 2072 6f6c 653d 2262 ndex="0" role="b │ │ │ 0004d280: 7574 746f 6e22 2061 7269 612d 6578 7061 utton" aria-expa │ │ │ 0004d290: 6e64 6564 3d22 6661 6c73 6522 2074 6974 nded="false" tit │ │ │ 0004d2a0: 6c65 3d22 4163 7469 7661 7465 2074 6f20 le="Activate to │ │ │ 0004d2b0: 7265 7665 616c 2220 6872 6566 3d22 2321 reveal" href="#! │ │ │ -0004d2c0: 223e 5265 6d65 6469 6174 696f 6e20 4f53 ">Remediation OS │ │ │ -0004d2d0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0004d2e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0004d2f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[[
│ │ │ -0004d330: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -0004d340: 3d20 2272 7379 736c 6f67 220a 7665 7273  = "rsyslog".vers
│ │ │ -0004d350: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -0004d410: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0004d420: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0004d430: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0004d440: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0004d450: 7365 2220 6964 3d22 6964 3235 223e 3c74 se" id="id25"> │ │ │ -0004d4a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0004d4b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0004d4c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0004d500: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0004d510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0004d530: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0004d550: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0004d560: 7374 616c 6c5f 7273 7973 6c6f 670a 0a63  stall_rsyslog..c
│ │ │ -0004d570: 6c61 7373 2069 6e73 7461 6c6c 5f72 7379  lass install_rsy
│ │ │ -0004d580: 736c 6f67 207b 0a20 2070 6163 6b61 6765  slog {.  package
│ │ │ -0004d590: 207b 2027 7273 7973 6c6f 6727 3a0a 2020   { 'rsyslog':.  
│ │ │ -0004d5a0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0004d5b0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -0004d5c0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0004d5d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -0004d680: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0004d690: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -0004d760: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0004d770: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0004d7c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0004d7d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0004d7e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0004d7f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0004d800: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -0004d810: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0004d820: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -0004d830: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0004d840: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0004d850: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0004d860: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0004d870: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0004d880: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0004d890: 655f 7273 7973 6c6f 675f 696e 7374 616c  e_rsyslog_instal
│ │ │ -0004d8a0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -0004d8b0: 7572 6520 7273 7973 6c6f 6720 6973 2069  ure rsyslog is i
│ │ │ -0004d8c0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -0004d8d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0004d8e0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ -0004d8f0: 7973 6c6f 670a 2020 2020 7374 6174 653a  yslog.    state:
│ │ │ -0004d900: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -0004d910: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0004d920: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0004d930: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -0004d940: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0004d950: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -0004d960: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0004d970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0004d980: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0004d990: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0004d9a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0004d9b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0004d9c0: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ -0004d9d0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.Remediation An
│ │ │ +0004d2d0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +0004d2e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity:low
Disrup │ │ │ -0004d740: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0004d750: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0004d790: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0004d7a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +0004d3b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0004d3c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0004d410: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0004d420: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0004d430: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0004d440: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0004d450: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0004d460: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0004d470: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +0004d480: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0004d490: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0004d4a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0004d4b0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0004d4c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0004d4d0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0004d4e0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ +0004d4f0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +0004d500: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ +0004d510: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +0004d520: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0004d530: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0004d540: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ +0004d550: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0004d560: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0004d570: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0004d580: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0004d590: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0004d5a0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +0004d5b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0004d5c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0004d5d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0004d5e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0004d5f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0004d600: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0004d610: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +0004d620: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.
< │ │ │ +0004d640: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0004d650: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0004d660: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0004d670: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0004d680: 6432 3522 2074 6162 696e 6465 783d 2230 d25" tabindex="0 │ │ │ +0004d690: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +0004d6a0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +0004d6b0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +0004d6c0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +0004d6d0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +0004d6e0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0004d6f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0004d730: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0004d390: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0004d3a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0004d3e0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0004d3f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0004d7a0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0004d7c0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0004d7f0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0004d810: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0004d780: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0004d790: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0004d7d0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0004d7e0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0004d830: 696e 7374 616c 6c5f 7273 7973 6c6f 670a install_rsyslog. │ │ │ +0004d840: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f72 .class install_r │ │ │ +0004d850: 7379 736c 6f67 207b 0a20 2070 6163 6b61 syslog {. packa │ │ │ +0004d860: 6765 207b 2027 7273 7973 6c6f 6727 3a0a ge { 'rsyslog':. │ │ │ +0004d870: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +0004d880: 2027 696e 7374 616c 6c65 6427 2c0a 2020 'installed',. │ │ │ +0004d890: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation O │ │ │ +0004d950: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0004d960: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0004d970: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +0004d9b0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +0004d9c0: 203d 2022 7273 7973 6c6f 6722 0a76 6572   = "rsyslog".ver
│ │ │ +0004d9d0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation O │ │ │ -0004ebf0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0004ec00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0004ec10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -0004ec50: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ -0004ec60: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ -0004ec70: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │ -0004ec80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0004ed30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0004ed40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0004ed50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0004edd0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0004ee00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0004ee20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0004ee30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0004ee50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0004ee70: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0004ee80: 6465 2065 6e61 626c 655f 7273 7973 6c6f  de enable_rsyslo
│ │ │ -0004ee90: 670a 0a63 6c61 7373 2065 6e61 626c 655f  g..class enable_
│ │ │ -0004eea0: 7273 7973 6c6f 6720 7b0a 2020 7365 7276  rsyslog {.  serv
│ │ │ -0004eeb0: 6963 6520 7b27 7273 7973 6c6f 6727 3a0a  ice {'rsyslog':.
│ │ │ -0004eec0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -0004eed0: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ -0004eee0: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ -0004eef0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0004ef00: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -0004efb0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0004efc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0004efd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0004efe0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0004eff0: 7365 2220 6964 3d22 6964 3331 223e 3c74 se" id="id31"> │ │ │ -0004f040: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0004f050: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0004f060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0004f0a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0004f0b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0004f0d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0004f0f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0004f100: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0004f110: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0004f120: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0004f130: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0004f140: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0004f150: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -0004f160: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0004f170: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -0004f180: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0004f190: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0004f1a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0004f1b0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0004f1c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0004f1d0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0004f1e0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -0004f1f0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -0004f200: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -0004f210: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -0004f220: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ -0004f230: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -0004f240: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0004f250: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -0004f260: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0004f270: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -0004f280: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -0004f290: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -0004f2a0: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -0004f2b0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -0004f2c0: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ -0004f2d0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0004f2e0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0004f2f0: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ -0004f300: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -0004f310: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -0004f320: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0004f330: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -0004f340: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ -0004f350: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0004f360: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0004f370: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0004f380: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ -0004f390: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0004f3a0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -0004f3b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0004f3c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0004f3d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0004f3e0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0004f3f0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0004f400: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0004f410: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ -0004f420: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -0004f430: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -0004f440: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -0004f450: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -0004f460: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0004ebe0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +0004ebf0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0004ec00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
< │ │ │ +0004ec80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0004eca0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0004ecf0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +0004ed40: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0004ed50: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0004ed60: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0004ed70: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0004ed80: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +0004ed90: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +0004eda0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0004edb0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0004edc0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0004edd0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0004ede0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0004edf0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0004ee00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0004ee10: 2020 2d20 7365 7276 6963 655f 7273 7973    - service_rsys
│ │ │ +0004ee20: 6c6f 675f 656e 6162 6c65 640a 0a2d 206e  log_enabled..- n
│ │ │ +0004ee30: 616d 653a 2045 6e61 626c 6520 7273 7973  ame: Enable rsys
│ │ │ +0004ee40: 6c6f 6720 5365 7276 6963 6520 2d20 456e  log Service - En
│ │ │ +0004ee50: 6162 6c65 2073 6572 7669 6365 2072 7379  able service rsy
│ │ │ +0004ee60: 736c 6f67 0a20 2062 6c6f 636b 3a0a 0a20  slog.  block:.. 
│ │ │ +0004ee70: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +0004ee80: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0004ee90: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +0004eea0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +0004eeb0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +0004eec0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +0004eed0: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ +0004eee0: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ +0004eef0: 626c 6520 5365 7276 6963 6520 7273 7973  ble Service rsys
│ │ │ +0004ef00: 6c6f 670a 2020 2020 616e 7369 626c 652e  log.    ansible.
│ │ │ +0004ef10: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0004ef20: 0a20 2020 2020 206e 616d 653a 2072 7379  .      name: rsy
│ │ │ +0004ef30: 736c 6f67 0a20 2020 2020 2065 6e61 626c  slog.      enabl
│ │ │ +0004ef40: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +0004ef50: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +0004ef60: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +0004ef70: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +0004ef80: 2d20 2722 7273 7973 6c6f 6722 2069 6e20  - '"rsyslog" in 
│ │ │ +0004ef90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0004efa0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +0004efb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0004efc0: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +0004efd0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0004efe0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0004eff0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0004f000: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0004f010: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0004f020: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0004f030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0004f040: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +0004f050: 7379 736c 6f67 5f65 6e61 626c 6564 0a20  syslog_enabled. 
│ │ │ +0004f060: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0004f070: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +0004f080: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0004f090: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0004f0a0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedia │ │ │ +0004f160: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0004f170: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0004f180: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0004f190: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0004f1a0: 7365 2220 6964 3d22 6964 3330 223e 3c74 se" id="id30"> │ │ │ +0004f1f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ +0004f280: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disr │ │ │ +0004ecb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0004ecc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0004ed00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0004ed10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +0004f200: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0004f210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0004f250: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0004f260: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0004f2a0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +0004f2b0: 6162 6c65 5f72 7379 736c 6f67 0a0a 636c  able_rsyslog..cl
│ │ │ +0004f2c0: 6173 7320 656e 6162 6c65 5f72 7379 736c  ass enable_rsysl
│ │ │ +0004f2d0: 6f67 207b 0a20 2073 6572 7669 6365 207b  og {.  service {
│ │ │ +0004f2e0: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ +0004f2f0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +0004f300: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +0004f310: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +0004f320: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +0004f3e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0004f3f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0004f400: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +0004f440: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0004f450: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +0004f460: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │  0004f470: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation O │ │ │ -00070180: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00070190: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000701a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -000701e0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000701f0: 203d 2022 6372 6f6e 220a 7665 7273 696f   = "cron".versio
│ │ │ -00070200: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00070210: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -000702c0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000702d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00070360: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00070380: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00070390: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000703a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000703b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000703d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -00070410: 616c 6c5f 6372 6f6e 0a0a 636c 6173 7320  all_cron..class 
│ │ │ -00070420: 696e 7374 616c 6c5f 6372 6f6e 207b 0a20  install_cron {. 
│ │ │ -00070430: 2070 6163 6b61 6765 207b 2027 6372 6f6e   package { 'cron
│ │ │ -00070440: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00070450: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -00070460: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ -00070520: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00070530: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -000705c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000705e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000705f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00070600: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00070610: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00070630: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00070670: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00070680: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00070690: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000706a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000706b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000706c0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -000706d0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -000706e0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -000706f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00070700: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00070710: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00070720: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00070730: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00070740: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00070750: 0a20 202d 2070 6163 6b61 6765 5f63 726f  .  - package_cro
│ │ │ -00070760: 6e5f 696e 7374 616c 6c65 640a 0a2d 206e  n_installed..- n
│ │ │ -00070770: 616d 653a 2045 6e73 7572 6520 6372 6f6e  ame: Ensure cron
│ │ │ -00070780: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00070790: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000707a0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000707b0: 653a 2063 726f 6e0a 2020 2020 7374 6174  e: cron.    stat
│ │ │ -000707c0: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -000707d0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -000707e0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000707f0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00070800: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00070810: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00070820: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ -00070830: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ -00070840: 360a 2020 2d20 656e 6162 6c65 5f73 7472  6.  - enable_str
│ │ │ -00070850: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00070860: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00070870: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00070880: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00070890: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000708a0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -000708b0: 5f63 726f 6e5f 696e 7374 616c 6c65 640a  _cron_installed.
│ │ │ +00070170: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00070180: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00070190: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
< │ │ │ +00070210: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00070230: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00070280: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000702d0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000702e0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000702f0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00070300: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00070310: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00070320: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00070330: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00070340: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ +00070350: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +00070360: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00070370: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00070380: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00070390: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000703a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000703b0: 2d20 7061 636b 6167 655f 6372 6f6e 5f69  - package_cron_i
│ │ │ +000703c0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +000703d0: 3a20 456e 7375 7265 2063 726f 6e20 6973  : Ensure cron is
│ │ │ +000703e0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000703f0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00070400: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00070410: 6372 6f6e 0a20 2020 2073 7461 7465 3a20  cron.    state: 
│ │ │ +00070420: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +00070430: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00070440: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00070450: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00070460: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00070470: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00070480: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00070490: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +000704a0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000704b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000704c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000704d0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000704e0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000704f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00070500: 640a 2020 2d20 7061 636b 6167 655f 6372  d.  - package_cr
│ │ │ +00070510: 6f6e 5f69 6e73 7461 6c6c 6564 0a3c 2f63  on_installed.
│ │ │ +00070530: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +000705d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000705e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00070240: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00070250: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00070290: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000702a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00070690: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000706b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000706e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00070670: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00070680: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000706a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000706c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000706d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00070720: 2069 6e73 7461 6c6c 5f63 726f 6e0a 0a63 install_cron..c │ │ │ +00070730: 6c61 7373 2069 6e73 7461 6c6c 5f63 726f lass install_cro │ │ │ +00070740: 6e20 7b0a 2020 7061 636b 6167 6520 7b20 n {. package { │ │ │ +00070750: 2763 726f 6e27 3a0a 2020 2020 656e 7375 'cron':. ensu │ │ │ +00070760: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +00070770: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +00070790: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000707a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000707b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000707c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000707d0: 6438 3722 2074 6162 696e 6465 783d 2230 d87" tabindex="0 │ │ │ +000707e0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +000707f0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00070800: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00070810: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00070820: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00070830: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00070840: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00070850: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +00070890: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000708a0: 735d 5d0a 6e61 6d65 203d 2022 6372 6f6e  s]].name = "cron
│ │ │ +000708b0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  000708c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -00071a80: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00071a90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -00071ae0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00071af0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -00071b00: 6420 3d20 5b22 6372 6f6e 225d 0a3c 2f63  d = ["cron"].
│ │ │ -00071b20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00071bc0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00071bd0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00071c80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00071ca0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00071cd0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00071c60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00071c70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00071c90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00071cb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00071cc0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Rem │ │ │ -00071e30: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00071e40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00071e50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -00071ed0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00071f00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00071f20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00071f30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00071f50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00071f70: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00071f80: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00071f90: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00071fa0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00071fb0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00071fc0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00071fd0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00071fe0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00071ff0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00072000: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00072010: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00072020: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00072030: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00072040: 640a 2020 2d20 7365 7276 6963 655f 6372  d.  - service_cr
│ │ │ -00072050: 6f6e 5f65 6e61 626c 6564 0a0a 2d20 6e61  on_enabled..- na
│ │ │ -00072060: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ -00072070: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00072080: 2073 6572 7669 6365 2063 726f 6e0a 2020   service cron.  
│ │ │ -00072090: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -000720a0: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -000720b0: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -000720c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -000720d0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000720e0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000720f0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ -00072100: 626c 6520 6372 6f6e 2053 6572 7669 6365  ble cron Service
│ │ │ -00072110: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00072120: 6520 6372 6f6e 0a20 2020 2061 6e73 6962  e cron.    ansib
│ │ │ -00072130: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00072140: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00072150: 6372 6f6e 0a20 2020 2020 2065 6e61 626c  cron.      enabl
│ │ │ -00072160: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ -00072170: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ -00072180: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ -00072190: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ -000721a0: 2d20 2722 6372 6f6e 2220 696e 2061 6e73  - '"cron" in ans
│ │ │ -000721b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000721c0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000721d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000721e0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000721f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00072200: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00072210: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00072220: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00072230: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00072240: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00072250: 6963 655f 6372 6f6e 5f65 6e61 626c 6564  ice_cron_enabled
│ │ │ -00072260: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00072270: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00072280: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00072290: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000722a0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
│ │ │ +00071b10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00071b30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00071b80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00071bb0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00071bd0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00071be0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00071bf0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00071c00: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00071c10: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00071c20: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00071c30: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00071c40: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00071c50: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00071c60: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00071c70: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00071c80: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00071c90: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ +00071ca0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +00071cb0: 6520 6372 6f6e 2053 6572 7669 6365 202d  e cron Service -
│ │ │ +00071cc0: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00071cd0: 6372 6f6e 0a20 2062 6c6f 636b 3a0a 0a20  cron.  block:.. 
│ │ │ +00071ce0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00071cf0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00071d00: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00071d10: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00071d20: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00071d30: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00071d40: 6d65 3a20 456e 6162 6c65 2063 726f 6e20  me: Enable cron 
│ │ │ +00071d50: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +00071d60: 2053 6572 7669 6365 2063 726f 6e0a 2020   Service cron.  
│ │ │ +00071d70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00071d80: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00071d90: 206e 616d 653a 2063 726f 6e0a 2020 2020   name: cron.    
│ │ │ +00071da0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00071db0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00071dc0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00071dd0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +00071de0: 6e3a 0a20 2020 202d 2027 2263 726f 6e22  n:.    - '"cron"
│ │ │ +00071df0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00071e00: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00071e10: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00071e20: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00071e30: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00071e40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00071e50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00071e60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00071e70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00071e80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00071e90: 202d 2073 6572 7669 6365 5f63 726f 6e5f   - service_cron_
│ │ │ +00071ea0: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ +00071eb0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +00071ec0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +00071ed0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00071ee0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00071ef0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00071f00: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation Pu │ │ │ +00071fb0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00071fc0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ +00071b20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00071b40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00071b90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00071ba0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00072090: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000720a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +000720f0: 6e63 6c75 6465 2065 6e61 626c 655f 6372  nclude enable_cr
│ │ │ +00072100: 6f6e 0a0a 636c 6173 7320 656e 6162 6c65  on..class enable
│ │ │ +00072110: 5f63 726f 6e20 7b0a 2020 7365 7276 6963  _cron {.  servic
│ │ │ +00072120: 6520 7b27 6372 6f6e 273a 0a20 2020 2065  e {'cron':.    e
│ │ │ +00072130: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +00072140: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00072150: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +00072160: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +00072220: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00072230: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00072240: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +00072280: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00072290: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +000722a0: 203d 205b 2263 726f 6e22 5d0a 3c2f 636f   = ["cron"].
< │ │ │ 000722c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000722d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000722e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000722f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00072300: 6439 3322 2074 6162 696e 6465 783d 2230 d93" tabindex="0 │ │ │ 00072310: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -29569,99 +29569,99 @@ │ │ │ 00073800: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 00073810: 2369 6439 3522 2074 6162 696e 6465 783d #id95" tabindex= │ │ │ 00073820: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ 00073830: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ 00073840: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ 00073850: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ 00073860: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00073870: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00073880: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00073890: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +00072070: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00072080: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000720c0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000720d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00073910: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00073920: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00073940: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00073960: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00073970: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -000739b0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -000739c0: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ -000739d0: 7469 6c73 2d74 656c 6e65 7464 0a0a 636c  tils-telnetd..cl
│ │ │ -000739e0: 6173 7320 7265 6d6f 7665 5f69 6e65 7475  ass remove_inetu
│ │ │ -000739f0: 7469 6c73 2d74 656c 6e65 7464 207b 0a20  tils-telnetd {. 
│ │ │ -00073a00: 2070 6163 6b61 6765 207b 2027 696e 6574   package { 'inet
│ │ │ -00073a10: 7574 696c 732d 7465 6c6e 6574 6427 3a0a  utils-telnetd':.
│ │ │ -00073a20: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00073a30: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00073a40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00073af0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00073b00: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00073b10: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00073ba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00073c40: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00073c50: 6c20 7468 6520 696e 6574 2d62 6173 6564  l the inet-based
│ │ │ -00073c60: 2074 656c 6e65 7420 7365 7276 6572 3a20   telnet server: 
│ │ │ -00073c70: 456e 7375 7265 2069 6e65 7475 7469 6c73  Ensure inetutils
│ │ │ -00073c80: 2d74 656c 6e65 7464 2069 7320 7265 6d6f  -telnetd is remo
│ │ │ -00073c90: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00073ca0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00073cb0: 2020 2020 6e61 6d65 3a20 696e 6574 7574      name: inetut
│ │ │ -00073cc0: 696c 732d 7465 6c6e 6574 640a 2020 2020  ils-telnetd.    
│ │ │ -00073cd0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00073ce0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00073cf0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00073d00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00073d10: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -00073d20: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -00073d30: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00073d40: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -00073d50: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -00073d60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00073d70: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00073d80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00073d90: 2020 2d20 7061 636b 6167 655f 696e 6574    - package_inet
│ │ │ -00073da0: 7574 696c 732d 7465 6c6e 6574 645f 7265  utils-telnetd_re
│ │ │ -00073db0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

│ │ │ +00073890: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -00073b90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00073bc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00073bd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00073c10: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00073c20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00073910: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00073940: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00073960: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00073970: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00073990: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +000739a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000739c0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ +000739d0: 6865 2069 6e65 742d 6261 7365 6420 7465  he inet-based te
│ │ │ +000739e0: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ +000739f0: 7572 6520 696e 6574 7574 696c 732d 7465  ure inetutils-te
│ │ │ +00073a00: 6c6e 6574 6420 6973 2072 656d 6f76 6564  lnetd is removed
│ │ │ +00073a10: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00073a20: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00073a30: 206e 616d 653a 2069 6e65 7475 7469 6c73   name: inetutils
│ │ │ +00073a40: 2d74 656c 6e65 7464 0a20 2020 2073 7461  -telnetd.    sta
│ │ │ +00073a50: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00073a60: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00073a70: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00073a80: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00073a90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00073aa0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00073ab0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00073ac0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +00073ad0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00073ae0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00073af0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +00073b00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00073b10: 2070 6163 6b61 6765 5f69 6e65 7475 7469   package_inetuti
│ │ │ +00073b20: 6c73 2d74 656c 6e65 7464 5f72 656d 6f76  ls-telnetd_remov
│ │ │ +00073b30: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00073b40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +00073bf0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00073c00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +00073cd0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00073ce0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00073d30: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +00073d40: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ +00073d50: 640a 0a63 6c61 7373 2072 656d 6f76 655f  d..class remove_
│ │ │ +00073d60: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ +00073d70: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +00073d80: 2769 6e65 7475 7469 6c73 2d74 656c 6e65  'inetutils-telne
│ │ │ +00073d90: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ +00073da0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00073db0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remedi │ │ │ -00074750: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00074760: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00074770: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000747a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000747b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000747c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000747d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000747e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00074870: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00074880: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ +00073cb0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00073cc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00073d00: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00073d10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -000747f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00074800: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00074840: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00074850: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -000748a0: 2072 656d 6f76 655f 6e69 730a 0a63 6c61 remove_nis..cla │ │ │ -000748b0: 7373 2072 656d 6f76 655f 6e69 7320 7b0a ss remove_nis {. │ │ │ -000748c0: 2020 7061 636b 6167 6520 7b20 276e 6973 package { 'nis │ │ │ -000748d0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -000748e0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -000748f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -000749b0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -000749c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00074a50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00074a70: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00074a90: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00074ac0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00074ad0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00074b00: 6e73 7461 6c6c 2074 6865 206e 6973 2070  nstall the nis p
│ │ │ -00074b10: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -00074b20: 6973 2069 7320 7265 6d6f 7665 6427 0a20  is is removed'. 
│ │ │ -00074b30: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00074b40: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00074b50: 6d65 3a20 6e69 730a 2020 2020 7374 6174  me: nis.    stat
│ │ │ -00074b60: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00074b70: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00074b80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00074b90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00074ba0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00074bb0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00074bc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00074bd0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -00074be0: 6973 5f72 656d 6f76 6564 0a3c 2f63 6f64  is_removed.
│ │ │ +000747a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00074810: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00074830: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00074860: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +000747f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00074800: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00074840: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00074850: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +000748a0: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +000748b0: 6e69 7320 7061 636b 6167 653a 2045 6e73 nis package: Ens │ │ │ +000748c0: 7572 6520 6e69 7320 6973 2072 656d 6f76 ure nis is remov │ │ │ +000748d0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ +000748e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +000748f0: 2020 206e 616d 653a 206e 6973 0a20 2020 name: nis. │ │ │ +00074900: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +00074910: 2074 6167 733a 0a20 202d 2064 6973 6162 tags:. - disab │ │ │ +00074920: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +00074930: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +00074940: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +00074950: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ +00074960: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00074970: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +00074980: 6167 655f 6e69 735f 7265 6d6f 7665 640a age_nis_removed. │ │ │ +00074990: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ +00074a40: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00074a50: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00074af0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00074b90: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +00074ba0: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ +00074bb0: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ +00074bc0: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ +00074bd0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00074be0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00075570: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00075580: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00074ae0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00074b10: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00074b20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00074b60: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00074b70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00075630: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00075650: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00075680: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00075610: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00075620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00075640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00075660: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00075670: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000756b0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -000756c0: 6465 2072 656d 6f76 655f 6e74 7064 6174 de remove_ntpdat │ │ │ -000756d0: 650a 0a63 6c61 7373 2072 656d 6f76 655f e..class remove_ │ │ │ -000756e0: 6e74 7064 6174 6520 7b0a 2020 7061 636b ntpdate {. pack │ │ │ -000756f0: 6167 6520 7b20 276e 7470 6461 7465 273a age { 'ntpdate': │ │ │ -00075700: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00075710: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ -00075720: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ -00075730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000757e0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000757f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00075870: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00075890: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000758e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00075910: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00075930: 7461 6c6c 2074 6865 206e 7470 6461 7465  tall the ntpdate
│ │ │ -00075940: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ -00075950: 206e 7470 6461 7465 2069 7320 7265 6d6f   ntpdate is remo
│ │ │ -00075960: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00075970: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00075980: 2020 2020 6e61 6d65 3a20 6e74 7064 6174      name: ntpdat
│ │ │ -00075990: 650a 2020 2020 7374 6174 653a 2061 6273  e.    state: abs
│ │ │ -000759a0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -000759b0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -000759c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000759d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000759e0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -000759f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00075a00: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00075a10: 2070 6163 6b61 6765 5f6e 7470 6461 7465   package_ntpdate
│ │ │ -00075a20: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00075570: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00075580: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -000758a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000758b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000758f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00075900: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +00075610: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00075620: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00075640: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00075660: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00075670: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +000756b0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000756c0: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +000756d0: 6520 6e74 7064 6174 6520 7061 636b 6167  e ntpdate packag
│ │ │ +000756e0: 653a 2045 6e73 7572 6520 6e74 7064 6174  e: Ensure ntpdat
│ │ │ +000756f0: 6520 6973 2072 656d 6f76 6564 270a 2020  e is removed'.  
│ │ │ +00075700: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00075710: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00075720: 653a 206e 7470 6461 7465 0a20 2020 2073  e: ntpdate.    s
│ │ │ +00075730: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +00075740: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00075750: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00075760: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00075770: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00075780: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +00075790: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000757a0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000757b0: 655f 6e74 7064 6174 655f 7265 6d6f 7665  e_ntpdate_remove
│ │ │ +000757c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000757d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00075880: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00075890: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00075960: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00075970: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +000759d0: 5f6e 7470 6461 7465 0a0a 636c 6173 7320  _ntpdate..class 
│ │ │ +000759e0: 7265 6d6f 7665 5f6e 7470 6461 7465 207b  remove_ntpdate {
│ │ │ +000759f0: 0a20 2070 6163 6b61 6765 207b 2027 6e74  .  package { 'nt
│ │ │ +00075a00: 7064 6174 6527 3a0a 2020 2020 656e 7375  pdate':.    ensu
│ │ │ +00075a10: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00075a20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00075a30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation Pu │ │ │ -00076b00: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00076b10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +00075940: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00075950: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00075990: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +000759a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00076be0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00076bf0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00076c50: 5f74 656c 6e65 7464 2d73 736c 0a0a 636c  _telnetd-ssl..cl
│ │ │ -00076c60: 6173 7320 7265 6d6f 7665 5f74 656c 6e65  ass remove_telne
│ │ │ -00076c70: 7464 2d73 736c 207b 0a20 2070 6163 6b61  td-ssl {.  packa
│ │ │ -00076c80: 6765 207b 2027 7465 6c6e 6574 642d 7373  ge { 'telnetd-ss
│ │ │ -00076c90: 6c27 3a0a 2020 2020 656e 7375 7265 203d  l':.    ensure =
│ │ │ -00076ca0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00076cb0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00076d70: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00076d80: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -00076e40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00076e50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -00076bc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00076bd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00076c10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00076c20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00076e10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00076e30: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00076e60: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00076e80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00076eb0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00076ec0: 696e 7374 616c 6c20 7468 6520 7373 6c20  install the ssl 
│ │ │ -00076ed0: 636f 6d70 6c69 616e 7420 7465 6c6e 6574  compliant telnet
│ │ │ -00076ee0: 2073 6572 7665 723a 2045 6e73 7572 6520   server: Ensure 
│ │ │ -00076ef0: 7465 6c6e 6574 642d 7373 6c20 6973 2072  telnetd-ssl is r
│ │ │ -00076f00: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00076f10: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00076f20: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -00076f30: 6e65 7464 2d73 736c 0a20 2020 2073 7461  netd-ssl.    sta
│ │ │ -00076f40: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00076f50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00076f60: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00076f70: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00076f80: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00076f90: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00076fa0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00076fb0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00076fc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00076fd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00076fe0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00076ff0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00077000: 2070 6163 6b61 6765 5f74 656c 6e65 7464   package_telnetd
│ │ │ -00077010: 2d73 736c 5f72 656d 6f76 6564 0a3c 2f63  -ssl_removed.Remediation An
│ │ │ +00076b00: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00076b10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +00076b90: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00076bb0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00076c00: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00076c30: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00076c50: 7461 6c6c 2074 6865 2073 736c 2063 6f6d  tall the ssl com
│ │ │ +00076c60: 706c 6961 6e74 2074 656c 6e65 7420 7365  pliant telnet se
│ │ │ +00076c70: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +00076c80: 6e65 7464 2d73 736c 2069 7320 7265 6d6f  netd-ssl is remo
│ │ │ +00076c90: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00076ca0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00076cb0: 2020 2020 6e61 6d65 3a20 7465 6c6e 6574      name: telnet
│ │ │ +00076cc0: 642d 7373 6c0a 2020 2020 7374 6174 653a  d-ssl.    state:
│ │ │ +00076cd0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +00076ce0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00076cf0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00076d00: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00076d10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00076d20: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00076d30: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00076d40: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +00076d50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00076d60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00076d70: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00076d80: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00076d90: 636b 6167 655f 7465 6c6e 6574 642d 7373  ckage_telnetd-ss
│ │ │ +00076da0: 6c5f 7265 6d6f 7665 640a 3c2f 636f 6465  l_removed.
Remedi │ │ │ +00076e60: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00076e70: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00076e80: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00076eb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +00076bc0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00076bd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00076c10: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00076c20: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00076f20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00076f40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00076f70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00076f00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00076f10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00076f50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00076f60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00076fb0: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ +00076fc0: 2d73 736c 0a0a 636c 6173 7320 7265 6d6f -ssl..class remo │ │ │ +00076fd0: 7665 5f74 656c 6e65 7464 2d73 736c 207b ve_telnetd-ssl { │ │ │ +00076fe0: 0a20 2070 6163 6b61 6765 207b 2027 7465 . package { 'te │ │ │ +00076ff0: 6c6e 6574 642d 7373 6c27 3a0a 2020 2020 lnetd-ssl':. │ │ │ +00077000: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +00077010: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.

│ │ │ 00077030: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remedi │ │ │ -000780f0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00078100: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00078110: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00078140: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000781b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000781d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00078200: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00078190: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000781a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000781e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000781f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -00078240: 6520 7265 6d6f 7665 5f74 656c 6e65 7464 e remove_telnetd │ │ │ -00078250: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74 ..class remove_t │ │ │ -00078260: 656c 6e65 7464 207b 0a20 2070 6163 6b61 elnetd {. packa │ │ │ -00078270: 6765 207b 2027 7465 6c6e 6574 6427 3a0a ge { 'telnetd':. │ │ │ -00078280: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ -00078290: 2027 7075 7267 6564 272c 0a20 207d 0a7d 'purged',. }.} │ │ │ -000782a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Ans │ │ │ -00078360: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00078370: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ -00078440: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00078450: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -000784b0: 616c 6c20 7468 6520 7465 6c6e 6574 2073  all the telnet s
│ │ │ -000784c0: 6572 7665 723a 2045 6e73 7572 6520 7465  erver: Ensure te
│ │ │ -000784d0: 6c6e 6574 6420 6973 2072 656d 6f76 6564  lnetd is removed
│ │ │ -000784e0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -000784f0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00078500: 206e 616d 653a 2074 656c 6e65 7464 0a20   name: telnetd. 
│ │ │ -00078510: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00078520: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00078530: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00078540: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00078550: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00078560: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00078570: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00078580: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -00078590: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -000785a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000785b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000785c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000785d0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -000785e0: 656c 6e65 7464 5f72 656d 6f76 6564 0a3c  elnetd_removed.<
│ │ │ +000780f0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +00078100: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
low
Disru │ │ │ -00078420: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00078430: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00078470: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00078480: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +000781b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000781d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00078200: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00078190: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000781a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000781c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000781e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000781f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00078230: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00078240: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ +00078250: 2074 656c 6e65 7420 7365 7276 6572 3a20 telnet server: │ │ │ +00078260: 456e 7375 7265 2074 656c 6e65 7464 2069 Ensure telnetd i │ │ │ +00078270: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ +00078280: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00078290: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +000782a0: 7465 6c6e 6574 640a 2020 2020 7374 6174 telnetd. stat │ │ │ +000782b0: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ +000782c0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +000782d0: 332d 434d 2d36 2861 290a 2020 2d20 4e49 3-CM-6(a). - NI │ │ │ +000782e0: 5354 2d38 3030 2d35 332d 434d 2d37 2861 ST-800-53-CM-7(a │ │ │ +000782f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00078300: 332d 434d 2d37 2862 290a 2020 2d20 6469 3-CM-7(b). - di │ │ │ +00078310: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +00078320: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ +00078330: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +00078340: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +00078350: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ +00078360: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00078370: 7061 636b 6167 655f 7465 6c6e 6574 645f package_telnetd_ │ │ │ +00078380: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +00078390: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00078440: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00078450: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +000784d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000784e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000784f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00078530: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00078540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00078560: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00078570: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00078590: 7265 6d6f 7665 5f74 656c 6e65 7464 0a0a  remove_telnetd..
│ │ │ +000785a0: 636c 6173 7320 7265 6d6f 7665 5f74 656c  class remove_tel
│ │ │ +000785b0: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ +000785c0: 207b 2027 7465 6c6e 6574 6427 3a0a 2020   { 'telnetd':.  
│ │ │ +000785d0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000785e0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  000785f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediati │ │ │ -0007a520: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0007a530: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0007a540: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -0007a590: 0a6e 616d 6520 3d20 226e 7470 220a 7665  .name = "ntp".ve
│ │ │ -0007a5a0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0007a5c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007a5d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007a5e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007a5f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007a600: 6431 3136 2220 7461 6269 6e64 6578 3d22 d116" tabindex=" │ │ │ -0007a610: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007a620: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007a630: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007a640: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007a650: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007a660: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0007a670: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0007a700: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007a710: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007a730: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007a750: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007a760: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0007a7a0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0007a7b0: 6520 696e 7374 616c 6c5f 6e74 700a 0a63 e install_ntp..c │ │ │ -0007a7c0: 6c61 7373 2069 6e73 7461 6c6c 5f6e 7470 lass install_ntp │ │ │ -0007a7d0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -0007a7e0: 6e74 7027 3a0a 2020 2020 656e 7375 7265 ntp':. ensure │ │ │ -0007a7f0: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ -0007a800: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ -0007a8c0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007a8d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007a980: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007a9a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007a9d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007a960: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007a970: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007a990: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007a9b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007a9c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0007aa10: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0007aa20: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0007aa30: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0007aa40: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0007aa50: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0007aa60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0007aa70: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -0007aa80: 340a 2020 2d20 656e 6162 6c65 5f73 7472 4. - enable_str │ │ │ -0007aa90: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ -0007aaa0: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ -0007aab0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0007aac0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0007aad0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0007aae0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e ed. - package_n │ │ │ -0007aaf0: 7470 5f69 6e73 7461 6c6c 6564 0a0a 2d20 tp_installed..- │ │ │ -0007ab00: 6e61 6d65 3a20 456e 7375 7265 206e 7470 name: Ensure ntp │ │ │ -0007ab10: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ -0007ab20: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -0007ab30: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ -0007ab40: 653a 206e 7470 0a20 2020 2073 7461 7465 e: ntp. state │ │ │ -0007ab50: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ -0007ab60: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -0007ab70: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -0007ab80: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ -0007ab90: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ -0007aba0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -0007abb0: 4349 2d44 5353 2d52 6571 2d31 302e 340a CI-DSS-Req-10.4. │ │ │ -0007abc0: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ -0007abd0: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ -0007abe0: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ -0007abf0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0007ac00: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0007ac10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0007ac20: 0a20 202d 2070 6163 6b61 6765 5f6e 7470 . - package_ntp │ │ │ -0007ac30: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.
│ │ │ +0007a5b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0007a5c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007a5d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0007a610: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007a620: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0007a640: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +0007a660: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0007a670: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0007a680: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0007a690: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0007a6a0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0007a6b0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0007a6c0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0007a6d0: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +0007a6e0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0007a6f0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +0007a700: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +0007a710: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0007a720: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0007a730: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0007a740: 2020 2d20 7061 636b 6167 655f 6e74 705f    - package_ntp_
│ │ │ +0007a750: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +0007a760: 653a 2045 6e73 7572 6520 6e74 7020 6973  e: Ensure ntp is
│ │ │ +0007a770: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +0007a780: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0007a790: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0007a7a0: 6e74 700a 2020 2020 7374 6174 653a 2070  ntp.    state: p
│ │ │ +0007a7b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +0007a7c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0007a7d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0007a7e0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +0007a7f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0007a800: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0007a810: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +0007a820: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0007a830: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0007a840: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0007a850: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007a860: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0007a870: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007a880: 2d20 7061 636b 6167 655f 6e74 705f 696e  - package_ntp_in
│ │ │ +0007a890: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0007a8a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0007a950: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0007a960: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0007a9e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0007a9f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007aa00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0007aa40: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007aa50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0007aa70: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0007aa90: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +0007aaa0: 7374 616c 6c5f 6e74 700a 0a63 6c61 7373  stall_ntp..class
│ │ │ +0007aab0: 2069 6e73 7461 6c6c 5f6e 7470 207b 0a20   install_ntp {. 
│ │ │ +0007aac0: 2070 6163 6b61 6765 207b 2027 6e74 7027   package { 'ntp'
│ │ │ +0007aad0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0007aae0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +0007aaf0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +0007abb0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0007abc0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0007abd0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ +0007ac20: 6e61 6d65 203d 2022 6e74 7022 0a76 6572  name = "ntp".ver
│ │ │ +0007ac30: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation │ │ │ -0007bde0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0007bdf0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0007be50: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0007be60: 6c65 6420 3d20 5b22 6e74 7022 5d0a 3c2f  led = ["ntp"].
Re │ │ │ -0007bf20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007bf30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007bf40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007bfe0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007c030: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0007bfc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007bff0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007c010: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007c020: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007c040: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0007c050: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -0007c070: 7564 6520 656e 6162 6c65 5f6e 7470 0a0a  ude enable_ntp..
│ │ │ -0007c080: 636c 6173 7320 656e 6162 6c65 5f6e 7470  class enable_ntp
│ │ │ -0007c090: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ -0007c0a0: 7470 273a 0a20 2020 2065 6e61 626c 6520  tp':.    enable 
│ │ │ -0007c0b0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -0007c0c0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -0007c0d0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -0007c190: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0007c1a0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0007c240: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007c250: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007c2a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0007c2e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0007c2f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0007c300: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0007c310: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0007c320: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0007c330: 542d 3830 302d 3533 2d41 552d 3828 3129  T-800-53-AU-8(1)
│ │ │ -0007c340: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0007c350: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0007c360: 5043 492d 4453 532d 5265 712d 3130 2e34  PCI-DSS-Req-10.4
│ │ │ -0007c370: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0007c380: 302e 360a 2020 2d20 5043 492d 4453 5376  0.6.  - PCI-DSSv
│ │ │ -0007c390: 342d 3130 2e36 2e31 0a20 202d 2065 6e61  4-10.6.1.  - ena
│ │ │ -0007c3a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0007c3b0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ -0007c3c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0007c3d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0007c3e0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -0007c3f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0007c400: 7276 6963 655f 6e74 705f 656e 6162 6c65  rvice_ntp_enable
│ │ │ -0007c410: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ -0007c420: 6520 7468 6520 4e54 5020 4461 656d 6f6e  e the NTP Daemon
│ │ │ -0007c430: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -0007c440: 6520 6e74 700a 2020 626c 6f63 6b3a 0a0a  e ntp.  block:..
│ │ │ -0007c450: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -0007c460: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0007c470: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -0007c480: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -0007c490: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -0007c4a0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -0007c4b0: 616d 653a 2045 6e61 626c 6520 7468 6520  ame: Enable the 
│ │ │ -0007c4c0: 4e54 5020 4461 656d 6f6e 202d 2045 6e61  NTP Daemon - Ena
│ │ │ -0007c4d0: 626c 6520 5365 7276 6963 6520 6e74 700a  ble Service ntp.
│ │ │ -0007c4e0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0007c4f0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0007c500: 2020 206e 616d 653a 206e 7470 0a20 2020     name: ntp.   
│ │ │ -0007c510: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -0007c520: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0007c530: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -0007c540: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -0007c550: 656e 3a0a 2020 2020 2d20 2722 6e74 7022  en:.    - '"ntp"
│ │ │ -0007c560: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0007c570: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -0007c580: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0007c590: 2d35 332d 4155 2d38 2831 2928 6129 0a20  -53-AU-8(1)(a). 
│ │ │ -0007c5a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007c5b0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -0007c5c0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ -0007c5d0: 5043 492d 4453 5376 342d 3130 2e36 0a20  PCI-DSSv4-10.6. 
│ │ │ -0007c5e0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -0007c5f0: 362e 310a 2020 2d20 656e 6162 6c65 5f73  6.1.  - enable_s
│ │ │ -0007c600: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007c610: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007c620: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007c630: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007c640: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007c650: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0007c660: 5f6e 7470 5f65 6e61 626c 6564 0a20 202d  _ntp_enabled.  -
│ │ │ -0007c670: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0007c680: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ -0007c690: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ -0007c6a0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0007c6b0: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ -0007c6c0: 2722 6e74 7022 2069 6e20 616e 7369 626c  '"ntp" in ansibl
│ │ │ -0007c6d0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0007c6e0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0007bde0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0007bdf0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0007beb0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007bec0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -0007c230: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007c260: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007c270: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007c2b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0007c2c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +0007be80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0007bea0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0007bed0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0007bef0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0007bf30: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0007bf40: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0007bf50: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0007bf60: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0007bf70: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0007bf80: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ +0007bf90: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0007bfa0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0007bfb0: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ +0007bfc0: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ +0007bfd0: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ +0007bfe0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0007bff0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +0007c000: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +0007c010: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0007c020: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0007c030: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007c040: 0a20 202d 2073 6572 7669 6365 5f6e 7470  .  - service_ntp
│ │ │ +0007c050: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ +0007c060: 3a20 456e 6162 6c65 2074 6865 204e 5450  : Enable the NTP
│ │ │ +0007c070: 2044 6165 6d6f 6e20 2d20 456e 6162 6c65   Daemon - Enable
│ │ │ +0007c080: 2073 6572 7669 6365 206e 7470 0a20 2062   service ntp.  b
│ │ │ +0007c090: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0007c0a0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +0007c0b0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +0007c0c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0007c0d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0007c0e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0007c0f0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ +0007c100: 6c65 2074 6865 204e 5450 2044 6165 6d6f  le the NTP Daemo
│ │ │ +0007c110: 6e20 2d20 456e 6162 6c65 2053 6572 7669  n - Enable Servi
│ │ │ +0007c120: 6365 206e 7470 0a20 2020 2061 6e73 6962  ce ntp.    ansib
│ │ │ +0007c130: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0007c140: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0007c150: 6e74 700a 2020 2020 2020 656e 6162 6c65  ntp.      enable
│ │ │ +0007c160: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +0007c170: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +0007c180: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +0007c190: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +0007c1a0: 2027 226e 7470 2220 696e 2061 6e73 6962   '"ntp" in ansib
│ │ │ +0007c1b0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0007c1c0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0007c1d0: 4953 542d 3830 302d 3533 2d41 552d 3828  IST-800-53-AU-8(
│ │ │ +0007c1e0: 3129 2861 290a 2020 2d20 4e49 5354 2d38  1)(a).  - NIST-8
│ │ │ +0007c1f0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0007c200: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +0007c210: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +0007c220: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ +0007c230: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ +0007c240: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0007c250: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +0007c260: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0007c270: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0007c280: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0007c290: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0007c2a0: 7365 7276 6963 655f 6e74 705f 656e 6162  service_ntp_enab
│ │ │ +0007c2b0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0007c2c0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0007c2d0: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +0007c2e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0007c2f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0007c300: 7327 0a20 202d 2027 226e 7470 2220 696e  s'.  - '"ntp" in
│ │ │ +0007c310: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0007c320: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +0007c330: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c3e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007c3f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007c400: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007c410: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007c420: 7365 2220 6964 3d22 6964 3132 3122 3e3c se" id="id121">< │ │ │ +0007c430: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007c440: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007c450: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007c460: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007c470: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0007c480: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007c490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0007c4d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007c4e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0007c500: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0007c510: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ +0007c530: 6e61 626c 655f 6e74 700a 0a63 6c61 7373  nable_ntp..class
│ │ │ +0007c540: 2065 6e61 626c 655f 6e74 7020 7b0a 2020   enable_ntp {.  
│ │ │ +0007c550: 7365 7276 6963 6520 7b27 6e74 7027 3a0a  service {'ntp':.
│ │ │ +0007c560: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0007c570: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +0007c580: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +0007c590: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0007c5a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c650: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0007c660: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0007c670: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0007c6b0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0007c6c0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0007c6d0: 656e 6162 6c65 6420 3d20 5b22 6e74 7022  enabled = ["ntp"
│ │ │ +0007c6e0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 0007c6f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -0008abe0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0008abf0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0008ac00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0008ac10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0008ac40: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -0008ac50: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -0008ac60: 2261 7564 6974 6422 0a76 6572 7369 6f6e  "auditd".version
│ │ │ -0008ac70: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -0008ad30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0008ad40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0008adc0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0008add0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0008adf0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0008ae00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0008ae20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0008ae40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0008ae70: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -0008ae80: 7461 6c6c 5f61 7564 6974 640a 0a63 6c61  tall_auditd..cla
│ │ │ -0008ae90: 7373 2069 6e73 7461 6c6c 5f61 7564 6974  ss install_audit
│ │ │ -0008aea0: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ -0008aeb0: 2761 7564 6974 6427 3a0a 2020 2020 656e  'auditd':.    en
│ │ │ -0008aec0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0008aed0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -0008af90: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0008afa0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0008b040: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0008b050: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0008b0a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0008b0e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0008b0f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0008b100: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0008b110: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0008b120: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0008b130: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ -0008b140: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0008b150: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ -0008b160: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ -0008b170: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0008b180: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ -0008b190: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ -0008b1a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0008b1b0: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ -0008b1c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0008b1d0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0008b1e0: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -0008b1f0: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -0008b200: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -0008b210: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0008b220: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0008b230: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0008b240: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0008b250: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0008b260: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0008b270: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ -0008b280: 745f 696e 7374 616c 6c65 640a 0a2d 206e  t_installed..- n
│ │ │ -0008b290: 616d 653a 2045 6e73 7572 6520 6175 6469  ame: Ensure audi
│ │ │ -0008b2a0: 7464 2069 7320 696e 7374 616c 6c65 640a  td is installed.
│ │ │ -0008b2b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0008b2c0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0008b2d0: 616d 653a 2061 7564 6974 640a 2020 2020  ame: auditd.    
│ │ │ -0008b2e0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -0008b2f0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0008b300: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0008b310: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0008b320: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0008b330: 2d38 3030 2d35 332d 4143 2d37 2861 290a  -800-53-AC-7(a).
│ │ │ -0008b340: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0008b350: 4155 2d31 3228 3229 0a20 202d 204e 4953  AU-12(2).  - NIS
│ │ │ -0008b360: 542d 3830 302d 3533 2d41 552d 3134 0a20  T-800-53-AU-14. 
│ │ │ -0008b370: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0008b380: 552d 3228 6129 0a20 202d 204e 4953 542d  U-2(a).  - NIST-
│ │ │ -0008b390: 3830 302d 3533 2d41 552d 3728 3129 0a20  800-53-AU-7(1). 
│ │ │ -0008b3a0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0008b3b0: 552d 3728 3229 0a20 202d 204e 4953 542d  U-7(2).  - NIST-
│ │ │ -0008b3c0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0008b3d0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -0008b3e0: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ -0008b3f0: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ -0008b400: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ -0008b410: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0008b420: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0008b430: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0008b440: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0008b450: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0008b460: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0008b470: 202d 2070 6163 6b61 6765 5f61 7564 6974   - package_audit
│ │ │ -0008b480: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
C │ │ │ -0008b030: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0008b060: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0008b070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0008b0b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0008b0c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0008ac90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +0008ad30: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0008ad40: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0008ad50: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0008ad60: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0008ad70: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +0008ad80: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ +0008ad90: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0008ada0: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ +0008adb0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ +0008adc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008add0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ +0008ade0: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ +0008adf0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008ae00: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ +0008ae10: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0008ae20: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +0008ae30: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +0008ae40: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +0008ae50: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +0008ae60: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0008ae70: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0008ae80: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0008ae90: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0008aea0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0008aeb0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0008aec0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ +0008aed0: 6974 5f69 6e73 7461 6c6c 6564 0a0a 2d20  it_installed..- 
│ │ │ +0008aee0: 6e61 6d65 3a20 456e 7375 7265 2061 7564  name: Ensure aud
│ │ │ +0008aef0: 6974 6420 6973 2069 6e73 7461 6c6c 6564  itd is installed
│ │ │ +0008af00: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0008af10: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0008af20: 6e61 6d65 3a20 6175 6469 7464 0a20 2020  name: auditd.   
│ │ │ +0008af30: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +0008af40: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0008af50: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0008af60: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0008af70: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0008af80: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ +0008af90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008afa0: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ +0008afb0: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ +0008afc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0008afd0: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ +0008afe0: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ +0008aff0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0008b000: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ +0008b010: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0008b020: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +0008b030: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ +0008b040: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ +0008b050: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ +0008b060: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0008b070: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0008b080: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0008b090: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0008b0a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0008b0b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0008b0c0: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ +0008b0d0: 745f 696e 7374 616c 6c65 640a 3c2f 636f  t_installed.
< │ │ │ +0008b0f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0008b100: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0008b110: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0008b120: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0008b130: 6431 3431 2220 7461 6269 6e64 6578 3d22 d141" tabindex=" │ │ │ +0008b140: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0008b150: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0008b160: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0008b170: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0008b180: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0008b190: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0008b1a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0008ac80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0008acb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0008acc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0008ad00: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0008ad10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +0008b230: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0008b240: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0008b260: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0008b280: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0008b290: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0008b2d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0008b2e0: 6520 696e 7374 616c 6c5f 6175 6469 7464 e install_auditd │ │ │ +0008b2f0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +0008b300: 6175 6469 7464 207b 0a20 2070 6163 6b61 auditd {. packa │ │ │ +0008b310: 6765 207b 2027 6175 6469 7464 273a 0a20 ge { 'auditd':. │ │ │ +0008b320: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +0008b330: 2769 6e73 7461 6c6c 6564 272c 0a20 207d 'installed',. } │ │ │ +0008b340: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +0008b350: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +0008b400: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0008b410: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0008b420: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0008b460: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +0008b470: 6520 3d20 2261 7564 6974 6422 0a76 6572  e = "auditd".ver
│ │ │ +0008b480: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Reme │ │ │ -0008d0c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0008d0d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0008d0e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -0008d130: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -0008d140: 735d 0a65 6e61 626c 6564 203d 205b 2261 s].enabled = ["a │ │ │ -0008d150: 7564 6974 6422 5d0a 3c2f 636f 6465 3e3c uditd"].< │ │ │ -0008d160: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -0008d210: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0008d220: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0008d2a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0008d2b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0008d2c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0008d300: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0008d310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0008d330: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0008d350: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -0008d360: 6162 6c65 5f61 7564 6974 640a 0a63 6c61  able_auditd..cla
│ │ │ -0008d370: 7373 2065 6e61 626c 655f 6175 6469 7464  ss enable_auditd
│ │ │ -0008d380: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ -0008d390: 7564 6974 6427 3a0a 2020 2020 656e 6162  uditd':.    enab
│ │ │ -0008d3a0: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -0008d3b0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0008d3c0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -0008d3d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0008d490: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0008d4a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0008d570: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0008d580: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0008d5d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0008d5e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0008d5f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0008d600: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0008d610: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0008d620: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ -0008d630: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -0008d640: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -0008d650: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -0008d660: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -0008d670: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -0008d680: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -0008d690: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +0008d0c0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0008d0d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0008d0e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disru │ │ │ -0008d550: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0008d560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0008d5a0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0008d5b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +0008d160: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0008d190: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0008d1b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0008d1c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0008d1e0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0008d200: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0008d210: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0008d220: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0008d230: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0008d240: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0008d250: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ +0008d260: 352e 342e 312e 310a 2020 2d20 4e49 5354  5.4.1.1.  - NIST
│ │ │ +0008d270: 2d38 3030 2d31 3731 2d33 2e33 2e31 0a20  -800-171-3.3.1. 
│ │ │ +0008d280: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0008d290: 332e 332e 320a 2020 2d20 4e49 5354 2d38  3.3.2.  - NIST-8
│ │ │ +0008d2a0: 3030 2d31 3731 2d33 2e33 2e36 0a20 202d  00-171-3.3.6.  -
│ │ │ +0008d2b0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +0008d2c0: 3228 6729 0a20 202d 204e 4953 542d 3830  2(g).  - NIST-80
│ │ │ +0008d2d0: 302d 3533 2d41 432d 3628 3929 0a20 202d  0-53-AC-6(9).  -
│ │ │ +0008d2e0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +0008d2f0: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +0008d300: 3533 2d41 552d 3132 2863 290a 2020 2d20  53-AU-12(c).  - 
│ │ │ +0008d310: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +0008d320: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +0008d330: 302d 3533 2d41 552d 3228 6429 0a20 202d  0-53-AU-2(d).  -
│ │ │ +0008d340: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +0008d350: 330a 2020 2d20 4e49 5354 2d38 3030 2d35  3.  - NIST-800-5
│ │ │ +0008d360: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0008d370: 5354 2d38 3030 2d35 332d 5349 2d34 2832  ST-800-53-SI-4(2
│ │ │ +0008d380: 3329 0a20 202d 2050 4349 2d44 5353 2d52  3).  - PCI-DSS-R
│ │ │ +0008d390: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +0008d3a0: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +0008d3b0: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +0008d3c0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0008d3d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0008d3e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0008d3f0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0008d400: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0008d410: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0008d420: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +0008d430: 7564 6974 645f 656e 6162 6c65 640a 0a2d  uditd_enabled..-
│ │ │ +0008d440: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +0008d450: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +0008d460: 6e61 626c 6520 7365 7276 6963 6520 6175  nable service au
│ │ │ +0008d470: 6469 7464 0a20 2062 6c6f 636b 3a0a 0a20  ditd.  block:.. 
│ │ │ +0008d480: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +0008d490: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0008d4a0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +0008d4b0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +0008d4c0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +0008d4d0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +0008d4e0: 6d65 3a20 456e 6162 6c65 2061 7564 6974  me: Enable audit
│ │ │ +0008d4f0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +0008d500: 6c65 2053 6572 7669 6365 2061 7564 6974  le Service audit
│ │ │ +0008d510: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +0008d520: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0008d530: 2020 2020 206e 616d 653a 2061 7564 6974       name: audit
│ │ │ +0008d540: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +0008d550: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +0008d560: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +0008d570: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +0008d580: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +0008d590: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +0008d5a0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0008d5b0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0008d5c0: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ +0008d5d0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +0008d5e0: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ +0008d5f0: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ +0008d600: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +0008d610: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ +0008d620: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ +0008d630: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +0008d640: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0008d650: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ +0008d660: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ +0008d670: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0008d680: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ +0008d690: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │  0008d6a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0008d6b0: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -0008d6c0: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -0008d6d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0008d6e0: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -0008d6f0: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -0008d700: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0008d710: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -0008d720: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0008d730: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -0008d740: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -0008d750: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -0008d760: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -0008d770: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -0008d780: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -0008d790: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0008d7a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0008d7b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0008d7c0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0008d7d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0008d7e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0008d7f0: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -0008d800: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -0008d810: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -0008d820: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -0008d830: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ -0008d840: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -0008d850: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0008d860: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -0008d870: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0008d880: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -0008d890: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -0008d8a0: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -0008d8b0: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ -0008d8c0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -0008d8d0: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ -0008d8e0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0008d8f0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0008d900: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ -0008d910: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -0008d920: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -0008d930: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -0008d940: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -0008d950: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ -0008d960: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0008d970: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0008d980: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -0008d990: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ -0008d9a0: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ -0008d9b0: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ -0008d9c0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -0008d9d0: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ -0008d9e0: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ -0008d9f0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0008da00: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ -0008da10: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ -0008da20: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -0008da30: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ -0008da40: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │ -0008da50: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -0008da60: 552d 3228 6429 0a20 202d 204e 4953 542d  U-2(d).  - NIST-
│ │ │ -0008da70: 3830 302d 3533 2d41 552d 330a 2020 2d20  800-53-AU-3.  - 
│ │ │ -0008da80: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0008da90: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0008daa0: 2d35 332d 5349 2d34 2832 3329 0a20 202d  -53-SI-4(23).  -
│ │ │ -0008dab0: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -0008dac0: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -0008dad0: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -0008dae0: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -0008daf0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0008db00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0008db10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0008db20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0008db30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0008db40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0008db50: 2073 6572 7669 6365 5f61 7564 6974 645f   service_auditd_
│ │ │ -0008db60: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ -0008db70: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -0008db80: 6b0a 2020 7768 656e 3a0a 2020 2d20 2722  k.  when:.  - '"
│ │ │ -0008db90: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0008dba0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0008dbb0: 6b61 6765 7327 0a20 202d 2027 2261 7564  kages'.  - '"aud
│ │ │ -0008dbc0: 6974 6422 2069 6e20 616e 7369 626c 655f  itd" in ansible_
│ │ │ -0008dbd0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0008d6b0: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ +0008d6c0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0008d6d0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +0008d6e0: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ +0008d6f0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ +0008d700: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ +0008d710: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +0008d720: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ +0008d730: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0008d740: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0008d750: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0008d760: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0008d770: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0008d780: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0008d790: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ +0008d7a0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0008d7b0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0008d7c0: 6865 6e3a 0a20 202d 2027 226c 696e 7578  hen:.  - '"linux
│ │ │ +0008d7d0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0008d7e0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0008d7f0: 270a 2020 2d20 2722 6175 6469 7464 2220  '.  - '"auditd" 
│ │ │ +0008d800: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0008d810: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +0008d8d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0008d8e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0008d990: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0008d9b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0008d9e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0008d970: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0008d980: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0008d9a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0008d9c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0008d9d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

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

│ │ │ +0008dbb0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +0008dbc0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +0008dbd0: 6564 203d 205b 2261 7564 6974 6422 5d0a  ed = ["auditd"].
│ │ │  0008dbe0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
'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: │ │ │ │ @@ -1676,14 +1659,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/ │ │ │ │ @@ -1715,31 +1715,14 @@ │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ _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] │ │ │ │ -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: │ │ │ │ @@ -1776,14 +1759,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/ │ │ │ │ @@ -4038,31 +4038,14 @@ │ │ │ │ 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 │ │ │ │ _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: │ │ │ │ @@ -4089,14 +4072,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/ │ │ │ │ @@ -4133,31 +4133,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_1_3 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -4192,14 +4175,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/ │ │ │ │ @@ -4242,27 +4242,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' │ │ │ │ @@ -4275,14 +4262,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 │ │ │ │ @@ -4297,27 +4297,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll tthhee nniiss ppaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -4326,14 +4313,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 │ │ │ │ @@ -4349,27 +4349,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: │ │ │ │ @@ -4378,14 +4365,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 │ │ │ │ @@ -4418,27 +4418,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' │ │ │ │ @@ -4451,14 +4438,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 │ │ │ │ @@ -4492,27 +4492,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -4524,14 +4511,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 │ │ │ │ @@ -4607,31 +4607,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -4656,14 +4639,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ │ │ @@ -4697,31 +4697,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - 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: │ │ │ │ @@ -4766,14 +4749,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" 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_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + 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 = ["ntp"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -5675,31 +5675,14 @@ │ │ │ │ 000351-GPOS-00139, SRG-OS-000352-GPOS-00140, SRG-OS- │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -5740,14 +5723,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/ │ │ │ │ @@ -5818,31 +5818,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -5909,14 +5892,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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_bp28_enhanced.html │ │ │ @@ -15040,133 +15040,133 @@ │ │ │ 0003abf0: 7461 2d74 6172 6765 743d 2223 6964 3135 ta-target="#id15 │ │ │ 0003ac00: 2220 7461 6269 6e64 6578 3d22 3022 2072 " tabindex="0" r │ │ │ 0003ac10: 6f6c 653d 2262 7574 746f 6e22 2061 7269 ole="button" ari │ │ │ 0003ac20: 612d 6578 7061 6e64 6564 3d22 6661 6c73 a-expanded="fals │ │ │ 0003ac30: 6522 2074 6974 6c65 3d22 4163 7469 7661 e" title="Activa │ │ │ 0003ac40: 7465 2074 6f20 7265 7665 616c 2220 6872 te to reveal" hr │ │ │ 0003ac50: 6566 3d22 2321 223e 5265 6d65 6469 6174 ef="#!">Remediat │ │ │ -0003ac60: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0003ac70: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0003ac80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]]
│ │ │ -0003acd0: 0a6e 616d 6520 3d20 2261 6964 6522 0a76  .name = "aide".v
│ │ │ -0003ace0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0003ad00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0003ada0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0003adb0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003ae60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003ae80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003aeb0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003ae40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003ae50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003ae70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003ae90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003aea0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

< │ │ │ -0003af60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003af70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003af80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003af90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003afa0: 6431 3722 2074 6162 696e 6465 783d 2230 d17" tabindex="0 │ │ │ -0003afb0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003afc0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003afd0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003afe0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003aff0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003b000: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0003b010: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003b0c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003b0e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003b110: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003b0a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003b0b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003b0d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003b0f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003b100: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0003b150: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0003b160: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0003b170: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0003b180: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0003b190: 6167 733a 0a20 202d 2043 4a49 532d 352e ags:. - CJIS-5. │ │ │ -0003b1a0: 3130 2e31 2e33 0a20 202d 204e 4953 542d 10.1.3. - NIST- │ │ │ -0003b1b0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0003b1c0: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ -0003b1d0: 312e 350a 2020 2d20 5043 492d 4453 5376 1.5. - PCI-DSSv │ │ │ -0003b1e0: 342d 3131 2e35 2e32 0a20 202d 2065 6e61 4-11.5.2. - ena │ │ │ -0003b1f0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0003b200: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0003b210: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0003b220: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -0003b230: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0003b240: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0003b250: 7061 636b 6167 655f 6169 6465 5f69 6e73 package_aide_ins │ │ │ -0003b260: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ -0003b270: 456e 7375 7265 2061 6964 6520 6973 2069 Ensure aide is i │ │ │ -0003b280: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ -0003b290: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0003b2a0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6169 ge:. name: ai │ │ │ -0003b2b0: 6465 0a20 2020 2073 7461 7465 3a20 7072 de. state: pr │ │ │ -0003b2c0: 6573 656e 740a 2020 7768 656e 3a20 2722 esent. when: '" │ │ │ -0003b2d0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0003b2e0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0003b2f0: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ -0003b300: 202d 2043 4a49 532d 352e 3130 2e31 2e33 - CJIS-5.10.1.3 │ │ │ -0003b310: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0003b320: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ -0003b330: 2d44 5353 2d52 6571 2d31 312e 350a 2020 -DSS-Req-11.5. │ │ │ -0003b340: 2d20 5043 492d 4453 5376 342d 3131 2e35 - PCI-DSSv4-11.5 │ │ │ -0003b350: 2e32 0a20 202d 2065 6e61 626c 655f 7374 .2. - enable_st │ │ │ -0003b360: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0003b370: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0003b380: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0003b390: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0003b3a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0003b3b0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -0003b3c0: 655f 6169 6465 5f69 6e73 7461 6c6c 6564 e_aide_installed │ │ │ +0003ac60: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0003ac70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003ac80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003ac90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003aca0: 7365 2220 6964 3d22 6964 3135 223e 3c74 se" id="id15"> │ │ │ +0003acf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0003ad00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0003ad10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0003ad50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0003ad60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0003ad80: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +0003ada0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0003adb0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0003adc0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0003add0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0003ade0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0003adf0: 3a0a 2020 2d20 434a 4953 2d35 2e31 302e  :.  - CJIS-5.10.
│ │ │ +0003ae00: 312e 330a 2020 2d20 4e49 5354 2d38 3030  1.3.  - NIST-800
│ │ │ +0003ae10: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0003ae20: 5043 492d 4453 532d 5265 712d 3131 2e35  PCI-DSS-Req-11.5
│ │ │ +0003ae30: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0003ae40: 312e 352e 320a 2020 2d20 656e 6162 6c65  1.5.2.  - enable
│ │ │ +0003ae50: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0003ae60: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0003ae70: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0003ae80: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0003ae90: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0003aea0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0003aeb0: 6b61 6765 5f61 6964 655f 696e 7374 616c  kage_aide_instal
│ │ │ +0003aec0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +0003aed0: 7572 6520 6169 6465 2069 7320 696e 7374  ure aide is inst
│ │ │ +0003aee0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0003aef0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0003af00: 0a20 2020 206e 616d 653a 2061 6964 650a  .    name: aide.
│ │ │ +0003af10: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +0003af20: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +0003af30: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0003af40: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0003af50: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0003af60: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ +0003af70: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0003af80: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0003af90: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ +0003afa0: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ +0003afb0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0003afc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0003afd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0003afe0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0003aff0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0003b000: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0003b010: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ +0003b020: 6964 655f 696e 7374 616c 6c65 640a 3c2f  ide_installed.
Rem │ │ │ +0003b0e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0003b0f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0003b100: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +0003b180: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0003b190: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0003b1b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0003b1d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0003b1e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0003b220: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0003b230: 6520 696e 7374 616c 6c5f 6169 6465 0a0a e install_aide.. │ │ │ +0003b240: 636c 6173 7320 696e 7374 616c 6c5f 6169 class install_ai │ │ │ +0003b250: 6465 207b 0a20 2070 6163 6b61 6765 207b de {. package { │ │ │ +0003b260: 2027 6169 6465 273a 0a20 2020 2065 6e73 'aide':. ens │ │ │ +0003b270: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +0003b280: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ +0003b2a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003b340: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0003b350: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0003b360: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +0003b3b0: 6573 5d5d 0a6e 616d 6520 3d20 2261 6964  es]].name = "aid
│ │ │ +0003b3c0: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │  0003b3d0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Re │ │ │ -00045bf0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00045c00: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00045c10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00045c20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00045c30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00045c40: 7365 2220 6964 3d22 6964 3332 223e 3c70 se" id="id32">

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

Remediation Pu │ │ │ -00045d40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00045d50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00045e20: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00045e30: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00045e80: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ -00045e90: 7564 6f0a 0a63 6c61 7373 2069 6e73 7461  udo..class insta
│ │ │ -00045ea0: 6c6c 5f73 7564 6f20 7b0a 2020 7061 636b  ll_sudo {.  pack
│ │ │ -00045eb0: 6167 6520 7b20 2773 7564 6f27 3a0a 2020  age { 'sudo':.  
│ │ │ -00045ec0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00045ed0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -00045ee0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00045ef0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -00045fa0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00045fb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ -00045e00: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00045e10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00045e50: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00045e60: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00046080: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00046090: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000460e0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000460f0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00046100: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00046110: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00046120: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00046130: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00046140: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ -00046150: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00046160: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ -00046170: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00046180: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00046190: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000461a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000461b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000461c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000461d0: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ -000461e0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -000461f0: 456e 7375 7265 2073 7564 6f20 6973 2069  Ensure sudo is i
│ │ │ -00046200: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -00046210: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00046220: 6765 3a0a 2020 2020 6e61 6d65 3a20 7375  ge:.    name: su
│ │ │ -00046230: 646f 0a20 2020 2073 7461 7465 3a20 7072  do.    state: pr
│ │ │ -00046240: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00046250: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00046260: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00046270: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00046280: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00046290: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -000462a0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -000462b0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -000462c0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000462d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000462e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000462f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00046300: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00046310: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00046320: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ -00046330: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Complexity:low
Disrup │ │ │ -00046060: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00046070: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000460b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000460c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +00045cb0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00045d00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00045c90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00045cc0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00045ce0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00045cf0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00045d10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00045d20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00045d40: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00045d50: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00045d60: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00045d70: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00045d80: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00045d90: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00045da0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00045db0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00045dc0: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ +00045dd0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00045de0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00045df0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00045e00: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00045e10: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00045e20: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00045e30: 6b61 6765 5f73 7564 6f5f 696e 7374 616c  kage_sudo_instal
│ │ │ +00045e40: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00045e50: 7572 6520 7375 646f 2069 7320 696e 7374  ure sudo is inst
│ │ │ +00045e60: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +00045e70: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00045e80: 0a20 2020 206e 616d 653a 2073 7564 6f0a  .    name: sudo.
│ │ │ +00045e90: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00045ea0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00045eb0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00045ec0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00045ed0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00045ee0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00045ef0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +00045f00: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00045f10: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +00045f20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00045f30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00045f40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00045f50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00045f60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00045f70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00045f80: 2070 6163 6b61 6765 5f73 7564 6f5f 696e   package_sudo_in
│ │ │ +00045f90: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00045fa0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ +00046050: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00046060: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +000460f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00046110: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00046120: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00046130: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00046140: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00046160: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +000461a0: 616c 6c5f 7375 646f 0a0a 636c 6173 7320  all_sudo..class 
│ │ │ +000461b0: 696e 7374 616c 6c5f 7375 646f 207b 0a20  install_sudo {. 
│ │ │ +000461c0: 2070 6163 6b61 6765 207b 2027 7375 646f   package { 'sudo
│ │ │ +000461d0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000461e0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000461f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +000462b0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +000462c0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +000462d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +00046320: 616d 6520 3d20 2273 7564 6f22 0a76 6572  ame = "sudo".ver
│ │ │ +00046330: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation OS │ │ │ -0007c8a0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -0007c8b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007c8c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -0007c900: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -0007c910: 203d 2022 6c69 6270 616d 2d70 7771 7561   = "libpam-pwqua
│ │ │ -0007c920: 6c69 7479 220a 7665 7273 696f 6e20 3d20  lity".version = 
│ │ │ -0007c930: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -0007c9f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0007ca00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0007ca80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007caa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007caf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0007cb20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -0007cb40: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ -0007cb50: 7479 0a0a 636c 6173 7320 696e 7374 616c  ty..class instal
│ │ │ -0007cb60: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ -0007cb70: 7479 207b 0a20 2070 6163 6b61 6765 207b  ty {.  package {
│ │ │ -0007cb80: 2027 6c69 6270 616d 2d70 7771 7561 6c69   'libpam-pwquali
│ │ │ -0007cb90: 7479 273a 0a20 2020 2065 6e73 7572 6520  ty':.    ensure 
│ │ │ -0007cba0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -0007cbb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0007cbc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0007cc70: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0007cc80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007cc90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007ccc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:< │ │ │ -0007ca90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007cab0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007cb00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0007cb10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -0007cd30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007cd50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007cd80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0007cda0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0007cd10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007cd20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007cd60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007cd70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0007cdc0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0007cdd0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0007cde0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0007cdf0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0007ce00: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -0007ce10: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0007ce20: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0007ce30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0007ce40: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -0007ce50: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0007ce60: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0007ce70: 6765 5f70 616d 5f70 7771 7561 6c69 7479 ge_pam_pwquality │ │ │ -0007ce80: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ -0007ce90: 6d65 3a20 456e 7375 7265 206c 6962 7061 me: Ensure libpa │ │ │ -0007cea0: 6d2d 7077 7175 616c 6974 7920 6973 2069 m-pwquality is i │ │ │ -0007ceb0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ -0007cec0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0007ced0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69 ge:. name: li │ │ │ -0007cee0: 6270 616d 2d70 7771 7561 6c69 7479 0a20 bpam-pwquality. │ │ │ -0007cef0: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -0007cf00: 740a 2020 7768 656e 3a20 2722 6c69 6270 t. when: '"libp │ │ │ -0007cf10: 616d 2d72 756e 7469 6d65 2220 696e 2061 am-runtime" in a │ │ │ -0007cf20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0007cf30: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ -0007cf40: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -0007cf50: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -0007cf60: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -0007cf70: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -0007cf80: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -0007cf90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0007cfa0: 640a 2020 2d20 7061 636b 6167 655f 7061 d. - package_pa │ │ │ -0007cfb0: 6d5f 7077 7175 616c 6974 795f 696e 7374 m_pwquality_inst │ │ │ -0007cfc0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediation An │ │ │ +0007c8a0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0007c8b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0007c930: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007c950: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007c9a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +0007c9f0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +0007ca00: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +0007ca10: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +0007ca20: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +0007ca30: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0007ca40: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0007ca50: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0007ca60: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0007ca70: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0007ca80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0007ca90: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ +0007caa0: 7077 7175 616c 6974 795f 696e 7374 616c  pwquality_instal
│ │ │ +0007cab0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +0007cac0: 7572 6520 6c69 6270 616d 2d70 7771 7561  ure libpam-pwqua
│ │ │ +0007cad0: 6c69 7479 2069 7320 696e 7374 616c 6c65  lity is installe
│ │ │ +0007cae0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +0007caf0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0007cb00: 206e 616d 653a 206c 6962 7061 6d2d 7077   name: libpam-pw
│ │ │ +0007cb10: 7175 616c 6974 790a 2020 2020 7374 6174  quality.    stat
│ │ │ +0007cb20: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +0007cb30: 6e3a 2027 226c 6962 7061 6d2d 7275 6e74  n: '"libpam-runt
│ │ │ +0007cb40: 696d 6522 2069 6e20 616e 7369 626c 655f  ime" in ansible_
│ │ │ +0007cb50: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0007cb60: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +0007cb70: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0007cb80: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0007cb90: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0007cba0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0007cbb0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0007cbc0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007cbd0: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ +0007cbe0: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a3c  lity_installed.<
│ │ │ +0007cbf0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0007cca0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0007ccb0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +0007c960: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007c970: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007c9b0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0007c9c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0007cd50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007cd60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007cdb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0007cdf0: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +0007ce00: 7061 6d2d 7077 7175 616c 6974 790a 0a63  pam-pwquality..c
│ │ │ +0007ce10: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ +0007ce20: 7061 6d2d 7077 7175 616c 6974 7920 7b0a  pam-pwquality {.
│ │ │ +0007ce30: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ +0007ce40: 7061 6d2d 7077 7175 616c 6974 7927 3a0a  pam-pwquality':.
│ │ │ +0007ce50: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0007ce60: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +0007ce70: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +0007cf30: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0007cf40: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

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

Remed │ │ │ -000962b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -000962c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000962d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -00096320: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ -00096330: 6172 6d6f 7222 0a76 6572 7369 6f6e 203d  armor".version =
│ │ │ -00096340: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -00096400: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00096410: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -000964e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00096530: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +0007cd40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007cd70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007cd80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007cdc0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0007cdd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -000964a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -000964c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00096510: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00096520: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -00096550: 6c6c 5f61 7070 6172 6d6f 720a 0a63 6c61  ll_apparmor..cla
│ │ │ -00096560: 7373 2069 6e73 7461 6c6c 5f61 7070 6172  ss install_appar
│ │ │ -00096570: 6d6f 7220 7b0a 2020 7061 636b 6167 6520  mor {.  package 
│ │ │ -00096580: 7b20 2761 7070 6172 6d6f 7227 3a0a 2020  { 'apparmor':.  
│ │ │ -00096590: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -000965a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -000965b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000965c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00096670: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00096680: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00096700: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00096720: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00096770: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ -000967c0: 6170 7061 726d 6f72 2069 7320 696e 7374  apparmor is inst
│ │ │ -000967d0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000967e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000967f0: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -00096800: 6d6f 720a 2020 2020 7374 6174 653a 2070  mor.    state: p
│ │ │ -00096810: 7265 7365 6e74 0a20 2077 6865 6e3a 2061  resent.  when: a
│ │ │ -00096820: 6e73 6962 6c65 5f76 6972 7475 616c 697a  nsible_virtualiz
│ │ │ -00096830: 6174 696f 6e5f 7479 7065 206e 6f74 2069  ation_type not i
│ │ │ -00096840: 6e20 5b22 646f 636b 6572 222c 2022 6c78  n ["docker", "lx
│ │ │ -00096850: 6322 2c20 226f 7065 6e76 7a22 2c20 2270  c", "openvz", "p
│ │ │ -00096860: 6f64 6d61 6e22 2c20 2263 6f6e 7461 696e  odman", "contain
│ │ │ -00096870: 6572 225d 0a20 2074 6167 733a 0a20 202d  er"].  tags:.  -
│ │ │ -00096880: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00096890: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000968a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000968b0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000968c0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000968d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000968e0: 2020 2d20 7061 636b 6167 655f 6170 7061    - package_appa
│ │ │ -000968f0: 726d 6f72 5f69 6e73 7461 6c6c 6564 0a3c  rmor_installed.<
│ │ │ +000962b0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +000962c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -00096730: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00096740: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00096780: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00096790: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +00096350: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00096360: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00096380: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000963a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000963b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000963f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00096400: 3a20 456e 7375 7265 2061 7070 6172 6d6f : Ensure apparmo │ │ │ +00096410: 7220 6973 2069 6e73 7461 6c6c 6564 0a20 r is installed. │ │ │ +00096420: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00096430: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +00096440: 6d65 3a20 6170 7061 726d 6f72 0a20 2020 me: apparmor. │ │ │ +00096450: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +00096460: 2020 7768 656e 3a20 616e 7369 626c 655f when: ansible_ │ │ │ +00096470: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74 virtualization_t │ │ │ +00096480: 7970 6520 6e6f 7420 696e 205b 2264 6f63 ype not in ["doc │ │ │ +00096490: 6b65 7222 2c20 226c 7863 222c 2022 6f70 ker", "lxc", "op │ │ │ +000964a0: 656e 767a 222c 2022 706f 646d 616e 222c envz", "podman", │ │ │ +000964b0: 2022 636f 6e74 6169 6e65 7222 5d0a 2020 "container"]. │ │ │ +000964c0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +000964d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +000964e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +000964f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00096500: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00096510: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00096520: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +00096530: 6b61 6765 5f61 7070 6172 6d6f 725f 696e kage_apparmor_in │ │ │ +00096540: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +00096550: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00096600: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00096610: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00096690: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000966a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000966b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +000966f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00096700: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00096720: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00096740: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +00096750: 7374 616c 6c5f 6170 7061 726d 6f72 0a0a  stall_apparmor..
│ │ │ +00096760: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ +00096770: 7061 726d 6f72 207b 0a20 2070 6163 6b61  parmor {.  packa
│ │ │ +00096780: 6765 207b 2027 6170 7061 726d 6f72 273a  ge { 'apparmor':
│ │ │ +00096790: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +000967a0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +000967b0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +00096870: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00096880: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +000968e0: 616d 6520 3d20 2261 7070 6172 6d6f 7222  ame = "apparmor"
│ │ │ +000968f0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00096900: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation O │ │ │ -00097680: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00097690: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000976a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -000976e0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -000976f0: 6520 3d20 226c 6962 7061 6d2d 6170 7061  e = "libpam-appa
│ │ │ -00097700: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ -00097710: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000977d0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000977e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00097860: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00097880: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000978d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00097900: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00097920: 6c5f 6c69 6270 616d 2d61 7070 6172 6d6f  l_libpam-apparmo
│ │ │ -00097930: 720a 0a63 6c61 7373 2069 6e73 7461 6c6c  r..class install
│ │ │ -00097940: 5f6c 6962 7061 6d2d 6170 7061 726d 6f72  _libpam-apparmor
│ │ │ -00097950: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00097960: 6c69 6270 616d 2d61 7070 6172 6d6f 7227  libpam-apparmor'
│ │ │ -00097970: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00097980: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00097990: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00097a50: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00097a60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00097ae0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00097b20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ -00097870: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00097890: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000978e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000978f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00097af0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00097b10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00097b40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00097b60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00097b90: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -00097ba0: 7572 6520 6c69 6270 616d 2d61 7070 6172  ure libpam-appar
│ │ │ -00097bb0: 6d6f 7220 6973 2069 6e73 7461 6c6c 6564  mor is installed
│ │ │ -00097bc0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00097bd0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -00097be0: 6e61 6d65 3a20 6c69 6270 616d 2d61 7070  name: libpam-app
│ │ │ -00097bf0: 6172 6d6f 720a 2020 2020 7374 6174 653a  armor.    state:
│ │ │ -00097c00: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00097c10: 2061 6e73 6962 6c65 5f76 6972 7475 616c   ansible_virtual
│ │ │ -00097c20: 697a 6174 696f 6e5f 7479 7065 206e 6f74  ization_type not
│ │ │ -00097c30: 2069 6e20 5b22 646f 636b 6572 222c 2022   in ["docker", "
│ │ │ -00097c40: 6c78 6322 2c20 226f 7065 6e76 7a22 2c20  lxc", "openvz", 
│ │ │ -00097c50: 2270 6f64 6d61 6e22 2c20 2263 6f6e 7461  "podman", "conta
│ │ │ -00097c60: 696e 6572 225d 0a20 2074 6167 733a 0a20  iner"].  tags:. 
│ │ │ -00097c70: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00097c80: 432d 3328 3429 0a20 202d 204e 4953 542d  C-3(4).  - NIST-
│ │ │ -00097c90: 3830 302d 3533 2d41 432d 3628 3130 290a  800-53-AC-6(10).
│ │ │ -00097ca0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00097cb0: 4143 2d36 2838 290a 2020 2d20 4e49 5354  AC-6(8).  - NIST
│ │ │ -00097cc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00097cd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00097ce0: 434d 2d37 2832 290a 2020 2d20 4e49 5354  CM-7(2).  - NIST
│ │ │ -00097cf0: 2d38 3030 2d35 332d 434d 2d37 2835 2928  -800-53-CM-7(5)(
│ │ │ -00097d00: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ -00097d10: 3533 2d53 432d 3728 3231 290a 2020 2d20  53-SC-7(21).  - 
│ │ │ -00097d20: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00097d30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00097d40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00097d50: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00097d60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00097d70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00097d80: 202d 2070 6163 6b61 6765 5f70 616d 5f61   - package_pam_a
│ │ │ -00097d90: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ -00097da0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00097670: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +00097680: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00097690: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00097710: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00097730: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00097780: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000977b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Ensure
│ │ │ +000977d0: 206c 6962 7061 6d2d 6170 7061 726d 6f72   libpam-apparmor
│ │ │ +000977e0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +000977f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00097800: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00097810: 653a 206c 6962 7061 6d2d 6170 7061 726d  e: libpam-apparm
│ │ │ +00097820: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ +00097830: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ +00097840: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ +00097850: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ +00097860: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ +00097870: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ +00097880: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ +00097890: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ +000978a0: 4e49 5354 2d38 3030 2d35 332d 4143 2d33  NIST-800-53-AC-3
│ │ │ +000978b0: 2834 290a 2020 2d20 4e49 5354 2d38 3030  (4).  - NIST-800
│ │ │ +000978c0: 2d35 332d 4143 2d36 2831 3029 0a20 202d  -53-AC-6(10).  -
│ │ │ +000978d0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +000978e0: 3628 3829 0a20 202d 204e 4953 542d 3830  6(8).  - NIST-80
│ │ │ +000978f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00097900: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00097910: 3728 3229 0a20 202d 204e 4953 542d 3830  7(2).  - NIST-80
│ │ │ +00097920: 302d 3533 2d43 4d2d 3728 3529 2862 290a  0-53-CM-7(5)(b).
│ │ │ +00097930: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00097940: 5343 2d37 2832 3129 0a20 202d 2065 6e61  SC-7(21).  - ena
│ │ │ +00097950: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00097960: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00097970: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00097980: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00097990: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000979a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000979b0: 7061 636b 6167 655f 7061 6d5f 6170 7061  package_pam_appa
│ │ │ +000979c0: 726d 6f72 5f69 6e73 7461 6c6c 6564 0a3c  rmor_installed.<
│ │ │ +000979d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00097a80: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00097a90: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +00097720: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00097740: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00097790: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000977a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00097b30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00097b40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00097b90: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00097bd0: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +00097be0: 7061 6d2d 6170 7061 726d 6f72 0a0a 636c  pam-apparmor..cl
│ │ │ +00097bf0: 6173 7320 696e 7374 616c 6c5f 6c69 6270  ass install_libp
│ │ │ +00097c00: 616d 2d61 7070 6172 6d6f 7220 7b0a 2020  am-apparmor {.  
│ │ │ +00097c10: 7061 636b 6167 6520 7b20 276c 6962 7061  package { 'libpa
│ │ │ +00097c20: 6d2d 6170 7061 726d 6f72 273a 0a20 2020  m-apparmor':.   
│ │ │ +00097c30: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00097c40: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00097c50: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00097d10: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00097d20: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +00097b20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00097b50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00097b60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00097ba0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00097bb0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0009ae80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0009aea0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0009aef0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -0009af40: 6170 7061 726d 6f72 0a0a 636c 6173 7320  apparmor..class 
│ │ │ -0009af50: 656e 6162 6c65 5f61 7070 6172 6d6f 7220  enable_apparmor 
│ │ │ -0009af60: 7b0a 2020 7365 7276 6963 6520 7b27 6170  {.  service {'ap
│ │ │ -0009af70: 7061 726d 6f72 273a 0a20 2020 2065 6e61  parmor':.    ena
│ │ │ -0009af80: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -0009af90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0009afa0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -0009afb0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0009afc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0009b070: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0009b080: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
- name: Star
│ │ │ -0009b0d0: 7420 6170 7061 726d 6f72 2e73 6572 7669  t apparmor.servi
│ │ │ -0009b0e0: 6365 0a20 2061 6e73 6962 6c65 2e62 7569  ce.  ansible.bui
│ │ │ -0009b0f0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0009b100: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ -0009b110: 2e73 6572 7669 6365 0a20 2020 2073 7461  .service.    sta
│ │ │ -0009b120: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -0009b130: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -0009b140: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ -0009b150: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ -0009b160: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ -0009b170: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ -0009b180: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ -0009b190: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ -0009b1a0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0009b1b0: 2d35 332d 4143 2d33 2834 290a 2020 2d20  -53-AC-3(4).  - 
│ │ │ -0009b1c0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -0009b1d0: 2831 3029 0a20 202d 204e 4953 542d 3830  (10).  - NIST-80
│ │ │ -0009b1e0: 302d 3533 2d41 432d 3628 3829 0a20 202d  0-53-AC-6(8).  -
│ │ │ -0009b1f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0009b200: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0009b210: 302d 3533 2d43 4d2d 3728 3229 0a20 202d  0-53-CM-7(2).  -
│ │ │ -0009b220: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0009b230: 3728 3529 2862 290a 2020 2d20 4e49 5354  7(5)(b).  - NIST
│ │ │ -0009b240: 2d38 3030 2d35 332d 5343 2d37 2832 3129  -800-53-SC-7(21)
│ │ │ -0009b250: 0a20 202d 2061 7070 6172 6d6f 725f 636f  .  - apparmor_co
│ │ │ -0009b260: 6e66 6967 7572 6564 0a20 202d 206d 6564  nfigured.  - med
│ │ │ -0009b270: 6975 6d5f 7365 7665 7269 7479 0a3c 2f63  ium_severity.
- name: S
│ │ │ +0009ad00: 7461 7274 2061 7070 6172 6d6f 722e 7365  tart apparmor.se
│ │ │ +0009ad10: 7276 6963 650a 2020 616e 7369 626c 652e  rvice.  ansible.
│ │ │ +0009ad20: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0009ad30: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ +0009ad40: 6d6f 722e 7365 7276 6963 650a 2020 2020  mor.service.    
│ │ │ +0009ad50: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +0009ad60: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +0009ad70: 0a20 2077 6865 6e3a 2061 6e73 6962 6c65  .  when: ansible
│ │ │ +0009ad80: 5f76 6972 7475 616c 697a 6174 696f 6e5f  _virtualization_
│ │ │ +0009ad90: 7479 7065 206e 6f74 2069 6e20 5b22 646f  type not in ["do
│ │ │ +0009ada0: 636b 6572 222c 2022 6c78 6322 2c20 226f  cker", "lxc", "o
│ │ │ +0009adb0: 7065 6e76 7a22 2c20 2270 6f64 6d61 6e22  penvz", "podman"
│ │ │ +0009adc0: 2c20 2263 6f6e 7461 696e 6572 225d 0a20  , "container"]. 
│ │ │ +0009add0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0009ade0: 3830 302d 3533 2d41 432d 3328 3429 0a20  800-53-AC-3(4). 
│ │ │ +0009adf0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0009ae00: 432d 3628 3130 290a 2020 2d20 4e49 5354  C-6(10).  - NIST
│ │ │ +0009ae10: 2d38 3030 2d35 332d 4143 2d36 2838 290a  -800-53-AC-6(8).
│ │ │ +0009ae20: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0009ae30: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0009ae40: 2d38 3030 2d35 332d 434d 2d37 2832 290a  -800-53-CM-7(2).
│ │ │ +0009ae50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0009ae60: 434d 2d37 2835 2928 6229 0a20 202d 204e  CM-7(5)(b).  - N
│ │ │ +0009ae70: 4953 542d 3830 302d 3533 2d53 432d 3728  IST-800-53-SC-7(
│ │ │ +0009ae80: 3231 290a 2020 2d20 6170 7061 726d 6f72  21).  - apparmor
│ │ │ +0009ae90: 5f63 6f6e 6669 6775 7265 640a 2020 2d20  _configured.  - 
│ │ │ +0009aea0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0009aeb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0009af60: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0009af70: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disr │ │ │ -0009aeb0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0009aec0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0009af00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0009af10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0009b010: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0009b0b0: 636c 7564 6520 656e 6162 6c65 5f61 7070  clude enable_app
│ │ │ +0009b0c0: 6172 6d6f 720a 0a63 6c61 7373 2065 6e61  armor..class ena
│ │ │ +0009b0d0: 626c 655f 6170 7061 726d 6f72 207b 0a20  ble_apparmor {. 
│ │ │ +0009b0e0: 2073 6572 7669 6365 207b 2761 7070 6172   service {'appar
│ │ │ +0009b0f0: 6d6f 7227 3a0a 2020 2020 656e 6162 6c65  mor':.    enable
│ │ │ +0009b100: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ +0009b110: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ +0009b120: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ +0009b130: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0009b1e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0009b1f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0009b200: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0009b210: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0009b240: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0009b250: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0009b260: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +0009b270: 5b22 6170 7061 726d 6f72 225d 0a3c 2f63  ["apparmor"].
│ │ │ 0009b290: 3c2f 6469 763e 3c2f 7464 3e3c 2f74 723e │ │ │ 0009b2a0: 3c2f 7462 6f64 793e 3c2f 7461 626c 653e
│ │ │ +0009b000: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0009b030: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0009b040: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0009b080: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0009b090: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ 0009b2b0: 3c2f 7464 3e3c 2f74 723e 3c74 7220 6461 Remediation │ │ │ -000d97f0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000d9800: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -000d9860: 616d 6520 3d20 226c 6f67 726f 7461 7465  ame = "logrotate
│ │ │ -000d9870: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -000d9880: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000d9930: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000d9940: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000d99e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -000d9a80: 636c 7564 6520 696e 7374 616c 6c5f 6c6f  clude install_lo
│ │ │ -000d9a90: 6772 6f74 6174 650a 0a63 6c61 7373 2069  grotate..class i
│ │ │ -000d9aa0: 6e73 7461 6c6c 5f6c 6f67 726f 7461 7465  nstall_logrotate
│ │ │ -000d9ab0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -000d9ac0: 6c6f 6772 6f74 6174 6527 3a0a 2020 2020  logrotate':.    
│ │ │ -000d9ad0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -000d9ae0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -000d9af0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -000d9ba0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -000d9bb0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -000d9bc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -000d99d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000d9a00: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000d9a10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000d9a50: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000d9a60: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -000d9c90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000d9ca0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -000d9cf0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000d9d00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000d9d10: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000d9d20: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000d9d30: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -000d9d40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -000d9d50: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -000d9d60: 6571 2d31 302e 370a 2020 2d20 5043 492d  eq-10.7.  - PCI-
│ │ │ -000d9d70: 4453 5376 342d 3130 2e35 0a20 202d 2050  DSSv4-10.5.  - P
│ │ │ -000d9d80: 4349 2d44 5353 7634 2d31 302e 352e 310a  CI-DSSv4-10.5.1.
│ │ │ -000d9d90: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000d9da0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000d9db0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000d9dc0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000d9dd0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000d9de0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000d9df0: 6564 0a20 202d 2070 6163 6b61 6765 5f6c  ed.  - package_l
│ │ │ -000d9e00: 6f67 726f 7461 7465 5f69 6e73 7461 6c6c  ogrotate_install
│ │ │ -000d9e10: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -000d9e20: 7265 206c 6f67 726f 7461 7465 2069 7320  re logrotate is 
│ │ │ -000d9e30: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000d9e40: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000d9e50: 6167 653a 0a20 2020 206e 616d 653a 206c  age:.    name: l
│ │ │ -000d9e60: 6f67 726f 7461 7465 0a20 2020 2073 7461  ogrotate.    sta
│ │ │ -000d9e70: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -000d9e80: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -000d9e90: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000d9ea0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000d9eb0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -000d9ec0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -000d9ed0: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -000d9ee0: 370a 2020 2d20 5043 492d 4453 5376 342d  7.  - PCI-DSSv4-
│ │ │ -000d9ef0: 3130 2e35 0a20 202d 2050 4349 2d44 5353  10.5.  - PCI-DSS
│ │ │ -000d9f00: 7634 2d31 302e 352e 310a 2020 2d20 656e  v4-10.5.1.  - en
│ │ │ -000d9f10: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000d9f20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000d9f30: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000d9f40: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000d9f50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000d9f60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000d9f70: 2070 6163 6b61 6765 5f6c 6f67 726f 7461   package_logrota
│ │ │ -000d9f80: 7465 5f69 6e73 7461 6c6c 6564 0a3c 2f63  te_installed.
< │ │ │ +000d98c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000d98d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -000d9c70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000d9c80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000d9cc0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000d9cd0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +000d9890: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000d98b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000d98e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000d9900: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +000d9940: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000d9950: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +000d9960: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +000d9970: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +000d9980: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000d9990: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +000d99a0: 4453 532d 5265 712d 3130 2e37 0a20 202d  DSS-Req-10.7.  -
│ │ │ +000d99b0: 2050 4349 2d44 5353 7634 2d31 302e 350a   PCI-DSSv4-10.5.
│ │ │ +000d99c0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +000d99d0: 2e35 2e31 0a20 202d 2065 6e61 626c 655f  .5.1.  - enable_
│ │ │ +000d99e0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +000d99f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +000d9a00: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +000d9a10: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +000d9a20: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +000d9a30: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +000d9a40: 6167 655f 6c6f 6772 6f74 6174 655f 696e  age_logrotate_in
│ │ │ +000d9a50: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +000d9a60: 2045 6e73 7572 6520 6c6f 6772 6f74 6174   Ensure logrotat
│ │ │ +000d9a70: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000d9a80: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000d9a90: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000d9aa0: 6d65 3a20 6c6f 6772 6f74 6174 650a 2020  me: logrotate.  
│ │ │ +000d9ab0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000d9ac0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +000d9ad0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +000d9ae0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +000d9af0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +000d9b00: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000d9b10: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ +000d9b20: 712d 3130 2e37 0a20 202d 2050 4349 2d44  q-10.7.  - PCI-D
│ │ │ +000d9b30: 5353 7634 2d31 302e 350a 2020 2d20 5043  SSv4-10.5.  - PC
│ │ │ +000d9b40: 492d 4453 5376 342d 3130 2e35 2e31 0a20  I-DSSv4-10.5.1. 
│ │ │ +000d9b50: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000d9b60: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000d9b70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000d9b80: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000d9b90: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000d9ba0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000d9bb0: 640a 2020 2d20 7061 636b 6167 655f 6c6f  d.  - package_lo
│ │ │ +000d9bc0: 6772 6f74 6174 655f 696e 7374 616c 6c65  grotate_installe
│ │ │ +000d9bd0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000d9be0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +000d9c90: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000d9ca0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000d9d70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000d9d80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000d9dd0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +000d9de0: 6c6f 6772 6f74 6174 650a 0a63 6c61 7373  logrotate..class
│ │ │ +000d9df0: 2069 6e73 7461 6c6c 5f6c 6f67 726f 7461   install_logrota
│ │ │ +000d9e00: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ +000d9e10: 2027 6c6f 6772 6f74 6174 6527 3a0a 2020   'logrotate':.  
│ │ │ +000d9e20: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000d9e30: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +000d9e40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000d9e50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000d9f00: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000d9f10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000d9f20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000d9f60: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +000d9f70: 203d 2022 6c6f 6772 6f74 6174 6522 0a76   = "logrotate".v
│ │ │ +000d9f80: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 000d9fa0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation OS │ │ │ -000e18f0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000e1900: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000e1910: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000e1950: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000e1960: 203d 2022 7273 7973 6c6f 672d 676e 7574   = "rsyslog-gnut
│ │ │ -000e1970: 6c73 220a 7665 7273 696f 6e20 3d20 222a  ls".version = "*
│ │ │ -000e1980: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -000e1990: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000e1a40: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000e1a50: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +000d9d50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000d9d60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000d9da0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000d9db0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -000e1b20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e1b30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e1b80: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -000e1b90: 7273 7973 6c6f 672d 676e 7574 6c73 0a0a  rsyslog-gnutls..
│ │ │ -000e1ba0: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ -000e1bb0: 7973 6c6f 672d 676e 7574 6c73 207b 0a20  yslog-gnutls {. 
│ │ │ -000e1bc0: 2070 6163 6b61 6765 207b 2027 7273 7973   package { 'rsys
│ │ │ -000e1bd0: 6c6f 672d 676e 7574 6c73 273a 0a20 2020  log-gnutls':.   
│ │ │ -000e1be0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000e1bf0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000e1c00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000e1cc0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000e1cd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -000e1b00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e1b10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e1b50: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e1b60: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -000e1da0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e1db0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e1e00: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000e1e10: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000e1e20: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000e1e30: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000e1e40: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000e1e50: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000e1e60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000e1e70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000e1e80: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000e1e90: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000e1ea0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000e1eb0: 202d 2070 6163 6b61 6765 5f72 7379 736c   - package_rsysl
│ │ │ -000e1ec0: 6f67 2d67 6e75 746c 735f 696e 7374 616c  og-gnutls_instal
│ │ │ -000e1ed0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -000e1ee0: 7572 6520 7273 7973 6c6f 672d 676e 7574  ure rsyslog-gnut
│ │ │ -000e1ef0: 6c73 2069 7320 696e 7374 616c 6c65 640a  ls is installed.
│ │ │ -000e1f00: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000e1f10: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000e1f20: 616d 653a 2072 7379 736c 6f67 2d67 6e75  ame: rsyslog-gnu
│ │ │ -000e1f30: 746c 730a 2020 2020 7374 6174 653a 2070  tls.    state: p
│ │ │ -000e1f40: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -000e1f50: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000e1f60: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000e1f70: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -000e1f80: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000e1f90: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000e1fa0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000e1fb0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000e1fc0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000e1fd0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000e1fe0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -000e1ff0: 7379 736c 6f67 2d67 6e75 746c 735f 696e  syslog-gnutls_in
│ │ │ -000e2000: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000e18e0: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000e18f0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000e1900: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disru │ │ │ -000e1d80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e1d90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e1dd0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e1de0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000e1980: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000e19a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000e19f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000e1a40: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000e1a50: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000e1a60: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000e1a70: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000e1a80: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000e1a90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000e1aa0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000e1ab0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000e1ac0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000e1ad0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000e1ae0: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ +000e1af0: 6c6f 672d 676e 7574 6c73 5f69 6e73 7461  log-gnutls_insta
│ │ │ +000e1b00: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +000e1b10: 7375 7265 2072 7379 736c 6f67 2d67 6e75  sure rsyslog-gnu
│ │ │ +000e1b20: 746c 7320 6973 2069 6e73 7461 6c6c 6564  tls is installed
│ │ │ +000e1b30: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000e1b40: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000e1b50: 6e61 6d65 3a20 7273 7973 6c6f 672d 676e  name: rsyslog-gn
│ │ │ +000e1b60: 7574 6c73 0a20 2020 2073 7461 7465 3a20  utls.    state: 
│ │ │ +000e1b70: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +000e1b80: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +000e1b90: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +000e1ba0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +000e1bb0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000e1bc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000e1bd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000e1be0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000e1bf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000e1c00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000e1c10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000e1c20: 7273 7973 6c6f 672d 676e 7574 6c73 5f69  rsyslog-gnutls_i
│ │ │ +000e1c30: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000e1c40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000e1cf0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000e1d00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000e1d10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e1d20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e1d30: 7365 2220 6964 3d22 6964 3237 3022 3e3c se" id="id270">< │ │ │ +000e1d40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e1d50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e1d60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e1d70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e1d80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000e1e10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000e1e20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ +000e19b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000e19c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000e1a00: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000e1a10: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +000e1d90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e1da0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000e1de0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e1df0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000e1e40: 6e73 7461 6c6c 5f72 7379 736c 6f67 2d67  nstall_rsyslog-g
│ │ │ +000e1e50: 6e75 746c 730a 0a63 6c61 7373 2069 6e73  nutls..class ins
│ │ │ +000e1e60: 7461 6c6c 5f72 7379 736c 6f67 2d67 6e75  tall_rsyslog-gnu
│ │ │ +000e1e70: 746c 7320 7b0a 2020 7061 636b 6167 6520  tls {.  package 
│ │ │ +000e1e80: 7b20 2772 7379 736c 6f67 2d67 6e75 746c  { 'rsyslog-gnutl
│ │ │ +000e1e90: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +000e1ea0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +000e1eb0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000e1ec0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +000e1f70: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +000e1f80: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +000e1f90: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +000e1fe0: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ +000e1ff0: 672d 676e 7574 6c73 220a 7665 7273 696f  g-gnutls".versio
│ │ │ +000e2000: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000e2010: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000e3120: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000e3130: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000e3140: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000e3190: 5d0a 6e61 6d65 203d 2022 7273 7973 6c6f  ].name = "rsyslo
│ │ │ -000e31a0: 6722 0a76 6572 7369 6f6e 203d 2022 2a22  g".version = "*"
│ │ │ -000e31b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000e3270: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000e3280: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000e3350: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000e3360: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000e33b0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -000e33c0: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -000e33d0: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -000e33e0: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -000e33f0: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -000e3400: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -000e3410: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000e34d0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000e34e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ -000e3330: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000e3340: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000e3380: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000e3390: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -000e3570: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000e3580: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000e35a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000e35c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000e35d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -000e3610: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -000e3620: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -000e3630: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -000e3640: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -000e3650: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -000e3660: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -000e3670: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -000e3680: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -000e3690: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -000e36a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -000e36b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -000e36c0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -000e36d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -000e36e0: 0a20 202d 2070 6163 6b61 6765 5f72 7379 . - package_rsy │ │ │ -000e36f0: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a0a slog_installed.. │ │ │ -000e3700: 2d20 6e61 6d65 3a20 456e 7375 7265 2072 - name: Ensure r │ │ │ -000e3710: 7379 736c 6f67 2069 7320 696e 7374 616c syslog is instal │ │ │ -000e3720: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -000e3730: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -000e3740: 2020 206e 616d 653a 2072 7379 736c 6f67 name: rsyslog │ │ │ -000e3750: 0a20 2020 2073 7461 7465 3a20 7072 6573 . state: pres │ │ │ -000e3760: 656e 740a 2020 7768 656e 3a20 2722 6c69 ent. when: '"li │ │ │ -000e3770: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ -000e3780: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -000e3790: 6765 7327 0a20 2074 6167 733a 0a20 202d ges'. tags:. - │ │ │ -000e37a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -000e37b0: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -000e37c0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -000e37d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -000e37e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -000e37f0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -000e3800: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -000e3810: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -000e3820: 6167 655f 7273 7973 6c6f 675f 696e 7374 age_rsyslog_inst │ │ │ -000e3830: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +000e3140: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e3150: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e3160: 7365 2220 6964 3d22 6964 3237 3422 3e3c se" id="id274">< │ │ │ +000e3170: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e3180: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e3190: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e31a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e31b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000e31c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e31d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000e3210: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e3220: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000e3240: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000e3250: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000e3270: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000e3280: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000e3290: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000e32a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000e32b0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000e32c0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ +000e32d0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000e32e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000e32f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000e3300: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000e3310: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000e3320: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000e3330: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ +000e3340: 675f 696e 7374 616c 6c65 640a 0a2d 206e  g_installed..- n
│ │ │ +000e3350: 616d 653a 2045 6e73 7572 6520 7273 7973  ame: Ensure rsys
│ │ │ +000e3360: 6c6f 6720 6973 2069 6e73 7461 6c6c 6564  log is installed
│ │ │ +000e3370: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000e3380: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000e3390: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020  name: rsyslog.  
│ │ │ +000e33a0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000e33b0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +000e33c0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +000e33d0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +000e33e0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +000e33f0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000e3400: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +000e3410: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000e3420: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000e3430: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000e3440: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000e3450: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000e3460: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000e3470: 5f72 7379 736c 6f67 5f69 6e73 7461 6c6c  _rsyslog_install
│ │ │ +000e3480: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000e3490: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000e3540: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +000e3550: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +000e35d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000e35f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000e3640: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000e3690: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +000e36a0: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +000e36b0: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +000e36c0: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +000e36d0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +000e36e0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +000e3700: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000e37a0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000e37b0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000e37c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

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

Remediat │ │ │ -000e4ab0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000e4ac0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000e4ad0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000e4b20: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000e4b30: 6e61 626c 6564 203d 205b 2272 7379 736c  nabled = ["rsysl
│ │ │ -000e4b40: 6f67 225d 0a3c 2f63 6f64 653e 3c2f 7072  og"].
Remediation │ │ │ -000e4c00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000e4c10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -000e4ce0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -000e4d30: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ +000e3600: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000e3610: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000e3650: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000e3660: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -000e4ca0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -000e4cc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -000e4d10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -000e4d20: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ -000e4d50: 655f 7273 7973 6c6f 670a 0a63 6c61 7373  e_rsyslog..class
│ │ │ -000e4d60: 2065 6e61 626c 655f 7273 7973 6c6f 6720   enable_rsyslog 
│ │ │ -000e4d70: 7b0a 2020 7365 7276 6963 6520 7b27 7273  {.  service {'rs
│ │ │ -000e4d80: 7973 6c6f 6727 3a0a 2020 2020 656e 6162  yslog':.    enab
│ │ │ -000e4d90: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -000e4da0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000e4db0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -000e4dc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000e4e80: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000e4e90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000e4f60: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000e4f70: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000e4fc0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000e4fd0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000e4fe0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000e4ff0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000e5000: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000e5010: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -000e5020: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -000e5030: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -000e5040: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000e5050: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000e5060: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000e5070: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000e5080: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000e5090: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000e50a0: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -000e50b0: 6f67 5f65 6e61 626c 6564 0a0a 2d20 6e61  og_enabled..- na
│ │ │ -000e50c0: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ -000e50d0: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ -000e50e0: 626c 6520 7365 7276 6963 6520 7273 7973  ble service rsys
│ │ │ -000e50f0: 6c6f 670a 2020 626c 6f63 6b3a 0a0a 2020  log.  block:..  
│ │ │ -000e5100: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000e5110: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000e5120: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -000e5130: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -000e5140: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -000e5150: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -000e5160: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -000e5170: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -000e5180: 6c65 2053 6572 7669 6365 2072 7379 736c  le Service rsysl
│ │ │ -000e5190: 6f67 0a20 2020 2061 6e73 6962 6c65 2e62  og.    ansible.b
│ │ │ -000e51a0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -000e51b0: 2020 2020 2020 6e61 6d65 3a20 7273 7973        name: rsys
│ │ │ -000e51c0: 6c6f 670a 2020 2020 2020 656e 6162 6c65  log.      enable
│ │ │ -000e51d0: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -000e51e0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -000e51f0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -000e5200: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -000e5210: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ -000e5220: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000e5230: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000e5240: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000e5250: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -000e5260: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000e5270: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000e5280: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000e5290: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000e52a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000e52b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000e52c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000e52d0: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -000e52e0: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ -000e52f0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -000e5300: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -000e5310: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -000e5320: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000e5330: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +000e4ab0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000e4ac0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000e4ad0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e4ae0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e4af0: 7365 2220 6964 3d22 6964 3237 3922 3e3c se" id="id279">< │ │ │ +000e4b00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e4b10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e4b20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e4b30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e4b40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000e4bd0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000e4be0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ -000e4f40: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000e4f50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000e4f90: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000e4fa0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ +000e4b50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e4b60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000e4ba0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e4bb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +000e4c00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000e4c10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000e4c20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000e4c30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000e4c40: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000e4c50: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +000e4c60: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +000e4c70: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +000e4c80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000e4c90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000e4ca0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000e4cb0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000e4cc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000e4cd0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +000e4ce0: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +000e4cf0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +000e4d00: 6520 7273 7973 6c6f 6720 5365 7276 6963  e rsyslog Servic
│ │ │ +000e4d10: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ +000e4d20: 6365 2072 7379 736c 6f67 0a20 2062 6c6f  ce rsyslog.  blo
│ │ │ +000e4d30: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ +000e4d40: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000e4d50: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ +000e4d60: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +000e4d70: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ +000e4d80: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ +000e4d90: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ +000e4da0: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ +000e4db0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +000e4dc0: 6520 7273 7973 6c6f 670a 2020 2020 616e  e rsyslog.    an
│ │ │ +000e4dd0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +000e4de0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +000e4df0: 653a 2072 7379 736c 6f67 0a20 2020 2020  e: rsyslog.     
│ │ │ +000e4e00: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +000e4e10: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +000e4e20: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +000e4e30: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +000e4e40: 3a0a 2020 2020 2d20 2722 7273 7973 6c6f  :.    - '"rsyslo
│ │ │ +000e4e50: 6722 2069 6e20 616e 7369 626c 655f 6661  g" in ansible_fa
│ │ │ +000e4e60: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +000e4e70: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +000e4e80: 3030 2d35 332d 4155 2d34 2831 290a 2020  00-53-AU-4(1).  
│ │ │ +000e4e90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +000e4ea0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +000e4eb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +000e4ec0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +000e4ed0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +000e4ee0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +000e4ef0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +000e4f00: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +000e4f10: 7669 6365 5f72 7379 736c 6f67 5f65 6e61  vice_rsyslog_ena
│ │ │ +000e4f20: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +000e4f30: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +000e4f40: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +000e4f50: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +000e4f60: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000e4f70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000e5020: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000e5030: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000e50d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000e5170: 636c 7564 6520 656e 6162 6c65 5f72 7379  clude enable_rsy
│ │ │ +000e5180: 736c 6f67 0a0a 636c 6173 7320 656e 6162  slog..class enab
│ │ │ +000e5190: 6c65 5f72 7379 736c 6f67 207b 0a20 2073  le_rsyslog {.  s
│ │ │ +000e51a0: 6572 7669 6365 207b 2772 7379 736c 6f67  ervice {'rsyslog
│ │ │ +000e51b0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +000e51c0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ +000e51d0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ +000e51e0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ +000e5200: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000e5210: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000e5220: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000e5230: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000e5240: 6432 3831 2220 7461 6269 6e64 6578 3d22 d281" tabindex=" │ │ │ +000e5250: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000e5260: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000e5270: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000e5280: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000e5290: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000e52a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000e52b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000e52c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +000e5310: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +000e5320: 735d 0a65 6e61 626c 6564 203d 205b 2272 s].enabled = ["r │ │ │ +000e5330: 7379 736c 6f67 225d 0a3c 2f63 6f64 653e syslog"]. │ │ │ 000e5340: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063 Remed │ │ │ -001f6e40: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -001f6e50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000e50c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000e50f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000e5100: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000e5140: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000e5150: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -001f6f00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001f6f20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001f6f50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001f6ee0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001f6ef0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001f6f10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001f6f30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001f6f40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001f6f80: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -001f6f90: 6465 2072 656d 6f76 655f 6468 6370 0a0a de remove_dhcp.. │ │ │ -001f6fa0: 636c 6173 7320 7265 6d6f 7665 5f64 6863 class remove_dhc │ │ │ -001f6fb0: 7020 7b0a 2020 7061 636b 6167 6520 7b20 p {. package { │ │ │ -001f6fc0: 2764 6863 7027 3a0a 2020 2020 656e 7375 'dhcp':. ensu │ │ │ -001f6fd0: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -001f6fe0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -001f6ff0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -001f70a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -001f70b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001f70c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001f70f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -001f7160: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001f7180: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001f71b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001f7140: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001f7150: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001f7190: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001f71a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -001f71f0: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ -001f7200: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ -001f7210: 2045 6e73 7572 6520 6468 6370 2069 7320 Ensure dhcp is │ │ │ -001f7220: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ -001f7230: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -001f7240: 6765 3a0a 2020 2020 6e61 6d65 3a20 6468 ge:. name: dh │ │ │ -001f7250: 6370 0a20 2020 2073 7461 7465 3a20 6162 cp. state: ab │ │ │ -001f7260: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -001f7270: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -001f7280: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -001f7290: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -001f72a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -001f72b0: 3728 6229 0a20 202d 2050 4349 2d44 5353 7(b). - PCI-DSS │ │ │ -001f72c0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -001f72d0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ -001f72e0: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -001f72f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -001f7300: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -001f7310: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -001f7320: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -001f7330: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -001f7340: 202d 2070 6163 6b61 6765 5f64 6863 705f - package_dhcp_ │ │ │ -001f7350: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +001f6e40: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +001f6e50: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

Comp │ │ │ +001f6ee0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001f6ef0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001f6f10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +001f6f30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +001f6f40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +001f6f80: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +001f6f90: 653a 2027 556e 696e 7374 616c 6c20 4448  e: 'Uninstall DH
│ │ │ +001f6fa0: 4350 2053 6572 7665 7220 5061 636b 6167  CP Server Packag
│ │ │ +001f6fb0: 653a 2045 6e73 7572 6520 6468 6370 2069  e: Ensure dhcp i
│ │ │ +001f6fc0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +001f6fd0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001f6fe0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +001f6ff0: 6468 6370 0a20 2020 2073 7461 7465 3a20  dhcp.    state: 
│ │ │ +001f7000: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +001f7010: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001f7020: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +001f7030: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +001f7040: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001f7050: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +001f7060: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001f7070: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +001f7080: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +001f7090: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +001f70a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +001f70b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +001f70c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +001f70d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001f70e0: 0a20 202d 2070 6163 6b61 6765 5f64 6863  .  - package_dhc
│ │ │ +001f70f0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +001f71b0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +001f71c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001f71d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001f7200: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001f7270: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001f7290: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001f72c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001f7250: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001f7260: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001f72a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001f72b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +001f7300: 6520 7265 6d6f 7665 5f64 6863 700a 0a63 e remove_dhcp..c │ │ │ +001f7310: 6c61 7373 2072 656d 6f76 655f 6468 6370 lass remove_dhcp │ │ │ +001f7320: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +001f7330: 6468 6370 273a 0a20 2020 2065 6e73 7572 dhcp':. ensur │ │ │ +001f7340: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +001f7350: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 001f7360: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediatio │ │ │ -001f7e40: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -001f7e50: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -001f7ee0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -001f7f00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -001f7f10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001f7f20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -001f7f30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -001f7f50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001f7f80: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -001f7f90: 6d6f 7665 5f6b 6561 0a0a 636c 6173 7320  move_kea..class 
│ │ │ -001f7fa0: 7265 6d6f 7665 5f6b 6561 207b 0a20 2070  remove_kea {.  p
│ │ │ -001f7fb0: 6163 6b61 6765 207b 2027 6b65 6127 3a0a  ackage { 'kea':.
│ │ │ -001f7fc0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -001f7fd0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -001f7fe0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001f80a0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001f80b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001f8180: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001f8190: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -001f81f0: 616c 6c20 6b65 6120 5061 636b 6167 653a  all kea Package:
│ │ │ -001f8200: 2045 6e73 7572 6520 6b65 6120 6973 2072   Ensure kea is r
│ │ │ -001f8210: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -001f8220: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -001f8230: 653a 0a20 2020 206e 616d 653a 206b 6561  e:.    name: kea
│ │ │ -001f8240: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -001f8250: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -001f8260: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -001f8270: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001f8280: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -001f8290: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -001f82a0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -001f82b0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001f82c0: 202d 2070 6163 6b61 6765 5f6b 6561 5f72   - package_kea_r
│ │ │ -001f82d0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
< │ │ │ +001f7ed0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001f7f10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -001f8160: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001f8170: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001f81b0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001f81c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +001f7ee0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001f7f00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001f7f30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001f7f50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001f7f80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +001f7f90: 6e69 6e73 7461 6c6c 206b 6561 2050 6163  ninstall kea Pac
│ │ │ +001f7fa0: 6b61 6765 3a20 456e 7375 7265 206b 6561  kage: Ensure kea
│ │ │ +001f7fb0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +001f7fc0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +001f7fd0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +001f7fe0: 3a20 6b65 610a 2020 2020 7374 6174 653a  : kea.    state:
│ │ │ +001f7ff0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +001f8000: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001f8010: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001f8020: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001f8030: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001f8040: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001f8050: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +001f8060: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +001f8070: 6b65 615f 7265 6d6f 7665 640a 3c2f 636f  kea_removed.
< │ │ │ +001f8090: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001f80a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001f80b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001f80c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001f80d0: 6436 3633 2220 7461 6269 6e64 6578 3d22 d663" tabindex=" │ │ │ +001f80e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001f80f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +001f8100: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +001f8110: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +001f8120: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +001f8130: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +001f8140: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +001f81d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001f81e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001f8200: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +001f8220: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +001f8230: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +001f8270: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +001f8280: 7564 6520 7265 6d6f 7665 5f6b 6561 0a0a  ude remove_kea..
│ │ │ +001f8290: 636c 6173 7320 7265 6d6f 7665 5f6b 6561  class remove_kea
│ │ │ +001f82a0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +001f82b0: 6b65 6127 3a0a 2020 2020 656e 7375 7265  kea':.    ensure
│ │ │ +001f82c0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +001f82d0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Reme │ │ │ -001fcad0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001fcae0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001fcb70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001fcb80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001fcba0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001fcbc0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001fcbd0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001fcc10: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001fcc20: 7564 6520 7265 6d6f 7665 5f73 656e 646d  ude remove_sendm
│ │ │ -001fcc30: 6169 6c0a 0a63 6c61 7373 2072 656d 6f76  ail..class remov
│ │ │ -001fcc40: 655f 7365 6e64 6d61 696c 207b 0a20 2070  e_sendmail {.  p
│ │ │ -001fcc50: 6163 6b61 6765 207b 2027 7365 6e64 6d61  ackage { 'sendma
│ │ │ -001fcc60: 696c 273a 0a20 2020 2065 6e73 7572 6520  il':.    ensure 
│ │ │ -001fcc70: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -001fcc80: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -001fcd40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -001fcd50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001fcdd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -001fcde0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -001fce00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -001fce10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -001fce30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -001fce50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -001fce80: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -001fce90: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -001fcea0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -001fceb0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -001fcec0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -001fced0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -001fcee0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -001fcef0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -001fcf00: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001fcf10: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -001fcf20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001fcf30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001fcf40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001fcf50: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -001fcf60: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -001fcf70: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -001fcf80: 2d20 7061 636b 6167 655f 7365 6e64 6d61  - package_sendma
│ │ │ -001fcf90: 696c 5f72 656d 6f76 6564 0a0a 2d20 6e61  il_removed..- na
│ │ │ -001fcfa0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2053  me: 'Uninstall S
│ │ │ -001fcfb0: 656e 646d 6169 6c20 5061 636b 6167 653a  endmail Package:
│ │ │ -001fcfc0: 2045 6e73 7572 6520 7365 6e64 6d61 696c   Ensure sendmail
│ │ │ -001fcfd0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -001fcfe0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -001fcff0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -001fd000: 3a20 7365 6e64 6d61 696c 0a20 2020 2073  : sendmail.    s
│ │ │ -001fd010: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ -001fd020: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -001fd030: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -001fd040: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -001fd050: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -001fd060: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -001fd070: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001fd080: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -001fd090: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -001fd0a0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001fd0b0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001fd0c0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001fd0d0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -001fd0e0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -001fd0f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -001fd100: 640a 2020 2d20 7061 636b 6167 655f 7365  d.  - package_se
│ │ │ -001fd110: 6e64 6d61 696c 5f72 656d 6f76 6564 0a3c  ndmail_removed.<
│ │ │ +001fcad0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +001fcae0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +001fcaf0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +001fcb70: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001fcba0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001fcbc0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001fcbd0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001fcbf0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001fcc00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001fcc20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +001fcc30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +001fcc40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +001fcc50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001fcc60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +001fcc70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +001fcc80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001fcc90: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +001fcca0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +001fccb0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001fccc0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +001fccd0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +001fcce0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +001fccf0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +001fcd00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +001fcd10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +001fcd20: 7365 6e64 6d61 696c 5f72 656d 6f76 6564  sendmail_removed
│ │ │ +001fcd30: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73  ..- name: 'Unins
│ │ │ +001fcd40: 7461 6c6c 2053 656e 646d 6169 6c20 5061  tall Sendmail Pa
│ │ │ +001fcd50: 636b 6167 653a 2045 6e73 7572 6520 7365  ckage: Ensure se
│ │ │ +001fcd60: 6e64 6d61 696c 2069 7320 7265 6d6f 7665  ndmail is remove
│ │ │ +001fcd70: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +001fcd80: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +001fcd90: 2020 6e61 6d65 3a20 7365 6e64 6d61 696c    name: sendmail
│ │ │ +001fcda0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +001fcdb0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +001fcdc0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +001fcdd0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +001fcde0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +001fcdf0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +001fce00: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +001fce10: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +001fce20: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +001fce30: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +001fce40: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +001fce50: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +001fce60: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +001fce70: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +001fce80: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +001fce90: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +001fcea0: 6167 655f 7365 6e64 6d61 696c 5f72 656d  age_sendmail_rem
│ │ │ +001fceb0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +001fcf70: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +001fcf80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +001fd010: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001fd030: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001fd050: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +001fd080: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001fd090: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +001fd0c0: 6f76 655f 7365 6e64 6d61 696c 0a0a 636c  ove_sendmail..cl
│ │ │ +001fd0d0: 6173 7320 7265 6d6f 7665 5f73 656e 646d  ass remove_sendm
│ │ │ +001fd0e0: 6169 6c20 7b0a 2020 7061 636b 6167 6520  ail {.  package 
│ │ │ +001fd0f0: 7b20 2773 656e 646d 6169 6c27 3a0a 2020  { 'sendmail':.  
│ │ │ +001fd100: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +001fd110: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  001fd120: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -001ff150: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -001ff160: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -001ff170: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -001ff1c0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2263 ages]].name = "c │ │ │ -001ff1d0: 6872 6f6e 7922 0a76 6572 7369 6f6e 203d hrony".version = │ │ │ -001ff1e0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".

Remediation │ │ │ -001ff2a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -001ff2b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001ff340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001ff360: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001ff380: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001ff3b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001ff3c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -001ff3d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ -001ff3f0: 6c6c 5f63 6872 6f6e 790a 0a63 6c61 7373  ll_chrony..class
│ │ │ -001ff400: 2069 6e73 7461 6c6c 5f63 6872 6f6e 7920   install_chrony 
│ │ │ -001ff410: 7b0a 2020 7061 636b 6167 6520 7b20 2763  {.  package { 'c
│ │ │ -001ff420: 6872 6f6e 7927 3a0a 2020 2020 656e 7375  hrony':.    ensu
│ │ │ -001ff430: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -001ff440: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -001ff460: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001ff470: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001ff480: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001ff490: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001ff4a0: 6436 3736 2220 7461 6269 6e64 6578 3d22 d676" tabindex=" │ │ │ -001ff4b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001ff4c0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001ff4d0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001ff4e0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001ff4f0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001ff500: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001ff510: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001ff520: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001ff5a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001ff5d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001ff5f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001ff600: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001ff620: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -001ff640: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -001ff650: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -001ff660: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -001ff670: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -001ff680: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -001ff690: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -001ff6a0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ -001ff6b0: 5043 492d 4453 5376 342d 3130 2e36 0a20  PCI-DSSv4-10.6. 
│ │ │ -001ff6c0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -001ff6d0: 362e 310a 2020 2d20 656e 6162 6c65 5f73  6.1.  - enable_s
│ │ │ -001ff6e0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001ff6f0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001ff700: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001ff710: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001ff720: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -001ff730: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -001ff740: 6765 5f63 6872 6f6e 795f 696e 7374 616c  ge_chrony_instal
│ │ │ -001ff750: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -001ff760: 7572 6520 6368 726f 6e79 2069 7320 696e  ure chrony is in
│ │ │ -001ff770: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -001ff780: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -001ff790: 653a 0a20 2020 206e 616d 653a 2063 6872  e:.    name: chr
│ │ │ -001ff7a0: 6f6e 790a 2020 2020 7374 6174 653a 2070  ony.    state: p
│ │ │ -001ff7b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ -001ff7c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -001ff7d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -001ff7e0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -001ff7f0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -001ff800: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ -001ff810: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ -001ff820: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ -001ff830: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -001ff840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001ff850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001ff860: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -001ff870: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -001ff880: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001ff890: 2020 2d20 7061 636b 6167 655f 6368 726f    - package_chro
│ │ │ -001ff8a0: 6e79 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ny_installed.
│ │ │ +001ff170: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +001ff210: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001ff260: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001ff1f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001ff220: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001ff240: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001ff250: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001ff270: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001ff280: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001ff2a0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +001ff2b0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +001ff2c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +001ff2d0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +001ff2e0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +001ff2f0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +001ff300: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ +001ff310: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +001ff320: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ +001ff330: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +001ff340: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +001ff350: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +001ff360: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +001ff370: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +001ff380: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +001ff390: 6167 655f 6368 726f 6e79 5f69 6e73 7461  age_chrony_insta
│ │ │ +001ff3a0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +001ff3b0: 7375 7265 2063 6872 6f6e 7920 6973 2069  sure chrony is i
│ │ │ +001ff3c0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +001ff3d0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +001ff3e0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6368  ge:.    name: ch
│ │ │ +001ff3f0: 726f 6e79 0a20 2020 2073 7461 7465 3a20  rony.    state: 
│ │ │ +001ff400: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +001ff410: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +001ff420: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +001ff430: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +001ff440: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001ff450: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ +001ff460: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ +001ff470: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ +001ff480: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +001ff490: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +001ff4a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +001ff4b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +001ff4c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +001ff4d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001ff4e0: 0a20 202d 2070 6163 6b61 6765 5f63 6872  .  - package_chr
│ │ │ +001ff4f0: 6f6e 795f 696e 7374 616c 6c65 640a 3c2f  ony_installed.
Re │ │ │ +001ff5b0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001ff5c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001ff5d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +001ff670: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001ff6c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001ff650: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001ff680: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001ff6a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001ff6b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001ff6d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001ff6e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +001ff700: 7564 6520 696e 7374 616c 6c5f 6368 726f  ude install_chro
│ │ │ +001ff710: 6e79 0a0a 636c 6173 7320 696e 7374 616c  ny..class instal
│ │ │ +001ff720: 6c5f 6368 726f 6e79 207b 0a20 2070 6163  l_chrony {.  pac
│ │ │ +001ff730: 6b61 6765 207b 2027 6368 726f 6e79 273a  kage { 'chrony':
│ │ │ +001ff740: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001ff750: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +001ff760: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +001ff820: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +001ff830: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +001ff890: 616d 6520 3d20 2263 6872 6f6e 7922 0a76  ame = "chrony".v
│ │ │ +001ff8a0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 001ff8c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Remediation │ │ │ -00209a80: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00209a90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00209b20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00209b40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00209b60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00209b90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00209ba0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00209bd0: 6f76 655f 7869 6e65 7464 0a0a 636c 6173  ove_xinetd..clas
│ │ │ -00209be0: 7320 7265 6d6f 7665 5f78 696e 6574 6420  s remove_xinetd 
│ │ │ -00209bf0: 7b0a 2020 7061 636b 6167 6520 7b20 2778  {.  package { 'x
│ │ │ -00209c00: 696e 6574 6427 3a0a 2020 2020 656e 7375  inetd':.    ensu
│ │ │ -00209c10: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00209c20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00209c30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00209ce0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00209cf0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00209d00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00209d30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00209da0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00209dc0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00209df0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00209d80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00209d90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00209dd0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00209de0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00209e30: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00209e40: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00209e50: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00209e60: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00209e70: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00209e80: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00209e90: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00209ea0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -00209eb0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -00209ec0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00209ed0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00209ee0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ -00209ef0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00209f00: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00209f10: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00209f20: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ -00209f30: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00209f40: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -00209f50: 7869 6e65 7464 5f72 656d 6f76 6564 0a0a xinetd_removed.. │ │ │ -00209f60: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461 - name: 'Uninsta │ │ │ -00209f70: 6c6c 2078 696e 6574 6420 5061 636b 6167 ll xinetd Packag │ │ │ -00209f80: 653a 2045 6e73 7572 6520 7869 6e65 7464 e: Ensure xinetd │ │ │ -00209f90: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -00209fa0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -00209fb0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -00209fc0: 3a20 7869 6e65 7464 0a20 2020 2073 7461 : xinetd. sta │ │ │ -00209fd0: 7465 3a20 6162 7365 6e74 0a20 2077 6865 te: absent. whe │ │ │ -00209fe0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -00209ff0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -0020a000: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -0020a010: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0020a020: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0020a030: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -0020a040: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -0020a050: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -0020a060: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -0020a070: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -0020a080: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -0020a090: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0020a0a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0020a0b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0020a0c0: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -0020a0d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0020a0e0: 6564 0a20 202d 2070 6163 6b61 6765 5f78 ed. - package_x │ │ │ -0020a0f0: 696e 6574 645f 7265 6d6f 7665 640a 3c2f inetd_removed.

Complexity │ │ │ +00209b20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00209b40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00209b50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00209b60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00209b70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00209b90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00209bc0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00209bd0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00209be0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00209bf0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00209c00: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00209c10: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00209c20: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00209c30: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00209c40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00209c50: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ +00209c60: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00209c70: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +00209c80: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00209c90: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00209ca0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00209cb0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00209cc0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00209cd0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00209ce0: 2020 2d20 7061 636b 6167 655f 7869 6e65    - package_xine
│ │ │ +00209cf0: 7464 5f72 656d 6f76 6564 0a0a 2d20 6e61  td_removed..- na
│ │ │ +00209d00: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2078  me: 'Uninstall x
│ │ │ +00209d10: 696e 6574 6420 5061 636b 6167 653a 2045  inetd Package: E
│ │ │ +00209d20: 6e73 7572 6520 7869 6e65 7464 2069 7320  nsure xinetd is 
│ │ │ +00209d30: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00209d40: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00209d50: 6765 3a0a 2020 2020 6e61 6d65 3a20 7869  ge:.    name: xi
│ │ │ +00209d60: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ +00209d70: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ +00209d80: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00209d90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00209da0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00209db0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00209dc0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00209dd0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00209de0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00209df0: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ +00209e00: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00209e10: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +00209e20: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00209e30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00209e40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00209e50: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +00209e60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00209e70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00209e80: 202d 2070 6163 6b61 6765 5f78 696e 6574   - package_xinet
│ │ │ +00209e90: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
Remedi │ │ │ +00209f50: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00209f60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00209f70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00209fa0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0020a010: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0020a030: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0020a060: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00209ff0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0020a000: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0020a040: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0020a050: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

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

│ │ │ -0020b5c0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0020b5d0: 7970 6269 6e64 2d6d 740a 0a63 6c61 7373  ypbind-mt..class
│ │ │ -0020b5e0: 2072 656d 6f76 655f 7970 6269 6e64 2d6d   remove_ypbind-m
│ │ │ -0020b5f0: 7420 7b0a 2020 7061 636b 6167 6520 7b20  t {.  package { 
│ │ │ -0020b600: 2779 7062 696e 642d 6d74 273a 0a20 2020  'ypbind-mt':.   
│ │ │ -0020b610: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0020b620: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -0020b6e0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0020b6f0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:low
Disrup │ │ │ -0020b540: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0020b550: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0020b590: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0020b5a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0020b790: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0020b7a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0020b7f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -0020b830: 6e61 6d65 3a20 2752 656d 6f76 6520 4e49  name: 'Remove NI
│ │ │ -0020b840: 5320 436c 6965 6e74 3a20 456e 7375 7265  S Client: Ensure
│ │ │ -0020b850: 2079 7062 696e 642d 6d74 2069 7320 7265   ypbind-mt is re
│ │ │ -0020b860: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0020b870: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0020b880: 3a0a 2020 2020 6e61 6d65 3a20 7970 6269  :.    name: ypbi
│ │ │ -0020b890: 6e64 2d6d 740a 2020 2020 7374 6174 653a  nd-mt.    state:
│ │ │ -0020b8a0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -0020b8b0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0020b8c0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -0020b8d0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -0020b8e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0020b8f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0020b900: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0020b910: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0020b920: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0020b930: 655f 7970 6269 6e64 5f72 656d 6f76 6564  e_ypbind_removed
│ │ │ -0020b940: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -0020b950: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediation Ans │ │ │ +0020b480: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0020b490: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -0020b780: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0020b7b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0020b7c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0020b800: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0020b810: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0020b560: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0020b570: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +0020b5d0: 204e 4953 2043 6c69 656e 743a 2045 6e73   NIS Client: Ens
│ │ │ +0020b5e0: 7572 6520 7970 6269 6e64 2d6d 7420 6973  ure ypbind-mt is
│ │ │ +0020b5f0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0020b600: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0020b610: 6167 653a 0a20 2020 206e 616d 653a 2079  age:.    name: y
│ │ │ +0020b620: 7062 696e 642d 6d74 0a20 2020 2073 7461  pbind-mt.    sta
│ │ │ +0020b630: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +0020b640: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0020b650: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0020b660: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +0020b670: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0020b680: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0020b690: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0020b6a0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0020b6b0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0020b6c0: 6b61 6765 5f79 7062 696e 645f 7265 6d6f  kage_ypbind_remo
│ │ │ +0020b6d0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f  ved.  - unknown_
│ │ │ +0020b6e0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e  severity.
│ │ │ +0020b6f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0020b7a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0020b7b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0020b7c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0020b7d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0020b7e0: 7365 2220 6964 3d22 6964 3639 3722 3e3c se" id="id697">< │ │ │ +0020b7f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0020b800: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0020b810: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0020b820: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0020b830: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +0020b8c0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0020b8d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disru │ │ │ +0020b540: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0020b550: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0020b590: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0020b5a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ +0020b840: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0020b850: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0020b890: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0020b8a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0020b8f0: 2072 656d 6f76 655f 7970 6269 6e64 2d6d remove_ypbind-m │ │ │ +0020b900: 740a 0a63 6c61 7373 2072 656d 6f76 655f t..class remove_ │ │ │ +0020b910: 7970 6269 6e64 2d6d 7420 7b0a 2020 7061 ypbind-mt {. pa │ │ │ +0020b920: 636b 6167 6520 7b20 2779 7062 696e 642d ckage { 'ypbind- │ │ │ +0020b930: 6d74 273a 0a20 2020 2065 6e73 7572 6520 mt':. ensure │ │ │ +0020b940: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +0020b950: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -0020ce50: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0020ce60: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0020cee0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0020cf00: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0020cf50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0020cf80: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0020cef0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0020cf10: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0020cf60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0020cf70: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0020cfa0: 7665 5f79 7073 6572 760a 0a63 6c61 7373  ve_ypserv..class
│ │ │ -0020cfb0: 2072 656d 6f76 655f 7970 7365 7276 207b   remove_ypserv {
│ │ │ -0020cfc0: 0a20 2070 6163 6b61 6765 207b 2027 7970  .  package { 'yp
│ │ │ -0020cfd0: 7365 7276 273a 0a20 2020 2065 6e73 7572  serv':.    ensur
│ │ │ -0020cfe0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0020cff0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0020d000: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0020d0b0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0020d0c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0020d0d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0020d0e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0020d0f0: 7365 2220 6964 3d22 6964 3730 3122 3e3c se" id="id701">< │ │ │ -0020d100: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0020d110: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0020d120: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0020d130: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0020d140: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0020d150: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0020d160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0020d1a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0020d1b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0020d1d0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0020d1e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0020d200: 2755 6e69 6e73 7461 6c6c 2079 7073 6572 'Uninstall ypser │ │ │ -0020d210: 7620 5061 636b 6167 653a 2045 6e73 7572 v Package: Ensur │ │ │ -0020d220: 6520 7970 7365 7276 2069 7320 7265 6d6f e ypserv is remo │ │ │ -0020d230: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -0020d240: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -0020d250: 2020 2020 6e61 6d65 3a20 7970 7365 7276 name: ypserv │ │ │ -0020d260: 0a20 2020 2073 7461 7465 3a20 6162 7365 . state: abse │ │ │ -0020d270: 6e74 0a20 2074 6167 733a 0a20 202d 204e nt. tags:. - N │ │ │ -0020d280: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -0020d290: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -0020d2a0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -0020d2b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -0020d2c0: 6229 0a20 202d 204e 4953 542d 3830 302d b). - NIST-800- │ │ │ -0020d2d0: 3533 2d49 412d 3528 3129 2863 290a 2020 53-IA-5(1)(c). │ │ │ -0020d2e0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ -0020d2f0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ -0020d300: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -0020d310: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ -0020d320: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -0020d330: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ -0020d340: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0020d350: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0020d360: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -0020d370: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0020d380: 7061 636b 6167 655f 7970 7365 7276 5f72 package_ypserv_r │ │ │ -0020d390: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.
Complexity: │ │ │ +0020cef0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0020cf10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0020cf30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0020cf60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0020cf70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0020cfa0: 6e73 7461 6c6c 2079 7073 6572 7620 5061  nstall ypserv Pa
│ │ │ +0020cfb0: 636b 6167 653a 2045 6e73 7572 6520 7970  ckage: Ensure yp
│ │ │ +0020cfc0: 7365 7276 2069 7320 7265 6d6f 7665 6427  serv is removed'
│ │ │ +0020cfd0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0020cfe0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0020cff0: 6e61 6d65 3a20 7970 7365 7276 0a20 2020  name: ypserv.   
│ │ │ +0020d000: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0020d010: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0020d020: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0020d030: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0020d040: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0020d050: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0020d060: 202d 204e 4953 542d 3830 302d 3533 2d49   - NIST-800-53-I
│ │ │ +0020d070: 412d 3528 3129 2863 290a 2020 2d20 5043  A-5(1)(c).  - PC
│ │ │ +0020d080: 492d 4453 532d 5265 712d 322e 322e 320a  I-DSS-Req-2.2.2.
│ │ │ +0020d090: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0020d0a0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +0020d0b0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +0020d0c0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +0020d0d0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +0020d0e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0020d0f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0020d100: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +0020d110: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0020d120: 6167 655f 7970 7365 7276 5f72 656d 6f76  age_ypserv_remov
│ │ │ +0020d130: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0020d140: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0020d1f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0020d200: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0020d280: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0020d2a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0020d2f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0020d320: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0020d340: 655f 7970 7365 7276 0a0a 636c 6173 7320  e_ypserv..class 
│ │ │ +0020d350: 7265 6d6f 7665 5f79 7073 6572 7620 7b0a  remove_ypserv {.
│ │ │ +0020d360: 2020 7061 636b 6167 6520 7b20 2779 7073    package { 'yps
│ │ │ +0020d370: 6572 7627 3a0a 2020 2020 656e 7375 7265  erv':.    ensure
│ │ │ +0020d380: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0020d390: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remedia
│ │ │ -0020ec20: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ -0020ec30: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0020ec40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0020ec50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0020ec60: 7365 2220 6964 3d22 6964 3730 3422 3e3c se" id="id704">< │ │ │ -0020ec70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0020ec80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0020ec90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0020eca0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0020ecb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0020ed40: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0020ed50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +0020d2b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0020d2c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0020d300: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0020d310: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ -0020ecc0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0020ecd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0020ed10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0020ed20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -0020ed70: 2072 656d 6f76 655f 7273 682d 7365 7276 remove_rsh-serv │ │ │ -0020ed80: 6572 0a0a 636c 6173 7320 7265 6d6f 7665 er..class remove │ │ │ -0020ed90: 5f72 7368 2d73 6572 7665 7220 7b0a 2020 _rsh-server {. │ │ │ -0020eda0: 7061 636b 6167 6520 7b20 2772 7368 2d73 package { 'rsh-s │ │ │ -0020edb0: 6572 7665 7227 3a0a 2020 2020 656e 7375 erver':. ensu │ │ │ -0020edc0: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -0020edd0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -0020ede0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -0020ee90: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0020eea0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0020eeb0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0020eee0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0020ef50: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0020ef70: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0020efa0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0020ef30: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0020ef40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0020ef80: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0020ef90: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0020efe0: 2027 556e 696e 7374 616c 6c20 7273 682d 'Uninstall rsh- │ │ │ -0020eff0: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ -0020f000: 456e 7375 7265 2072 7368 2d73 6572 7665 Ensure rsh-serve │ │ │ -0020f010: 7220 6973 2072 656d 6f76 6564 270a 2020 r is removed'. │ │ │ -0020f020: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -0020f030: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ -0020f040: 653a 2072 7368 2d73 6572 7665 720a 2020 e: rsh-server. │ │ │ -0020f050: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0020f060: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -0020f070: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0020f080: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0020f090: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ -0020f0a0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ -0020f0b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0020f0c0: 4941 2d35 2831 2928 6329 0a20 202d 2050 IA-5(1)(c). - P │ │ │ -0020f0d0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ -0020f0e0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ -0020f0f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -0020f100: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ -0020f110: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ -0020f120: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0020f130: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0020f140: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0020f150: 6564 0a20 202d 2070 6163 6b61 6765 5f72 ed. - package_r │ │ │ -0020f160: 7368 2d73 6572 7665 725f 7265 6d6f 7665 sh-server_remove │ │ │ -0020f170: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0020ec20: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +0020ec30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0020ec40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65

│ │ │ +0020ec70: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0020ece0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0020ed00: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0020ed30: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0020ecc0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0020ecd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0020ed10: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0020ed20: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0020ed70: 2027 556e 696e 7374 616c 6c20 7273 682d 'Uninstall rsh- │ │ │ +0020ed80: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ +0020ed90: 456e 7375 7265 2072 7368 2d73 6572 7665 Ensure rsh-serve │ │ │ +0020eda0: 7220 6973 2072 656d 6f76 6564 270a 2020 r is removed'. │ │ │ +0020edb0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0020edc0: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +0020edd0: 653a 2072 7368 2d73 6572 7665 720a 2020 e: rsh-server. │ │ │ +0020ede0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0020edf0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0020ee00: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0020ee10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0020ee20: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +0020ee30: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +0020ee40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0020ee50: 4941 2d35 2831 2928 6329 0a20 202d 2050 IA-5(1)(c). - P │ │ │ +0020ee60: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ +0020ee70: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ +0020ee80: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +0020ee90: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ +0020eea0: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ +0020eeb0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0020eec0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0020eed0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ +0020eee0: 6564 0a20 202d 2070 6163 6b61 6765 5f72 ed. - package_r │ │ │ +0020eef0: 7368 2d73 6572 7665 725f 7265 6d6f 7665 sh-server_remove │ │ │ +0020ef00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0020ef10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0020efc0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0020efd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ +0020f0a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0020f0b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0020f110: 5f72 7368 2d73 6572 7665 720a 0a63 6c61  _rsh-server..cla
│ │ │ +0020f120: 7373 2072 656d 6f76 655f 7273 682d 7365  ss remove_rsh-se
│ │ │ +0020f130: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ +0020f140: 207b 2027 7273 682d 7365 7276 6572 273a   { 'rsh-server':
│ │ │ +0020f150: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0020f160: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0020f170: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0020f180: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -00210090: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002100a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +0020f080: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0020f090: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0020f0d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0020f0e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00210140: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002101e0: 696e 636c 7564 6520 7265 6d6f 7665 5f72  include remove_r
│ │ │ -002101f0: 7368 0a0a 636c 6173 7320 7265 6d6f 7665  sh..class remove
│ │ │ -00210200: 5f72 7368 207b 0a20 2070 6163 6b61 6765  _rsh {.  package
│ │ │ -00210210: 207b 2027 7273 6827 3a0a 2020 2020 656e   { 'rsh':.    en
│ │ │ -00210220: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00210230: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -002102f0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00210300: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00210130: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00210160: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00210170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002101b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002101c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00210390: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002103a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002103c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002103e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002103f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00210430: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00210440: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ -00210450: 6820 5061 636b 6167 653a 2045 6e73 7572  h Package: Ensur
│ │ │ -00210460: 6520 7273 6820 6973 2072 656d 6f76 6564  e rsh is removed
│ │ │ -00210470: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00210480: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00210490: 206e 616d 653a 2072 7368 0a20 2020 2073   name: rsh.    s
│ │ │ -002104a0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -002104b0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -002104c0: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -002104d0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -002104e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002104f0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00210500: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00210510: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00210520: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00210530: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00210540: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00210550: 7368 5f72 656d 6f76 6564 0a20 202d 2075  sh_removed.  - u
│ │ │ -00210560: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00210090: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +002100a0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +002100b0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +00210180: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00210190: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002101e0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002101f0: 6c6c 2072 7368 2050 6163 6b61 6765 3a20  ll rsh Package: 
│ │ │ +00210200: 456e 7375 7265 2072 7368 2069 7320 7265  Ensure rsh is re
│ │ │ +00210210: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00210220: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00210230: 3a0a 2020 2020 6e61 6d65 3a20 7273 680a  :.    name: rsh.
│ │ │ +00210240: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00210250: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +00210260: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ +00210270: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ +00210280: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00210290: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002102a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002102b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002102c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002102d0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002102e0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +002102f0: 6167 655f 7273 685f 7265 6d6f 7665 640a  age_rsh_removed.
│ │ │ +00210300: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +00210310: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation
│ │ │ +002103d0: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +002103e0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +002104b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ +00210160: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00210170: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002101b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002101c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +00210470: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00210490: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +002104e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002104f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00210520: 6f76 655f 7273 680a 0a63 6c61 7373 2072  ove_rsh..class r
│ │ │ +00210530: 656d 6f76 655f 7273 6820 7b0a 2020 7061  emove_rsh {.  pa
│ │ │ +00210540: 636b 6167 6520 7b20 2772 7368 273a 0a20  ckage { 'rsh':. 
│ │ │ +00210550: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00210560: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00210570: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -002115e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002115f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00211690: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002116a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002116f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00211730: 6e63 6c75 6465 2072 656d 6f76 655f 7461  nclude remove_ta
│ │ │ -00211740: 6c6b 2d73 6572 7665 720a 0a63 6c61 7373  lk-server..class
│ │ │ -00211750: 2072 656d 6f76 655f 7461 6c6b 2d73 6572   remove_talk-ser
│ │ │ -00211760: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ -00211770: 7b20 2774 616c 6b2d 7365 7276 6572 273a  { 'talk-server':
│ │ │ -00211780: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00211790: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -002117a0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002117b0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00211860: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00211870: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ -00211680: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002116b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002116c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00211700: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00211710: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002118f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00211910: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00211960: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00211990: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -002119b0: 7461 6c6c 2074 616c 6b2d 7365 7276 6572  tall talk-server
│ │ │ -002119c0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -002119d0: 2074 616c 6b2d 7365 7276 6572 2069 7320   talk-server is 
│ │ │ -002119e0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002119f0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00211a00: 6765 3a0a 2020 2020 6e61 6d65 3a20 7461  ge:.    name: ta
│ │ │ -00211a10: 6c6b 2d73 6572 7665 720a 2020 2020 7374  lk-server.    st
│ │ │ -00211a20: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00211a30: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -00211a40: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00211a50: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00211a60: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00211a70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00211a80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00211a90: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00211aa0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00211ab0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00211ac0: 2d20 7061 636b 6167 655f 7461 6c6b 2d73  - package_talk-s
│ │ │ -00211ad0: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.
low
Disr │ │ │ -00211920: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00211930: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00211970: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00211980: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +00211690: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00211730: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00211740: 6c20 7461 6c6b 2d73 6572 7665 7220 5061  l talk-server Pa
│ │ │ +00211750: 636b 6167 653a 2045 6e73 7572 6520 7461  ckage: Ensure ta
│ │ │ +00211760: 6c6b 2d73 6572 7665 7220 6973 2072 656d  lk-server is rem
│ │ │ +00211770: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +00211780: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00211790: 0a20 2020 206e 616d 653a 2074 616c 6b2d  .    name: talk-
│ │ │ +002117a0: 7365 7276 6572 0a20 2020 2073 7461 7465  server.    state
│ │ │ +002117b0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002117c0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002117d0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +002117e0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +002117f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00211800: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00211810: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00211820: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00211830: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00211840: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00211850: 6163 6b61 6765 5f74 616c 6b2d 7365 7276  ackage_talk-serv
│ │ │ +00211860: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.
Remed │ │ │ +00211920: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00211930: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00211680: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002116b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002116c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00211700: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00211710: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002119e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00211a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00211a30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002119c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002119d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002119f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00211a10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00211a20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00211a60: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00211a70: 6465 2072 656d 6f76 655f 7461 6c6b 2d73 de remove_talk-s │ │ │ +00211a80: 6572 7665 720a 0a63 6c61 7373 2072 656d erver..class rem │ │ │ +00211a90: 6f76 655f 7461 6c6b 2d73 6572 7665 7220 ove_talk-server │ │ │ +00211aa0: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ +00211ab0: 616c 6b2d 7365 7276 6572 273a 0a20 2020 alk-server':. │ │ │ +00211ac0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +00211ad0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Remediati │ │ │ -00212930: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00212940: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002129c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002129d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002129f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00212a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00212a20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00212a40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00212a70: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00212a80: 656d 6f76 655f 7461 6c6b 0a0a 636c 6173  emove_talk..clas
│ │ │ -00212a90: 7320 7265 6d6f 7665 5f74 616c 6b20 7b0a  s remove_talk {.
│ │ │ -00212aa0: 2020 7061 636b 6167 6520 7b20 2774 616c    package { 'tal
│ │ │ -00212ab0: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ -00212ac0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00212ad0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00212b90: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00212ba0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00212c30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00212c50: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00212c60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00212c70: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00212c80: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00212ca0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00212cd0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00212ce0: 696e 7374 616c 6c20 7461 6c6b 2050 6163  install talk Pac
│ │ │ -00212cf0: 6b61 6765 3a20 456e 7375 7265 2074 616c  kage: Ensure tal
│ │ │ -00212d00: 6b20 6973 2072 656d 6f76 6564 270a 2020  k is removed'.  
│ │ │ -00212d10: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00212d20: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00212d30: 653a 2074 616c 6b0a 2020 2020 7374 6174  e: talk.    stat
│ │ │ -00212d40: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00212d50: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00212d60: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00212d70: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00212d80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00212d90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00212da0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00212db0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00212dc0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00212dd0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00212de0: 7061 636b 6167 655f 7461 6c6b 5f72 656d  package_talk_rem
│ │ │ -00212df0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +002129c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002129d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002129e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00212a20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00212a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00212a50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00212a60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00212a80: 556e 696e 7374 616c 6c20 7461 6c6b 2050  Uninstall talk P
│ │ │ +00212a90: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +00212aa0: 616c 6b20 6973 2072 656d 6f76 6564 270a  alk is removed'.
│ │ │ +00212ab0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00212ac0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00212ad0: 616d 653a 2074 616c 6b0a 2020 2020 7374  ame: talk.    st
│ │ │ +00212ae0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00212af0: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ +00212b00: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00212b10: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +00212b20: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00212b30: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00212b40: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00212b50: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00212b60: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00212b70: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00212b80: 2d20 7061 636b 6167 655f 7461 6c6b 5f72  - package_talk_r
│ │ │ +00212b90: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediati │ │ │ +00212c50: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00212c60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00212ce0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00212cf0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00212d10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00212d20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00212d40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00212d60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00212d90: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00212da0: 656d 6f76 655f 7461 6c6b 0a0a 636c 6173  emove_talk..clas
│ │ │ +00212db0: 7320 7265 6d6f 7665 5f74 616c 6b20 7b0a  s remove_talk {.
│ │ │ +00212dc0: 2020 7061 636b 6167 6520 7b20 2774 616c    package { 'tal
│ │ │ +00212dd0: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ +00212de0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00212df0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Re │ │ │ -002148a0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002148b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002148c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00214960: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002149b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002149f0: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ -00214a00: 6e65 742d 7365 7276 6572 0a0a 636c 6173  net-server..clas
│ │ │ -00214a10: 7320 7265 6d6f 7665 5f74 656c 6e65 742d  s remove_telnet-
│ │ │ -00214a20: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ -00214a30: 6765 207b 2027 7465 6c6e 6574 2d73 6572  ge { 'telnet-ser
│ │ │ -00214a40: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ -00214a50: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00214a60: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -00214b20: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -00214b30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -00214bb0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00214c40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00214c50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -00214940: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00214970: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00214990: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002149a0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002149c0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002149d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00214bc0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00214bd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00214c10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00214c20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -00214c70: 556e 696e 7374 616c 6c20 7465 6c6e 6574  Uninstall telnet
│ │ │ -00214c80: 2d73 6572 7665 7220 5061 636b 6167 653a  -server Package:
│ │ │ -00214c90: 2045 6e73 7572 6520 7465 6c6e 6574 2d73   Ensure telnet-s
│ │ │ -00214ca0: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ -00214cb0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00214cc0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00214cd0: 206e 616d 653a 2074 656c 6e65 742d 7365   name: telnet-se
│ │ │ -00214ce0: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ -00214cf0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00214d00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00214d10: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00214d20: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00214d30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00214d40: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ -00214d50: 5353 2d52 6571 2d32 2e32 2e32 0a20 202d  SS-Req-2.2.2.  -
│ │ │ -00214d60: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00214d70: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00214d80: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00214d90: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -00214da0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -00214db0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00214dc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00214dd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00214de0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00214df0: 5f74 656c 6e65 742d 7365 7276 6572 5f72  _telnet-server_r
│ │ │ -00214e00: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
< │ │ │ +00214950: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00214960: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002149b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002149f0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00214a00: 2074 656c 6e65 742d 7365 7276 6572 2050   telnet-server P
│ │ │ +00214a10: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +00214a20: 656c 6e65 742d 7365 7276 6572 2069 7320  elnet-server is 
│ │ │ +00214a30: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00214a40: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00214a50: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +00214a60: 6c6e 6574 2d73 6572 7665 720a 2020 2020  lnet-server.    
│ │ │ +00214a70: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00214a80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00214a90: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00214aa0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00214ab0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00214ac0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00214ad0: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ +00214ae0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00214af0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00214b00: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +00214b10: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00214b20: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +00214b30: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00214b40: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00214b50: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00214b60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00214b70: 7061 636b 6167 655f 7465 6c6e 6574 2d73  package_telnet-s
│ │ │ +00214b80: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.
Re │ │ │ +00214c40: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00214c50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00214c60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +00214940: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00214970: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00214980: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002149c0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002149d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00214d00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00214d50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00214d90: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +00214da0: 6e65 742d 7365 7276 6572 0a0a 636c 6173  net-server..clas
│ │ │ +00214db0: 7320 7265 6d6f 7665 5f74 656c 6e65 742d  s remove_telnet-
│ │ │ +00214dc0: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ +00214dd0: 6765 207b 2027 7465 6c6e 6574 2d73 6572  ge { 'telnet-ser
│ │ │ +00214de0: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ +00214df0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00214e00: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.R
│ │ │ -00215d00: 656d 6564 6961 7469 6f6e 2050 7570 7065  emediation Puppe
│ │ │ -00215d10: 7420 736e 6970 7065 7420 e287 b23c 2f61  t snippet ...
Co │ │ │ +00214ce0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00214d10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00214d30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00214d40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00214d60: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00214d70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00215db0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00215dc0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00215e10: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00215e50: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -00215e60: 6c6e 6574 0a0a 636c 6173 7320 7265 6d6f  lnet..class remo
│ │ │ -00215e70: 7665 5f74 656c 6e65 7420 7b0a 2020 7061  ve_telnet {.  pa
│ │ │ -00215e80: 636b 6167 6520 7b20 2774 656c 6e65 7427  ckage { 'telnet'
│ │ │ -00215e90: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00215ea0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00215eb0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00215ec0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -00215f70: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00215f80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ -00215da0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00215dd0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00215de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00215e20: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00215e30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00216000: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00216020: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00216070: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002160a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00216010: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00216030: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00216080: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00216090: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -002160c0: 7665 2074 656c 6e65 7420 436c 6965 6e74  ve telnet Client
│ │ │ -002160d0: 733a 2045 6e73 7572 6520 7465 6c6e 6574  s: Ensure telnet
│ │ │ -002160e0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -002160f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00216100: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00216110: 3a20 7465 6c6e 6574 0a20 2020 2073 7461  : telnet.    sta
│ │ │ -00216120: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00216130: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00216140: 3137 312d 332e 312e 3133 0a20 202d 2050  171-3.1.13.  - P
│ │ │ -00216150: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -00216160: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -00216170: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00216180: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00216190: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002161a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002161b0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -002161c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002161d0: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ -002161e0: 6c6e 6574 5f72 656d 6f76 6564 0a3c 2f63  lnet_removed.
│ │ │ +00215db0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00215e50: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ +00215e60: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ +00215e70: 6e73 7572 6520 7465 6c6e 6574 2069 7320  nsure telnet is 
│ │ │ +00215e80: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00215e90: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00215ea0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +00215eb0: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +00215ec0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00215ed0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00215ee0: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ +00215ef0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00215f00: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00215f10: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00215f20: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00215f30: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00215f40: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00215f50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00215f60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00215f70: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +00215f80: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00215f90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00216040: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00216050: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00216060: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00216070: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00216080: 7365 2220 6964 3d22 6964 3732 3522 3e3c se" id="id725">< │ │ │ +00216090: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002160a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002160b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002160c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002160d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +00216160: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00216170: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +00215da0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00215dd0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00215de0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00215e20: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00215e30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +002160e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002160f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00216130: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00216140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +00216190: 2072 656d 6f76 655f 7465 6c6e 6574 0a0a remove_telnet.. │ │ │ +002161a0: 636c 6173 7320 7265 6d6f 7665 5f74 656c class remove_tel │ │ │ +002161b0: 6e65 7420 7b0a 2020 7061 636b 6167 6520 net {. package │ │ │ +002161c0: 7b20 2774 656c 6e65 7427 3a0a 2020 2020 { 'telnet':. │ │ │ +002161d0: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +002161e0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ 00216200: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -00217a70: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00217a80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00217b00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00217b10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00217b30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00217b40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00217b60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00217b80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00217bb0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00217bc0: 656d 6f76 655f 7466 7470 2d73 6572 7665  emove_tftp-serve
│ │ │ -00217bd0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ -00217be0: 7466 7470 2d73 6572 7665 7220 7b0a 2020  tftp-server {.  
│ │ │ -00217bf0: 7061 636b 6167 6520 7b20 2774 6674 702d  package { 'tftp-
│ │ │ -00217c00: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -00217c10: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00217c20: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00217ce0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00217cf0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00217da0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00217dc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00217df0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00217d80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00217d90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00217db0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00217dd0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00217de0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00217e20: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00217e30: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ -00217e40: 702d 7365 7276 6572 2050 6163 6b61 6765 p-server Package │ │ │ -00217e50: 3a20 456e 7375 7265 2074 6674 702d 7365 : Ensure tftp-se │ │ │ -00217e60: 7276 6572 2069 7320 7265 6d6f 7665 6427 rver is removed' │ │ │ -00217e70: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -00217e80: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -00217e90: 6e61 6d65 3a20 7466 7470 2d73 6572 7665 name: tftp-serve │ │ │ -00217ea0: 720a 2020 2020 7374 6174 653a 2061 6273 r. state: abs │ │ │ -00217eb0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -00217ec0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00217ed0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00217ee0: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ -00217ef0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00217f00: 2862 290a 2020 2d20 5043 492d 4453 5376 (b). - PCI-DSSv │ │ │ -00217f10: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -00217f20: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ -00217f30: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -00217f40: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ -00217f50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00217f60: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00217f70: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -00217f80: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00217f90: 7061 636b 6167 655f 7466 7470 2d73 6572 package_tftp-ser │ │ │ -00217fa0: 7665 725f 7265 6d6f 7665 640a 3c2f 636f ver_removed.
│ │ │ +00217b00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00217b10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00217b20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00217b60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00217b70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00217b90: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00217ba0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00217bc0: 556e 696e 7374 616c 6c20 7466 7470 2d73  Uninstall tftp-s
│ │ │ +00217bd0: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +00217be0: 6e73 7572 6520 7466 7470 2d73 6572 7665  nsure tftp-serve
│ │ │ +00217bf0: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ +00217c00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00217c10: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00217c20: 653a 2074 6674 702d 7365 7276 6572 0a20  e: tftp-server. 
│ │ │ +00217c30: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00217c40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00217c50: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00217c60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00217c70: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00217c80: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00217c90: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00217ca0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00217cb0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00217cc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00217cd0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +00217ce0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00217cf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00217d00: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00217d10: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00217d20: 6b61 6765 5f74 6674 702d 7365 7276 6572  kage_tftp-server
│ │ │ +00217d30: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00217d40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00217df0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00217e00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00217e10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00217e20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00217e30: 7365 2220 6964 3d22 6964 3732 3922 3e3c se" id="id729">< │ │ │ +00217e40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00217e50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00217e60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00217e70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00217e80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00217e90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00217ea0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00217ee0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00217ef0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00217f10: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00217f20: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00217f40: 2072 656d 6f76 655f 7466 7470 2d73 6572 remove_tftp-ser │ │ │ +00217f50: 7665 720a 0a63 6c61 7373 2072 656d 6f76 ver..class remov │ │ │ +00217f60: 655f 7466 7470 2d73 6572 7665 7220 7b0a e_tftp-server {. │ │ │ +00217f70: 2020 7061 636b 6167 6520 7b20 2774 6674 package { 'tft │ │ │ +00217f80: 702d 7365 7276 6572 273a 0a20 2020 2065 p-server':. e │ │ │ +00217f90: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +00217fa0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 00217fc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00217fd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00217fe0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00217ff0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00218000: 6437 3330 2220 7461 6269 6e64 6578 3d22 d730" tabindex=" │ │ │ 00218010: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -137416,91 +137416,91 @@ │ │ │ 00218c70: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 00218c80: 6765 743d 2223 6964 3733 3222 2074 6162 get="#id732" tab │ │ │ 00218c90: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 00218ca0: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 00218cb0: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 00218cc0: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 00218cd0: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -00218ce0: 2122 3e52 656d 6564 6961 7469 6f6e 2050 !">Remediation P │ │ │ -00218cf0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00218d00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00218d80: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00218da0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00218df0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00218e20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00218e40: 655f 7466 7470 0a0a 636c 6173 7320 7265  e_tftp..class re
│ │ │ -00218e50: 6d6f 7665 5f74 6674 7020 7b0a 2020 7061  move_tftp {.  pa
│ │ │ -00218e60: 636b 6167 6520 7b20 2774 6674 7027 3a0a  ckage { 'tftp':.
│ │ │ -00218e70: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00218e80: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -00218e90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00218f50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00218f60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -00218db0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00218dc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00218e00: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00218e10: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00219030: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00219040: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ -002190a0: 2074 6674 7020 4461 656d 6f6e 3a20 456e   tftp Daemon: En
│ │ │ -002190b0: 7375 7265 2074 6674 7020 6973 2072 656d  sure tftp is rem
│ │ │ -002190c0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002190d0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002190e0: 0a20 2020 206e 616d 653a 2074 6674 700a  .    name: tftp.
│ │ │ -002190f0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00219100: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -00219110: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00219120: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -00219130: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00219140: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00219150: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00219160: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00219170: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00219180: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00219190: 0a20 202d 2070 6163 6b61 6765 5f74 6674  .  - package_tft
│ │ │ -002191a0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.Remediation A
│ │ │ +00218cf0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00218d00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -00219010: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00219020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00219060: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00219070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00218d80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00218da0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00218df0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00218e20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00218d90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00218db0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00218e00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00218e10: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ +00218e40: 7665 2074 6674 7020 4461 656d 6f6e 3a20  ve tftp Daemon: 
│ │ │ +00218e50: 456e 7375 7265 2074 6674 7020 6973 2072  Ensure tftp is r
│ │ │ +00218e60: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00218e70: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00218e80: 653a 0a20 2020 206e 616d 653a 2074 6674  e:.    name: tft
│ │ │ +00218e90: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ +00218ea0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00218eb0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +00218ec0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +00218ed0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +00218ee0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00218ef0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00218f00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00218f10: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00218f20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00218f30: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +00218f40: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
< │ │ │ +00218f60: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00218f70: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00218f80: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00218f90: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00218fa0: 6437 3333 2220 7461 6269 6e64 6578 3d22 d733" tabindex=" │ │ │ +00218fb0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00218fc0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00218fd0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00218fe0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00218ff0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00219000: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00219010: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +002190a0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002190b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002190d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002190f0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00219100: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00219140: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +00219150: 7564 6520 7265 6d6f 7665 5f74 6674 700a  ude remove_tftp.
│ │ │ +00219160: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ +00219170: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +00219180: 2027 7466 7470 273a 0a20 2020 2065 6e73   'tftp':.    ens
│ │ │ +00219190: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +002191a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
│ │ │ -002275c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -002275d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
include ssh_pri
│ │ │ -00227630: 7661 7465 5f6b 6579 5f70 6572 6d73 0a0a  vate_key_perms..
│ │ │ -00227640: 636c 6173 7320 7373 685f 7072 6976 6174  class ssh_privat
│ │ │ -00227650: 655f 6b65 795f 7065 726d 7320 7b0a 2020  e_key_perms {.  
│ │ │ -00227660: 6578 6563 207b 2027 7373 6864 5f70 7269  exec { 'sshd_pri
│ │ │ -00227670: 765f 6b65 7927 3a0a 2020 2020 636f 6d6d  v_key':.    comm
│ │ │ -00227680: 616e 6420 3d26 6774 3b20 2263 686d 6f64  and => "chmod
│ │ │ -00227690: 2030 3634 3020 2f65 7463 2f73 7368 2f2a   0640 /etc/ssh/*
│ │ │ -002276a0: 5f6b 6579 222c 0a20 2020 2070 6174 6820  _key",.    path 
│ │ │ -002276b0: 2020 203d 2667 743b 2027 2f62 696e 3a2f     => '/bin:/
│ │ │ -002276c0: 7573 722f 6269 6e27 0a20 207d 0a7d 0a3c  usr/bin'.  }.}.<
│ │ │ -002276d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00227780: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00227790: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00227830: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ -002278e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002278f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00227900: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00227910: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00227920: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00227930: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -00227940: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -00227950: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -00227960: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -00227970: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -00227980: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00227990: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -002279a0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -002279b0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -002279c0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002279d0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -002279e0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -002279f0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -00227a00: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -00227a10: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00227a20: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00227a30: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00227a40: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00227a50: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -00227a60: 2d20 6e61 6d65 3a20 4669 6e64 2072 6f6f  - name: Find roo
│ │ │ -00227a70: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ -00227a80: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ -00227a90: 7469 6e2e 636f 6d6d 616e 643a 2066 696e  tin.command: fin
│ │ │ -00227aa0: 6420 2d48 202f 6574 632f 7373 682f 202d  d -H /etc/ssh/ -
│ │ │ -00227ab0: 6d61 7864 6570 7468 2031 202d 7573 6572  maxdepth 1 -user
│ │ │ -00227ac0: 2072 6f6f 7420 2d72 6567 6578 2022 2e2a   root -regex ".*
│ │ │ -00227ad0: 5f6b 6579 2422 0a20 2020 202d 7479 7065  _key$".    -type
│ │ │ -00227ae0: 2066 202d 6772 6f75 7020 726f 6f74 202d   f -group root -
│ │ │ -00227af0: 7065 726d 202f 752b 7873 2c67 2b78 7772  perm /u+xs,g+xwr
│ │ │ -00227b00: 732c 6f2b 7877 7274 0a20 2072 6567 6973  s,o+xwrt.  regis
│ │ │ -00227b10: 7465 723a 2072 6f6f 745f 6f77 6e65 645f  ter: root_owned_
│ │ │ -00227b20: 6b65 7973 0a20 2063 6861 6e67 6564 5f77  keys.  changed_w
│ │ │ -00227b30: 6865 6e3a 2066 616c 7365 0a20 2066 6169  hen: false.  fai
│ │ │ -00227b40: 6c65 645f 7768 656e 3a20 6661 6c73 650a  led_when: false.
│ │ │ -00227b50: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00227b60: 6c73 650a 2020 7768 656e 3a20 2722 6c69  lse.  when: '"li
│ │ │ -00227b70: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00227b80: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00227b90: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00227ba0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00227bb0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -00227bc0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -00227bd0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -00227be0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -00227bf0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -00227c00: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00227c10: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00227c20: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -00227c30: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00227c40: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00227c50: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -00227c60: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -00227c70: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -00227c80: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -00227c90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00227ca0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00227cb0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00227cc0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00227cd0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -00227ce0: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ -00227cf0: 6973 7369 6f6e 7320 666f 7220 726f 6f74  issions for root
│ │ │ -00227d00: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ -00227d10: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -00227d20: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ -00227d30: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ -00227d40: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ -00227d50: 2d78 7772 732c 6f2d 7877 7274 0a20 2020  -xwrs,o-xwrt.   
│ │ │ -00227d60: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ -00227d70: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ -00227d80: 7b7b 2072 6f6f 745f 6f77 6e65 645f 6b65  {{ root_owned_ke
│ │ │ -00227d90: 7973 2e73 7464 6f75 745f 6c69 6e65 7320  ys.stdout_lines 
│ │ │ -00227da0: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ -00227db0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00227dc0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00227dd0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00227de0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00227df0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -00227e00: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -00227e10: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -00227e20: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -00227e30: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -00227e40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00227e50: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00227e60: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -00227e70: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00227e80: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00227e90: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -00227ea0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -00227eb0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -00227ec0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ -00227ed0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00227ee0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00227ef0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00227f00: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00227f10: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c  _reboot_needed.<
│ │ │ +002275c0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +002275d0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +002275e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
│ │ │ -00227820: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00227850: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00227860: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002278a0: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ -002278b0: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
< │ │ │ +002276b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002276c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false< │ │ │ +00227700: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00227720: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00227730: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00227740: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00227750: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00227760: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00227770: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +00227780: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +00227790: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +002277a0: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +002277b0: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +002277c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002277d0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +002277e0: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +002277f0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00227800: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00227810: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +00227820: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +00227830: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +00227840: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +00227850: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00227860: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00227870: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00227880: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00227890: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002278a0: 0a2d 206e 616d 653a 2046 696e 6420 726f  .- name: Find ro
│ │ │ +002278b0: 6f74 3a72 6f6f 742d 6f77 6e65 6420 6b65  ot:root-owned ke
│ │ │ +002278c0: 7973 0a20 2061 6e73 6962 6c65 2e62 7569  ys.  ansible.bui
│ │ │ +002278d0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 6669  ltin.command: fi
│ │ │ +002278e0: 6e64 202d 4820 2f65 7463 2f73 7368 2f20  nd -H /etc/ssh/ 
│ │ │ +002278f0: 2d6d 6178 6465 7074 6820 3120 2d75 7365  -maxdepth 1 -use
│ │ │ +00227900: 7220 726f 6f74 202d 7265 6765 7820 222e  r root -regex ".
│ │ │ +00227910: 2a5f 6b65 7924 220a 2020 2020 2d74 7970  *_key$".    -typ
│ │ │ +00227920: 6520 6620 2d67 726f 7570 2072 6f6f 7420  e f -group root 
│ │ │ +00227930: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ +00227940: 7273 2c6f 2b78 7772 740a 2020 7265 6769  rs,o+xwrt.  regi
│ │ │ +00227950: 7374 6572 3a20 726f 6f74 5f6f 776e 6564  ster: root_owned
│ │ │ +00227960: 5f6b 6579 730a 2020 6368 616e 6765 645f  _keys.  changed_
│ │ │ +00227970: 7768 656e 3a20 6661 6c73 650a 2020 6661  when: false.  fa
│ │ │ +00227980: 696c 6564 5f77 6865 6e3a 2066 616c 7365  iled_when: false
│ │ │ +00227990: 0a20 2063 6865 636b 5f6d 6f64 653a 2066  .  check_mode: f
│ │ │ +002279a0: 616c 7365 0a20 2077 6865 6e3a 2027 226c  alse.  when: '"l
│ │ │ +002279b0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +002279c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +002279d0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +002279e0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002279f0: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +00227a00: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +00227a10: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00227a20: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +00227a30: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +00227a40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00227a50: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00227a60: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +00227a70: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00227a80: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00227a90: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +00227aa0: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +00227ab0: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +00227ac0: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +00227ad0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00227ae0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00227af0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00227b00: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00227b10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00227b20: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ +00227b30: 6d69 7373 696f 6e73 2066 6f72 2072 6f6f  missions for roo
│ │ │ +00227b40: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ +00227b50: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ +00227b60: 7469 6e2e 6669 6c65 3a0a 2020 2020 7061  tin.file:.    pa
│ │ │ +00227b70: 7468 3a20 277b 7b20 6974 656d 207d 7d27  th: '{{ item }}'
│ │ │ +00227b80: 0a20 2020 206d 6f64 653a 2075 2d78 732c  .    mode: u-xs,
│ │ │ +00227b90: 672d 7877 7273 2c6f 2d78 7772 740a 2020  g-xwrs,o-xwrt.  
│ │ │ +00227ba0: 2020 7374 6174 653a 2066 696c 650a 2020    state: file.  
│ │ │ +00227bb0: 7769 7468 5f69 7465 6d73 3a0a 2020 2d20  with_items:.  - 
│ │ │ +00227bc0: 277b 7b20 726f 6f74 5f6f 776e 6564 5f6b  '{{ root_owned_k
│ │ │ +00227bd0: 6579 732e 7374 646f 7574 5f6c 696e 6573  eys.stdout_lines
│ │ │ +00227be0: 207d 7d27 0a20 2077 6865 6e3a 2027 226c   }}'.  when: '"l
│ │ │ +00227bf0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +00227c00: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00227c10: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00227c20: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +00227c30: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ +00227c40: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ +00227c50: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00227c60: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ +00227c70: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ +00227c80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00227c90: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00227ca0: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ +00227cb0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00227cc0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00227cd0: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ +00227ce0: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ +00227cf0: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ +00227d00: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ +00227d10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00227d20: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00227d30: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00227d40: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00227d50: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00227d60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00227e10: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00227e20: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
include ssh_pri
│ │ │ +00227e80: 7661 7465 5f6b 6579 5f70 6572 6d73 0a0a  vate_key_perms..
│ │ │ +00227e90: 636c 6173 7320 7373 685f 7072 6976 6174  class ssh_privat
│ │ │ +00227ea0: 655f 6b65 795f 7065 726d 7320 7b0a 2020  e_key_perms {.  
│ │ │ +00227eb0: 6578 6563 207b 2027 7373 6864 5f70 7269  exec { 'sshd_pri
│ │ │ +00227ec0: 765f 6b65 7927 3a0a 2020 2020 636f 6d6d  v_key':.    comm
│ │ │ +00227ed0: 616e 6420 3d26 6774 3b20 2263 686d 6f64  and => "chmod
│ │ │ +00227ee0: 2030 3634 3020 2f65 7463 2f73 7368 2f2a   0640 /etc/ssh/*
│ │ │ +00227ef0: 5f6b 6579 222c 0a20 2020 2070 6174 6820  _key",.    path 
│ │ │ +00227f00: 2020 203d 2667 743b 2027 2f62 696e 3a2f     => '/bin:/
│ │ │ +00227f10: 7573 722f 6269 6e27 0a20 207d 0a7d 0a3c  usr/bin'.  }.}.<
│ │ │  00227f20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00229380: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00229390: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -002293e0: 696e 636c 7564 6520 7373 685f 7075 626c  include ssh_publ
│ │ │ -002293f0: 6963 5f6b 6579 5f70 6572 6d73 0a0a 636c  ic_key_perms..cl
│ │ │ -00229400: 6173 7320 7373 685f 7075 626c 6963 5f6b  ass ssh_public_k
│ │ │ -00229410: 6579 5f70 6572 6d73 207b 0a20 2065 7865  ey_perms {.  exe
│ │ │ -00229420: 6320 7b20 2773 7368 645f 7075 625f 6b65  c { 'sshd_pub_ke
│ │ │ -00229430: 7927 3a0a 2020 2020 636f 6d6d 616e 6420  y':.    command 
│ │ │ -00229440: 3d26 6774 3b20 2263 686d 6f64 2030 3634  => "chmod 064
│ │ │ -00229450: 3420 2f65 7463 2f73 7368 2f2a 2e70 7562  4 /etc/ssh/*.pub
│ │ │ -00229460: 222c 0a20 2020 2070 6174 6820 2020 203d  ",.    path    =
│ │ │ -00229470: 2667 743b 2027 2f62 696e 3a2f 7573 722f  > '/bin:/usr/
│ │ │ -00229480: 6269 6e27 0a20 207d 0a7d 0a3c 2f63 6f64  bin'.  }.}.
Remed │ │ │ -00229540: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00229550: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:low
Disrup │ │ │ +00227690: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002276a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002276e0: 6779 3a3c 2f74 683e 3c74 643e 636f 6e66 gy:conf │ │ │ +002276f0: 6967 7572 653c 2f74 643e 3c2f 7472 3e3c igure
- n
│ │ │ -00229690: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -002296a0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -002296b0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -002296c0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -002296d0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -002296e0: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ -002296f0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -00229700: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ -00229710: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ -00229720: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00229730: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ -00229740: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00229750: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00229760: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ -00229770: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00229780: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -00229790: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ -002297a0: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ -002297b0: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ -002297c0: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ -002297d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002297e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002297f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00229800: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00229810: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20  needed..- name: 
│ │ │ -00229820: 4669 6e64 202f 6574 632f 7373 682f 2066  Find /etc/ssh/ f
│ │ │ -00229830: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ -00229840: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00229850: 3a20 6669 6e64 202d 5020 2f65 7463 2f73  : find -P /etc/s
│ │ │ -00229860: 7368 2f20 2d6d 6178 6465 7074 6820 3120  sh/ -maxdepth 1 
│ │ │ -00229870: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ -00229880: 732c 6f2b 7877 7420 202d 7479 7065 0a20  s,o+xwt  -type. 
│ │ │ -00229890: 2020 2066 202d 7265 6765 7874 7970 6520     f -regextype 
│ │ │ -002298a0: 706f 7369 782d 6578 7465 6e64 6564 202d  posix-extended -
│ │ │ -002298b0: 7265 6765 7820 225e 2e2a 5c2e 7075 6224  regex "^.*\.pub$
│ │ │ -002298c0: 220a 2020 7265 6769 7374 6572 3a20 6669  ".  register: fi
│ │ │ -002298d0: 6c65 735f 666f 756e 640a 2020 6368 616e  les_found.  chan
│ │ │ -002298e0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002298f0: 2020 6661 696c 6564 5f77 6865 6e3a 2066    failed_when: f
│ │ │ -00229900: 616c 7365 0a20 2063 6865 636b 5f6d 6f64  alse.  check_mod
│ │ │ -00229910: 653a 2066 616c 7365 0a20 2077 6865 6e3a  e: false.  when:
│ │ │ -00229920: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00229930: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00229940: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00229950: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -00229960: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -00229970: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -00229980: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -00229990: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -002299a0: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -002299b0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -002299c0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -002299d0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -002299e0: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -002299f0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00229a00: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -00229a10: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -00229a20: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -00229a30: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ -00229a40: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00229a50: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00229a60: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00229a70: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00229a80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00229a90: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ -00229aa0: 6d69 7373 696f 6e73 2066 6f72 202f 6574  missions for /et
│ │ │ -00229ab0: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ -00229ac0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00229ad0: 2e66 696c 653a 0a20 2020 2070 6174 683a  .file:.    path:
│ │ │ -00229ae0: 2027 7b7b 2069 7465 6d20 7d7d 270a 2020   '{{ item }}'.  
│ │ │ -00229af0: 2020 6d6f 6465 3a20 752d 7873 2c67 2d78    mode: u-xs,g-x
│ │ │ -00229b00: 7773 2c6f 2d78 7774 0a20 2020 2073 7461  ws,o-xwt.    sta
│ │ │ -00229b10: 7465 3a20 6669 6c65 0a20 2077 6974 685f  te: file.  with_
│ │ │ -00229b20: 6974 656d 733a 0a20 202d 2027 7b7b 2066  items:.  - '{{ f
│ │ │ -00229b30: 696c 6573 5f66 6f75 6e64 2e73 7464 6f75  iles_found.stdou
│ │ │ -00229b40: 745f 6c69 6e65 7320 7d7d 270a 2020 7768  t_lines }}'.  wh
│ │ │ -00229b50: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00229b60: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00229b70: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00229b80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00229b90: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00229ba0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00229bb0: 3133 2e31 300a 2020 2d20 4e49 5354 2d38  13.10.  - NIST-8
│ │ │ -00229bc0: 3030 2d35 332d 4143 2d31 3728 6129 0a20  00-53-AC-17(a). 
│ │ │ -00229bd0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00229be0: 432d 3628 3129 0a20 202d 204e 4953 542d  C-6(1).  - NIST-
│ │ │ -00229bf0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00229c00: 202d 2050 4349 2d44 5353 2d52 6571 2d32   - PCI-DSS-Req-2
│ │ │ -00229c10: 2e32 2e34 0a20 202d 2050 4349 2d44 5353  .2.4.  - PCI-DSS
│ │ │ -00229c20: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -00229c30: 5353 7634 2d32 2e32 2e36 0a20 202d 2063  SSv4-2.2.6.  - c
│ │ │ -00229c40: 6f6e 6669 6775 7265 5f73 7472 6174 6567  onfigure_strateg
│ │ │ -00229c50: 790a 2020 2d20 6669 6c65 5f70 6572 6d69  y.  - file_permi
│ │ │ -00229c60: 7373 696f 6e73 5f73 7368 645f 7075 625f  ssions_sshd_pub_
│ │ │ -00229c70: 6b65 790a 2020 2d20 6c6f 775f 636f 6d70  key.  - low_comp
│ │ │ -00229c80: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00229c90: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00229ca0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00229cb0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00229cc0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00229380: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00229390: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Comp │ │ │ -002295e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002295f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00229610: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00229630: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00229640: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:configure │ │ │ -00229670: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00229430: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ +002294e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002294f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00229500: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00229510: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00229520: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +00229530: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +00229540: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +00229550: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +00229560: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +00229570: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +00229580: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00229590: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002295a0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002295b0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002295c0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002295d0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002295e0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002295f0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +00229600: 7368 645f 7075 625f 6b65 790a 2020 2d20  shd_pub_key.  - 
│ │ │ +00229610: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00229620: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00229630: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00229640: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00229650: 6f6f 745f 6e65 6564 6564 0a0a 2d20 6e61  oot_needed..- na
│ │ │ +00229660: 6d65 3a20 4669 6e64 202f 6574 632f 7373  me: Find /etc/ss
│ │ │ +00229670: 682f 2066 696c 6528 7329 0a20 2061 6e73  h/ file(s).  ans
│ │ │ +00229680: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00229690: 6d61 6e64 3a20 6669 6e64 202d 5020 2f65  mand: find -P /e
│ │ │ +002296a0: 7463 2f73 7368 2f20 2d6d 6178 6465 7074  tc/ssh/ -maxdept
│ │ │ +002296b0: 6820 3120 2d70 6572 6d20 2f75 2b78 732c  h 1 -perm /u+xs,
│ │ │ +002296c0: 672b 7877 732c 6f2b 7877 7420 202d 7479  g+xws,o+xwt  -ty
│ │ │ +002296d0: 7065 0a20 2020 2066 202d 7265 6765 7874  pe.    f -regext
│ │ │ +002296e0: 7970 6520 706f 7369 782d 6578 7465 6e64  ype posix-extend
│ │ │ +002296f0: 6564 202d 7265 6765 7820 225e 2e2a 5c2e  ed -regex "^.*\.
│ │ │ +00229700: 7075 6224 220a 2020 7265 6769 7374 6572  pub$".  register
│ │ │ +00229710: 3a20 6669 6c65 735f 666f 756e 640a 2020  : files_found.  
│ │ │ +00229720: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00229730: 6c73 650a 2020 6661 696c 6564 5f77 6865  lse.  failed_whe
│ │ │ +00229740: 6e3a 2066 616c 7365 0a20 2063 6865 636b  n: false.  check
│ │ │ +00229750: 5f6d 6f64 653a 2066 616c 7365 0a20 2077  _mode: false.  w
│ │ │ +00229760: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00229770: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00229780: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00229790: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002297a0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +002297b0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002297c0: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ +002297d0: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ +002297e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002297f0: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ +00229800: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00229810: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +00229820: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ +00229830: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00229840: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +00229850: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ +00229860: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ +00229870: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ +00229880: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +00229890: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002298a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002298b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002298c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002298d0: 6465 640a 0a2d 206e 616d 653a 2053 6574  ded..- name: Set
│ │ │ +002298e0: 2070 6572 6d69 7373 696f 6e73 2066 6f72   permissions for
│ │ │ +002298f0: 202f 6574 632f 7373 682f 2066 696c 6528   /etc/ssh/ file(
│ │ │ +00229900: 7329 0a20 2061 6e73 6962 6c65 2e62 7569  s).  ansible.bui
│ │ │ +00229910: 6c74 696e 2e66 696c 653a 0a20 2020 2070  ltin.file:.    p
│ │ │ +00229920: 6174 683a 2027 7b7b 2069 7465 6d20 7d7d  ath: '{{ item }}
│ │ │ +00229930: 270a 2020 2020 6d6f 6465 3a20 752d 7873  '.    mode: u-xs
│ │ │ +00229940: 2c67 2d78 7773 2c6f 2d78 7774 0a20 2020  ,g-xws,o-xwt.   
│ │ │ +00229950: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ +00229960: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ +00229970: 7b7b 2066 696c 6573 5f66 6f75 6e64 2e73  {{ files_found.s
│ │ │ +00229980: 7464 6f75 745f 6c69 6e65 7320 7d7d 270a  tdout_lines }}'.
│ │ │ +00229990: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +002299a0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +002299b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +002299c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +002299d0: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +002299e0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +002299f0: 312d 332e 3133 2e31 300a 2020 2d20 4e49  1-3.13.10.  - NI
│ │ │ +00229a00: 5354 2d38 3030 2d35 332d 4143 2d31 3728  ST-800-53-AC-17(
│ │ │ +00229a10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00229a20: 3533 2d41 432d 3628 3129 0a20 202d 204e  53-AC-6(1).  - N
│ │ │ +00229a30: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00229a40: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00229a50: 6571 2d32 2e32 2e34 0a20 202d 2050 4349  eq-2.2.4.  - PCI
│ │ │ +00229a60: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +00229a70: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +00229a80: 202d 2063 6f6e 6669 6775 7265 5f73 7472   - configure_str
│ │ │ +00229a90: 6174 6567 790a 2020 2d20 6669 6c65 5f70  ategy.  - file_p
│ │ │ +00229aa0: 6572 6d69 7373 696f 6e73 5f73 7368 645f  ermissions_sshd_
│ │ │ +00229ab0: 7075 625f 6b65 790a 2020 2d20 6c6f 775f  pub_key.  - low_
│ │ │ +00229ac0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00229ad0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00229ae0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00229af0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00229b00: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f  needed.Remediati
│ │ │ +00229bc0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00229bd0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
include │ │ │ +00229c20: 7373 685f 7075 626c 6963 5f6b 6579 5f70 ssh_public_key_p │ │ │ +00229c30: 6572 6d73 0a0a 636c 6173 7320 7373 685f erms..class ssh_ │ │ │ +00229c40: 7075 626c 6963 5f6b 6579 5f70 6572 6d73 public_key_perms │ │ │ +00229c50: 207b 0a20 2065 7865 6320 7b20 2773 7368 {. exec { 'ssh │ │ │ +00229c60: 645f 7075 625f 6b65 7927 3a0a 2020 2020 d_pub_key':. │ │ │ +00229c70: 636f 6d6d 616e 6420 3d26 6774 3b20 2263 command => "c │ │ │ +00229c80: 686d 6f64 2030 3634 3420 2f65 7463 2f73 hmod 0644 /etc/s │ │ │ +00229c90: 7368 2f2a 2e70 7562 222c 0a20 2020 2070 sh/*.pub",. p │ │ │ +00229ca0: 6174 6820 2020 203d 2667 743b 2027 2f62 ath => '/b │ │ │ +00229cb0: 696e 3a2f 7573 722f 6269 6e27 0a20 207d in:/usr/bin'. } │ │ │ +00229cc0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ 00229cd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remed │ │ │ -0022d1c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0022d1d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0022d1e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -0022d230: 6573 5d5d 0a6e 616d 6520 3d20 2273 7373  es]].name = "sss
│ │ │ -0022d240: 6422 0a76 6572 7369 6f6e 203d 2022 2a22  d".version = "*"
│ │ │ -0022d250: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0022d310: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0022d320: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00229420: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00229450: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00229460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002294a0: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ +002294b0: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
< │ │ │ -0022d3f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0022d400: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0022d450: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ -0022d460: 7373 640a 0a63 6c61 7373 2069 6e73 7461  ssd..class insta
│ │ │ -0022d470: 6c6c 5f73 7373 6420 7b0a 2020 7061 636b  ll_sssd {.  pack
│ │ │ -0022d480: 6167 6520 7b20 2773 7373 6427 3a0a 2020  age { 'sssd':.  
│ │ │ -0022d490: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0022d4a0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ -0022d4b0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0022d4c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0022d570: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0022d580: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ -0022d3d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0022d3e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0022d420: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0022d430: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -0022d600: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0022d620: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0022d670: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -0022d6c0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0022d6d0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0022d6e0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0022d6f0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0022d700: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0022d710: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -0022d720: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0022d730: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0022d740: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0022d750: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0022d760: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0022d770: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0022d780: 6167 655f 7373 7364 5f69 6e73 7461 6c6c  age_sssd_install
│ │ │ -0022d790: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -0022d7a0: 7265 2073 7373 6420 6973 2069 6e73 7461  re sssd is insta
│ │ │ -0022d7b0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -0022d7c0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0022d7d0: 2020 2020 6e61 6d65 3a20 7373 7364 0a20      name: sssd. 
│ │ │ -0022d7e0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ -0022d7f0: 740a 2020 7768 656e 3a20 2722 7373 7364  t.  when: '"sssd
│ │ │ -0022d800: 2d63 6f6d 6d6f 6e22 2069 6e20 616e 7369  -common" in ansi
│ │ │ -0022d810: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0022d820: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -0022d830: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0022d840: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -0022d850: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0022d860: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0022d870: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0022d880: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0022d890: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0022d8a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0022d8b0: 6765 5f73 7373 645f 696e 7374 616c 6c65  ge_sssd_installe
│ │ │ -0022d8c0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0022d1c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +0022d1d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ -0022d630: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0022d640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0022d680: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0022d690: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +0022d260: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0022d270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0022d290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0022d2b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0022d2c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0022d300: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0022d310: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0022d320: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0022d330: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0022d340: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0022d350: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0022d360: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0022d370: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +0022d380: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +0022d390: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +0022d3a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +0022d3b0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +0022d3c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0022d3d0: 0a20 202d 2070 6163 6b61 6765 5f73 7373 . - package_sss │ │ │ +0022d3e0: 645f 696e 7374 616c 6c65 640a 0a2d 206e d_installed..- n │ │ │ +0022d3f0: 616d 653a 2045 6e73 7572 6520 7373 7364 ame: Ensure sssd │ │ │ +0022d400: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ +0022d410: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0022d420: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +0022d430: 653a 2073 7373 640a 2020 2020 7374 6174 e: sssd. stat │ │ │ +0022d440: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ +0022d450: 6e3a 2027 2273 7373 642d 636f 6d6d 6f6e n: '"sssd-common │ │ │ +0022d460: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +0022d470: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +0022d480: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0022d490: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0022d4a0: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +0022d4b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0022d4c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0022d4d0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0022d4e0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0022d4f0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0022d500: 2020 2d20 7061 636b 6167 655f 7373 7364 - package_sssd │ │ │ +0022d510: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.
Remed │ │ │ +0022d5d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0022d5e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0022d690: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0022d6b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0022d6e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0022d670: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0022d680: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0022d6a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0022d6c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0022d6d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0022d720: 2069 6e73 7461 6c6c 5f73 7373 640a 0a63 install_sssd..c │ │ │ +0022d730: 6c61 7373 2069 6e73 7461 6c6c 5f73 7373 lass install_sss │ │ │ +0022d740: 6420 7b0a 2020 7061 636b 6167 6520 7b20 d {. package { │ │ │ +0022d750: 2773 7373 6427 3a0a 2020 2020 656e 7375 'sssd':. ensu │ │ │ +0022d760: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +0022d770: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +0022d790: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0022d7a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0022d7b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0022d7c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0022d7d0: 6437 3732 2220 7461 6269 6e64 6578 3d22 d772" tabindex=" │ │ │ +0022d7e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0022d7f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0022d800: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0022d810: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0022d820: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0022d830: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +0022d840: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +0022d850: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +0022d8a0: 6765 735d 5d0a 6e61 6d65 203d 2022 7373 ges]].name = "ss │ │ │ +0022d8b0: 7364 220a 7665 7273 696f 6e20 3d20 222a sd".version = "* │ │ │ +0022d8c0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 0022d8d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedi │ │ │ -0022eaf0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0022eb00: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0022eb10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0022eb50: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0022eb60: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0022eb70: 0a65 6e61 626c 6564 203d 205b 2273 7373  .enabled = ["sss
│ │ │ -0022eb80: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -0022ec40: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0022ec50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0022ecd0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0022ecf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0022ed40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0022ed70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -0022ed90: 5f73 7373 640a 0a63 6c61 7373 2065 6e61  _sssd..class ena
│ │ │ -0022eda0: 626c 655f 7373 7364 207b 0a20 2073 6572  ble_sssd {.  ser
│ │ │ -0022edb0: 7669 6365 207b 2773 7373 6427 3a0a 2020  vice {'sssd':.  
│ │ │ -0022edc0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ -0022edd0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ -0022ede0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ -0022edf0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0022eeb0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0022eec0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0022ef40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0022efd0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:< │ │ │ -0022ece0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0022ed00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0022ed50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0022ed60: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexi │ │ │ -0022ef50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0022ef60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0022efa0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0022efb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0022eff0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0022f000: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0022f010: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0022f020: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0022f030: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0022f040: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0022f050: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0022f060: 5354 2d38 3030 2d35 332d 4941 2d35 2831  ST-800-53-IA-5(1
│ │ │ -0022f070: 3029 0a20 202d 2065 6e61 626c 655f 7374  0).  - enable_st
│ │ │ -0022f080: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0022f090: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0022f0a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0022f0b0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0022f0c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0022f0d0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0022f0e0: 655f 7373 7364 5f65 6e61 626c 6564 0a0a  e_sssd_enabled..
│ │ │ -0022f0f0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074  - name: Enable t
│ │ │ -0022f100: 6865 2053 5353 4420 5365 7276 6963 6520  he SSSD Service 
│ │ │ -0022f110: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -0022f120: 2073 7373 640a 2020 626c 6f63 6b3a 0a0a   sssd.  block:..
│ │ │ -0022f130: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -0022f140: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0022f150: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -0022f160: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -0022f170: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -0022f180: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -0022f190: 616d 653a 2045 6e61 626c 6520 7468 6520  ame: Enable the 
│ │ │ -0022f1a0: 5353 5344 2053 6572 7669 6365 202d 2045  SSSD Service - E
│ │ │ -0022f1b0: 6e61 626c 6520 5365 7276 6963 6520 7373  nable Service ss
│ │ │ -0022f1c0: 7364 0a20 2020 2061 6e73 6962 6c65 2e62  sd.    ansible.b
│ │ │ -0022f1d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0022f1e0: 2020 2020 2020 6e61 6d65 3a20 7373 7364        name: sssd
│ │ │ -0022f1f0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0022f200: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -0022f210: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -0022f220: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -0022f230: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -0022f240: 7373 7364 2d63 6f6d 6d6f 6e22 2069 6e20  sssd-common" in 
│ │ │ -0022f250: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0022f260: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -0022f270: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0022f280: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -0022f290: 2d38 3030 2d35 332d 4941 2d35 2831 3029  -800-53-IA-5(10)
│ │ │ -0022f2a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -0022f2b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0022f2c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0022f2d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0022f2e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0022f2f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0022f300: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0022f310: 7373 7364 5f65 6e61 626c 6564 0a20 202d  sssd_enabled.  -
│ │ │ -0022f320: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0022f330: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ -0022f340: 202d 2027 2273 7373 642d 636f 6d6d 6f6e   - '"sssd-common
│ │ │ -0022f350: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0022f360: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ -0022f370: 2028 2022 7373 7364 2d63 6f6d 6d6f 6e22   ( "sssd-common"
│ │ │ -0022f380: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0022f390: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ -0022f3a0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0022f3b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0022f3c0: 6b61 6765 730a 2020 2020 290a 3c2f 636f  kages.    ).
│ │ │ +0022ebb0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0022ebd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0022ec00: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0022eb90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0022eba0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0022ebc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0022ebe0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0022ebf0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0022ec40: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0022ec50: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0022ec60: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0022ec70: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0022ec80: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0022ec90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0022eca0: 204e 4953 542d 3830 302d 3533 2d49 412d NIST-800-53-IA- │ │ │ +0022ecb0: 3528 3130 290a 2020 2d20 656e 6162 6c65 5(10). - enable │ │ │ +0022ecc0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0022ecd0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0022ece0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0022ecf0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0022ed00: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0022ed10: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +0022ed20: 7669 6365 5f73 7373 645f 656e 6162 6c65 vice_sssd_enable │ │ │ +0022ed30: 640a 0a2d 206e 616d 653a 2045 6e61 626c d..- name: Enabl │ │ │ +0022ed40: 6520 7468 6520 5353 5344 2053 6572 7669 e the SSSD Servi │ │ │ +0022ed50: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ +0022ed60: 6963 6520 7373 7364 0a20 2062 6c6f 636b ice sssd. block │ │ │ +0022ed70: 3a0a 0a20 202d 206e 616d 653a 2047 6174 :.. - name: Gat │ │ │ +0022ed80: 6865 7220 7468 6520 7061 636b 6167 6520 her the package │ │ │ +0022ed90: 6661 6374 730a 2020 2020 616e 7369 626c facts. ansibl │ │ │ +0022eda0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +0022edb0: 655f 6661 6374 733a 0a20 2020 2020 206d e_facts:. m │ │ │ +0022edc0: 616e 6167 6572 3a20 6175 746f 0a0a 2020 anager: auto.. │ │ │ +0022edd0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074 - name: Enable t │ │ │ +0022ede0: 6865 2053 5353 4420 5365 7276 6963 6520 he SSSD Service │ │ │ +0022edf0: 2d20 456e 6162 6c65 2053 6572 7669 6365 - Enable Service │ │ │ +0022ee00: 2073 7373 640a 2020 2020 616e 7369 626c sssd. ansibl │ │ │ +0022ee10: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +0022ee20: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ +0022ee30: 7373 640a 2020 2020 2020 656e 6162 6c65 ssd. enable │ │ │ +0022ee40: 643a 2074 7275 650a 2020 2020 2020 7374 d: true. st │ │ │ +0022ee50: 6174 653a 2073 7461 7274 6564 0a20 2020 ate: started. │ │ │ +0022ee60: 2020 206d 6173 6b65 643a 2066 616c 7365 masked: false │ │ │ +0022ee70: 0a20 2020 2077 6865 6e3a 0a20 2020 202d . when:. - │ │ │ +0022ee80: 2027 2273 7373 642d 636f 6d6d 6f6e 2220 '"sssd-common" │ │ │ +0022ee90: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0022eea0: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +0022eeb0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +0022eec0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e 53-CM-6(a). - N │ │ │ +0022eed0: 4953 542d 3830 302d 3533 2d49 412d 3528 IST-800-53-IA-5( │ │ │ +0022eee0: 3130 290a 2020 2d20 656e 6162 6c65 5f73 10). - enable_s │ │ │ +0022eef0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0022ef00: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0022ef10: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0022ef20: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0022ef30: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0022ef40: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +0022ef50: 6365 5f73 7373 645f 656e 6162 6c65 640a ce_sssd_enabled. │ │ │ +0022ef60: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +0022ef70: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +0022ef80: 3a0a 2020 2d20 2722 7373 7364 2d63 6f6d :. - '"sssd-com │ │ │ +0022ef90: 6d6f 6e22 2069 6e20 616e 7369 626c 655f mon" in ansible_ │ │ │ +0022efa0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +0022efb0: 2020 2d20 2820 2273 7373 642d 636f 6d6d - ( "sssd-comm │ │ │ +0022efc0: 6f6e 2220 696e 2061 6e73 6962 6c65 5f66 on" in ansible_f │ │ │ +0022efd0: 6163 7473 2e70 6163 6b61 6765 7320 616e acts.packages an │ │ │ +0022efe0: 6420 226c 696e 7578 2d62 6173 6522 2069 d "linux-base" i │ │ │ +0022eff0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +0022f000: 7061 636b 6167 6573 0a20 2020 2029 0a3c packages. ).< │ │ │ +0022f010: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>

R │ │ │ +0022f0c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0022f0d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +0022f170: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0022f180: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0022f1d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0022f210: 6c75 6465 2065 6e61 626c 655f 7373 7364  lude enable_sssd
│ │ │ +0022f220: 0a0a 636c 6173 7320 656e 6162 6c65 5f73  ..class enable_s
│ │ │ +0022f230: 7373 6420 7b0a 2020 7365 7276 6963 6520  ssd {.  service 
│ │ │ +0022f240: 7b27 7373 7364 273a 0a20 2020 2065 6e61  {'sssd':.    ena
│ │ │ +0022f250: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +0022f260: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0022f270: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +0022f280: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0022f290: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +0022f340: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0022f350: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0022f360: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +0022f3a0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +0022f3b0: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +0022f3c0: 203d 205b 2273 7373 6422 5d0a 3c2f 636f   = ["sssd"].
< │ │ │ 0022f3e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0022f3f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0022f400: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0022f410: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0022f420: 6437 3738 2220 7461 6269 6e64 6578 3d22 d778" tabindex=" │ │ │ 0022f430: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -244556,153 +244556,153 @@ │ │ │ 003bb4b0: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 003bb4c0: 2369 6439 3332 2220 7461 6269 6e64 6578 #id932" tabindex │ │ │ 003bb4d0: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 003bb4e0: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 003bb4f0: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 003bb500: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 003bb510: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -003bb520: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -003bb530: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -003bb540: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -003bb550: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -003bb560: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -003bb570: 7365 2220 6964 3d22 6964 3933 3222 3e3c se" id="id932">< │ │ │ -003bb580: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -003bb590: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -003bb5a0: 6175 6469 7464 220a 7665 7273 696f 6e20 auditd".version │ │ │ -003bb5b0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediatio │ │ │ -003bb670: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -003bb680: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -003bb740: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -003bb750: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +0022f160: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0022f190: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0022f1a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0022f1e0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0022f1f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -003bb710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -003bb730: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -003bb760: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -003bb780: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -003bb7c0: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ -003bb7d0: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ -003bb7e0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -003bb7f0: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ -003bb800: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -003bb810: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -003bb830: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -003bb8d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -003bb8e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -003bb8f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -003bb990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -003bb9e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -003bb970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -003bb9a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -003bb9c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -003bb9d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -003bb9f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -003bba00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -003bba20: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -003bba30: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -003bba40: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -003bba50: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -003bba60: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -003bba70: 2d38 3030 2d35 332d 4143 2d37 2861 290a  -800-53-AC-7(a).
│ │ │ -003bba80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -003bba90: 4155 2d31 3228 3229 0a20 202d 204e 4953  AU-12(2).  - NIS
│ │ │ -003bbaa0: 542d 3830 302d 3533 2d41 552d 3134 0a20  T-800-53-AU-14. 
│ │ │ -003bbab0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003bbac0: 552d 3228 6129 0a20 202d 204e 4953 542d  U-2(a).  - NIST-
│ │ │ -003bbad0: 3830 302d 3533 2d41 552d 3728 3129 0a20  800-53-AU-7(1). 
│ │ │ -003bbae0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003bbaf0: 552d 3728 3229 0a20 202d 204e 4953 542d  U-7(2).  - NIST-
│ │ │ -003bbb00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -003bbb10: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -003bbb20: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ -003bbb30: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ -003bbb40: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ -003bbb50: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -003bbb60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -003bbb70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -003bbb80: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -003bbb90: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -003bbba0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -003bbbb0: 202d 2070 6163 6b61 6765 5f61 7564 6974   - package_audit
│ │ │ -003bbbc0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -003bbbd0: 6d65 3a20 456e 7375 7265 2061 7564 6974  me: Ensure audit
│ │ │ -003bbbe0: 6420 6973 2069 6e73 7461 6c6c 6564 0a20  d is installed. 
│ │ │ -003bbbf0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -003bbc00: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -003bbc10: 6d65 3a20 6175 6469 7464 0a20 2020 2073  me: auditd.    s
│ │ │ -003bbc20: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -003bbc30: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -003bbc40: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -003bbc50: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -003bbc60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -003bbc70: 3830 302d 3533 2d41 432d 3728 6129 0a20  800-53-AC-7(a). 
│ │ │ -003bbc80: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003bbc90: 552d 3132 2832 290a 2020 2d20 4e49 5354  U-12(2).  - NIST
│ │ │ -003bbca0: 2d38 3030 2d35 332d 4155 2d31 340a 2020  -800-53-AU-14.  
│ │ │ -003bbcb0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -003bbcc0: 2d32 2861 290a 2020 2d20 4e49 5354 2d38  -2(a).  - NIST-8
│ │ │ -003bbcd0: 3030 2d35 332d 4155 2d37 2831 290a 2020  00-53-AU-7(1).  
│ │ │ -003bbce0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -003bbcf0: 2d37 2832 290a 2020 2d20 4e49 5354 2d38  -7(2).  - NIST-8
│ │ │ -003bbd00: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -003bbd10: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -003bbd20: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ -003bbd30: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ -003bbd40: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ -003bbd50: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -003bbd60: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -003bbd70: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -003bbd80: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -003bbd90: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -003bbda0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -003bbdb0: 2d20 7061 636b 6167 655f 6175 6469 745f  - package_audit_
│ │ │ -003bbdc0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +003bb5d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +003bb5e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +003bb630: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +003bb670: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +003bb680: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +003bb690: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +003bb6a0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +003bb6b0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +003bb6c0: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ +003bb6d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003bb6e0: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ +003bb6f0: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ +003bb700: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003bb710: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ +003bb720: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ +003bb730: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003bb740: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ +003bb750: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +003bb760: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +003bb770: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ +003bb780: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ +003bb790: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ +003bb7a0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +003bb7b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +003bb7c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +003bb7d0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +003bb7e0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +003bb7f0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +003bb800: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ +003bb810: 745f 696e 7374 616c 6c65 640a 0a2d 206e  t_installed..- n
│ │ │ +003bb820: 616d 653a 2045 6e73 7572 6520 6175 6469  ame: Ensure audi
│ │ │ +003bb830: 7464 2069 7320 696e 7374 616c 6c65 640a  td is installed.
│ │ │ +003bb840: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +003bb850: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +003bb860: 616d 653a 2061 7564 6974 640a 2020 2020  ame: auditd.    
│ │ │ +003bb870: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +003bb880: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +003bb890: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +003bb8a0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +003bb8b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +003bb8c0: 2d38 3030 2d35 332d 4143 2d37 2861 290a  -800-53-AC-7(a).
│ │ │ +003bb8d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003bb8e0: 4155 2d31 3228 3229 0a20 202d 204e 4953  AU-12(2).  - NIS
│ │ │ +003bb8f0: 542d 3830 302d 3533 2d41 552d 3134 0a20  T-800-53-AU-14. 
│ │ │ +003bb900: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003bb910: 552d 3228 6129 0a20 202d 204e 4953 542d  U-2(a).  - NIST-
│ │ │ +003bb920: 3830 302d 3533 2d41 552d 3728 3129 0a20  800-53-AU-7(1). 
│ │ │ +003bb930: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003bb940: 552d 3728 3229 0a20 202d 204e 4953 542d  U-7(2).  - NIST-
│ │ │ +003bb950: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +003bb960: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +003bb970: 302e 310a 2020 2d20 5043 492d 4453 5376  0.1.  - PCI-DSSv
│ │ │ +003bb980: 342d 3130 2e32 0a20 202d 2050 4349 2d44  4-10.2.  - PCI-D
│ │ │ +003bb990: 5353 7634 2d31 302e 322e 310a 2020 2d20  SSv4-10.2.1.  - 
│ │ │ +003bb9a0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +003bb9b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +003bb9c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +003bb9d0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +003bb9e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +003bb9f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +003bba00: 202d 2070 6163 6b61 6765 5f61 7564 6974   - package_audit
│ │ │ +003bba10: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +003bbad0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +003bbae0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +003bb5c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +003bb5f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +003bb600: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +003bb640: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +003bb650: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +003bbb90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +003bbbb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +003bbbe0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +003bbb70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +003bbb80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +003bbba0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +003bbbc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +003bbbd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +003bbc20: 2069 6e73 7461 6c6c 5f61 7564 6974 640a install_auditd. │ │ │ +003bbc30: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61 .class install_a │ │ │ +003bbc40: 7564 6974 6420 7b0a 2020 7061 636b 6167 uditd {. packag │ │ │ +003bbc50: 6520 7b20 2761 7564 6974 6427 3a0a 2020 e { 'auditd':. │ │ │ +003bbc60: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +003bbc70: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a installed',. }. │ │ │ +003bbc80: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.

< │ │ │ +003bbc90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +003bbd40: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +003bbd50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +003bbd60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +003bbda0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +003bbdb0: 203d 2022 6175 6469 7464 220a 7665 7273   = "auditd".vers
│ │ │ +003bbdc0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remediation OSB │ │ │ -003bda70: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -003bda80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -003bdad0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -003bdae0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -003bdaf0: 3d20 5b22 6175 6469 7464 225d 0a3c 2f63  = ["auditd"].
│ │ │ -003bdb10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -003bdbb0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -003bdbc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -003bdbd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -003bdc50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -003bdc80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -003bdca0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -003bdcb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -003bdcd0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -003bdcf0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -003bdd00: 6465 2065 6e61 626c 655f 6175 6469 7464  de enable_auditd
│ │ │ -003bdd10: 0a0a 636c 6173 7320 656e 6162 6c65 5f61  ..class enable_a
│ │ │ -003bdd20: 7564 6974 6420 7b0a 2020 7365 7276 6963  uditd {.  servic
│ │ │ -003bdd30: 6520 7b27 6175 6469 7464 273a 0a20 2020  e {'auditd':.   
│ │ │ -003bdd40: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -003bdd50: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -003bdd60: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -003bdd70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -003bde30: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -003bde40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -003bdec0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -003bded0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -003bdef0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -003bdf00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -003bdf20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -003bdf40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -003bdf70: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -003bdf80: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -003bdf90: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -003bdfa0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -003bdfb0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -003bdfc0: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -003bdfd0: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ -003bdfe0: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ -003bdff0: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ -003be000: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -003be010: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ -003be020: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ +003bda60: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +003bda70: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +003bda80: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +003bdb50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +003bdb60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +003bdbb0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +003bdbc0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +003bdbd0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +003bdbe0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +003bdbf0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +003bdc00: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ +003bdc10: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +003bdc20: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ +003bdc30: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ +003bdc40: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +003bdc50: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ +003bdc60: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ +003bdc70: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +003bdc80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003bdc90: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ +003bdca0: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ +003bdcb0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003bdcc0: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ +003bdcd0: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ +003bdce0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003bdcf0: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ +003bdd00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +003bdd10: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +003bdd20: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ +003bdd30: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ +003bdd40: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ +003bdd50: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +003bdd60: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ +003bdd70: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +003bdd80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +003bdd90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +003bdda0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +003bddb0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +003bddc0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +003bddd0: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ +003bdde0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ +003bddf0: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ +003bde00: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ +003bde10: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ +003bde20: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ +003bde30: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +003bde40: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ +003bde50: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +003bde60: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ +003bde70: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ +003bde80: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ +003bde90: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ +003bdea0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +003bdeb0: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ +003bdec0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +003bded0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +003bdee0: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ +003bdef0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +003bdf00: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +003bdf10: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +003bdf20: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +003bdf30: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ +003bdf40: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +003bdf50: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +003bdf60: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ +003bdf70: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ +003bdf80: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ +003bdf90: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ +003bdfa0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +003bdfb0: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ +003bdfc0: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ +003bdfd0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +003bdfe0: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ +003bdff0: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ +003be000: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +003be010: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ +003be020: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │  003be030: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003be040: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ -003be050: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ -003be060: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -003be070: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ -003be080: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │ -003be090: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -003be0a0: 552d 3228 6429 0a20 202d 204e 4953 542d  U-2(d).  - NIST-
│ │ │ -003be0b0: 3830 302d 3533 2d41 552d 330a 2020 2d20  800-53-AU-3.  - 
│ │ │ -003be0c0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -003be0d0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -003be0e0: 2d35 332d 5349 2d34 2832 3329 0a20 202d  -53-SI-4(23).  -
│ │ │ -003be0f0: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -003be100: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -003be110: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -003be120: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -003be130: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -003be140: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -003be150: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -003be160: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -003be170: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -003be180: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -003be190: 2073 6572 7669 6365 5f61 7564 6974 645f   service_auditd_
│ │ │ -003be1a0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -003be1b0: 2045 6e61 626c 6520 6175 6469 7464 2053   Enable auditd S
│ │ │ -003be1c0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -003be1d0: 7365 7276 6963 6520 6175 6469 7464 0a20  service auditd. 
│ │ │ -003be1e0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -003be1f0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -003be200: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -003be210: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -003be220: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -003be230: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -003be240: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -003be250: 6162 6c65 2061 7564 6974 6420 5365 7276  able auditd Serv
│ │ │ -003be260: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -003be270: 7669 6365 2061 7564 6974 640a 2020 2020  vice auditd.    
│ │ │ -003be280: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -003be290: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -003be2a0: 616d 653a 2061 7564 6974 640a 2020 2020  ame: auditd.    
│ │ │ -003be2b0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -003be2c0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -003be2d0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -003be2e0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -003be2f0: 6e3a 0a20 2020 202d 2027 2261 7564 6974  n:.    - '"audit
│ │ │ -003be300: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ -003be310: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -003be320: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ -003be330: 2e34 2e31 2e31 0a20 202d 204e 4953 542d  .4.1.1.  - NIST-
│ │ │ -003be340: 3830 302d 3137 312d 332e 332e 310a 2020  800-171-3.3.1.  
│ │ │ -003be350: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -003be360: 2e33 2e32 0a20 202d 204e 4953 542d 3830  .3.2.  - NIST-80
│ │ │ -003be370: 302d 3137 312d 332e 332e 360a 2020 2d20  0-171-3.3.6.  - 
│ │ │ -003be380: 4e49 5354 2d38 3030 2d35 332d 4143 2d32  NIST-800-53-AC-2
│ │ │ -003be390: 2867 290a 2020 2d20 4e49 5354 2d38 3030  (g).  - NIST-800
│ │ │ -003be3a0: 2d35 332d 4143 2d36 2839 290a 2020 2d20  -53-AC-6(9).  - 
│ │ │ -003be3b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ -003be3c0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -003be3d0: 332d 4155 2d31 3228 6329 0a20 202d 204e  3-AU-12(c).  - N
│ │ │ -003be3e0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ -003be3f0: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -003be400: 2d35 332d 4155 2d32 2864 290a 2020 2d20  -53-AU-2(d).  - 
│ │ │ -003be410: 4e49 5354 2d38 3030 2d35 332d 4155 2d33  NIST-800-53-AU-3
│ │ │ -003be420: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -003be430: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -003be440: 542d 3830 302d 3533 2d53 492d 3428 3233  T-800-53-SI-4(23
│ │ │ -003be450: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -003be460: 712d 3130 2e31 0a20 202d 2050 4349 2d44  q-10.1.  - PCI-D
│ │ │ -003be470: 5353 7634 2d31 302e 320a 2020 2d20 5043  SSv4-10.2.  - PC
│ │ │ -003be480: 492d 4453 5376 342d 3130 2e32 2e31 0a20  I-DSSv4-10.2.1. 
│ │ │ -003be490: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -003be4a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -003be4b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -003be4c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -003be4d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -003be4e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -003be4f0: 640a 2020 2d20 7365 7276 6963 655f 6175  d.  - service_au
│ │ │ -003be500: 6469 7464 5f65 6e61 626c 6564 0a20 202d  ditd_enabled.  -
│ │ │ -003be510: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -003be520: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ -003be530: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ -003be540: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -003be550: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ -003be560: 2722 6175 6469 7464 2220 696e 2061 6e73  '"auditd" in ans
│ │ │ -003be570: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -003be580: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
│ │ │ +003be270: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +003be280: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +003bdb30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +003bdb40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +003bdb80: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +003bdb90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +003be320: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +003be3c0: 636c 7564 6520 656e 6162 6c65 5f61 7564  clude enable_aud
│ │ │ +003be3d0: 6974 640a 0a63 6c61 7373 2065 6e61 626c  itd..class enabl
│ │ │ +003be3e0: 655f 6175 6469 7464 207b 0a20 2073 6572  e_auditd {.  ser
│ │ │ +003be3f0: 7669 6365 207b 2761 7564 6974 6427 3a0a  vice {'auditd':.
│ │ │ +003be400: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +003be410: 2074 7275 652c 0a20 2020 2065 6e73 7572   true,.    ensur
│ │ │ +003be420: 6520 3d26 6774 3b20 2772 756e 6e69 6e67  e => 'running
│ │ │ +003be430: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +003be440: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +003be4f0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +003be500: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +003be510: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +003be550: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +003be560: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +003be570: 656e 6162 6c65 6420 3d20 5b22 6175 6469  enabled = ["audi
│ │ │ +003be580: 7464 225d 0a3c 2f63 6f64 653e 3c2f 7072  td"].
'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: │ │ │ │ @@ -167,14 +150,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 - │ │ │ │ @@ -598,31 +598,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: │ │ │ │ @@ -649,14 +632,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 - │ │ │ │ @@ -3821,31 +3821,14 @@ │ │ │ │ Rationale: password in resisting attempts 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -3866,14 +3849,31 @@ │ │ │ │ tags: │ │ │ │ - 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 - │ │ │ │ @@ -5400,31 +5400,14 @@ │ │ │ │ Control system will be available. │ │ │ │ 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- │ │ │ │ References: OS-000312-GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _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" │ │ │ │ -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: │ │ │ │ @@ -5434,14 +5417,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -5459,31 +5459,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_apparmor_installed │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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-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_libpam-apparmor │ │ │ │ - │ │ │ │ -class install_libpam-apparmor { │ │ │ │ - package { 'libpam-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 libpam-apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -5500,14 +5483,31 @@ │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_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_libpam-apparmor │ │ │ │ + │ │ │ │ +class install_libpam-apparmor { │ │ │ │ + package { 'libpam-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 = "libpam-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 │ │ │ │ @@ -5690,31 +5690,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_apparmor_configured │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - name: Start apparmor.service │ │ │ │ ansible.builtin.systemd: │ │ │ │ name: apparmor.service │ │ │ │ state: started │ │ │ │ enabled: true │ │ │ │ when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ @@ -5724,14 +5707,31 @@ │ │ │ │ - NIST-800-53-AC-6(8) │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - NIST-800-53-CM-7(2) │ │ │ │ - NIST-800-53-CM-7(5)(b) │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - apparmor_configured │ │ │ │ - medium_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:: 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"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr iiss eennaabblleedd iinn tthhee bboooottllooaaddeerr ccoonnffiigguurraattiioonn ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Configure AppArmor to be enabled at boot time and verify that it has not been overwritten by the │ │ │ │ bootloader boot parameters. Note: This recommendation is designed around the grub bootloader, if LILO │ │ │ │ or another bootloader is in use in your environment, enact equivalent settings. │ │ │ │ Rationale: AppArmor must be enabled at boot time in your bootloader configuration to ensure that the │ │ │ │ controls it provides are not overridden. │ │ │ │ Severity:  medium │ │ │ │ @@ -10361,31 +10361,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 │ │ │ │ _p_c_i_d_s_s Req-10.7 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ _p_c_i_d_s_s_4 10.5.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "logrotate" │ │ │ │ -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_logrotate │ │ │ │ - │ │ │ │ -class install_logrotate { │ │ │ │ - package { 'logrotate': │ │ │ │ - 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: │ │ │ │ @@ -10414,14 +10397,31 @@ │ │ │ │ - PCI-DSSv4-10.5.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_logrotate_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_logrotate │ │ │ │ + │ │ │ │ +class install_logrotate { │ │ │ │ + package { 'logrotate': │ │ │ │ + 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 = "logrotate" │ │ │ │ +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 - │ │ │ │ @@ -10767,31 +10767,14 @@ │ │ │ │ $ apt-get install rsyslog-gnutls │ │ │ │ Rationale: The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the │ │ │ │ rsyslog daemon, which enables secure remote logging. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsyslog-gnutls_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000120-GPOS-00061 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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-gnutls" │ │ │ │ -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-gnutls │ │ │ │ - │ │ │ │ -class install_rsyslog-gnutls { │ │ │ │ - package { 'rsyslog-gnutls': │ │ │ │ - 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: │ │ │ │ @@ -10812,14 +10795,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog-gnutls_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-gnutls │ │ │ │ + │ │ │ │ +class install_rsyslog-gnutls { │ │ │ │ + package { 'rsyslog-gnutls': │ │ │ │ + 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-gnutls" │ │ │ │ +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 - │ │ │ │ @@ -10844,31 +10844,14 @@ │ │ │ │ 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: │ │ │ │ @@ -10891,14 +10874,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 - │ │ │ │ @@ -10927,31 +10927,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, │ │ │ │ A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -10988,14 +10971,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 - │ │ │ │ @@ -31764,27 +31764,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -31798,14 +31785,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -31819,27 +31819,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - 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 kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -31848,14 +31835,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_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_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + 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 kea │ │ │ │ @@ -32047,27 +32047,14 @@ │ │ │ │ _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 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - 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: │ │ │ │ @@ -32094,14 +32081,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_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_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + 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 - │ │ │ │ @@ -32174,31 +32174,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -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_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - 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: │ │ │ │ @@ -32225,14 +32208,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_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_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + 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 = "chrony" │ │ │ │ +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 - │ │ │ │ @@ -32947,27 +32947,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: │ │ │ │ @@ -32998,14 +32985,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 - │ │ │ │ @@ -33039,27 +33039,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_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 │ │ │ │ _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_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - 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 NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33070,14 +33057,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_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_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + 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 ypbind-mt │ │ │ │ @@ -33115,27 +33115,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: │ │ │ │ @@ -33151,14 +33138,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 │ │ │ │ @@ -33199,27 +33199,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), IA-5(1)(c) │ │ │ │ _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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -33234,14 +33221,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 │ │ │ │ @@ -33264,27 +33264,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33296,14 +33283,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -33325,27 +33325,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_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), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-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 talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33356,14 +33343,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-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_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-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 talk-server │ │ │ │ @@ -33386,27 +33386,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: │ │ │ │ @@ -33417,14 +33404,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 │ │ │ │ @@ -33472,27 +33472,14 @@ │ │ │ │ _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 │ │ │ │ _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 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-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 telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33507,14 +33494,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-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_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-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 telnet-server │ │ │ │ @@ -33536,27 +33536,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: │ │ │ │ @@ -33568,14 +33555,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 │ │ │ │ @@ -33619,27 +33619,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33653,14 +33640,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -33679,27 +33679,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _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_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - 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 tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33710,14 +33697,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_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_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + 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 tftp │ │ │ │ @@ -34630,23 +34630,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 0640 /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: │ │ │ │ @@ -34710,14 +34701,23 @@ │ │ │ │ - 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 0640 /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 │ │ │ │ @@ -34757,23 +34757,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: │ │ │ │ @@ -34837,14 +34828,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 - │ │ │ │ @@ -34934,31 +34934,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -34981,14 +34964,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 - │ │ │ │ @@ -35018,31 +35018,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -35082,14 +35065,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 - │ │ │ │ @@ -71892,31 +71892,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -71957,14 +71940,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 - │ │ │ │ @@ -72025,31 +72025,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -72116,14 +72099,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-debian/ssg-debian12-guide-anssi_bp28_high.html │ │ │ @@ -15045,134 +15045,134 @@ │ │ │ 0003ac40: 6174 612d 7461 7267 6574 3d22 2369 6431 ata-target="#id1 │ │ │ 0003ac50: 3522 2074 6162 696e 6465 783d 2230 2220 5" tabindex="0" │ │ │ 0003ac60: 726f 6c65 3d22 6275 7474 6f6e 2220 6172 role="button" ar │ │ │ 0003ac70: 6961 2d65 7870 616e 6465 643d 2266 616c ia-expanded="fal │ │ │ 0003ac80: 7365 2220 7469 746c 653d 2241 6374 6976 se" title="Activ │ │ │ 0003ac90: 6174 6520 746f 2072 6576 6561 6c22 2068 ate to reveal" h │ │ │ 0003aca0: 7265 663d 2223 2122 3e52 656d 6564 6961 ref="#!">Remedia │ │ │ -0003acb0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0003acc0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0003acd0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ -0003ad20: 5d0a 6e61 6d65 203d 2022 6169 6465 220a  ].name = "aide".
│ │ │ -0003ad30: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -0003adf0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0003ae00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003ae10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +003be310: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +003be340: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +003be350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +003be390: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +003be3a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0003ae90: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003aea0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003aec0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003aee0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003aef0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003af30: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0003af40: 6520 696e 7374 616c 6c5f 6169 6465 0a0a e install_aide.. │ │ │ -0003af50: 636c 6173 7320 696e 7374 616c 6c5f 6169 class install_ai │ │ │ -0003af60: 6465 207b 0a20 2070 6163 6b61 6765 207b de {. package { │ │ │ -0003af70: 2027 6169 6465 273a 0a20 2020 2065 6e73 'aide':. ens │ │ │ -0003af80: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ -0003af90: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ -0003afb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -0003b050: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0003b060: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003b070: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0003b0f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003b100: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003b120: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003b140: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003b150: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003b190: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0003b1a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0003b1b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0003b1c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0003b1d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0003b1e0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ -0003b1f0: 2e31 302e 312e 330a 2020 2d20 4e49 5354 .10.1.3. - NIST │ │ │ -0003b200: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0003b210: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -0003b220: 3131 2e35 0a20 202d 2050 4349 2d44 5353 11.5. - PCI-DSS │ │ │ -0003b230: 7634 2d31 312e 352e 320a 2020 2d20 656e v4-11.5.2. - en │ │ │ -0003b240: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -0003b250: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -0003b260: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -0003b270: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -0003b280: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -0003b290: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -0003b2a0: 2070 6163 6b61 6765 5f61 6964 655f 696e package_aide_in │ │ │ -0003b2b0: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ -0003b2c0: 2045 6e73 7572 6520 6169 6465 2069 7320 Ensure aide is │ │ │ -0003b2d0: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ -0003b2e0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -0003b2f0: 6167 653a 0a20 2020 206e 616d 653a 2061 age:. name: a │ │ │ -0003b300: 6964 650a 2020 2020 7374 6174 653a 2070 ide. state: p │ │ │ -0003b310: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ -0003b320: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ -0003b330: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -0003b340: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ -0003b350: 2020 2d20 434a 4953 2d35 2e31 302e 312e - CJIS-5.10.1. │ │ │ -0003b360: 330a 2020 2d20 4e49 5354 2d38 3030 2d35 3. - NIST-800-5 │ │ │ -0003b370: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -0003b380: 492d 4453 532d 5265 712d 3131 2e35 0a20 I-DSS-Req-11.5. │ │ │ -0003b390: 202d 2050 4349 2d44 5353 7634 2d31 312e - PCI-DSSv4-11. │ │ │ -0003b3a0: 352e 320a 2020 2d20 656e 6162 6c65 5f73 5.2. - enable_s │ │ │ -0003b3b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0003b3c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0003b3d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0003b3e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -0003b3f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0003b400: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0003b410: 6765 5f61 6964 655f 696e 7374 616c 6c65 ge_aide_installe │ │ │ -0003b420: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0003acb0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +0003acc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0003acd0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0003ad00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0003ad10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0003ad20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0003ad30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0003ad40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0003ad50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0003ad60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0003ada0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0003adb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0003add0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0003ade0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0003ae00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0003ae10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0003ae20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0003ae30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0003ae40: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003ae50: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ +0003ae60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0003ae70: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ +0003ae80: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +0003ae90: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ +0003aea0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003aeb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003aec0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003aed0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003aee0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003aef0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003af00: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ +0003af10: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +0003af20: 7375 7265 2061 6964 6520 6973 2069 6e73  sure aide is ins
│ │ │ +0003af30: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +0003af40: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0003af50: 3a0a 2020 2020 6e61 6d65 3a20 6169 6465  :.    name: aide
│ │ │ +0003af60: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +0003af70: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +0003af80: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0003af90: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0003afa0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +0003afb0: 2043 4a49 532d 352e 3130 2e31 2e33 0a20   CJIS-5.10.1.3. 
│ │ │ +0003afc0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0003afd0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0003afe0: 5353 2d52 6571 2d31 312e 350a 2020 2d20  SS-Req-11.5.  - 
│ │ │ +0003aff0: 5043 492d 4453 5376 342d 3131 2e35 2e32  PCI-DSSv4-11.5.2
│ │ │ +0003b000: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0003b010: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0003b020: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0003b030: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0003b040: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0003b050: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0003b060: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0003b070: 6169 6465 5f69 6e73 7461 6c6c 6564 0a3c  aide_installed.<
│ │ │ +0003b080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0003b130: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0003b140: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0003b150: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +0003b1d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0003b200: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0003b220: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0003b230: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0003b250: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0003b270: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0003b280: 6465 2069 6e73 7461 6c6c 5f61 6964 650a  de install_aide.
│ │ │ +0003b290: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ +0003b2a0: 6964 6520 7b0a 2020 7061 636b 6167 6520  ide {.  package 
│ │ │ +0003b2b0: 7b20 2761 6964 6527 3a0a 2020 2020 656e  { 'aide':.    en
│ │ │ +0003b2c0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +0003b2d0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +0003b390: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0003b3a0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0003b3b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +0003b400: 6765 735d 5d0a 6e61 6d65 203d 2022 6169 ges]].name = "ai │ │ │ +0003b410: 6465 220a 7665 7273 696f 6e20 3d20 222a de".version = "* │ │ │ +0003b420: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 0003b430: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediati │ │ │ -0004f490: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0004f4a0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0004f4b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ -0004f500: 6e61 6d65 203d 2022 7375 646f 220a 7665  name = "sudo".ve
│ │ │ -0004f510: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0004f530: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0004f540: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0004f550: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0004f560: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0004f570: 6434 3722 2074 6162 696e 6465 783d 2230 d47" tabindex="0 │ │ │ -0004f580: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0004f590: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0004f5a0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0004f5b0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0004f5c0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0004f5d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0004f5e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0004f620: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0004f690: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0004f6b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0004f6e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0004f700: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0004f670: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0004f680: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0004f6c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0004f6d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0004f720: 696e 7374 616c 6c5f 7375 646f 0a0a 636c install_sudo..cl │ │ │ -0004f730: 6173 7320 696e 7374 616c 6c5f 7375 646f ass install_sudo │ │ │ -0004f740: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -0004f750: 7375 646f 273a 0a20 2020 2065 6e73 7572 sudo':. ensur │ │ │ -0004f760: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -0004f770: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedi │ │ │ -0004f830: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0004f840: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0004f880: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0004f8f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0004f910: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0004f940: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0004f960: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0004f8d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0004f8e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0004f920: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0004f930: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0004f980: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0004f990: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0004f9a0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0004f9b0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0004f9c0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -0004f9d0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -0004f9e0: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -0004f9f0: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -0004fa00: 360a 2020 2d20 656e 6162 6c65 5f73 7472 6. - enable_str │ │ │ -0004fa10: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0004fa20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0004fa30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0004fa40: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -0004fa50: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0004fa60: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -0004fa70: 5f73 7564 6f5f 696e 7374 616c 6c65 640a _sudo_installed. │ │ │ -0004fa80: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ -0004fa90: 7375 646f 2069 7320 696e 7374 616c 6c65 sudo is installe │ │ │ -0004faa0: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -0004fab0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -0004fac0: 206e 616d 653a 2073 7564 6f0a 2020 2020 name: sudo. │ │ │ -0004fad0: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ -0004fae0: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ -0004faf0: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -0004fb00: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -0004fb10: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -0004fb20: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0004fb30: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ -0004fb40: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -0004fb50: 322e 322e 360a 2020 2d20 656e 6162 6c65 2.2.6. - enable │ │ │ -0004fb60: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0004fb70: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0004fb80: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0004fb90: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -0004fba0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -0004fbb0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -0004fbc0: 6b61 6765 5f73 7564 6f5f 696e 7374 616c kage_sudo_instal │ │ │ -0004fbd0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
< │ │ │ +0004f520: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0004f530: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0004f550: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0004f560: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0004f580: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0004f5a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0004f5d0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0004f5e0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0004f5f0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0004f600: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0004f610: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0004f620: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0004f630: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +0004f640: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +0004f650: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ +0004f660: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0004f670: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0004f680: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0004f690: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0004f6a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0004f6b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0004f6c0: 640a 2020 2d20 7061 636b 6167 655f 7375  d.  - package_su
│ │ │ +0004f6d0: 646f 5f69 6e73 7461 6c6c 6564 0a0a 2d20  do_installed..- 
│ │ │ +0004f6e0: 6e61 6d65 3a20 456e 7375 7265 2073 7564  name: Ensure sud
│ │ │ +0004f6f0: 6f20 6973 2069 6e73 7461 6c6c 6564 0a20  o is installed. 
│ │ │ +0004f700: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0004f710: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0004f720: 6d65 3a20 7375 646f 0a20 2020 2073 7461  me: sudo.    sta
│ │ │ +0004f730: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +0004f740: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0004f750: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0004f760: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0004f770: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0004f780: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0004f790: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0004f7a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0004f7b0: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ +0004f7c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0004f7d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0004f7e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0004f7f0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0004f800: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0004f810: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0004f820: 655f 7375 646f 5f69 6e73 7461 6c6c 6564  e_sudo_installed
│ │ │ +0004f830: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +0004f8e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0004f8f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +0004f990: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0004f9a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0004f9f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0004fa30: 6c75 6465 2069 6e73 7461 6c6c 5f73 7564  lude install_sud
│ │ │ +0004fa40: 6f0a 0a63 6c61 7373 2069 6e73 7461 6c6c  o..class install
│ │ │ +0004fa50: 5f73 7564 6f20 7b0a 2020 7061 636b 6167  _sudo {.  packag
│ │ │ +0004fa60: 6520 7b20 2773 7564 6f27 3a0a 2020 2020  e { 'sudo':.    
│ │ │ +0004fa70: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +0004fa80: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +0004fa90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +0004fb40: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0004fb50: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0004fb60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0004fb70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +0004fba0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +0004fbb0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +0004fbc0: 7375 646f 220a 7665 7273 696f 6e20 3d20 sudo".version = │ │ │ +0004fbd0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation OSB │ │ │ -00086150: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00086160: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -000861b0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -000861c0: 3d20 226c 6962 7061 6d2d 7077 7175 616c  = "libpam-pwqual
│ │ │ -000861d0: 6974 7922 0a76 6572 7369 6f6e 203d 2022  ity".version = "
│ │ │ -000861e0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000861f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -000862a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000862b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +0004f980: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0004f9b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0004f9c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0004fa00: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0004fa10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00086330: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00086350: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000863a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000863f0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ -00086400: 790a 0a63 6c61 7373 2069 6e73 7461 6c6c  y..class install
│ │ │ -00086410: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ -00086420: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ -00086430: 276c 6962 7061 6d2d 7077 7175 616c 6974  'libpam-pwqualit
│ │ │ -00086440: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ -00086450: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00086460: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00086470: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -00086520: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00086530: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00086540: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00086550: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00086560: 7365 2220 6964 3d22 6964 3133 3122 3e3c se" id="id131">< │ │ │ -00086570: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00086580: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00086590: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000865a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000865b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00086640: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00086650: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ -00086360: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00086370: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000863b0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000863c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -000865c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000865d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00086610: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00086620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -00086670: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00086680: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00086690: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000866a0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000866b0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000866c0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000866d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000866e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000866f0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00086700: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00086710: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00086720: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ -00086730: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00086740: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ -00086750: 2d70 7771 7561 6c69 7479 2069 7320 696e  -pwquality is in
│ │ │ -00086760: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -00086770: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00086780: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ -00086790: 7061 6d2d 7077 7175 616c 6974 790a 2020  pam-pwquality.  
│ │ │ -000867a0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -000867b0: 0a20 2077 6865 6e3a 2027 226c 6962 7061  .  when: '"libpa
│ │ │ -000867c0: 6d2d 7275 6e74 696d 6522 2069 6e20 616e  m-runtime" in an
│ │ │ -000867d0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000867e0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000867f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00086800: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00086810: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00086820: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00086830: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00086840: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00086850: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ -00086860: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ -00086870: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation Ans
│ │ │ +00086150: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00086160: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00086230: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00086240: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00086290: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000862a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000862b0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000862c0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000862d0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000862e0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000862f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00086300: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00086310: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00086320: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00086330: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00086340: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +00086350: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +00086360: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +00086370: 7265 206c 6962 7061 6d2d 7077 7175 616c  re libpam-pwqual
│ │ │ +00086380: 6974 7920 6973 2069 6e73 7461 6c6c 6564  ity is installed
│ │ │ +00086390: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +000863a0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +000863b0: 6e61 6d65 3a20 6c69 6270 616d 2d70 7771  name: libpam-pwq
│ │ │ +000863c0: 7561 6c69 7479 0a20 2020 2073 7461 7465  uality.    state
│ │ │ +000863d0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000863e0: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000863f0: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +00086400: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00086410: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00086420: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00086430: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00086440: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00086450: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00086460: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00086470: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00086480: 636b 6167 655f 7061 6d5f 7077 7175 616c  ckage_pam_pwqual
│ │ │ +00086490: 6974 795f 696e 7374 616c 6c65 640a 3c2f  ity_installed.
Re │ │ │ +00086550: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00086560: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00086570: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +00086210: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00086220: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00086260: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00086270: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +00086610: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00086660: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000865f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00086620: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00086640: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00086650: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00086670: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00086680: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000866a0: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ +000866b0: 616d 2d70 7771 7561 6c69 7479 0a0a 636c  am-pwquality..cl
│ │ │ +000866c0: 6173 7320 696e 7374 616c 6c5f 6c69 6270  ass install_libp
│ │ │ +000866d0: 616d 2d70 7771 7561 6c69 7479 207b 0a20  am-pwquality {. 
│ │ │ +000866e0: 2070 6163 6b61 6765 207b 2027 6c69 6270   package { 'libp
│ │ │ +000866f0: 616d 2d70 7771 7561 6c69 7479 273a 0a20  am-pwquality':. 
│ │ │ +00086700: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00086710: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +00086720: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00086730: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000867e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000867f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00086800: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00086840: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +00086850: 6520 3d20 226c 6962 7061 6d2d 7077 7175  e = "libpam-pwqu
│ │ │ +00086860: 616c 6974 7922 0a76 6572 7369 6f6e 203d  ality".version =
│ │ │ +00086870: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remedi │ │ │ -0009fb60: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0009fb70: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0009fb80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0009fbc0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -0009fbd0: 735d 5d0a 6e61 6d65 203d 2022 6170 7061  s]].name = "appa
│ │ │ -0009fbe0: 726d 6f72 220a 7665 7273 696f 6e20 3d20  rmor".version = 
│ │ │ -0009fbf0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -0009fcb0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0009fcc0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0009fd40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0009fd60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0009fdb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0009fde0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -0009fe00: 6c5f 6170 7061 726d 6f72 0a0a 636c 6173  l_apparmor..clas
│ │ │ -0009fe10: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ -0009fe20: 6f72 207b 0a20 2070 6163 6b61 6765 207b  or {.  package {
│ │ │ -0009fe30: 2027 6170 7061 726d 6f72 273a 0a20 2020   'apparmor':.   
│ │ │ -0009fe40: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0009fe50: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0009fe60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0009ff20: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0009ff30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -0009fd50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0009fd70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0009fdc0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0009fdd0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000a0000: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000a0010: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000a0060: 2d20 6e61 6d65 3a20 456e 7375 7265 2061  - name: Ensure a
│ │ │ -000a0070: 7070 6172 6d6f 7220 6973 2069 6e73 7461  pparmor is insta
│ │ │ -000a0080: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -000a0090: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -000a00a0: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ -000a00b0: 6f72 0a20 2020 2073 7461 7465 3a20 7072  or.    state: pr
│ │ │ -000a00c0: 6573 656e 740a 2020 7768 656e 3a20 616e  esent.  when: an
│ │ │ -000a00d0: 7369 626c 655f 7669 7274 7561 6c69 7a61  sible_virtualiza
│ │ │ -000a00e0: 7469 6f6e 5f74 7970 6520 6e6f 7420 696e  tion_type not in
│ │ │ -000a00f0: 205b 2264 6f63 6b65 7222 2c20 226c 7863   ["docker", "lxc
│ │ │ -000a0100: 222c 2022 6f70 656e 767a 222c 2022 706f  ", "openvz", "po
│ │ │ -000a0110: 646d 616e 222c 2022 636f 6e74 6169 6e65  dman", "containe
│ │ │ -000a0120: 7222 5d0a 2020 7461 6773 3a0a 2020 2d20  r"].  tags:.  - 
│ │ │ -000a0130: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000a0140: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000a0150: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000a0160: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000a0170: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000a0180: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000a0190: 202d 2070 6163 6b61 6765 5f61 7070 6172   - package_appar
│ │ │ -000a01a0: 6d6f 725f 696e 7374 616c 6c65 640a 3c2f  mor_installed.
low
Disru │ │ │ -0009ffe0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0009fff0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000a0030: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000a0040: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0009fc20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0009fc40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0009fc70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0009fc00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0009fc10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0009fc30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0009fc50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0009fc60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +0009fcb0: 2045 6e73 7572 6520 6170 7061 726d 6f72 Ensure apparmor │ │ │ +0009fcc0: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ +0009fcd0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0009fce0: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +0009fcf0: 653a 2061 7070 6172 6d6f 720a 2020 2020 e: apparmor. │ │ │ +0009fd00: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +0009fd10: 2077 6865 6e3a 2061 6e73 6962 6c65 5f76 when: ansible_v │ │ │ +0009fd20: 6972 7475 616c 697a 6174 696f 6e5f 7479 irtualization_ty │ │ │ +0009fd30: 7065 206e 6f74 2069 6e20 5b22 646f 636b pe not in ["dock │ │ │ +0009fd40: 6572 222c 2022 6c78 6322 2c20 226f 7065 er", "lxc", "ope │ │ │ +0009fd50: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20 nvz", "podman", │ │ │ +0009fd60: 2263 6f6e 7461 696e 6572 225d 0a20 2074 "container"]. t │ │ │ +0009fd70: 6167 733a 0a20 202d 2065 6e61 626c 655f ags:. - enable_ │ │ │ +0009fd80: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0009fd90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0009fda0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0009fdb0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +0009fdc0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +0009fdd0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +0009fde0: 6167 655f 6170 7061 726d 6f72 5f69 6e73 age_apparmor_ins │ │ │ +0009fdf0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +0009feb0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0009fec0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0009ff40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0009ff50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0009ff70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0009ff80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0009ffa0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0009ffc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0009fff0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000a0000: 7461 6c6c 5f61 7070 6172 6d6f 720a 0a63  tall_apparmor..c
│ │ │ +000a0010: 6c61 7373 2069 6e73 7461 6c6c 5f61 7070  lass install_app
│ │ │ +000a0020: 6172 6d6f 7220 7b0a 2020 7061 636b 6167  armor {.  packag
│ │ │ +000a0030: 6520 7b20 2761 7070 6172 6d6f 7227 3a0a  e { 'apparmor':.
│ │ │ +000a0040: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000a0050: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000a0060: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000a0120: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000a0130: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000a0180: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000a0190: 6d65 203d 2022 6170 7061 726d 6f72 220a  me = "apparmor".
│ │ │ +000a01a0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remediation OS │ │ │ -000a0f30: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000a0f40: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000a0f50: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000a0f90: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000a0fa0: 203d 2022 6c69 6270 616d 2d61 7070 6172   = "libpam-appar
│ │ │ -000a0fb0: 6d6f 7222 0a76 6572 7369 6f6e 203d 2022  mor".version = "
│ │ │ -000a0fc0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000a0fd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -000a1080: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -000a1090: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -000a1110: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000a1130: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000a1180: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000a11d0: 5f6c 6962 7061 6d2d 6170 7061 726d 6f72  _libpam-apparmor
│ │ │ -000a11e0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -000a11f0: 6c69 6270 616d 2d61 7070 6172 6d6f 7220  libpam-apparmor 
│ │ │ -000a1200: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ -000a1210: 6962 7061 6d2d 6170 7061 726d 6f72 273a  ibpam-apparmor':
│ │ │ -000a1220: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000a1230: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000a1240: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -000a1300: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -000a1310: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -000a13d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000a13e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -000a1140: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000a1150: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000a1190: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000a11a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -000a13a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -000a13c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -000a13f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -000a1410: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ -000a1450: 7265 206c 6962 7061 6d2d 6170 7061 726d  re libpam-apparm
│ │ │ -000a1460: 6f72 2069 7320 696e 7374 616c 6c65 640a  or is installed.
│ │ │ -000a1470: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -000a1480: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -000a1490: 616d 653a 206c 6962 7061 6d2d 6170 7061  ame: libpam-appa
│ │ │ -000a14a0: 726d 6f72 0a20 2020 2073 7461 7465 3a20  rmor.    state: 
│ │ │ -000a14b0: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -000a14c0: 616e 7369 626c 655f 7669 7274 7561 6c69  ansible_virtuali
│ │ │ -000a14d0: 7a61 7469 6f6e 5f74 7970 6520 6e6f 7420  zation_type not 
│ │ │ -000a14e0: 696e 205b 2264 6f63 6b65 7222 2c20 226c  in ["docker", "l
│ │ │ -000a14f0: 7863 222c 2022 6f70 656e 767a 222c 2022  xc", "openvz", "
│ │ │ -000a1500: 706f 646d 616e 222c 2022 636f 6e74 6169  podman", "contai
│ │ │ -000a1510: 6e65 7222 5d0a 2020 7461 6773 3a0a 2020  ner"].  tags:.  
│ │ │ -000a1520: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -000a1530: 2d33 2834 290a 2020 2d20 4e49 5354 2d38  -3(4).  - NIST-8
│ │ │ -000a1540: 3030 2d35 332d 4143 2d36 2831 3029 0a20  00-53-AC-6(10). 
│ │ │ -000a1550: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000a1560: 432d 3628 3829 0a20 202d 204e 4953 542d  C-6(8).  - NIST-
│ │ │ -000a1570: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -000a1580: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000a1590: 4d2d 3728 3229 0a20 202d 204e 4953 542d  M-7(2).  - NIST-
│ │ │ -000a15a0: 3830 302d 3533 2d43 4d2d 3728 3529 2862  800-53-CM-7(5)(b
│ │ │ -000a15b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000a15c0: 332d 5343 2d37 2832 3129 0a20 202d 2065  3-SC-7(21).  - e
│ │ │ -000a15d0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000a15e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000a15f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000a1600: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000a1610: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000a1620: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000a1630: 2d20 7061 636b 6167 655f 7061 6d5f 6170  - package_pam_ap
│ │ │ -000a1640: 7061 726d 6f72 5f69 6e73 7461 6c6c 6564  parmor_installed
│ │ │ +000a0f20: 223e 5265 6d65 6469 6174 696f 6e20 416e  ">Remediation An
│ │ │ +000a0f30: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000a0f40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +000a0fc0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000a0fe0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000a1030: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Ensure 
│ │ │ +000a1080: 6c69 6270 616d 2d61 7070 6172 6d6f 7220  libpam-apparmor 
│ │ │ +000a1090: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +000a10a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000a10b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000a10c0: 3a20 6c69 6270 616d 2d61 7070 6172 6d6f  : libpam-apparmo
│ │ │ +000a10d0: 720a 2020 2020 7374 6174 653a 2070 7265  r.    state: pre
│ │ │ +000a10e0: 7365 6e74 0a20 2077 6865 6e3a 2061 6e73  sent.  when: ans
│ │ │ +000a10f0: 6962 6c65 5f76 6972 7475 616c 697a 6174  ible_virtualizat
│ │ │ +000a1100: 696f 6e5f 7479 7065 206e 6f74 2069 6e20  ion_type not in 
│ │ │ +000a1110: 5b22 646f 636b 6572 222c 2022 6c78 6322  ["docker", "lxc"
│ │ │ +000a1120: 2c20 226f 7065 6e76 7a22 2c20 2270 6f64  , "openvz", "pod
│ │ │ +000a1130: 6d61 6e22 2c20 2263 6f6e 7461 696e 6572  man", "container
│ │ │ +000a1140: 225d 0a20 2074 6167 733a 0a20 202d 204e  "].  tags:.  - N
│ │ │ +000a1150: 4953 542d 3830 302d 3533 2d41 432d 3328  IST-800-53-AC-3(
│ │ │ +000a1160: 3429 0a20 202d 204e 4953 542d 3830 302d  4).  - NIST-800-
│ │ │ +000a1170: 3533 2d41 432d 3628 3130 290a 2020 2d20  53-AC-6(10).  - 
│ │ │ +000a1180: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ +000a1190: 2838 290a 2020 2d20 4e49 5354 2d38 3030  (8).  - NIST-800
│ │ │ +000a11a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000a11b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +000a11c0: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ +000a11d0: 2d35 332d 434d 2d37 2835 2928 6229 0a20  -53-CM-7(5)(b). 
│ │ │ +000a11e0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +000a11f0: 432d 3728 3231 290a 2020 2d20 656e 6162  C-7(21).  - enab
│ │ │ +000a1200: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000a1210: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000a1220: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000a1230: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000a1240: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000a1250: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000a1260: 6163 6b61 6765 5f70 616d 5f61 7070 6172  ackage_pam_appar
│ │ │ +000a1270: 6d6f 725f 696e 7374 616c 6c65 640a 3c2f  mor_installed.
Re │ │ │ +000a1330: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000a1340: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000a1350: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ +000a0ff0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000a1000: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000a1040: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000a1050: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +000a13f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000a1440: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000a13d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000a1400: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000a1420: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000a1430: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000a1450: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000a1460: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000a1480: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ +000a1490: 616d 2d61 7070 6172 6d6f 720a 0a63 6c61  am-apparmor..cla
│ │ │ +000a14a0: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ +000a14b0: 6d2d 6170 7061 726d 6f72 207b 0a20 2070  m-apparmor {.  p
│ │ │ +000a14c0: 6163 6b61 6765 207b 2027 6c69 6270 616d  ackage { 'libpam
│ │ │ +000a14d0: 2d61 7070 6172 6d6f 7227 3a0a 2020 2020  -apparmor':.    
│ │ │ +000a14e0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +000a14f0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +000a1500: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000a15b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +000a15c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +000a15d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +000a1620: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +000a1630: 2022 6c69 6270 616d 2d61 7070 6172 6d6f   "libpam-apparmo
│ │ │ +000a1640: 7222 0a76 6572 7369 6f6e 203d 2022 2a22  r".version = "*"
│ │ │  000a1650: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -000a4550: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -000a4560: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -000a45b0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -000a45c0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -000a45d0: 6564 203d 205b 2261 7070 6172 6d6f 7222  ed = ["apparmor"
│ │ │ -000a45e0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -000a45f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -000a46a0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000a46b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000a4780: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000a4790: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000a47e0: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ -000a47f0: 7070 6172 6d6f 720a 0a63 6c61 7373 2065  pparmor..class e
│ │ │ -000a4800: 6e61 626c 655f 6170 7061 726d 6f72 207b  nable_apparmor {
│ │ │ -000a4810: 0a20 2073 6572 7669 6365 207b 2761 7070  .  service {'app
│ │ │ -000a4820: 6172 6d6f 7227 3a0a 2020 2020 656e 6162  armor':.    enab
│ │ │ -000a4830: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -000a4840: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -000a4850: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -000a4860: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000a4920: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000a4930: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
- name: Start
│ │ │ -000a4980: 2061 7070 6172 6d6f 722e 7365 7276 6963   apparmor.servic
│ │ │ -000a4990: 650a 2020 616e 7369 626c 652e 6275 696c  e.  ansible.buil
│ │ │ -000a49a0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -000a49b0: 206e 616d 653a 2061 7070 6172 6d6f 722e   name: apparmor.
│ │ │ -000a49c0: 7365 7276 6963 650a 2020 2020 7374 6174  service.    stat
│ │ │ -000a49d0: 653a 2073 7461 7274 6564 0a20 2020 2065  e: started.    e
│ │ │ -000a49e0: 6e61 626c 6564 3a20 7472 7565 0a20 2077  nabled: true.  w
│ │ │ -000a49f0: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000a4a00: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000a4a10: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000a4a20: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000a4a30: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000a4a40: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000a4a50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000a4a60: 3533 2d41 432d 3328 3429 0a20 202d 204e  53-AC-3(4).  - N
│ │ │ -000a4a70: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -000a4a80: 3130 290a 2020 2d20 4e49 5354 2d38 3030  10).  - NIST-800
│ │ │ -000a4a90: 2d35 332d 4143 2d36 2838 290a 2020 2d20  -53-AC-6(8).  - 
│ │ │ -000a4aa0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000a4ab0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -000a4ac0: 2d35 332d 434d 2d37 2832 290a 2020 2d20  -53-CM-7(2).  - 
│ │ │ -000a4ad0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -000a4ae0: 2835 2928 6229 0a20 202d 204e 4953 542d  (5)(b).  - NIST-
│ │ │ -000a4af0: 3830 302d 3533 2d53 432d 3728 3231 290a  800-53-SC-7(21).
│ │ │ -000a4b00: 2020 2d20 6170 7061 726d 6f72 5f63 6f6e    - apparmor_con
│ │ │ -000a4b10: 6669 6775 7265 640a 2020 2d20 6d65 6469  figured.  - medi
│ │ │ -000a4b20: 756d 5f73 6576 6572 6974 790a 3c2f 636f  um_severity.
│ │ │ +000a45a0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 5374  - name: St
│ │ │ +000a45b0: 6172 7420 6170 7061 726d 6f72 2e73 6572  art apparmor.ser
│ │ │ +000a45c0: 7669 6365 0a20 2061 6e73 6962 6c65 2e62  vice.  ansible.b
│ │ │ +000a45d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +000a45e0: 2020 2020 6e61 6d65 3a20 6170 7061 726d      name: apparm
│ │ │ +000a45f0: 6f72 2e73 6572 7669 6365 0a20 2020 2073  or.service.    s
│ │ │ +000a4600: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +000a4610: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +000a4620: 2020 7768 656e 3a20 616e 7369 626c 655f    when: ansible_
│ │ │ +000a4630: 7669 7274 7561 6c69 7a61 7469 6f6e 5f74  virtualization_t
│ │ │ +000a4640: 7970 6520 6e6f 7420 696e 205b 2264 6f63  ype not in ["doc
│ │ │ +000a4650: 6b65 7222 2c20 226c 7863 222c 2022 6f70  ker", "lxc", "op
│ │ │ +000a4660: 656e 767a 222c 2022 706f 646d 616e 222c  envz", "podman",
│ │ │ +000a4670: 2022 636f 6e74 6169 6e65 7222 5d0a 2020   "container"].  
│ │ │ +000a4680: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +000a4690: 3030 2d35 332d 4143 2d33 2834 290a 2020  00-53-AC-3(4).  
│ │ │ +000a46a0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +000a46b0: 2d36 2831 3029 0a20 202d 204e 4953 542d  -6(10).  - NIST-
│ │ │ +000a46c0: 3830 302d 3533 2d41 432d 3628 3829 0a20  800-53-AC-6(8). 
│ │ │ +000a46d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000a46e0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +000a46f0: 3830 302d 3533 2d43 4d2d 3728 3229 0a20  800-53-CM-7(2). 
│ │ │ +000a4700: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000a4710: 4d2d 3728 3529 2862 290a 2020 2d20 4e49  M-7(5)(b).  - NI
│ │ │ +000a4720: 5354 2d38 3030 2d35 332d 5343 2d37 2832  ST-800-53-SC-7(2
│ │ │ +000a4730: 3129 0a20 202d 2061 7070 6172 6d6f 725f  1).  - apparmor_
│ │ │ +000a4740: 636f 6e66 6967 7572 6564 0a20 202d 206d  configured.  - m
│ │ │ +000a4750: 6564 6975 6d5f 7365 7665 7269 7479 0a3c  edium_severity.<
│ │ │ +000a4760: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000a4810: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000a4820: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ -000a4760: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000a4770: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000a47b0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000a47c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000a48c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000a48d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000a4920: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000a4960: 6c75 6465 2065 6e61 626c 655f 6170 7061  lude enable_appa
│ │ │ +000a4970: 726d 6f72 0a0a 636c 6173 7320 656e 6162  rmor..class enab
│ │ │ +000a4980: 6c65 5f61 7070 6172 6d6f 7220 7b0a 2020  le_apparmor {.  
│ │ │ +000a4990: 7365 7276 6963 6520 7b27 6170 7061 726d  service {'apparm
│ │ │ +000a49a0: 6f72 273a 0a20 2020 2065 6e61 626c 6520  or':.    enable 
│ │ │ +000a49b0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000a49c0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000a49d0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000a4a90: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000a4aa0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000a4ab0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000a4ac0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000a4ad0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000a4ae0: 7365 2220 6964 3d22 6964 3138 3622 3e3c se" id="id186">< │ │ │ +000a4af0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000a4b00: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000a4b10: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000a4b20: 2261 7070 6172 6d6f 7222 5d0a 3c2f 636f "apparmor"].< │ │ │ 000a4b40: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 000a4b50: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>
C │ │ │ +000a48b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000a48e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000a48f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000a4930: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000a4940: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ 000a4b60: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediation OSB │ │ │ -0010f1b0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -0010f1c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -0010f210: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -0010f220: 3d20 226c 6f67 726f 7461 7465 220a 7665  = "logrotate".ve
│ │ │ -0010f230: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0010f250: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0010f260: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0010f270: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0010f280: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0010f290: 6433 3337 2220 7461 6269 6e64 6578 3d22 d337" tabindex=" │ │ │ -0010f2a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0010f2b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0010f2c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0010f2d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0010f2e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0010f2f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0010f300: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0010f390: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0010f3a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0010f3c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0010f3e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0010f3f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0010f430: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0010f440: 6520 696e 7374 616c 6c5f 6c6f 6772 6f74 e install_logrot │ │ │ -0010f450: 6174 650a 0a63 6c61 7373 2069 6e73 7461 ate..class insta │ │ │ -0010f460: 6c6c 5f6c 6f67 726f 7461 7465 207b 0a20 ll_logrotate {. │ │ │ -0010f470: 2070 6163 6b61 6765 207b 2027 6c6f 6772 package { 'logr │ │ │ -0010f480: 6f74 6174 6527 3a0a 2020 2020 656e 7375 otate':. ensu │ │ │ -0010f490: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0010f4a0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.
< │ │ │ -0010f4c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0010f4d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0010f4e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0010f4f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0010f500: 6433 3338 2220 7461 6269 6e64 6578 3d22 d338" tabindex=" │ │ │ -0010f510: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0010f520: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0010f530: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0010f540: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0010f550: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0010f560: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0010f570: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0010f580: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0010f600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0010f630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0010f650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0010f660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0010f680: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0010f6a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0010f6b0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0010f6c0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0010f6d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0010f6e0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0010f6f0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0010f700: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0010f710: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -0010f720: 302e 370a 2020 2d20 5043 492d 4453 5376  0.7.  - PCI-DSSv
│ │ │ -0010f730: 342d 3130 2e35 0a20 202d 2050 4349 2d44  4-10.5.  - PCI-D
│ │ │ -0010f740: 5353 7634 2d31 302e 352e 310a 2020 2d20  SSv4-10.5.1.  - 
│ │ │ -0010f750: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0010f760: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0010f770: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0010f780: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0010f790: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0010f7a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0010f7b0: 202d 2070 6163 6b61 6765 5f6c 6f67 726f   - package_logro
│ │ │ -0010f7c0: 7461 7465 5f69 6e73 7461 6c6c 6564 0a0a  tate_installed..
│ │ │ -0010f7d0: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -0010f7e0: 6f67 726f 7461 7465 2069 7320 696e 7374  ogrotate is inst
│ │ │ -0010f7f0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -0010f800: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0010f810: 0a20 2020 206e 616d 653a 206c 6f67 726f  .    name: logro
│ │ │ -0010f820: 7461 7465 0a20 2020 2073 7461 7465 3a20  tate.    state: 
│ │ │ -0010f830: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -0010f840: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0010f850: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0010f860: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0010f870: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0010f880: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -0010f890: 2d44 5353 2d52 6571 2d31 302e 370a 2020  -DSS-Req-10.7.  
│ │ │ -0010f8a0: 2d20 5043 492d 4453 5376 342d 3130 2e35  - PCI-DSSv4-10.5
│ │ │ -0010f8b0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0010f8c0: 302e 352e 310a 2020 2d20 656e 6162 6c65  0.5.1.  - enable
│ │ │ -0010f8d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0010f8e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0010f8f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0010f900: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0010f910: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0010f920: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0010f930: 6b61 6765 5f6c 6f67 726f 7461 7465 5f69  kage_logrotate_i
│ │ │ -0010f940: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +0010f1a0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +0010f1b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0010f1c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +0010f290: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0010f2a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0010f2f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0010f300: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0010f310: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0010f320: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0010f330: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0010f340: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0010f350: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +0010f360: 5265 712d 3130 2e37 0a20 202d 2050 4349  Req-10.7.  - PCI
│ │ │ +0010f370: 2d44 5353 7634 2d31 302e 350a 2020 2d20  -DSSv4-10.5.  - 
│ │ │ +0010f380: 5043 492d 4453 5376 342d 3130 2e35 2e31  PCI-DSSv4-10.5.1
│ │ │ +0010f390: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0010f3a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0010f3b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0010f3c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0010f3d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0010f3e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0010f3f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0010f400: 6c6f 6772 6f74 6174 655f 696e 7374 616c  logrotate_instal
│ │ │ +0010f410: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +0010f420: 7572 6520 6c6f 6772 6f74 6174 6520 6973  ure logrotate is
│ │ │ +0010f430: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +0010f440: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0010f450: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0010f460: 6c6f 6772 6f74 6174 650a 2020 2020 7374  logrotate.    st
│ │ │ +0010f470: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0010f480: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0010f490: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0010f4a0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0010f4b0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0010f4c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0010f4d0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +0010f4e0: 2e37 0a20 202d 2050 4349 2d44 5353 7634  .7.  - PCI-DSSv4
│ │ │ +0010f4f0: 2d31 302e 350a 2020 2d20 5043 492d 4453  -10.5.  - PCI-DS
│ │ │ +0010f500: 5376 342d 3130 2e35 2e31 0a20 202d 2065  Sv4-10.5.1.  - e
│ │ │ +0010f510: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +0010f520: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0010f530: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0010f540: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0010f550: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0010f560: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0010f570: 2d20 7061 636b 6167 655f 6c6f 6772 6f74  - package_logrot
│ │ │ +0010f580: 6174 655f 696e 7374 616c 6c65 640a 3c2f  ate_installed.
Re │ │ │ +0010f640: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0010f650: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0010f660: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +0010f270: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0010f280: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0010f2c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0010f2d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +0010f700: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0010f750: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0010f6e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0010f710: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0010f730: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0010f740: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0010f760: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0010f770: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0010f790: 7564 6520 696e 7374 616c 6c5f 6c6f 6772  ude install_logr
│ │ │ +0010f7a0: 6f74 6174 650a 0a63 6c61 7373 2069 6e73  otate..class ins
│ │ │ +0010f7b0: 7461 6c6c 5f6c 6f67 726f 7461 7465 207b  tall_logrotate {
│ │ │ +0010f7c0: 0a20 2070 6163 6b61 6765 207b 2027 6c6f  .  package { 'lo
│ │ │ +0010f7d0: 6772 6f74 6174 6527 3a0a 2020 2020 656e  grotate':.    en
│ │ │ +0010f7e0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +0010f7f0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +0010f8b0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0010f8c0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0010f8d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0010f8e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0010f8f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0010f900: 7365 2220 6964 3d22 6964 3333 3822 3e3c se" id="id338">< │ │ │ +0010f910: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +0010f920: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +0010f930: 6c6f 6772 6f74 6174 6522 0a76 6572 7369 logrotate".versi │ │ │ +0010f940: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e on = "*". │ │ │ 0010f950: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Re │ │ │ -001172a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -001172b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -001172c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001172d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001172e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001172f0: 7365 2220 6964 3d22 6964 3335 3022 3e3c se" id="id350">< │ │ │ -00117300: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00117310: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00117320: 7273 7973 6c6f 672d 676e 7574 6c73 220a rsyslog-gnutls". │ │ │ -00117330: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".
Re │ │ │ -001173f0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00117400: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00117410: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -001174b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00117500: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00117490: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001174c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001174e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001174f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00117510: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00117520: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00117540: 7564 6520 696e 7374 616c 6c5f 7273 7973  ude install_rsys
│ │ │ -00117550: 6c6f 672d 676e 7574 6c73 0a0a 636c 6173  log-gnutls..clas
│ │ │ -00117560: 7320 696e 7374 616c 6c5f 7273 7973 6c6f  s install_rsyslo
│ │ │ -00117570: 672d 676e 7574 6c73 207b 0a20 2070 6163  g-gnutls {.  pac
│ │ │ -00117580: 6b61 6765 207b 2027 7273 7973 6c6f 672d  kage { 'rsyslog-
│ │ │ -00117590: 676e 7574 6c73 273a 0a20 2020 2065 6e73  gnutls':.    ens
│ │ │ -001175a0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -001175b0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -001175d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00117670: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00117680: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00117690: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00117730: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00117780: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00117710: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00117740: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00117760: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00117770: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00117790: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -001177a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001177c0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -001177d0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -001177e0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -001177f0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00117800: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -00117810: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00117820: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00117830: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00117840: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00117850: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00117860: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00117870: 6163 6b61 6765 5f72 7379 736c 6f67 2d67  ackage_rsyslog-g
│ │ │ -00117880: 6e75 746c 735f 696e 7374 616c 6c65 640a  nutls_installed.
│ │ │ -00117890: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -001178a0: 7273 7973 6c6f 672d 676e 7574 6c73 2069  rsyslog-gnutls i
│ │ │ -001178b0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -001178c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -001178d0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -001178e0: 2072 7379 736c 6f67 2d67 6e75 746c 730a   rsyslog-gnutls.
│ │ │ -001178f0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -00117900: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00117910: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00117920: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00117930: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00117940: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00117950: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00117960: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00117970: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00117980: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00117990: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001179a0: 202d 2070 6163 6b61 6765 5f72 7379 736c   - package_rsysl
│ │ │ -001179b0: 6f67 2d67 6e75 746c 735f 696e 7374 616c  og-gnutls_instal
│ │ │ -001179c0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.

< │ │ │ +00117350: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00117360: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001173b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +001173f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00117400: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00117410: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00117420: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00117430: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +00117440: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00117450: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00117460: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00117470: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00117480: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00117490: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001174a0: 7061 636b 6167 655f 7273 7973 6c6f 672d  package_rsyslog-
│ │ │ +001174b0: 676e 7574 6c73 5f69 6e73 7461 6c6c 6564  gnutls_installed
│ │ │ +001174c0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +001174d0: 2072 7379 736c 6f67 2d67 6e75 746c 7320   rsyslog-gnutls 
│ │ │ +001174e0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +001174f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00117500: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00117510: 3a20 7273 7973 6c6f 672d 676e 7574 6c73  : rsyslog-gnutls
│ │ │ +00117520: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +00117530: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00117540: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00117550: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00117560: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00117570: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00117580: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00117590: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +001175a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +001175b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +001175c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +001175d0: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ +001175e0: 6c6f 672d 676e 7574 6c73 5f69 6e73 7461  log-gnutls_insta
│ │ │ +001175f0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation
│ │ │ +001176b0: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +001176c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00117790: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +001177e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +00117340: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00117370: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00117380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001173c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +001173d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +00117750: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00117770: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +001177c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001177d0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ +00117800: 6c6c 5f72 7379 736c 6f67 2d67 6e75 746c  ll_rsyslog-gnutl
│ │ │ +00117810: 730a 0a63 6c61 7373 2069 6e73 7461 6c6c  s..class install
│ │ │ +00117820: 5f72 7379 736c 6f67 2d67 6e75 746c 7320  _rsyslog-gnutls 
│ │ │ +00117830: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +00117840: 7379 736c 6f67 2d67 6e75 746c 7327 3a0a  syslog-gnutls':.
│ │ │ +00117850: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00117860: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00117870: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00117930: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00117940: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00117990: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +001179a0: 6d65 203d 2022 7273 7973 6c6f 672d 676e  me = "rsyslog-gn
│ │ │ +001179b0: 7574 6c73 220a 7665 7273 696f 6e20 3d20  utls".version = 
│ │ │ +001179c0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -00118ae0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00118af0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -00118b40: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -00118b50: 6d65 203d 2022 7273 7973 6c6f 6722 0a76  me = "rsyslog".v
│ │ │ -00118b60: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00118b80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00118c20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00118c30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00118c40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00118cc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00118cf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00118d10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00118d20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00118d40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00118d60: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00118d70: 6465 2069 6e73 7461 6c6c 5f72 7379 736c  de install_rsysl
│ │ │ -00118d80: 6f67 0a0a 636c 6173 7320 696e 7374 616c  og..class instal
│ │ │ -00118d90: 6c5f 7273 7973 6c6f 6720 7b0a 2020 7061  l_rsyslog {.  pa
│ │ │ -00118da0: 636b 6167 6520 7b20 2772 7379 736c 6f67  ckage { 'rsyslog
│ │ │ -00118db0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00118dc0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -00118dd0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00118e90: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00118ea0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00118f20: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00118f30: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00118f40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00118f80: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00118f90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00118fb0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00118fd0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00118fe0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00118ff0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00119000: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00119010: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00119020: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00119030: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00119040: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00119050: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00119060: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00119070: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00119080: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00119090: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001190a0: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ -001190b0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -001190c0: 6d65 3a20 456e 7375 7265 2072 7379 736c  me: Ensure rsysl
│ │ │ -001190d0: 6f67 2069 7320 696e 7374 616c 6c65 640a  og is installed.
│ │ │ -001190e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001190f0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00119100: 616d 653a 2072 7379 736c 6f67 0a20 2020  ame: rsyslog.   
│ │ │ -00119110: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00119120: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00119130: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00119140: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00119150: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00119160: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00119170: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00119180: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00119190: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001191a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -001191b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -001191c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -001191d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -001191e0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ -001191f0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00118ae0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +00118af0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00118b80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00118ba0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00118bc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00118bf0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00118c00: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +00118c10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +00118c30: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00118c40: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00118c50: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00118c60: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00118c70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00118c80: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +00118c90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00118ca0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00118cb0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00118cc0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00118cd0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00118ce0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00118cf0: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ +00118d00: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00118d10: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ +00118d20: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00118d30: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00118d40: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00118d50: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ +00118d60: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00118d70: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00118d80: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00118d90: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00118da0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00118db0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00118dc0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00118dd0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00118de0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00118df0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00118e00: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00118e10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00118e20: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ +00118e30: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +00118e40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00118ef0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00118f00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00118fa0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00118fb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00119000: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00119040: 6c75 6465 2069 6e73 7461 6c6c 5f72 7379  lude install_rsy
│ │ │ +00119050: 736c 6f67 0a0a 636c 6173 7320 696e 7374  slog..class inst
│ │ │ +00119060: 616c 6c5f 7273 7973 6c6f 6720 7b0a 2020  all_rsyslog {.  
│ │ │ +00119070: 7061 636b 6167 6520 7b20 2772 7379 736c  package { 'rsysl
│ │ │ +00119080: 6f67 273a 0a20 2020 2065 6e73 7572 6520  og':.    ensure 
│ │ │ +00119090: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +001190a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +001190b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00119160: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00119170: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00119180: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +001191c0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +001191d0: 5d5d 0a6e 616d 6520 3d20 2272 7379 736c  ]].name = "rsysl
│ │ │ +001191e0: 6f67 220a 7665 7273 696f 6e20 3d20 222a  og".version = "*
│ │ │ +001191f0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 00119200: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0011a470: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -0011a480: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -0011a4d0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -0011a4e0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -0011a4f0: 6564 203d 205b 2272 7379 736c 6f67 225d  ed = ["rsyslog"]
│ │ │ -0011a500: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0011a5c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0011a5d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +00118f90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00118fc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00118fd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00119010: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00119020: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0011a6a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0011a6b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0011a700: 6e63 6c75 6465 2065 6e61 626c 655f 7273  nclude enable_rs
│ │ │ -0011a710: 7973 6c6f 670a 0a63 6c61 7373 2065 6e61  yslog..class ena
│ │ │ -0011a720: 626c 655f 7273 7973 6c6f 6720 7b0a 2020  ble_rsyslog {.  
│ │ │ -0011a730: 7365 7276 6963 6520 7b27 7273 7973 6c6f  service {'rsyslo
│ │ │ -0011a740: 6727 3a0a 2020 2020 656e 6162 6c65 203d  g':.    enable =
│ │ │ -0011a750: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ -0011a760: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ -0011a770: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ -0011a790: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0011a830: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0011a840: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0011a850: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -0011a680: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0011a690: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0011a6d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0011a6e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -0011a8f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0011a940: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0011a8d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0011a900: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0011a920: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0011a930: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0011a950: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0011a960: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0011a980: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0011a990: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0011a9a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0011a9b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0011a9c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0011a9d0: 2d38 3030 2d35 332d 4155 2d34 2831 290a  -800-53-AU-4(1).
│ │ │ -0011a9e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0011a9f0: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ -0011aa00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0011aa10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0011aa20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0011aa30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0011aa40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0011aa50: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0011aa60: 6572 7669 6365 5f72 7379 736c 6f67 5f65  ervice_rsyslog_e
│ │ │ -0011aa70: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -0011aa80: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ -0011aa90: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -0011aaa0: 7365 7276 6963 6520 7273 7973 6c6f 670a  service rsyslog.
│ │ │ -0011aab0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0011aac0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0011aad0: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -0011aae0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0011aaf0: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -0011ab00: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -0011ab10: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -0011ab20: 6e61 626c 6520 7273 7973 6c6f 6720 5365  nable rsyslog Se
│ │ │ -0011ab30: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ -0011ab40: 6572 7669 6365 2072 7379 736c 6f67 0a20  ervice rsyslog. 
│ │ │ -0011ab50: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0011ab60: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0011ab70: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a    name: rsyslog.
│ │ │ -0011ab80: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -0011ab90: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -0011aba0: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -0011abb0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -0011abc0: 2077 6865 6e3a 0a20 2020 202d 2027 2272   when:.    - '"r
│ │ │ -0011abd0: 7379 736c 6f67 2220 696e 2061 6e73 6962  syslog" in ansib
│ │ │ -0011abe0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0011abf0: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0011ac00: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ -0011ac10: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -0011ac20: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -0011ac30: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0011ac40: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0011ac50: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0011ac60: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0011ac70: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0011ac80: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0011ac90: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ -0011aca0: 675f 656e 6162 6c65 640a 2020 2d20 7370  g_enabled.  - sp
│ │ │ -0011acb0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0011acc0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -0011acd0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0011ace0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0011acf0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Complexity: │ │ │ +0011a510: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0011a530: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0011a550: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0011a580: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0011a590: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0011a5a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +0011a5c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0011a5d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0011a5e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0011a5f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0011a600: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +0011a610: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +0011a620: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0011a630: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0011a640: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0011a650: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0011a660: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0011a670: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0011a680: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0011a690: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ +0011a6a0: 7973 6c6f 675f 656e 6162 6c65 640a 0a2d  yslog_enabled..-
│ │ │ +0011a6b0: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +0011a6c0: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +0011a6d0: 456e 6162 6c65 2073 6572 7669 6365 2072  Enable service r
│ │ │ +0011a6e0: 7379 736c 6f67 0a20 2062 6c6f 636b 3a0a  syslog.  block:.
│ │ │ +0011a6f0: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +0011a700: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0011a710: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +0011a720: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +0011a730: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +0011a740: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +0011a750: 6e61 6d65 3a20 456e 6162 6c65 2072 7379  name: Enable rsy
│ │ │ +0011a760: 736c 6f67 2053 6572 7669 6365 202d 2045  slog Service - E
│ │ │ +0011a770: 6e61 626c 6520 5365 7276 6963 6520 7273  nable Service rs
│ │ │ +0011a780: 7973 6c6f 670a 2020 2020 616e 7369 626c  yslog.    ansibl
│ │ │ +0011a790: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0011a7a0: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ +0011a7b0: 7379 736c 6f67 0a20 2020 2020 2065 6e61  syslog.      ena
│ │ │ +0011a7c0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +0011a7d0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +0011a7e0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +0011a7f0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +0011a800: 2020 2d20 2722 7273 7973 6c6f 6722 2069    - '"rsyslog" i
│ │ │ +0011a810: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0011a820: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0011a830: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0011a840: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +0011a850: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0011a860: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +0011a870: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0011a880: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0011a890: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0011a8a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0011a8b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0011a8c0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0011a8d0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ +0011a8e0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0011a8f0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +0011a900: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0011a910: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0011a920: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +0011a940: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0011a950: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0011a960: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0011a970: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0011a980: 6433 3631 2220 7461 6269 6e64 6578 3d22 d361" tabindex=" │ │ │ +0011a990: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0011a9a0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0011a9b0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0011a9c0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0011a9d0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0011a9e0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0011a9f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0011aa80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0011aa90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0011aab0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0011aad0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0011aae0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0011ab20: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0011ab30: 6520 656e 6162 6c65 5f72 7379 736c 6f67 e enable_rsyslog │ │ │ +0011ab40: 0a0a 636c 6173 7320 656e 6162 6c65 5f72 ..class enable_r │ │ │ +0011ab50: 7379 736c 6f67 207b 0a20 2073 6572 7669 syslog {. servi │ │ │ +0011ab60: 6365 207b 2772 7379 736c 6f67 273a 0a20 ce {'rsyslog':. │ │ │ +0011ab70: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ +0011ab80: 7472 7565 2c0a 2020 2020 656e 7375 7265 true,. ensure │ │ │ +0011ab90: 203d 2667 743b 2027 7275 6e6e 696e 6727 => 'running' │ │ │ +0011aba0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +0011abb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +0011ac60: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0011ac70: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0011ac80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +0011acd0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +0011ace0: 6e61 626c 6564 203d 205b 2272 7379 736c  nabled = ["rsysl
│ │ │ +0011acf0: 6f67 225d 0a3c 2f63 6f64 653e 3c2f 7072  og"].
Remediat │ │ │ -002242f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00224300: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00224380: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00224390: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002243a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002243e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002243f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00224410: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00224420: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00224440: 7265 6d6f 7665 5f73 6574 726f 7562 6c65  remove_setrouble
│ │ │ -00224450: 7368 6f6f 742d 706c 7567 696e 730a 0a63  shoot-plugins..c
│ │ │ -00224460: 6c61 7373 2072 656d 6f76 655f 7365 7472  lass remove_setr
│ │ │ -00224470: 6f75 626c 6573 686f 6f74 2d70 6c75 6769  oubleshoot-plugi
│ │ │ -00224480: 6e73 207b 0a20 2070 6163 6b61 6765 207b  ns {.  package {
│ │ │ -00224490: 2027 7365 7472 6f75 626c 6573 686f 6f74   'setroubleshoot
│ │ │ -002244a0: 2d70 6c75 6769 6e73 273a 0a20 2020 2065  -plugins':.    e
│ │ │ -002244b0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -002244c0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -002244e0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002244f0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00224500: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00224510: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00224520: 6437 3232 2220 7461 6269 6e64 6578 3d22 d722" tabindex=" │ │ │ -00224530: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00224540: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00224550: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00224560: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00224570: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00224580: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00224590: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002245a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00224620: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00224650: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00224670: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00224680: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002246a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002246b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002246d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002246e0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002246f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00224700: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00224710: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00224720: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00224730: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00224740: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00224750: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00224760: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00224770: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00224780: 6b61 6765 5f73 6574 726f 7562 6c65 7368  kage_setroublesh
│ │ │ -00224790: 6f6f 742d 706c 7567 696e 735f 7265 6d6f  oot-plugins_remo
│ │ │ -002247a0: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ -002247b0: 696e 7374 616c 6c20 7365 7472 6f75 626c  install setroubl
│ │ │ -002247c0: 6573 686f 6f74 2d70 6c75 6769 6e73 2050  eshoot-plugins P
│ │ │ -002247d0: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ -002247e0: 6574 726f 7562 6c65 7368 6f6f 742d 706c  etroubleshoot-pl
│ │ │ -002247f0: 7567 696e 7320 6973 0a20 2020 2072 656d  ugins is.    rem
│ │ │ -00224800: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -00224810: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -00224820: 0a20 2020 206e 616d 653a 2073 6574 726f  .    name: setro
│ │ │ -00224830: 7562 6c65 7368 6f6f 742d 706c 7567 696e  ubleshoot-plugin
│ │ │ -00224840: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ -00224850: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00224860: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00224870: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00224880: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00224890: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002248a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002248b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002248c0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002248d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002248e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002248f0: 2d20 7061 636b 6167 655f 7365 7472 6f75  - package_setrou
│ │ │ -00224900: 626c 6573 686f 6f74 2d70 6c75 6769 6e73  bleshoot-plugins
│ │ │ -00224910: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002242f0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +00224300: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00224310: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00224320: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00224330: 7365 2220 6964 3d22 6964 3732 3122 3e3c se" id="id721">< │ │ │ +00224340: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00224350: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00224360: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00224370: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00224380: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00224390: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002243a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002243e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002243f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00224410: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00224420: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00224440: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00224450: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00224460: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00224470: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00224480: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00224490: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +002244a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002244b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002244c0: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +002244d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002244e0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +002244f0: 5f73 6574 726f 7562 6c65 7368 6f6f 742d _setroubleshoot- │ │ │ +00224500: 706c 7567 696e 735f 7265 6d6f 7665 640a plugins_removed. │ │ │ +00224510: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +00224520: 616c 6c20 7365 7472 6f75 626c 6573 686f all setroublesho │ │ │ +00224530: 6f74 2d70 6c75 6769 6e73 2050 6163 6b61 ot-plugins Packa │ │ │ +00224540: 6765 3a20 456e 7375 7265 2073 6574 726f ge: Ensure setro │ │ │ +00224550: 7562 6c65 7368 6f6f 742d 706c 7567 696e ubleshoot-plugin │ │ │ +00224560: 7320 6973 0a20 2020 2072 656d 6f76 6564 s is. removed │ │ │ +00224570: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +00224580: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +00224590: 206e 616d 653a 2073 6574 726f 7562 6c65 name: setrouble │ │ │ +002245a0: 7368 6f6f 742d 706c 7567 696e 730a 2020 shoot-plugins. │ │ │ +002245b0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +002245c0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +002245d0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +002245e0: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +002245f0: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +00224600: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00224610: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00224620: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00224630: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665 ion. - low_seve │ │ │ +00224640: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +00224650: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +00224660: 636b 6167 655f 7365 7472 6f75 626c 6573 ckage_setroubles │ │ │ +00224670: 686f 6f74 2d70 6c75 6769 6e73 5f72 656d hoot-plugins_rem │ │ │ +00224680: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072 oved.
Remediation │ │ │ +00224740: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00224750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +002247e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00224800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00224820: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00224850: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00224860: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00224890: 6f76 655f 7365 7472 6f75 626c 6573 686f  ove_setroublesho
│ │ │ +002248a0: 6f74 2d70 6c75 6769 6e73 0a0a 636c 6173  ot-plugins..clas
│ │ │ +002248b0: 7320 7265 6d6f 7665 5f73 6574 726f 7562  s remove_setroub
│ │ │ +002248c0: 6c65 7368 6f6f 742d 706c 7567 696e 7320  leshoot-plugins 
│ │ │ +002248d0: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +002248e0: 6574 726f 7562 6c65 7368 6f6f 742d 706c  etroubleshoot-pl
│ │ │ +002248f0: 7567 696e 7327 3a0a 2020 2020 656e 7375  ugins':.    ensu
│ │ │ +00224900: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00224910: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00224920: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -00225650: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00225660: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00225700: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00225710: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00225760: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002257a0: 6e63 6c75 6465 2072 656d 6f76 655f 7365  nclude remove_se
│ │ │ -002257b0: 7472 6f75 626c 6573 686f 6f74 2d73 6572  troubleshoot-ser
│ │ │ -002257c0: 7665 720a 0a63 6c61 7373 2072 656d 6f76  ver..class remov
│ │ │ -002257d0: 655f 7365 7472 6f75 626c 6573 686f 6f74  e_setroubleshoot
│ │ │ -002257e0: 2d73 6572 7665 7220 7b0a 2020 7061 636b  -server {.  pack
│ │ │ -002257f0: 6167 6520 7b20 2773 6574 726f 7562 6c65  age { 'setrouble
│ │ │ -00225800: 7368 6f6f 742d 7365 7276 6572 273a 0a20  shoot-server':. 
│ │ │ -00225810: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00225820: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00225830: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -002258e0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002258f0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00225900: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -002256f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00225720: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00225730: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00225770: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00225780: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002259d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002259e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00225a30: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00225a40: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00225a50: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00225a60: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00225a70: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00225a80: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00225a90: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00225aa0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00225ab0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00225ac0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00225ad0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00225ae0: 2070 6163 6b61 6765 5f73 6574 726f 7562   package_setroub
│ │ │ -00225af0: 6c65 7368 6f6f 742d 7365 7276 6572 5f72  leshoot-server_r
│ │ │ -00225b00: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ -00225b10: 2755 6e69 6e73 7461 6c6c 2073 6574 726f  'Uninstall setro
│ │ │ -00225b20: 7562 6c65 7368 6f6f 742d 7365 7276 6572  ubleshoot-server
│ │ │ -00225b30: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00225b40: 2073 6574 726f 7562 6c65 7368 6f6f 742d   setroubleshoot-
│ │ │ -00225b50: 7365 7276 6572 2069 730a 2020 2020 7265  server is.    re
│ │ │ -00225b60: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00225b70: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00225b80: 3a0a 2020 2020 6e61 6d65 3a20 7365 7472  :.    name: setr
│ │ │ -00225b90: 6f75 626c 6573 686f 6f74 2d73 6572 7665  oubleshoot-serve
│ │ │ -00225ba0: 720a 2020 2020 7374 6174 653a 2061 6273  r.    state: abs
│ │ │ -00225bb0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -00225bc0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00225bd0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00225be0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00225bf0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00225c00: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00225c10: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00225c20: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -00225c30: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00225c40: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00225c50: 2d20 7061 636b 6167 655f 7365 7472 6f75  - package_setrou
│ │ │ -00225c60: 626c 6573 686f 6f74 2d73 6572 7665 725f  bleshoot-server_
│ │ │ -00225c70: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00225650: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00225660: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
Complexity:low
Disrup │ │ │ -002259b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002259c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00225a00: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00225a10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00225700: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002257a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002257b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002257c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002257d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002257e0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002257f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00225800: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00225810: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00225820: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00225830: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00225840: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00225850: 7061 636b 6167 655f 7365 7472 6f75 626c  package_setroubl
│ │ │ +00225860: 6573 686f 6f74 2d73 6572 7665 725f 7265  eshoot-server_re
│ │ │ +00225870: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ +00225880: 556e 696e 7374 616c 6c20 7365 7472 6f75  Uninstall setrou
│ │ │ +00225890: 626c 6573 686f 6f74 2d73 6572 7665 7220  bleshoot-server 
│ │ │ +002258a0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +002258b0: 7365 7472 6f75 626c 6573 686f 6f74 2d73  setroubleshoot-s
│ │ │ +002258c0: 6572 7665 7220 6973 0a20 2020 2072 656d  erver is.    rem
│ │ │ +002258d0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002258e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002258f0: 0a20 2020 206e 616d 653a 2073 6574 726f  .    name: setro
│ │ │ +00225900: 7562 6c65 7368 6f6f 742d 7365 7276 6572  ubleshoot-server
│ │ │ +00225910: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00225920: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00225930: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00225940: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00225950: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00225960: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00225970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00225980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00225990: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002259a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002259b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002259c0: 2070 6163 6b61 6765 5f73 6574 726f 7562   package_setroub
│ │ │ +002259d0: 6c65 7368 6f6f 742d 7365 7276 6572 5f72  leshoot-server_r
│ │ │ +002259e0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +00225aa0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00225ab0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +00225b30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00225b70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ +002256f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00225720: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00225730: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00225770: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00225780: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +00225b40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00225b60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00225b90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00225bb0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00225be0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00225bf0: 656d 6f76 655f 7365 7472 6f75 626c 6573  emove_setroubles
│ │ │ +00225c00: 686f 6f74 2d73 6572 7665 720a 0a63 6c61  hoot-server..cla
│ │ │ +00225c10: 7373 2072 656d 6f76 655f 7365 7472 6f75  ss remove_setrou
│ │ │ +00225c20: 626c 6573 686f 6f74 2d73 6572 7665 7220  bleshoot-server 
│ │ │ +00225c30: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00225c40: 6574 726f 7562 6c65 7368 6f6f 742d 7365  etroubleshoot-se
│ │ │ +00225c50: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ +00225c60: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00225c70: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00225c80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation P │ │ │ -002269b0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -002269c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00226a40: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00226a60: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00226ab0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00226ae0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00226b00: 655f 7365 7472 6f75 626c 6573 686f 6f74  e_setroubleshoot
│ │ │ -00226b10: 0a0a 636c 6173 7320 7265 6d6f 7665 5f73  ..class remove_s
│ │ │ -00226b20: 6574 726f 7562 6c65 7368 6f6f 7420 7b0a  etroubleshoot {.
│ │ │ -00226b30: 2020 7061 636b 6167 6520 7b20 2773 6574    package { 'set
│ │ │ -00226b40: 726f 7562 6c65 7368 6f6f 7427 3a0a 2020  roubleshoot':.  
│ │ │ -00226b50: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00226b60: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00226b70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00226c20: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00226c30: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
low
Disr │ │ │ -00226a70: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00226a80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00226ac0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00226ad0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -00226cd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00226d70: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00226d80: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00226d90: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00226da0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00226db0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -00226dc0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00226dd0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00226de0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00226df0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00226e00: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00226e10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00226e20: 7061 636b 6167 655f 7365 7472 6f75 626c  package_setroubl
│ │ │ -00226e30: 6573 686f 6f74 5f72 656d 6f76 6564 0a0a  eshoot_removed..
│ │ │ -00226e40: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00226e50: 6c6c 2073 6574 726f 7562 6c65 7368 6f6f  ll setroubleshoo
│ │ │ -00226e60: 7420 5061 636b 6167 653a 2045 6e73 7572  t Package: Ensur
│ │ │ -00226e70: 6520 7365 7472 6f75 626c 6573 686f 6f74  e setroubleshoot
│ │ │ -00226e80: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00226e90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00226ea0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00226eb0: 3a20 7365 7472 6f75 626c 6573 686f 6f74  : setroubleshoot
│ │ │ -00226ec0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00226ed0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00226ee0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00226ef0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00226f00: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00226f10: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00226f20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00226f30: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00226f40: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00226f50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00226f60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00226f70: 2070 6163 6b61 6765 5f73 6574 726f 7562   package_setroub
│ │ │ -00226f80: 6c65 7368 6f6f 745f 7265 6d6f 7665 640a  leshoot_removed.
│ │ │ +002269a0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +002269b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002269c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ -00226cc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00226cf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00226d00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00226d40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00226d50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00226a40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00226a60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00226ab0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00226ae0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00226a50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00226a70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00226ac0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00226ad0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00226b00: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00226b10: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00226b20: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00226b30: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00226b40: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00226b50: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00226b60: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00226b70: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00226b80: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00226b90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00226ba0: 2020 2d20 7061 636b 6167 655f 7365 7472    - package_setr
│ │ │ +00226bb0: 6f75 626c 6573 686f 6f74 5f72 656d 6f76  oubleshoot_remov
│ │ │ +00226bc0: 6564 0a0a 2d20 6e61 6d65 3a20 2755 6e69  ed..- name: 'Uni
│ │ │ +00226bd0: 6e73 7461 6c6c 2073 6574 726f 7562 6c65  nstall setrouble
│ │ │ +00226be0: 7368 6f6f 7420 5061 636b 6167 653a 2045  shoot Package: E
│ │ │ +00226bf0: 6e73 7572 6520 7365 7472 6f75 626c 6573  nsure setroubles
│ │ │ +00226c00: 686f 6f74 2069 7320 7265 6d6f 7665 6427  hoot is removed'
│ │ │ +00226c10: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00226c20: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00226c30: 6e61 6d65 3a20 7365 7472 6f75 626c 6573  name: setroubles
│ │ │ +00226c40: 686f 6f74 0a20 2020 2073 7461 7465 3a20  hoot.    state: 
│ │ │ +00226c50: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ +00226c60: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00226c70: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00226c80: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00226c90: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00226ca0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00226cb0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00226cc0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00226cd0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00226ce0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00226cf0: 0a20 202d 2070 6163 6b61 6765 5f73 6574  .  - package_set
│ │ │ +00226d00: 726f 7562 6c65 7368 6f6f 745f 7265 6d6f  roubleshoot_remo
│ │ │ +00226d10: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00226dd0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00226de0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00226e60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00226e80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00226ed0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00226f00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00226e70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00226e90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00226ee0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00226ef0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00226f20: 7665 5f73 6574 726f 7562 6c65 7368 6f6f  ve_setroubleshoo
│ │ │ +00226f30: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ +00226f40: 7365 7472 6f75 626c 6573 686f 6f74 207b  setroubleshoot {
│ │ │ +00226f50: 0a20 2070 6163 6b61 6765 207b 2027 7365  .  package { 'se
│ │ │ +00226f60: 7472 6f75 626c 6573 686f 6f74 273a 0a20  troubleshoot':. 
│ │ │ +00226f70: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00226f80: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00226f90: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -002301d0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002301e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -002302b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002302c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00230310: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00230320: 6468 6370 0a0a 636c 6173 7320 7265 6d6f  dhcp..class remo
│ │ │ -00230330: 7665 5f64 6863 7020 7b0a 2020 7061 636b  ve_dhcp {.  pack
│ │ │ -00230340: 6167 6520 7b20 2764 6863 7027 3a0a 2020  age { 'dhcp':.  
│ │ │ -00230350: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00230360: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00230370: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00230420: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00230430: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:low
Disrup │ │ │ -00230290: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002302a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002302e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002302f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -002304d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00230570: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00230580: 6c20 4448 4350 2053 6572 7665 7220 5061  l DHCP Server Pa
│ │ │ -00230590: 636b 6167 653a 2045 6e73 7572 6520 6468  ckage: Ensure dh
│ │ │ -002305a0: 6370 2069 7320 7265 6d6f 7665 6427 0a20  cp is removed'. 
│ │ │ -002305b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002305c0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002305d0: 6d65 3a20 6468 6370 0a20 2020 2073 7461  me: dhcp.    sta
│ │ │ -002305e0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002305f0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00230600: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00230610: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00230620: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00230630: 3533 2d43 4d2d 3728 6229 0a20 202d 2050  53-CM-7(b).  - P
│ │ │ -00230640: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -00230650: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -00230660: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00230670: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00230680: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00230690: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002306a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -002306b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002306c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002306d0: 5f64 6863 705f 7265 6d6f 7665 640a 3c2f  _dhcp_removed.Remediation Ans
│ │ │ +002301d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +002301e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
│ │ │ -002304c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002304f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00230500: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00230540: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00230550: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +002302b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002302c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00230320: 616c 6c20 4448 4350 2053 6572 7665 7220  all DHCP Server 
│ │ │ +00230330: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00230340: 6468 6370 2069 7320 7265 6d6f 7665 6427  dhcp is removed'
│ │ │ +00230350: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00230360: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00230370: 6e61 6d65 3a20 6468 6370 0a20 2020 2073  name: dhcp.    s
│ │ │ +00230380: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +00230390: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002303a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002303b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002303c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002303d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002303e0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002303f0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00230400: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +00230410: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00230420: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00230430: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00230440: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00230450: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00230460: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00230470: 6765 5f64 6863 705f 7265 6d6f 7665 640a  ge_dhcp_removed.
│ │ │ +00230480: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00230530: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00230540: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +00230290: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002302a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002302e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002302f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002305e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00230680: 696e 636c 7564 6520 7265 6d6f 7665 5f64  include remove_d
│ │ │ +00230690: 6863 700a 0a63 6c61 7373 2072 656d 6f76  hcp..class remov
│ │ │ +002306a0: 655f 6468 6370 207b 0a20 2070 6163 6b61  e_dhcp {.  packa
│ │ │ +002306b0: 6765 207b 2027 6468 6370 273a 0a20 2020  ge { 'dhcp':.   
│ │ │ +002306c0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +002306d0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Reme │ │ │ -002311c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002311d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +002305d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00230600: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00230610: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00230650: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00230660: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00231260: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00231270: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00231290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002312b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002312c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00231300: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00231310: 7564 6520 7265 6d6f 7665 5f6b 6561 0a0a  ude remove_kea..
│ │ │ -00231320: 636c 6173 7320 7265 6d6f 7665 5f6b 6561  class remove_kea
│ │ │ -00231330: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00231340: 6b65 6127 3a0a 2020 2020 656e 7375 7265  kea':.    ensure
│ │ │ -00231350: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00231360: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00231420: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00231430: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -002314b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002314c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002314d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00231510: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00231520: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00231540: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00231550: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -00231570: 556e 696e 7374 616c 6c20 6b65 6120 5061  Uninstall kea Pa
│ │ │ -00231580: 636b 6167 653a 2045 6e73 7572 6520 6b65  ckage: Ensure ke
│ │ │ -00231590: 6120 6973 2072 656d 6f76 6564 270a 2020  a is removed'.  
│ │ │ -002315a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002315b0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002315c0: 653a 206b 6561 0a20 2020 2073 7461 7465  e: kea.    state
│ │ │ -002315d0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -002315e0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -002315f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00231600: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00231610: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00231620: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00231630: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00231640: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00231650: 5f6b 6561 5f72 656d 6f76 6564 0a3c 2f63  _kea_removed.<
│ │ │ +002311e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00231260: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00231290: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002312b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002312c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002312e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002312f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00231310: 6d65 3a20 2755 6e69 6e73 7461 6c6c 206b  me: 'Uninstall k
│ │ │ +00231320: 6561 2050 6163 6b61 6765 3a20 456e 7375  ea Package: Ensu
│ │ │ +00231330: 7265 206b 6561 2069 7320 7265 6d6f 7665  re kea is remove
│ │ │ +00231340: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00231350: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00231360: 2020 6e61 6d65 3a20 6b65 610a 2020 2020    name: kea.    
│ │ │ +00231370: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00231380: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +00231390: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002313a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002313b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002313c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002313d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002313e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002313f0: 636b 6167 655f 6b65 615f 7265 6d6f 7665  ckage_kea_remove
│ │ │ +00231400: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00231410: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +002314c0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002314d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +002315a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002315b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00231610: 5f6b 6561 0a0a 636c 6173 7320 7265 6d6f  _kea..class remo
│ │ │ +00231620: 7665 5f6b 6561 207b 0a20 2070 6163 6b61  ve_kea {.  packa
│ │ │ +00231630: 6765 207b 2027 6b65 6127 3a0a 2020 2020  ge { 'kea':.    
│ │ │ +00231640: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00231650: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00231670: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation Pu │ │ │ -00235e60: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00235e70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +00231580: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00231590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002315d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002315e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00235f40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00235f50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00235fb0: 5f73 656e 646d 6169 6c0a 0a63 6c61 7373  _sendmail..class
│ │ │ -00235fc0: 2072 656d 6f76 655f 7365 6e64 6d61 696c   remove_sendmail
│ │ │ -00235fd0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00235fe0: 7365 6e64 6d61 696c 273a 0a20 2020 2065  sendmail':.    e
│ │ │ -00235ff0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00236000: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00236020: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00236030: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00236040: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00236050: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00236060: 6437 3634 2220 7461 6269 6e64 6578 3d22 d764" tabindex=" │ │ │ -00236070: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00236080: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00236090: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -002360a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -002360b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002360c0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002360d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002360e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -00235f20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00235f30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00235f70: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00235f80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -00236160: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00236190: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002361b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002361c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002361e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002361f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00236210: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00236220: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00236230: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00236240: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00236250: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00236260: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00236270: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00236280: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00236290: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -002362a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002362b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002362c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002362d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002362e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002362f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00236300: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00236310: 7365 6e64 6d61 696c 5f72 656d 6f76 6564  sendmail_removed
│ │ │ -00236320: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73  ..- name: 'Unins
│ │ │ -00236330: 7461 6c6c 2053 656e 646d 6169 6c20 5061  tall Sendmail Pa
│ │ │ -00236340: 636b 6167 653a 2045 6e73 7572 6520 7365  ckage: Ensure se
│ │ │ -00236350: 6e64 6d61 696c 2069 7320 7265 6d6f 7665  ndmail is remove
│ │ │ -00236360: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00236370: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00236380: 2020 6e61 6d65 3a20 7365 6e64 6d61 696c    name: sendmail
│ │ │ -00236390: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002363a0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -002363b0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -002363c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -002363d0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -002363e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002363f0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00236400: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00236410: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00236420: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -00236430: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00236440: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00236450: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00236460: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00236470: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00236480: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00236490: 6167 655f 7365 6e64 6d61 696c 5f72 656d  age_sendmail_rem
│ │ │ -002364a0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation An
│ │ │ +00235e60: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00235e70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +00235ef0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00235f10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00235f60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00235f90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00235fb0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00235fc0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00235fd0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00235fe0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00235ff0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00236000: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00236010: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00236020: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00236030: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +00236040: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00236050: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00236060: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00236070: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00236080: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00236090: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002360a0: 636b 6167 655f 7365 6e64 6d61 696c 5f72  ckage_sendmail_r
│ │ │ +002360b0: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ +002360c0: 2755 6e69 6e73 7461 6c6c 2053 656e 646d  'Uninstall Sendm
│ │ │ +002360d0: 6169 6c20 5061 636b 6167 653a 2045 6e73  ail Package: Ens
│ │ │ +002360e0: 7572 6520 7365 6e64 6d61 696c 2069 7320  ure sendmail is 
│ │ │ +002360f0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00236100: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00236110: 6765 3a0a 2020 2020 6e61 6d65 3a20 7365  ge:.    name: se
│ │ │ +00236120: 6e64 6d61 696c 0a20 2020 2073 7461 7465  ndmail.    state
│ │ │ +00236130: 3a20 6162 7365 6e74 0a20 2077 6865 6e3a  : absent.  when:
│ │ │ +00236140: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00236150: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00236160: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00236170: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00236180: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00236190: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002361a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002361b0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +002361c0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002361d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002361e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002361f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00236200: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00236210: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00236220: 2d20 7061 636b 6167 655f 7365 6e64 6d61  - package_sendma
│ │ │ +00236230: 696c 5f72 656d 6f76 6564 0a3c 2f63 6f64  il_removed.
Remed │ │ │ +002362f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00236300: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +00235f20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00235f30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00235f70: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00235f80: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002363b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002363d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00236400: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00236390: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002363a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002363c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002363e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002363f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00236430: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00236440: 6465 2072 656d 6f76 655f 7365 6e64 6d61 de remove_sendma │ │ │ +00236450: 696c 0a0a 636c 6173 7320 7265 6d6f 7665 il..class remove │ │ │ +00236460: 5f73 656e 646d 6169 6c20 7b0a 2020 7061 _sendmail {. pa │ │ │ +00236470: 636b 6167 6520 7b20 2773 656e 646d 6169 ckage { 'sendmai │ │ │ +00236480: 6c27 3a0a 2020 2020 656e 7375 7265 203d l':. ensure = │ │ │ +00236490: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ +002364a0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation O │ │ │ -002384e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002384f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00238500: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00238540: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00238550: 6520 3d20 2263 6872 6f6e 7922 0a76 6572  e = "chrony".ver
│ │ │ -00238560: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remed │ │ │ -00238620: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00238630: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -002386e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00238700: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00238730: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002386c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002386d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002386f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00238710: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00238720: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00238770: 2069 6e73 7461 6c6c 5f63 6872 6f6e 790a install_chrony. │ │ │ -00238780: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f63 .class install_c │ │ │ -00238790: 6872 6f6e 7920 7b0a 2020 7061 636b 6167 hrony {. packag │ │ │ -002387a0: 6520 7b20 2763 6872 6f6e 7927 3a0a 2020 e { 'chrony':. │ │ │ -002387b0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -002387c0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a installed',. }. │ │ │ -002387d0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.

< │ │ │ -002387e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00238890: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002388a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00238920: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00238940: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00238990: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -002389e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002389f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00238a00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00238a10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00238a20: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00238a30: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00238a40: 3130 2e36 0a20 202d 2050 4349 2d44 5353  10.6.  - PCI-DSS
│ │ │ -00238a50: 7634 2d31 302e 362e 310a 2020 2d20 656e  v4-10.6.1.  - en
│ │ │ -00238a60: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00238a70: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00238a80: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00238a90: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00238aa0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00238ab0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00238ac0: 2070 6163 6b61 6765 5f63 6872 6f6e 795f   package_chrony_
│ │ │ -00238ad0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00238ae0: 653a 2045 6e73 7572 6520 6368 726f 6e79  e: Ensure chrony
│ │ │ -00238af0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00238b00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00238b10: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00238b20: 653a 2063 6872 6f6e 790a 2020 2020 7374  e: chrony.    st
│ │ │ -00238b30: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -00238b40: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00238b50: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00238b60: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00238b70: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -00238b80: 532d 5265 712d 3130 2e34 0a20 202d 2050  S-Req-10.4.  - P
│ │ │ -00238b90: 4349 2d44 5353 7634 2d31 302e 360a 2020  CI-DSSv4-10.6.  
│ │ │ -00238ba0: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -00238bb0: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ -00238bc0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00238bd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00238be0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00238bf0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00238c00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00238c10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00238c20: 655f 6368 726f 6e79 5f69 6e73 7461 6c6c  e_chrony_install
│ │ │ -00238c30: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002384d0: 2122 3e52 656d 6564 6961 7469 6f6e 2041 !">Remediation A │ │ │ +002384e0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +002384f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disr │ │ │ -00238950: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00238960: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002389a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -002389b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00238570: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00238590: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002385e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00238610: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00238630: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00238640: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00238650: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00238660: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00238670: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +00238680: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +00238690: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ +002386a0: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ +002386b0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +002386c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002386d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002386e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +002386f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00238700: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00238710: 2d20 7061 636b 6167 655f 6368 726f 6e79  - package_chrony
│ │ │ +00238720: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +00238730: 6d65 3a20 456e 7375 7265 2063 6872 6f6e  me: Ensure chron
│ │ │ +00238740: 7920 6973 2069 6e73 7461 6c6c 6564 0a20  y is installed. 
│ │ │ +00238750: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00238760: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00238770: 6d65 3a20 6368 726f 6e79 0a20 2020 2073  me: chrony.    s
│ │ │ +00238780: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00238790: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002387a0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002387b0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +002387c0: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +002387d0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +002387e0: 5043 492d 4453 5376 342d 3130 2e36 0a20  PCI-DSSv4-10.6. 
│ │ │ +002387f0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00238800: 362e 310a 2020 2d20 656e 6162 6c65 5f73  6.1.  - enable_s
│ │ │ +00238810: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00238820: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00238830: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00238840: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00238850: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00238860: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00238870: 6765 5f63 6872 6f6e 795f 696e 7374 616c  ge_chrony_instal
│ │ │ +00238880: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +00238940: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00238950: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ +00238580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002385a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002385f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00238600: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +002389d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002389f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00238a40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00238a70: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00238a90: 6c5f 6368 726f 6e79 0a0a 636c 6173 7320  l_chrony..class 
│ │ │ +00238aa0: 696e 7374 616c 6c5f 6368 726f 6e79 207b  install_chrony {
│ │ │ +00238ab0: 0a20 2070 6163 6b61 6765 207b 2027 6368  .  package { 'ch
│ │ │ +00238ac0: 726f 6e79 273a 0a20 2020 2065 6e73 7572  rony':.    ensur
│ │ │ +00238ad0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +00238ae0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +00238ba0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00238bb0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00238bc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +00238c10: 6573 5d5d 0a6e 616d 6520 3d20 2263 6872  es]].name = "chr
│ │ │ +00238c20: 6f6e 7922 0a76 6572 7369 6f6e 203d 2022  ony".version = "
│ │ │ +00238c30: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 00238c40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remed │ │ │ -00242e00: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00242e10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:< │ │ │ +002389e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00238a00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00238a50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00238a60: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00242ec0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00242ee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00242f10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00242ea0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00242eb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00242ed0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00242ef0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00242f00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00242f40: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00242f50: 6465 2072 656d 6f76 655f 7869 6e65 7464 de remove_xinetd │ │ │ -00242f60: 0a0a 636c 6173 7320 7265 6d6f 7665 5f78 ..class remove_x │ │ │ -00242f70: 696e 6574 6420 7b0a 2020 7061 636b 6167 inetd {. packag │ │ │ -00242f80: 6520 7b20 2778 696e 6574 6427 3a0a 2020 e { 'xinetd':. │ │ │ -00242f90: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00242fa0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -00242fb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
R │ │ │ -00243060: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00243070: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00243110: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002431b0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -002431c0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -002431d0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -002431e0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -002431f0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00243200: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00243210: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00243220: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -00243230: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00243240: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -00243250: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00243260: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -00243270: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00243280: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00243290: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002432a0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -002432b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002432c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -002432d0: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ -002432e0: 6f76 6564 0a0a 2d20 6e61 6d65 3a20 2755  oved..- name: 'U
│ │ │ -002432f0: 6e69 6e73 7461 6c6c 2078 696e 6574 6420  ninstall xinetd 
│ │ │ -00243300: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00243310: 7869 6e65 7464 2069 7320 7265 6d6f 7665  xinetd is remove
│ │ │ -00243320: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00243330: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00243340: 2020 6e61 6d65 3a20 7869 6e65 7464 0a20    name: xinetd. 
│ │ │ -00243350: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00243360: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00243370: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00243380: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00243390: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -002433a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002433b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002433c0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002433d0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002433e0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -002433f0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00243400: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00243410: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00243420: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00243430: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00243440: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00243450: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00243460: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00243470: 6b61 6765 5f78 696e 6574 645f 7265 6d6f  kage_xinetd_remo
│ │ │ -00243480: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
│ │ │ -00243100: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00243130: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00243140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00243180: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00243190: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00242ea0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00242eb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00242ed0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00242ef0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00242f00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00242f40: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00242f50: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00242f60: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00242f70: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00242f80: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00242f90: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00242fa0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00242fb0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00242fc0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00242fd0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00242fe0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00242ff0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00243000: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +00243010: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00243020: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00243030: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00243040: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +00243050: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00243060: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00243070: 655f 7869 6e65 7464 5f72 656d 6f76 6564  e_xinetd_removed
│ │ │ +00243080: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73  ..- name: 'Unins
│ │ │ +00243090: 7461 6c6c 2078 696e 6574 6420 5061 636b  tall xinetd Pack
│ │ │ +002430a0: 6167 653a 2045 6e73 7572 6520 7869 6e65  age: Ensure xine
│ │ │ +002430b0: 7464 2069 7320 7265 6d6f 7665 6427 0a20  td is removed'. 
│ │ │ +002430c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002430d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +002430e0: 6d65 3a20 7869 6e65 7464 0a20 2020 2073  me: xinetd.    s
│ │ │ +002430f0: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ +00243100: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00243110: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00243120: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00243130: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00243140: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00243150: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00243160: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00243170: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00243180: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00243190: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002431a0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +002431b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002431c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002431d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002431e0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +002431f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00243200: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00243210: 5f78 696e 6574 645f 7265 6d6f 7665 640a  _xinetd_removed.
│ │ │ +00243220: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +002432d0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002432e0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00243380: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00243420: 696e 636c 7564 6520 7265 6d6f 7665 5f78  include remove_x
│ │ │ +00243430: 696e 6574 640a 0a63 6c61 7373 2072 656d  inetd..class rem
│ │ │ +00243440: 6f76 655f 7869 6e65 7464 207b 0a20 2070  ove_xinetd {.  p
│ │ │ +00243450: 6163 6b61 6765 207b 2027 7869 6e65 7464  ackage { 'xinetd
│ │ │ +00243460: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00243470: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00243480: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediati │ │ │ -00244800: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00244810: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00244890: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ -002448d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ +00243370: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002433a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002433b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002433f0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00243400: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002448a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002448c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002448f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00244910: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00244940: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00244950: 656d 6f76 655f 7970 6269 6e64 2d6d 740a  emove_ypbind-mt.
│ │ │ -00244960: 0a63 6c61 7373 2072 656d 6f76 655f 7970  .class remove_yp
│ │ │ -00244970: 6269 6e64 2d6d 7420 7b0a 2020 7061 636b  bind-mt {.  pack
│ │ │ -00244980: 6167 6520 7b20 2779 7062 696e 642d 6d74  age { 'ypbind-mt
│ │ │ -00244990: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002449a0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002449b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00244a70: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00244a80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00244b10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00244b30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00244b50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00244b80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00244b90: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Rem
│ │ │ -00244bc0: 6f76 6520 4e49 5320 436c 6965 6e74 3a20  ove NIS Client: 
│ │ │ -00244bd0: 456e 7375 7265 2079 7062 696e 642d 6d74  Ensure ypbind-mt
│ │ │ -00244be0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00244bf0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00244c00: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00244c10: 3a20 7970 6269 6e64 2d6d 740a 2020 2020  : ypbind-mt.    
│ │ │ -00244c20: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00244c30: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -00244c40: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00244c50: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00244c60: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00244c70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00244c80: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00244c90: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00244ca0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00244cb0: 7061 636b 6167 655f 7970 6269 6e64 5f72  package_ypbind_r
│ │ │ -00244cc0: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ -00244cd0: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
│ │ │ +00244890: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002448a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002448b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002448f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00244900: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00244920: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00244930: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00244950: 5265 6d6f 7665 204e 4953 2043 6c69 656e  Remove NIS Clien
│ │ │ +00244960: 743a 2045 6e73 7572 6520 7970 6269 6e64  t: Ensure ypbind
│ │ │ +00244970: 2d6d 7420 6973 2072 656d 6f76 6564 270a  -mt is removed'.
│ │ │ +00244980: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00244990: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002449a0: 616d 653a 2079 7062 696e 642d 6d74 0a20  ame: ypbind-mt. 
│ │ │ +002449b0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +002449c0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ +002449d0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +002449e0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +002449f0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00244a00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00244a10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00244a20: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00244a30: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00244a40: 202d 2070 6163 6b61 6765 5f79 7062 696e   - package_ypbin
│ │ │ +00244a50: 645f 7265 6d6f 7665 640a 2020 2d20 756e  d_removed.  - un
│ │ │ +00244a60: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +00244a70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00244b20: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00244b30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00244bd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00244be0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00244c30: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00244c70: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ +00244c80: 6269 6e64 2d6d 740a 0a63 6c61 7373 2072  bind-mt..class r
│ │ │ +00244c90: 656d 6f76 655f 7970 6269 6e64 2d6d 7420  emove_ypbind-mt 
│ │ │ +00244ca0: 7b0a 2020 7061 636b 6167 6520 7b20 2779  {.  package { 'y
│ │ │ +00244cb0: 7062 696e 642d 6d74 273a 0a20 2020 2065  pbind-mt':.    e
│ │ │ +00244cc0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +00244cd0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 00244cf0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00244d00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00244d10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00244d20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00244d30: 6437 3931 2220 7461 6269 6e64 6578 3d22 d791" tabindex=" │ │ │ 00244d40: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -149015,99 +149015,99 @@ │ │ │ 00246160: 6174 612d 7461 7267 6574 3d22 2369 6437 ata-target="#id7 │ │ │ 00246170: 3933 2220 7461 6269 6e64 6578 3d22 3022 93" tabindex="0" │ │ │ 00246180: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 00246190: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 002461a0: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 002461b0: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 002461c0: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -002461d0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002461e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002461f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00246220: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ +00244bc0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00244bf0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00244c00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00244c40: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00244c50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00246290: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002462b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002462e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00246270: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00246280: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002462c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002462d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

Re │ │ │ -00246430: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00246440: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -002464e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002464f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00246540: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00246580: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -00246590: 2079 7073 6572 7620 5061 636b 6167 653a   ypserv Package:
│ │ │ -002465a0: 2045 6e73 7572 6520 7970 7365 7276 2069   Ensure ypserv i
│ │ │ -002465b0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002465c0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002465d0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002465e0: 7970 7365 7276 0a20 2020 2073 7461 7465  ypserv.    state
│ │ │ -002465f0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -00246600: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00246610: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -00246620: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -00246630: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00246640: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ -00246650: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ -00246660: 2863 290a 2020 2d20 5043 492d 4453 532d  (c).  - PCI-DSS-
│ │ │ -00246670: 5265 712d 322e 322e 320a 2020 2d20 5043  Req-2.2.2.  - PC
│ │ │ -00246680: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00246690: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002466a0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002466b0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -002466c0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -002466d0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002466e0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002466f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00246700: 640a 2020 2d20 7061 636b 6167 655f 7970  d.  - package_yp
│ │ │ -00246710: 7365 7276 5f72 656d 6f76 6564 0a3c 2f63  serv_removed.
C │ │ │ -002464d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00246500: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00246510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00246550: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00246560: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ +00246290: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002462b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002462e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00246270: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00246280: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002462a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002462c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002462d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00246310: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00246320: 3a20 2755 6e69 6e73 7461 6c6c 2079 7073 : 'Uninstall yps │ │ │ +00246330: 6572 7620 5061 636b 6167 653a 2045 6e73 erv Package: Ens │ │ │ +00246340: 7572 6520 7970 7365 7276 2069 7320 7265 ure ypserv is re │ │ │ +00246350: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +00246360: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +00246370: 3a0a 2020 2020 6e61 6d65 3a20 7970 7365 :. name: ypse │ │ │ +00246380: 7276 0a20 2020 2073 7461 7465 3a20 6162 rv. state: ab │ │ │ +00246390: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ +002463a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +002463b0: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ +002463c0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ +002463d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +002463e0: 3728 6229 0a20 202d 204e 4953 542d 3830 7(b). - NIST-80 │ │ │ +002463f0: 302d 3533 2d49 412d 3528 3129 2863 290a 0-53-IA-5(1)(c). │ │ │ +00246400: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +00246410: 322e 322e 320a 2020 2d20 5043 492d 4453 2.2.2. - PCI-DS │ │ │ +00246420: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +00246430: 4453 5376 342d 322e 322e 340a 2020 2d20 DSSv4-2.2.4. - │ │ │ +00246440: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +00246450: 0a20 202d 2068 6967 685f 7365 7665 7269 . - high_severi │ │ │ +00246460: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c ty. - low_compl │ │ │ +00246470: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +00246480: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ +00246490: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +002464a0: 2d20 7061 636b 6167 655f 7970 7365 7276 - package_ypserv │ │ │ +002464b0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e _removed. │ │ │ +002464c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +00246570: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00246580: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00246590: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002465a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002465b0: 7365 2220 6964 3d22 6964 3739 3422 3e3c se" id="id794">< │ │ │ +002465c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002465d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002465e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002465f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00246600: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00246610: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00246620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00246660: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00246670: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00246690: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002466a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002466c0: 2072 656d 6f76 655f 7970 7365 7276 0a0a remove_ypserv.. │ │ │ +002466d0: 636c 6173 7320 7265 6d6f 7665 5f79 7073 class remove_yps │ │ │ +002466e0: 6572 7620 7b0a 2020 7061 636b 6167 6520 erv {. package │ │ │ +002466f0: 7b20 2779 7073 6572 7627 3a0a 2020 2020 { 'ypserv':. │ │ │ +00246700: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +00246710: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ 00246730: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 R │ │ │ -00247fa0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00247fb0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00248050: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00248060: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002480b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002480f0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ -00248100: 682d 7365 7276 6572 0a0a 636c 6173 7320  h-server..class 
│ │ │ -00248110: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ -00248120: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ -00248130: 2772 7368 2d73 6572 7665 7227 3a0a 2020  'rsh-server':.  
│ │ │ -00248140: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00248150: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00248160: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00248210: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00248220: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -00248040: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00248070: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00248080: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002480c0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002480d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -002482c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00248360: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -00248370: 6c20 7273 682d 7365 7276 6572 2050 6163  l rsh-server Pac
│ │ │ -00248380: 6b61 6765 3a20 456e 7375 7265 2072 7368  kage: Ensure rsh
│ │ │ -00248390: 2d73 6572 7665 7220 6973 2072 656d 6f76  -server is remov
│ │ │ -002483a0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002483b0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002483c0: 2020 206e 616d 653a 2072 7368 2d73 6572     name: rsh-ser
│ │ │ -002483d0: 7665 720a 2020 2020 7374 6174 653a 2061  ver.    state: a
│ │ │ -002483e0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -002483f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00248400: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00248410: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00248420: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00248430: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ -00248440: 3030 2d35 332d 4941 2d35 2831 2928 6329  00-53-IA-5(1)(c)
│ │ │ -00248450: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00248460: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -00248470: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -00248480: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00248490: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -002484a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002484b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002484c0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002484d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002484e0: 6b61 6765 5f72 7368 2d73 6572 7665 725f  kage_rsh-server_
│ │ │ -002484f0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00247fa0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00247fb0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
│ │ │ -002482b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002482e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002482f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00248330: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00248340: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00248050: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002480f0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00248100: 6c20 7273 682d 7365 7276 6572 2050 6163  l rsh-server Pac
│ │ │ +00248110: 6b61 6765 3a20 456e 7375 7265 2072 7368  kage: Ensure rsh
│ │ │ +00248120: 2d73 6572 7665 7220 6973 2072 656d 6f76  -server is remov
│ │ │ +00248130: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00248140: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00248150: 2020 206e 616d 653a 2072 7368 2d73 6572     name: rsh-ser
│ │ │ +00248160: 7665 720a 2020 2020 7374 6174 653a 2061  ver.    state: a
│ │ │ +00248170: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00248180: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00248190: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002481a0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002481b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002481c0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ +002481d0: 3030 2d35 332d 4941 2d35 2831 2928 6329  00-53-IA-5(1)(c)
│ │ │ +002481e0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002481f0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00248200: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00248210: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00248220: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +00248230: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00248240: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00248250: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00248260: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00248270: 6b61 6765 5f72 7368 2d73 6572 7665 725f  kage_rsh-server_
│ │ │ +00248280: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00248290: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00248340: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00248350: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +002483d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00248460: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00248470: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +00248040: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00248070: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00248080: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002480c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002480d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +002483e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002483f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00248430: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00248440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +00248490: 7265 6d6f 7665 5f72 7368 2d73 6572 7665  remove_rsh-serve
│ │ │ +002484a0: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ +002484b0: 7273 682d 7365 7276 6572 207b 0a20 2070  rsh-server {.  p
│ │ │ +002484c0: 6163 6b61 6765 207b 2027 7273 682d 7365  ackage { 'rsh-se
│ │ │ +002484d0: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ +002484e0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +002484f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00248500: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediatio │ │ │ -00249420: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00249430: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -002494c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002494e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002494f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00249500: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00249510: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00249530: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00249560: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00249570: 6d6f 7665 5f72 7368 0a0a 636c 6173 7320  move_rsh..class 
│ │ │ -00249580: 7265 6d6f 7665 5f72 7368 207b 0a20 2070  remove_rsh {.  p
│ │ │ -00249590: 6163 6b61 6765 207b 2027 7273 6827 3a0a  ackage { 'rsh':.
│ │ │ -002495a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002495b0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002495c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00249680: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00249690: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00249760: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00249770: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -002497d0: 616c 6c20 7273 6820 5061 636b 6167 653a  all rsh Package:
│ │ │ -002497e0: 2045 6e73 7572 6520 7273 6820 6973 2072   Ensure rsh is r
│ │ │ -002497f0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00249800: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00249810: 653a 0a20 2020 206e 616d 653a 2072 7368  e:.    name: rsh
│ │ │ -00249820: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00249830: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -00249840: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ -00249850: 3133 0a20 202d 2050 4349 2d44 5353 7634  13.  - PCI-DSSv4
│ │ │ -00249860: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00249870: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -00249880: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00249890: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002498a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002498b0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002498c0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -002498d0: 6b61 6765 5f72 7368 5f72 656d 6f76 6564  kage_rsh_removed
│ │ │ -002498e0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -002498f0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.


< │ │ │ +002494b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002494f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -00249740: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00249750: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00249790: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002497a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +002494c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +002494e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00249510: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00249530: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00249560: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00249570: 6e69 6e73 7461 6c6c 2072 7368 2050 6163  ninstall rsh Pac
│ │ │ +00249580: 6b61 6765 3a20 456e 7375 7265 2072 7368  kage: Ensure rsh
│ │ │ +00249590: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +002495a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +002495b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +002495c0: 3a20 7273 680a 2020 2020 7374 6174 653a  : rsh.    state:
│ │ │ +002495d0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002495e0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002495f0: 2d33 2e31 2e31 330a 2020 2d20 5043 492d  -3.1.13.  - PCI-
│ │ │ +00249600: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +00249610: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +00249620: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00249630: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00249640: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00249650: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00249660: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00249670: 2d20 7061 636b 6167 655f 7273 685f 7265  - package_rsh_re
│ │ │ +00249680: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ +00249690: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.
Remed │ │ │ +00249750: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00249760: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00249810: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00249830: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00249860: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002497f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00249800: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00249820: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00249840: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00249850: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00249890: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +002498a0: 6465 2072 656d 6f76 655f 7273 680a 0a63 de remove_rsh..c │ │ │ +002498b0: 6c61 7373 2072 656d 6f76 655f 7273 6820 lass remove_rsh │ │ │ +002498c0: 7b0a 2020 7061 636b 6167 6520 7b20 2772 {. package { 'r │ │ │ +002498d0: 7368 273a 0a20 2020 2065 6e73 7572 6520 sh':. ensure │ │ │ +002498e0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +002498f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediation │ │ │ -0024a970: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024a980: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0024aa10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0024aa30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0024aa50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0024aa80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024aa90: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024aac0: 6f76 655f 7461 6c6b 2d73 6572 7665 720a  ove_talk-server.
│ │ │ -0024aad0: 0a63 6c61 7373 2072 656d 6f76 655f 7461  .class remove_ta
│ │ │ -0024aae0: 6c6b 2d73 6572 7665 7220 7b0a 2020 7061  lk-server {.  pa
│ │ │ -0024aaf0: 636b 6167 6520 7b20 2774 616c 6b2d 7365  ckage { 'talk-se
│ │ │ -0024ab00: 7276 6572 273a 0a20 2020 2065 6e73 7572  rver':.    ensur
│ │ │ -0024ab10: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0024ab20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024ab30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0024abe0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0024abf0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024ac00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024ac10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024ac20: 7365 2220 6964 3d22 6964 3830 3622 3e3c se" id="id806">< │ │ │ -0024ac30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024ac40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024ac50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024ac60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024ac70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024ac80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024ac90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024acd0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024ace0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024ad00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024ad10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0024ad30: 2755 6e69 6e73 7461 6c6c 2074 616c 6b2d 'Uninstall talk- │ │ │ -0024ad40: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ -0024ad50: 456e 7375 7265 2074 616c 6b2d 7365 7276 Ensure talk-serv │ │ │ -0024ad60: 6572 2069 7320 7265 6d6f 7665 6427 0a20 er is removed'. │ │ │ -0024ad70: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -0024ad80: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -0024ad90: 6d65 3a20 7461 6c6b 2d73 6572 7665 720a me: talk-server. │ │ │ -0024ada0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -0024adb0: 740a 2020 7461 6773 3a0a 2020 2d20 5043 t. tags:. - PC │ │ │ -0024adc0: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ -0024add0: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ -0024ade0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0024adf0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -0024ae00: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -0024ae10: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -0024ae20: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -0024ae30: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -0024ae40: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -0024ae50: 7461 6c6b 2d73 6572 7665 725f 7265 6d6f talk-server_remo │ │ │ -0024ae60: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Complexity │ │ │ +0024aa10: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024aa30: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024aa40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024aa50: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024aa60: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024aa80: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024aab0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0024aac0: 696e 7374 616c 6c20 7461 6c6b 2d73 6572  install talk-ser
│ │ │ +0024aad0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ +0024aae0: 7572 6520 7461 6c6b 2d73 6572 7665 7220  ure talk-server 
│ │ │ +0024aaf0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +0024ab00: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0024ab10: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0024ab20: 2074 616c 6b2d 7365 7276 6572 0a20 2020   talk-server.   
│ │ │ +0024ab30: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0024ab40: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +0024ab50: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0024ab60: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +0024ab70: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0024ab80: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0024ab90: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0024aba0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0024abb0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0024abc0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0024abd0: 0a20 202d 2070 6163 6b61 6765 5f74 616c  .  - package_tal
│ │ │ +0024abe0: 6b2d 7365 7276 6572 5f72 656d 6f76 6564  k-server_removed
│ │ │ +0024abf0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0024acb0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0024acc0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0024ad90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0024ada0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0024adf0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0024ae00: 7461 6c6b 2d73 6572 7665 720a 0a63 6c61  talk-server..cla
│ │ │ +0024ae10: 7373 2072 656d 6f76 655f 7461 6c6b 2d73  ss remove_talk-s
│ │ │ +0024ae20: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ +0024ae30: 6520 7b20 2774 616c 6b2d 7365 7276 6572  e { 'talk-server
│ │ │ +0024ae40: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0024ae50: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0024ae60: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Rem │ │ │ -0024bcb0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0024bcc0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0024bcd0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +0024ad70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0024ad80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0024adc0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0024add0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0024bd50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0024bd80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0024bda0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0024bdb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0024bdd0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0024bde0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -0024be00: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ -0024be10: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -0024be20: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ -0024be30: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ -0024be40: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0024be50: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0024bf10: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0024bf20: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0024bfb0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0024bfc0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0024bfe0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0024c000: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0024c010: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0024c050: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0024c060: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ -0024c070: 6c6b 2050 6163 6b61 6765 3a20 456e 7375  lk Package: Ensu
│ │ │ -0024c080: 7265 2074 616c 6b20 6973 2072 656d 6f76  re talk is remov
│ │ │ -0024c090: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0024c0a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0024c0b0: 2020 206e 616d 653a 2074 616c 6b0a 2020     name: talk.  
│ │ │ -0024c0c0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -0024c0d0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -0024c0e0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0024c0f0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0024c100: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0024c110: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0024c120: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0024c130: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0024c140: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0024c150: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0024c160: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ -0024c170: 6c6b 5f72 656d 6f76 6564 0a3c 2f63 6f64  lk_removed.
│ │ │ +0024bcd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0024bd70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0024bdc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0024be00: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +0024be10: 7461 6c6b 2050 6163 6b61 6765 3a20 456e  talk Package: En
│ │ │ +0024be20: 7375 7265 2074 616c 6b20 6973 2072 656d  sure talk is rem
│ │ │ +0024be30: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0024be40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0024be50: 0a20 2020 206e 616d 653a 2074 616c 6b0a  .    name: talk.
│ │ │ +0024be60: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0024be70: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ +0024be80: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0024be90: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +0024bea0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0024beb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0024bec0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0024bed0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0024bee0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0024bef0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0024bf00: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0024bf10: 7461 6c6b 5f72 656d 6f76 6564 0a3c 2f63  talk_removed.
│ │ │ +0024bf30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0024bfd0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0024bfe0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0024bff0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +0024bd50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0024bd80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0024bda0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0024bdb0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0024bdd0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0024bde0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +0024c070: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0024c0a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0024c0c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0024c0d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0024c0f0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0024c100: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0024c120: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ +0024c130: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +0024c140: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ +0024c150: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ +0024c160: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0024c170: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -0024dc30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0024dc40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0024dcc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0024dce0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0024dd30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0024dd60: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0024dcd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0024dcf0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0024dd40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0024dd50: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0024dd80: 7665 5f74 656c 6e65 742d 7365 7276 6572  ve_telnet-server
│ │ │ -0024dd90: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -0024dda0: 656c 6e65 742d 7365 7276 6572 207b 0a20  elnet-server {. 
│ │ │ -0024ddb0: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -0024ddc0: 6574 2d73 6572 7665 7227 3a0a 2020 2020  et-server':.    
│ │ │ -0024ddd0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -0024dde0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -0024de00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0024dea0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0024deb0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0024dec0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0024df60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0024dfb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0024dff0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0024e000: 7465 6c6e 6574 2d73 6572 7665 7220 5061  telnet-server Pa
│ │ │ -0024e010: 636b 6167 653a 2045 6e73 7572 6520 7465  ckage: Ensure te
│ │ │ -0024e020: 6c6e 6574 2d73 6572 7665 7220 6973 2072  lnet-server is r
│ │ │ -0024e030: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -0024e040: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0024e050: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -0024e060: 6e65 742d 7365 7276 6572 0a20 2020 2073  net-server.    s
│ │ │ -0024e070: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0024e080: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0024e090: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0024e0a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0024e0b0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0024e0c0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0024e0d0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -0024e0e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0024e0f0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0024e100: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0024e110: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0024e120: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -0024e130: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0024e140: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0024e150: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -0024e160: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0024e170: 6163 6b61 6765 5f74 656c 6e65 742d 7365  ackage_telnet-se
│ │ │ -0024e180: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
low< │ │ │ +0024dd10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Co │ │ │ -0024df40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0024df70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0024df90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0024dfa0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0024dfc0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0024dfd0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +0024dcd0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0024dcf0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0024dd40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0024dd50: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0024dd80: 6e73 7461 6c6c 2074 656c 6e65 742d 7365  nstall telnet-se
│ │ │ +0024dd90: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ +0024dda0: 7375 7265 2074 656c 6e65 742d 7365 7276  sure telnet-serv
│ │ │ +0024ddb0: 6572 2069 7320 7265 6d6f 7665 6427 0a20  er is removed'. 
│ │ │ +0024ddc0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024ddd0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0024dde0: 6d65 3a20 7465 6c6e 6574 2d73 6572 7665  me: telnet-serve
│ │ │ +0024ddf0: 720a 2020 2020 7374 6174 653a 2061 6273  r.    state: abs
│ │ │ +0024de00: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0024de10: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0024de20: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0024de30: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0024de40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0024de50: 2862 290a 2020 2d20 5043 492d 4453 532d  (b).  - PCI-DSS-
│ │ │ +0024de60: 5265 712d 322e 322e 320a 2020 2d20 5043  Req-2.2.2.  - PC
│ │ │ +0024de70: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0024de80: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +0024de90: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0024dea0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +0024deb0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +0024dec0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0024ded0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0024dee0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0024def0: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ +0024df00: 6c6e 6574 2d73 6572 7665 725f 7265 6d6f  lnet-server_remo
│ │ │ +0024df10: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +0024dfd0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0024dfe0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0024e060: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0024e080: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0024e0d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0024e100: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0024e070: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0024e090: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0024e0e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0024e0f0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +0024e120: 7665 5f74 656c 6e65 742d 7365 7276 6572  ve_telnet-server
│ │ │ +0024e130: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +0024e140: 656c 6e65 742d 7365 7276 6572 207b 0a20  elnet-server {. 
│ │ │ +0024e150: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ +0024e160: 6574 2d73 6572 7665 7227 3a0a 2020 2020  et-server':.    
│ │ │ +0024e170: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0024e180: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0024e1a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation │ │ │ -0024f090: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024f0a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0024f130: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0024f150: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0024f170: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0024f1a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024f1b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024f1e0: 6f76 655f 7465 6c6e 6574 0a0a 636c 6173  ove_telnet..clas
│ │ │ -0024f1f0: 7320 7265 6d6f 7665 5f74 656c 6e65 7420  s remove_telnet 
│ │ │ -0024f200: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -0024f210: 656c 6e65 7427 3a0a 2020 2020 656e 7375  elnet':.    ensu
│ │ │ -0024f220: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0024f230: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0024f240: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0024f2f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0024f300: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0024f310: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0024f340: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0024f3b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0024f3d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0024f400: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0024f390: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0024f3a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0024f3e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0024f3f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0024f440: 2027 5265 6d6f 7665 2074 656c 6e65 7420 'Remove telnet │ │ │ -0024f450: 436c 6965 6e74 733a 2045 6e73 7572 6520 Clients: Ensure │ │ │ -0024f460: 7465 6c6e 6574 2069 7320 7265 6d6f 7665 telnet is remove │ │ │ -0024f470: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -0024f480: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -0024f490: 2020 6e61 6d65 3a20 7465 6c6e 6574 0a20 name: telnet. │ │ │ -0024f4a0: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -0024f4b0: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -0024f4c0: 542d 3830 302d 3137 312d 332e 312e 3133 T-800-171-3.1.13 │ │ │ -0024f4d0: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -0024f4e0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -0024f4f0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162 -2.2.4. - disab │ │ │ -0024f500: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -0024f510: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -0024f520: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -0024f530: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ -0024f540: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0024f550: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -0024f560: 6167 655f 7465 6c6e 6574 5f72 656d 6f76 age_telnet_remov │ │ │ -0024f570: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed.

│ │ │ +0024f090: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0024f0a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024f130: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024f150: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024f160: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024f170: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024f180: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024f1a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024f1d0: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ +0024f1e0: 6d6f 7665 2074 656c 6e65 7420 436c 6965  move telnet Clie
│ │ │ +0024f1f0: 6e74 733a 2045 6e73 7572 6520 7465 6c6e  nts: Ensure teln
│ │ │ +0024f200: 6574 2069 7320 7265 6d6f 7665 6427 0a20  et is removed'. 
│ │ │ +0024f210: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024f220: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0024f230: 6d65 3a20 7465 6c6e 6574 0a20 2020 2073  me: telnet.    s
│ │ │ +0024f240: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0024f250: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0024f260: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ +0024f270: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +0024f280: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0024f290: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +0024f2a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0024f2b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0024f2c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0024f2d0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +0024f2e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0024f2f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0024f300: 7465 6c6e 6574 5f72 656d 6f76 6564 0a3c  telnet_removed.<
│ │ │ +0024f310: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0024f3c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0024f3d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +0024f470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024f480: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024f4d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0024f510: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ +0024f520: 6c6e 6574 0a0a 636c 6173 7320 7265 6d6f  lnet..class remo
│ │ │ +0024f530: 7665 5f74 656c 6e65 7420 7b0a 2020 7061  ve_telnet {.  pa
│ │ │ +0024f540: 636b 6167 6520 7b20 2774 656c 6e65 7427  ckage { 'telnet'
│ │ │ +0024f550: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0024f560: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0024f570: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0024f580: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Rem │ │ │ -00250df0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00250e00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00250e10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +0024f460: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024f490: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024f4a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024f4e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0024f4f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00250e90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00250ec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00250ee0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00250ef0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00250f10: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00250f20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00250f40: 6c75 6465 2072 656d 6f76 655f 7466 7470  lude remove_tftp
│ │ │ -00250f50: 2d73 6572 7665 720a 0a63 6c61 7373 2072  -server..class r
│ │ │ -00250f60: 656d 6f76 655f 7466 7470 2d73 6572 7665  emove_tftp-serve
│ │ │ -00250f70: 7220 7b0a 2020 7061 636b 6167 6520 7b20  r {.  package { 
│ │ │ -00250f80: 2774 6674 702d 7365 7276 6572 273a 0a20  'tftp-server':. 
│ │ │ -00250f90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00250fa0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00250fb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00251060: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00251070: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00251080: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00251150: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00251160: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002511b0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -002511c0: 6c6c 2074 6674 702d 7365 7276 6572 2050  ll tftp-server P
│ │ │ -002511d0: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ -002511e0: 6674 702d 7365 7276 6572 2069 7320 7265  ftp-server is re
│ │ │ -002511f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00251200: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00251210: 3a0a 2020 2020 6e61 6d65 3a20 7466 7470  :.    name: tftp
│ │ │ -00251220: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ -00251230: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00251240: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00251250: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00251260: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00251270: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00251280: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ -00251290: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002512a0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002512b0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002512c0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -002512d0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -002512e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002512f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00251300: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00251310: 640a 2020 2d20 7061 636b 6167 655f 7466  d.  - package_tf
│ │ │ -00251320: 7470 2d73 6572 7665 725f 7265 6d6f 7665  tp-server_remove
│ │ │ -00251330: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00250df0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +00250e00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00250e10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -00251130: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00251140: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00251180: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00251190: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +00250eb0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00250f00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00250f40: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00250f50: 7466 7470 2d73 6572 7665 7220 5061 636b  tftp-server Pack
│ │ │ +00250f60: 6167 653a 2045 6e73 7572 6520 7466 7470  age: Ensure tftp
│ │ │ +00250f70: 2d73 6572 7665 7220 6973 2072 656d 6f76  -server is remov
│ │ │ +00250f80: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00250f90: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00250fa0: 2020 206e 616d 653a 2074 6674 702d 7365     name: tftp-se
│ │ │ +00250fb0: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ +00250fc0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00250fd0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00250fe0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00250ff0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00251000: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00251010: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00251020: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00251030: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00251040: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00251050: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00251060: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00251070: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00251080: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00251090: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002510a0: 202d 2070 6163 6b61 6765 5f74 6674 702d   - package_tftp-
│ │ │ +002510b0: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +002510c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00251170: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00251180: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +00250e90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00250ec0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00250ee0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00250ef0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00250f10: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00250f20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00251220: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00251230: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00251280: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002512c0: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ +002512d0: 7470 2d73 6572 7665 720a 0a63 6c61 7373  tp-server..class
│ │ │ +002512e0: 2072 656d 6f76 655f 7466 7470 2d73 6572   remove_tftp-ser
│ │ │ +002512f0: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ +00251300: 7b20 2774 6674 702d 7365 7276 6572 273a  { 'tftp-server':
│ │ │ +00251310: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00251320: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00251330: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00251340: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedia │ │ │ -00252070: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00252080: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00252090: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002520a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002520b0: 7365 2220 6964 3d22 6964 3832 3522 3e3c se" id="id825">< │ │ │ -002520c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002520d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002520e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002520f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00252100: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00252190: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -002521a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
C │ │ │ +00251210: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00251240: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00251250: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00251290: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002512a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -00252110: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00252120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00252160: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00252170: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -002521c0: 2072 656d 6f76 655f 7466 7470 0a0a 636c remove_tftp..cl │ │ │ -002521d0: 6173 7320 7265 6d6f 7665 5f74 6674 7020 ass remove_tftp │ │ │ -002521e0: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ -002521f0: 6674 7027 3a0a 2020 2020 656e 7375 7265 ftp':. ensure │ │ │ -00252200: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ -00252210: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediati │ │ │ -002522d0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002522e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00252360: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00252370: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00252380: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002523c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002523d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002523f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00252400: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -00252420: 5265 6d6f 7665 2074 6674 7020 4461 656d  Remove tftp Daem
│ │ │ -00252430: 6f6e 3a20 456e 7375 7265 2074 6674 7020  on: Ensure tftp 
│ │ │ -00252440: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00252450: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00252460: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00252470: 2074 6674 700a 2020 2020 7374 6174 653a   tftp.    state:
│ │ │ -00252480: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00252490: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002524a0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -002524b0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -002524c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002524d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002524e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002524f0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -00252500: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00252510: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00252520: 6765 5f74 6674 705f 7265 6d6f 7665 640a  ge_tftp_removed.
│ │ │ +00252070: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +00252080: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +00252090: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002520c0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00252130: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00252150: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00252180: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00252110: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00252120: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00252160: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00252170: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002521c0: 2027 5265 6d6f 7665 2074 6674 7020 4461 'Remove tftp Da │ │ │ +002521d0: 656d 6f6e 3a20 456e 7375 7265 2074 6674 emon: Ensure tft │ │ │ +002521e0: 7020 6973 2072 656d 6f76 6564 270a 2020 p is removed'. │ │ │ +002521f0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00252200: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +00252210: 653a 2074 6674 700a 2020 2020 7374 6174 e: tftp. stat │ │ │ +00252220: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ +00252230: 3a0a 2020 2d20 5043 492d 4453 5376 342d :. - PCI-DSSv4- │ │ │ +00252240: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +00252250: 342d 322e 322e 340a 2020 2d20 6469 7361 4-2.2.4. - disa │ │ │ +00252260: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00252270: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00252280: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00252290: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ +002522a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +002522b0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +002522c0: 6b61 6765 5f74 6674 705f 7265 6d6f 7665 kage_tftp_remove │ │ │ +002522d0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.

< │ │ │ +002522e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00252390: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002523a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00252470: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00252480: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002524e0: 5f74 6674 700a 0a63 6c61 7373 2072 656d  _tftp..class rem
│ │ │ +002524f0: 6f76 655f 7466 7470 207b 0a20 2070 6163  ove_tftp {.  pac
│ │ │ +00252500: 6b61 6765 207b 2027 7466 7470 273a 0a20  kage { 'tftp':. 
│ │ │ +00252510: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00252520: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00252530: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -00260950: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00260960: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
include s
│ │ │ -002609b0: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ -002609c0: 6572 6d73 0a0a 636c 6173 7320 7373 685f  erms..class ssh_
│ │ │ -002609d0: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ -002609e0: 7320 7b0a 2020 6578 6563 207b 2027 7373  s {.  exec { 'ss
│ │ │ -002609f0: 6864 5f70 7269 765f 6b65 7927 3a0a 2020  hd_priv_key':.  
│ │ │ -00260a00: 2020 636f 6d6d 616e 6420 3d26 6774 3b20    command => 
│ │ │ -00260a10: 2263 686d 6f64 2030 3634 3020 2f65 7463  "chmod 0640 /etc
│ │ │ -00260a20: 2f73 7368 2f2a 5f6b 6579 222c 0a20 2020  /ssh/*_key",.   
│ │ │ -00260a30: 2070 6174 6820 2020 203d 2667 743b 2027   path    => '
│ │ │ -00260a40: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20  /bin:/usr/bin'. 
│ │ │ -00260a50: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00260b10: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00260b20: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00260be0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00260bf0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c < │ │ │ -00260c40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00252450: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00252460: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002524a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002524b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ -00260bb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00260bd0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00260c00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00260c20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:configure
- name: G
│ │ │ -00260c60: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00260c70: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00260c80: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00260c90: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00260ca0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00260cb0: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ -00260cc0: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ -00260cd0: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ -00260ce0: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ -00260cf0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -00260d00: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ -00260d10: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00260d20: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -00260d30: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -00260d40: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00260d50: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ -00260d60: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ -00260d70: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ -00260d80: 696f 6e73 5f73 7368 645f 7072 6976 6174  ions_sshd_privat
│ │ │ -00260d90: 655f 6b65 790a 2020 2d20 6c6f 775f 636f  e_key.  - low_co
│ │ │ -00260da0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00260db0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00260dc0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00260dd0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00260de0: 6564 6564 0a0a 2d20 6e61 6d65 3a20 4669  eded..- name: Fi
│ │ │ -00260df0: 6e64 2072 6f6f 743a 726f 6f74 2d6f 776e  nd root:root-own
│ │ │ -00260e00: 6564 206b 6579 730a 2020 616e 7369 626c  ed keys.  ansibl
│ │ │ -00260e10: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00260e20: 643a 2066 696e 6420 2d48 202f 6574 632f  d: find -H /etc/
│ │ │ -00260e30: 7373 682f 202d 6d61 7864 6570 7468 2031  ssh/ -maxdepth 1
│ │ │ -00260e40: 202d 7573 6572 2072 6f6f 7420 2d72 6567   -user root -reg
│ │ │ -00260e50: 6578 2022 2e2a 5f6b 6579 2422 0a20 2020  ex ".*_key$".   
│ │ │ -00260e60: 202d 7479 7065 2066 202d 6772 6f75 7020   -type f -group 
│ │ │ -00260e70: 726f 6f74 202d 7065 726d 202f 752b 7873  root -perm /u+xs
│ │ │ -00260e80: 2c67 2b78 7772 732c 6f2b 7877 7274 0a20  ,g+xwrs,o+xwrt. 
│ │ │ -00260e90: 2072 6567 6973 7465 723a 2072 6f6f 745f   register: root_
│ │ │ -00260ea0: 6f77 6e65 645f 6b65 7973 0a20 2063 6861  owned_keys.  cha
│ │ │ -00260eb0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00260ec0: 0a20 2066 6169 6c65 645f 7768 656e 3a20  .  failed_when: 
│ │ │ -00260ed0: 6661 6c73 650a 2020 6368 6563 6b5f 6d6f  false.  check_mo
│ │ │ -00260ee0: 6465 3a20 6661 6c73 650a 2020 7768 656e  de: false.  when
│ │ │ -00260ef0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00260f00: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00260f10: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00260f20: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00260f30: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ -00260f40: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ -00260f50: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ -00260f60: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ -00260f70: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -00260f80: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ -00260f90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00260fa0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -00260fb0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -00260fc0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00260fd0: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ -00260fe0: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ -00260ff0: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ -00261000: 696f 6e73 5f73 7368 645f 7072 6976 6174  ions_sshd_privat
│ │ │ -00261010: 655f 6b65 790a 2020 2d20 6c6f 775f 636f  e_key.  - low_co
│ │ │ -00261020: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00261030: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00261040: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00261050: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00261060: 6564 6564 0a0a 2d20 6e61 6d65 3a20 5365  eded..- name: Se
│ │ │ -00261070: 7420 7065 726d 6973 7369 6f6e 7320 666f  t permissions fo
│ │ │ -00261080: 7220 726f 6f74 3a72 6f6f 742d 6f77 6e65  r root:root-owne
│ │ │ -00261090: 6420 6b65 7973 0a20 2061 6e73 6962 6c65  d keys.  ansible
│ │ │ -002610a0: 2e62 7569 6c74 696e 2e66 696c 653a 0a20  .builtin.file:. 
│ │ │ -002610b0: 2020 2070 6174 683a 2027 7b7b 2069 7465     path: '{{ ite
│ │ │ -002610c0: 6d20 7d7d 270a 2020 2020 6d6f 6465 3a20  m }}'.    mode: 
│ │ │ -002610d0: 752d 7873 2c67 2d78 7772 732c 6f2d 7877  u-xs,g-xwrs,o-xw
│ │ │ -002610e0: 7274 0a20 2020 2073 7461 7465 3a20 6669  rt.    state: fi
│ │ │ -002610f0: 6c65 0a20 2077 6974 685f 6974 656d 733a  le.  with_items:
│ │ │ -00261100: 0a20 202d 2027 7b7b 2072 6f6f 745f 6f77  .  - '{{ root_ow
│ │ │ -00261110: 6e65 645f 6b65 7973 2e73 7464 6f75 745f  ned_keys.stdout_
│ │ │ -00261120: 6c69 6e65 7320 7d7d 270a 2020 7768 656e  lines }}'.  when
│ │ │ -00261130: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00261140: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00261150: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00261160: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00261170: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ -00261180: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ -00261190: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ -002611a0: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ -002611b0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -002611c0: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ -002611d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -002611e0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ -002611f0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -00261200: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00261210: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ -00261220: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ -00261230: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ -00261240: 696f 6e73 5f73 7368 645f 7072 6976 6174  ions_sshd_privat
│ │ │ -00261250: 655f 6b65 790a 2020 2d20 6c6f 775f 636f  e_key.  - low_co
│ │ │ -00261260: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00261270: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00261280: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00261290: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002612a0: 6564 6564 0a3c 2f63 6f64 653e 3c2f 7072  eded.
< │ │ │ +002609e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002609f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00260a10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00260a20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00260a40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00260a60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ +00260a80: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00260aa0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00260ab0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00260ac0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00260ad0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00260ae0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00260af0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +00260b00: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +00260b10: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +00260b20: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +00260b30: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +00260b40: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +00260b50: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00260b60: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +00260b70: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +00260b80: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +00260b90: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +00260ba0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +00260bb0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +00260bc0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +00260bd0: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +00260be0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00260bf0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00260c00: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +00260c10: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00260c20: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ +00260c30: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ +00260c40: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ +00260c50: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +00260c60: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ +00260c70: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ +00260c80: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ +00260c90: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ +00260ca0: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ +00260cb0: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ +00260cc0: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ +00260cd0: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ +00260ce0: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ +00260cf0: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +00260d00: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ +00260d10: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ +00260d20: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ +00260d30: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +00260d40: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00260d50: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +00260d60: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00260d70: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +00260d80: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +00260d90: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +00260da0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +00260db0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +00260dc0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +00260dd0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00260de0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +00260df0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +00260e00: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +00260e10: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +00260e20: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +00260e30: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +00260e40: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +00260e50: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +00260e60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00260e70: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00260e80: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +00260e90: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00260ea0: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ +00260eb0: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ +00260ec0: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ +00260ed0: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ +00260ee0: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ +00260ef0: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ +00260f00: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ +00260f10: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ +00260f20: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ +00260f30: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ +00260f40: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ +00260f50: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ +00260f60: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ +00260f70: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +00260f80: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00260f90: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +00260fa0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00260fb0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +00260fc0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +00260fd0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +00260fe0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +00260ff0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +00261000: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +00261010: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00261020: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +00261030: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +00261040: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +00261050: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +00261060: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +00261070: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +00261080: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +00261090: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002610a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002610b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002610c0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002610d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002610e0: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.

Remediatio │ │ │ +002611a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002611b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
include s
│ │ │ +00261200: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ +00261210: 6572 6d73 0a0a 636c 6173 7320 7373 685f  erms..class ssh_
│ │ │ +00261220: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ +00261230: 7320 7b0a 2020 6578 6563 207b 2027 7373  s {.  exec { 'ss
│ │ │ +00261240: 6864 5f70 7269 765f 6b65 7927 3a0a 2020  hd_priv_key':.  
│ │ │ +00261250: 2020 636f 6d6d 616e 6420 3d26 6774 3b20    command => 
│ │ │ +00261260: 2263 686d 6f64 2030 3634 3020 2f65 7463  "chmod 0640 /etc
│ │ │ +00261270: 2f73 7368 2f2a 5f6b 6579 222c 0a20 2020  /ssh/*_key",.   
│ │ │ +00261280: 2070 6174 6820 2020 203d 2667 743b 2027   path    => '
│ │ │ +00261290: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20  /bin:/usr/bin'. 
│ │ │ +002612a0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00262710: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00262720: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00262760: 3c63 6f64 653e 696e 636c 7564 6520 7373  include ss
│ │ │ -00262770: 685f 7075 626c 6963 5f6b 6579 5f70 6572  h_public_key_per
│ │ │ -00262780: 6d73 0a0a 636c 6173 7320 7373 685f 7075  ms..class ssh_pu
│ │ │ -00262790: 626c 6963 5f6b 6579 5f70 6572 6d73 207b  blic_key_perms {
│ │ │ -002627a0: 0a20 2065 7865 6320 7b20 2773 7368 645f  .  exec { 'sshd_
│ │ │ -002627b0: 7075 625f 6b65 7927 3a0a 2020 2020 636f  pub_key':.    co
│ │ │ -002627c0: 6d6d 616e 6420 3d26 6774 3b20 2263 686d  mmand => "chm
│ │ │ -002627d0: 6f64 2030 3634 3420 2f65 7463 2f73 7368  od 0644 /etc/ssh
│ │ │ -002627e0: 2f2a 2e70 7562 222c 0a20 2020 2070 6174  /*.pub",.    pat
│ │ │ -002627f0: 6820 2020 203d 2667 743b 2027 2f62 696e  h    => '/bin
│ │ │ -00262800: 3a2f 7573 722f 6269 6e27 0a20 207d 0a7d  :/usr/bin'.  }.}
│ │ │ -00262810: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -002628d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002628e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -002629b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002629c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f │ │ │ -00262a00: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ -00262990: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002629a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002629e0: 6567 793a 3c2f 7468 3e3c 7464 3e63 6f6e egy:con │ │ │ -002629f0: 6669 6775 7265 3c2f 7464 3e3c 2f74 723e figure
- name: Gathe
│ │ │ -00262a20: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00262a30: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00262a40: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00262a50: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00262a60: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ -00262a70: 332e 312e 3133 0a20 202d 204e 4953 542d  3.1.13.  - NIST-
│ │ │ -00262a80: 3830 302d 3137 312d 332e 3133 2e31 300a  800-171-3.13.10.
│ │ │ -00262a90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00262aa0: 4143 2d31 3728 6129 0a20 202d 204e 4953  AC-17(a).  - NIS
│ │ │ -00262ab0: 542d 3830 302d 3533 2d41 432d 3628 3129  T-800-53-AC-6(1)
│ │ │ -00262ac0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00262ad0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00262ae0: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20  -DSS-Req-2.2.4. 
│ │ │ -00262af0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00262b00: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00262b10: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775  .2.6.  - configu
│ │ │ -00262b20: 7265 5f73 7472 6174 6567 790a 2020 2d20  re_strategy.  - 
│ │ │ -00262b30: 6669 6c65 5f70 6572 6d69 7373 696f 6e73  file_permissions
│ │ │ -00262b40: 5f73 7368 645f 7075 625f 6b65 790a 2020  _sshd_pub_key.  
│ │ │ -00262b50: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00262b60: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00262b70: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00262b80: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00262b90: 6562 6f6f 745f 6e65 6564 6564 0a0a 2d20  eboot_needed..- 
│ │ │ -00262ba0: 6e61 6d65 3a20 4669 6e64 202f 6574 632f  name: Find /etc/
│ │ │ -00262bb0: 7373 682f 2066 696c 6528 7329 0a20 2061  ssh/ file(s).  a
│ │ │ -00262bc0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00262bd0: 6f6d 6d61 6e64 3a20 6669 6e64 202d 5020  ommand: find -P 
│ │ │ -00262be0: 2f65 7463 2f73 7368 2f20 2d6d 6178 6465  /etc/ssh/ -maxde
│ │ │ -00262bf0: 7074 6820 3120 2d70 6572 6d20 2f75 2b78  pth 1 -perm /u+x
│ │ │ -00262c00: 732c 672b 7877 732c 6f2b 7877 7420 202d  s,g+xws,o+xwt  -
│ │ │ -00262c10: 7479 7065 0a20 2020 2066 202d 7265 6765  type.    f -rege
│ │ │ -00262c20: 7874 7970 6520 706f 7369 782d 6578 7465  xtype posix-exte
│ │ │ -00262c30: 6e64 6564 202d 7265 6765 7820 225e 2e2a  nded -regex "^.*
│ │ │ -00262c40: 5c2e 7075 6224 220a 2020 7265 6769 7374  \.pub$".  regist
│ │ │ -00262c50: 6572 3a20 6669 6c65 735f 666f 756e 640a  er: files_found.
│ │ │ -00262c60: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -00262c70: 6661 6c73 650a 2020 6661 696c 6564 5f77  false.  failed_w
│ │ │ -00262c80: 6865 6e3a 2066 616c 7365 0a20 2063 6865  hen: false.  che
│ │ │ -00262c90: 636b 5f6d 6f64 653a 2066 616c 7365 0a20  ck_mode: false. 
│ │ │ -00262ca0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00262cb0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00262cc0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00262cd0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00262ce0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -00262cf0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -00262d00: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -00262d10: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -00262d20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00262d30: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -00262d40: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00262d50: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00262d60: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -00262d70: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00262d80: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -00262d90: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -00262da0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -00262db0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -00262dc0: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ -00262dd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00262de0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00262df0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00262e00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00262e10: 6565 6465 640a 0a2d 206e 616d 653a 2053  eeded..- name: S
│ │ │ -00262e20: 6574 2070 6572 6d69 7373 696f 6e73 2066  et permissions f
│ │ │ -00262e30: 6f72 202f 6574 632f 7373 682f 2066 696c  or /etc/ssh/ fil
│ │ │ -00262e40: 6528 7329 0a20 2061 6e73 6962 6c65 2e62  e(s).  ansible.b
│ │ │ -00262e50: 7569 6c74 696e 2e66 696c 653a 0a20 2020  uiltin.file:.   
│ │ │ -00262e60: 2070 6174 683a 2027 7b7b 2069 7465 6d20   path: '{{ item 
│ │ │ -00262e70: 7d7d 270a 2020 2020 6d6f 6465 3a20 752d  }}'.    mode: u-
│ │ │ -00262e80: 7873 2c67 2d78 7773 2c6f 2d78 7774 0a20  xs,g-xws,o-xwt. 
│ │ │ -00262e90: 2020 2073 7461 7465 3a20 6669 6c65 0a20     state: file. 
│ │ │ -00262ea0: 2077 6974 685f 6974 656d 733a 0a20 202d   with_items:.  -
│ │ │ -00262eb0: 2027 7b7b 2066 696c 6573 5f66 6f75 6e64   '{{ files_found
│ │ │ -00262ec0: 2e73 7464 6f75 745f 6c69 6e65 7320 7d7d  .stdout_lines }}
│ │ │ -00262ed0: 270a 2020 7768 656e 3a20 2722 6c69 6e75  '.  when: '"linu
│ │ │ -00262ee0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00262ef0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00262f00: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -00262f10: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ -00262f20: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ -00262f30: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ -00262f40: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ -00262f50: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -00262f60: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ -00262f70: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00262f80: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -00262f90: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ -00262fa0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -00262fb0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -00262fc0: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ -00262fd0: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ -00262fe0: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ -00262ff0: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ -00263000: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00263010: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00263020: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00263030: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00263040: 745f 6e65 6564 6564 0a3c 2f63 6f64 653e  t_needed.
│ │ │ +00262710: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00262720: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +002627b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002627d0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002627e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002627f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00262800: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00262820: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:configure< │ │ │ +00262840: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00262860: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00262870: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00262880: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00262890: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002628a0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002628b0: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ +002628c0: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ +002628d0: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ +002628e0: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ +002628f0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00262900: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ +00262910: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00262920: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +00262930: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +00262940: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00262950: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ +00262960: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ +00262970: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ +00262980: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ +00262990: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002629a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002629b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002629c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002629d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002629e0: 0a0a 2d20 6e61 6d65 3a20 4669 6e64 202f  ..- name: Find /
│ │ │ +002629f0: 6574 632f 7373 682f 2066 696c 6528 7329  etc/ssh/ file(s)
│ │ │ +00262a00: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00262a10: 696e 2e63 6f6d 6d61 6e64 3a20 6669 6e64  in.command: find
│ │ │ +00262a20: 202d 5020 2f65 7463 2f73 7368 2f20 2d6d   -P /etc/ssh/ -m
│ │ │ +00262a30: 6178 6465 7074 6820 3120 2d70 6572 6d20  axdepth 1 -perm 
│ │ │ +00262a40: 2f75 2b78 732c 672b 7877 732c 6f2b 7877  /u+xs,g+xws,o+xw
│ │ │ +00262a50: 7420 202d 7479 7065 0a20 2020 2066 202d  t  -type.    f -
│ │ │ +00262a60: 7265 6765 7874 7970 6520 706f 7369 782d  regextype posix-
│ │ │ +00262a70: 6578 7465 6e64 6564 202d 7265 6765 7820  extended -regex 
│ │ │ +00262a80: 225e 2e2a 5c2e 7075 6224 220a 2020 7265  "^.*\.pub$".  re
│ │ │ +00262a90: 6769 7374 6572 3a20 6669 6c65 735f 666f  gister: files_fo
│ │ │ +00262aa0: 756e 640a 2020 6368 616e 6765 645f 7768  und.  changed_wh
│ │ │ +00262ab0: 656e 3a20 6661 6c73 650a 2020 6661 696c  en: false.  fail
│ │ │ +00262ac0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00262ad0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00262ae0: 7365 0a20 2077 6865 6e3a 2027 226c 696e  se.  when: '"lin
│ │ │ +00262af0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00262b00: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00262b10: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00262b20: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +00262b30: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ +00262b40: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ +00262b50: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00262b60: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ +00262b70: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ +00262b80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00262b90: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00262ba0: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ +00262bb0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +00262bc0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +00262bd0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ +00262be0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ +00262bf0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ +00262c00: 6864 5f70 7562 5f6b 6579 0a20 202d 206c  hd_pub_key.  - l
│ │ │ +00262c10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00262c20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00262c30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00262c40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00262c50: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +00262c60: 653a 2053 6574 2070 6572 6d69 7373 696f  e: Set permissio
│ │ │ +00262c70: 6e73 2066 6f72 202f 6574 632f 7373 682f  ns for /etc/ssh/
│ │ │ +00262c80: 2066 696c 6528 7329 0a20 2061 6e73 6962   file(s).  ansib
│ │ │ +00262c90: 6c65 2e62 7569 6c74 696e 2e66 696c 653a  le.builtin.file:
│ │ │ +00262ca0: 0a20 2020 2070 6174 683a 2027 7b7b 2069  .    path: '{{ i
│ │ │ +00262cb0: 7465 6d20 7d7d 270a 2020 2020 6d6f 6465  tem }}'.    mode
│ │ │ +00262cc0: 3a20 752d 7873 2c67 2d78 7773 2c6f 2d78  : u-xs,g-xws,o-x
│ │ │ +00262cd0: 7774 0a20 2020 2073 7461 7465 3a20 6669  wt.    state: fi
│ │ │ +00262ce0: 6c65 0a20 2077 6974 685f 6974 656d 733a  le.  with_items:
│ │ │ +00262cf0: 0a20 202d 2027 7b7b 2066 696c 6573 5f66  .  - '{{ files_f
│ │ │ +00262d00: 6f75 6e64 2e73 7464 6f75 745f 6c69 6e65  ound.stdout_line
│ │ │ +00262d10: 7320 7d7d 270a 2020 7768 656e 3a20 2722  s }}'.  when: '"
│ │ │ +00262d20: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00262d30: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00262d40: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00262d50: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00262d60: 332e 312e 3133 0a20 202d 204e 4953 542d  3.1.13.  - NIST-
│ │ │ +00262d70: 3830 302d 3137 312d 332e 3133 2e31 300a  800-171-3.13.10.
│ │ │ +00262d80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00262d90: 4143 2d31 3728 6129 0a20 202d 204e 4953  AC-17(a).  - NIS
│ │ │ +00262da0: 542d 3830 302d 3533 2d41 432d 3628 3129  T-800-53-AC-6(1)
│ │ │ +00262db0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00262dc0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +00262dd0: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20  -DSS-Req-2.2.4. 
│ │ │ +00262de0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00262df0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00262e00: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775  .2.6.  - configu
│ │ │ +00262e10: 7265 5f73 7472 6174 6567 790a 2020 2d20  re_strategy.  - 
│ │ │ +00262e20: 6669 6c65 5f70 6572 6d69 7373 696f 6e73  file_permissions
│ │ │ +00262e30: 5f73 7368 645f 7075 625f 6b65 790a 2020  _sshd_pub_key.  
│ │ │ +00262e40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00262e50: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00262e60: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00262e70: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00262e80: 6562 6f6f 745f 6e65 6564 6564 0a3c 2f63  eboot_needed.
│ │ │ +00262ea0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00262f40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00262f50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00262f60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
in
│ │ │ +00262fa0: 636c 7564 6520 7373 685f 7075 626c 6963  clude ssh_public
│ │ │ +00262fb0: 5f6b 6579 5f70 6572 6d73 0a0a 636c 6173  _key_perms..clas
│ │ │ +00262fc0: 7320 7373 685f 7075 626c 6963 5f6b 6579  s ssh_public_key
│ │ │ +00262fd0: 5f70 6572 6d73 207b 0a20 2065 7865 6320  _perms {.  exec 
│ │ │ +00262fe0: 7b20 2773 7368 645f 7075 625f 6b65 7927  { 'sshd_pub_key'
│ │ │ +00262ff0: 3a0a 2020 2020 636f 6d6d 616e 6420 3d26  :.    command =&
│ │ │ +00263000: 6774 3b20 2263 686d 6f64 2030 3634 3420  gt; "chmod 0644 
│ │ │ +00263010: 2f65 7463 2f73 7368 2f2a 2e70 7562 222c  /etc/ssh/*.pub",
│ │ │ +00263020: 0a20 2020 2070 6174 6820 2020 203d 2667  .    path    =&g
│ │ │ +00263030: 743b 2027 2f62 696e 3a2f 7573 722f 6269  t; '/bin:/usr/bi
│ │ │ +00263040: 6e27 0a20 207d 0a7d 0a3c 2f63 6f64 653e  n'.  }.}.
│ │ │  00263050: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OSB │ │ │ -00266550: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00266560: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -002665b0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -002665c0: 3d20 2273 7373 6422 0a76 6572 7369 6f6e  = "sssd".version
│ │ │ -002665d0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00266690: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002666a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00266720: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00266730: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00266750: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00266760: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00266780: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002667a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002667d0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -002667e0: 7461 6c6c 5f73 7373 640a 0a63 6c61 7373  tall_sssd..class
│ │ │ -002667f0: 2069 6e73 7461 6c6c 5f73 7373 6420 7b0a   install_sssd {.
│ │ │ -00266800: 2020 7061 636b 6167 6520 7b20 2773 7373    package { 'sss
│ │ │ -00266810: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -00266820: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00266830: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00266840: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -002668f0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00266900: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00266910: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00266920: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00266930: 7365 2220 6964 3d22 6964 3836 3522 3e3c se" id="id865">< │ │ │ -00266940: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00266950: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00266960: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00266970: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00266980: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00266990: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002669a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002669e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002669f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00266a10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00266a20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00266a40: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00266a50: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00266a60: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00266a70: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00266a80: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00266a90: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00266aa0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00266ab0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00266ac0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00266ad0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00266ae0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00266af0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00266b00: 2d20 7061 636b 6167 655f 7373 7364 5f69  - package_sssd_i
│ │ │ -00266b10: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -00266b20: 3a20 456e 7375 7265 2073 7373 6420 6973  : Ensure sssd is
│ │ │ -00266b30: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -00266b40: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00266b50: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00266b60: 7373 7364 0a20 2020 2073 7461 7465 3a20  sssd.    state: 
│ │ │ -00266b70: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -00266b80: 2722 7373 7364 2d63 6f6d 6d6f 6e22 2069  '"sssd-common" i
│ │ │ -00266b90: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00266ba0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00266bb0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00266bc0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ -00266bd0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00266be0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00266bf0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00266c00: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00266c10: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00266c20: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00266c30: 2070 6163 6b61 6765 5f73 7373 645f 696e   package_sssd_in
│ │ │ -00266c40: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +00266540: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +00266550: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00266560: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00266630: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00266640: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00266690: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002666a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002666b0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002666c0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002666d0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002666e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002666f0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +00266700: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00266710: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00266720: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00266730: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00266740: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00266750: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00266760: 6765 5f73 7373 645f 696e 7374 616c 6c65  ge_sssd_installe
│ │ │ +00266770: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +00266780: 6520 7373 7364 2069 7320 696e 7374 616c  e sssd is instal
│ │ │ +00266790: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +002667a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002667b0: 2020 206e 616d 653a 2073 7373 640a 2020     name: sssd.  
│ │ │ +002667c0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +002667d0: 0a20 2077 6865 6e3a 2027 2273 7373 642d  .  when: '"sssd-
│ │ │ +002667e0: 636f 6d6d 6f6e 2220 696e 2061 6e73 6962  common" in ansib
│ │ │ +002667f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00266800: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +00266810: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00266820: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +00266830: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00266840: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00266850: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00266860: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00266870: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00266880: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00266890: 655f 7373 7364 5f69 6e73 7461 6c6c 6564  e_sssd_installed
│ │ │ +002668a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00266960: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00266970: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +00266610: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00266620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00266660: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00266670: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +00266a40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00266a50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00266aa0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ +00266ab0: 7373 640a 0a63 6c61 7373 2069 6e73 7461  ssd..class insta
│ │ │ +00266ac0: 6c6c 5f73 7373 6420 7b0a 2020 7061 636b  ll_sssd {.  pack
│ │ │ +00266ad0: 6167 6520 7b20 2773 7373 6427 3a0a 2020  age { 'sssd':.  
│ │ │ +00266ae0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00266af0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +00266b00: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00266b10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +00266bc0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +00266bd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00266be0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +00266c20: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00266c30: 203d 2022 7373 7364 220a 7665 7273 696f   = "sssd".versio
│ │ │ +00266c40: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  00266c50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
│ │ │ -00267e70: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00267e80: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00267e90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -00267ee0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00267ef0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ -00267f00: 205b 2273 7373 6422 5d0a 3c2f 636f 6465   ["sssd"].
Remedi │ │ │ -00267fc0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00267fd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00267fe0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00268010: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ +00266a20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00266a30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00266a70: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00266a80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00268080: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002680a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -002680d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -002680f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00268060: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00268070: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002680b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002680c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00268110: 656e 6162 6c65 5f73 7373 640a 0a63 6c61 enable_sssd..cla │ │ │ -00268120: 7373 2065 6e61 626c 655f 7373 7364 207b ss enable_sssd { │ │ │ -00268130: 0a20 2073 6572 7669 6365 207b 2773 7373 . service {'sss │ │ │ -00268140: 6427 3a0a 2020 2020 656e 6162 6c65 203d d':. enable = │ │ │ -00268150: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ -00268160: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ -00268170: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.
│ │ │ -00268190: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00268230: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00268240: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00268250: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -002682f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00268340: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002682d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00268300: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00268320: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00268330: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00268350: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00268360: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00268380: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00268390: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002683a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002683b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002683c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002683d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -002683e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002683f0: 4941 2d35 2831 3029 0a20 202d 2065 6e61  IA-5(10).  - ena
│ │ │ -00268400: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00268410: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00268420: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00268430: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00268440: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00268450: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00268460: 7365 7276 6963 655f 7373 7364 5f65 6e61  service_sssd_ena
│ │ │ -00268470: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -00268480: 6162 6c65 2074 6865 2053 5353 4420 5365  able the SSSD Se
│ │ │ -00268490: 7276 6963 6520 2d20 456e 6162 6c65 2073  rvice - Enable s
│ │ │ -002684a0: 6572 7669 6365 2073 7373 640a 2020 626c  ervice sssd.  bl
│ │ │ -002684b0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -002684c0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -002684d0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -002684e0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002684f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00268500: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00268510: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00268520: 6520 7468 6520 5353 5344 2053 6572 7669  e the SSSD Servi
│ │ │ -00268530: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -00268540: 6963 6520 7373 7364 0a20 2020 2061 6e73  ice sssd.    ans
│ │ │ -00268550: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00268560: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00268570: 3a20 7373 7364 0a20 2020 2020 2065 6e61  : sssd.      ena
│ │ │ -00268580: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00268590: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -002685a0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -002685b0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -002685c0: 2020 2d20 2722 7373 7364 2d63 6f6d 6d6f    - '"sssd-commo
│ │ │ -002685d0: 6e22 2069 6e20 616e 7369 626c 655f 6661  n" in ansible_fa
│ │ │ -002685e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -002685f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00268600: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00268610: 2d20 4e49 5354 2d38 3030 2d35 332d 4941  - NIST-800-53-IA
│ │ │ -00268620: 2d35 2831 3029 0a20 202d 2065 6e61 626c  -5(10).  - enabl
│ │ │ -00268630: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00268640: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00268650: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00268660: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00268670: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00268680: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00268690: 7276 6963 655f 7373 7364 5f65 6e61 626c  rvice_sssd_enabl
│ │ │ -002686a0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002686b0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -002686c0: 6865 6e3a 0a20 202d 2027 2273 7373 642d  hen:.  - '"sssd-
│ │ │ -002686d0: 636f 6d6d 6f6e 2220 696e 2061 6e73 6962  common" in ansib
│ │ │ -002686e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002686f0: 7327 0a20 202d 2028 2022 7373 7364 2d63  s'.  - ( "sssd-c
│ │ │ -00268700: 6f6d 6d6f 6e22 2069 6e20 616e 7369 626c  ommon" in ansibl
│ │ │ -00268710: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00268720: 2061 6e64 2022 6c69 6e75 782d 6261 7365   and "linux-base
│ │ │ -00268730: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00268740: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ -00268750: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ).
< │ │ │ +00267e70: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00267e80: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00267e90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00267f60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00267f70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00267fc0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00267fd0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00267fe0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00267ff0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00268000: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00268010: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00268020: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00268030: 3533 2d49 412d 3528 3130 290a 2020 2d20  53-IA-5(10).  - 
│ │ │ +00268040: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00268050: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00268060: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00268070: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00268080: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00268090: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002680a0: 202d 2073 6572 7669 6365 5f73 7373 645f   - service_sssd_
│ │ │ +002680b0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +002680c0: 2045 6e61 626c 6520 7468 6520 5353 5344   Enable the SSSD
│ │ │ +002680d0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +002680e0: 6520 7365 7276 6963 6520 7373 7364 0a20  e service sssd. 
│ │ │ +002680f0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00268100: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00268110: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00268120: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00268130: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00268140: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00268150: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00268160: 6162 6c65 2074 6865 2053 5353 4420 5365  able the SSSD Se
│ │ │ +00268170: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +00268180: 6572 7669 6365 2073 7373 640a 2020 2020  ervice sssd.    
│ │ │ +00268190: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002681a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002681b0: 616d 653a 2073 7373 640a 2020 2020 2020  ame: sssd.      
│ │ │ +002681c0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +002681d0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +002681e0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +002681f0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +00268200: 0a20 2020 202d 2027 2273 7373 642d 636f  .    - '"sssd-co
│ │ │ +00268210: 6d6d 6f6e 2220 696e 2061 6e73 6962 6c65  mmon" in ansible
│ │ │ +00268220: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00268230: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00268240: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00268250: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00268260: 2d49 412d 3528 3130 290a 2020 2d20 656e  -IA-5(10).  - en
│ │ │ +00268270: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00268280: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00268290: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002682a0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002682b0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002682c0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002682d0: 2073 6572 7669 6365 5f73 7373 645f 656e   service_sssd_en
│ │ │ +002682e0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +002682f0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00268300: 2020 7768 656e 3a0a 2020 2d20 2722 7373    when:.  - '"ss
│ │ │ +00268310: 7364 2d63 6f6d 6d6f 6e22 2069 6e20 616e  sd-common" in an
│ │ │ +00268320: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00268330: 6167 6573 270a 2020 2d20 2820 2273 7373  ages'.  - ( "sss
│ │ │ +00268340: 642d 636f 6d6d 6f6e 2220 696e 2061 6e73  d-common" in ans
│ │ │ +00268350: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00268360: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ +00268370: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00268380: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ +00268390: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).Remediation
│ │ │ +00268450: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +00268460: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00268530: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00268580: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:low
Disrup │ │ │ +00267f40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00267f50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00267f90: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00267fa0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +002684f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00268510: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00268560: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00268570: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +002685a0: 655f 7373 7364 0a0a 636c 6173 7320 656e  e_sssd..class en
│ │ │ +002685b0: 6162 6c65 5f73 7373 6420 7b0a 2020 7365  able_sssd {.  se
│ │ │ +002685c0: 7276 6963 6520 7b27 7373 7364 273a 0a20  rvice {'sssd':. 
│ │ │ +002685d0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +002685e0: 7472 7565 2c0a 2020 2020 656e 7375 7265  true,.    ensure
│ │ │ +002685f0: 203d 2667 743b 2027 7275 6e6e 696e 6727   => 'running'
│ │ │ +00268600: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00268610: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +002686c0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +002686d0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +002686e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00268730: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ +00268740: 6e61 626c 6564 203d 205b 2273 7373 6422  nabled = ["sssd"
│ │ │ +00268750: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00268760: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -003f48d0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -003f48e0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -003f48f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -003f4900: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -003f4910: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -003f4920: 7365 2220 6964 3d22 6964 3130 3235 223e se" id="id1025"> │ │ │ -003f4930: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -003f4940: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -003f4950: 2261 7564 6974 6422 0a76 6572 7369 6f6e  "auditd".version
│ │ │ -003f4960: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediat │ │ │ -003f4a20: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -003f4a30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -003f4a70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -003f4a80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -003f4a90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -003f4aa0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -003f4ab0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -003f4ac0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -003f4ad0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -003f4b10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -003f4b20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -003f4b40: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -003f4b50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -003f4b70: 6e73 7461 6c6c 5f61 7564 6974 640a 0a63  nstall_auditd..c
│ │ │ -003f4b80: 6c61 7373 2069 6e73 7461 6c6c 5f61 7564  lass install_aud
│ │ │ -003f4b90: 6974 6420 7b0a 2020 7061 636b 6167 6520  itd {.  package 
│ │ │ -003f4ba0: 7b20 2761 7564 6974 6427 3a0a 2020 2020  { 'auditd':.    
│ │ │ -003f4bb0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -003f4bc0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -003f4bd0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -003f4c90: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -003f4ca0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -003f4d20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -003f4d40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -003f4d90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -003f4de0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -003f4df0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -003f4e00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -003f4e10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -003f4e20: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -003f4e30: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -003f4e40: 302d 3533 2d41 552d 3132 2832 290a 2020  0-53-AU-12(2).  
│ │ │ -003f4e50: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -003f4e60: 2d31 340a 2020 2d20 4e49 5354 2d38 3030  -14.  - NIST-800
│ │ │ -003f4e70: 2d35 332d 4155 2d32 2861 290a 2020 2d20  -53-AU-2(a).  - 
│ │ │ -003f4e80: 4e49 5354 2d38 3030 2d35 332d 4155 2d37  NIST-800-53-AU-7
│ │ │ -003f4e90: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -003f4ea0: 2d35 332d 4155 2d37 2832 290a 2020 2d20  -53-AU-7(2).  - 
│ │ │ -003f4eb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -003f4ec0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -003f4ed0: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ -003f4ee0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ -003f4ef0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ -003f4f00: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -003f4f10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -003f4f20: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -003f4f30: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -003f4f40: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -003f4f50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -003f4f60: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -003f4f70: 6175 6469 745f 696e 7374 616c 6c65 640a  audit_installed.
│ │ │ -003f4f80: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ -003f4f90: 6175 6469 7464 2069 7320 696e 7374 616c  auditd is instal
│ │ │ -003f4fa0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -003f4fb0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -003f4fc0: 2020 206e 616d 653a 2061 7564 6974 640a     name: auditd.
│ │ │ -003f4fd0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -003f4fe0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -003f4ff0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -003f5000: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -003f5010: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -003f5020: 4e49 5354 2d38 3030 2d35 332d 4143 2d37  NIST-800-53-AC-7
│ │ │ -003f5030: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -003f5040: 2d35 332d 4155 2d31 3228 3229 0a20 202d  -53-AU-12(2).  -
│ │ │ -003f5050: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -003f5060: 3134 0a20 202d 204e 4953 542d 3830 302d  14.  - NIST-800-
│ │ │ -003f5070: 3533 2d41 552d 3228 6129 0a20 202d 204e  53-AU-2(a).  - N
│ │ │ -003f5080: 4953 542d 3830 302d 3533 2d41 552d 3728  IST-800-53-AU-7(
│ │ │ -003f5090: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -003f50a0: 3533 2d41 552d 3728 3229 0a20 202d 204e  53-AU-7(2).  - N
│ │ │ -003f50b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -003f50c0: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -003f50d0: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ -003f50e0: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ -003f50f0: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ -003f5100: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -003f5110: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -003f5120: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -003f5130: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -003f5140: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -003f5150: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -003f5160: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -003f5170: 7564 6974 5f69 6e73 7461 6c6c 6564 0a3c  udit_installed.<
│ │ │ +003f48d0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +003f48e0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -003f4d50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -003f4d60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -003f4da0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -003f4db0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +003f4980: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +003f4a20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +003f4a30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +003f4a40: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +003f4a50: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +003f4a60: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +003f4a70: 5354 2d38 3030 2d35 332d 4143 2d37 2861  ST-800-53-AC-7(a
│ │ │ +003f4a80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +003f4a90: 332d 4155 2d31 3228 3229 0a20 202d 204e  3-AU-12(2).  - N
│ │ │ +003f4aa0: 4953 542d 3830 302d 3533 2d41 552d 3134  IST-800-53-AU-14
│ │ │ +003f4ab0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003f4ac0: 2d41 552d 3228 6129 0a20 202d 204e 4953  -AU-2(a).  - NIS
│ │ │ +003f4ad0: 542d 3830 302d 3533 2d41 552d 3728 3129  T-800-53-AU-7(1)
│ │ │ +003f4ae0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003f4af0: 2d41 552d 3728 3229 0a20 202d 204e 4953  -AU-7(2).  - NIS
│ │ │ +003f4b00: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +003f4b10: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +003f4b20: 2d31 302e 310a 2020 2d20 5043 492d 4453  -10.1.  - PCI-DS
│ │ │ +003f4b30: 5376 342d 3130 2e32 0a20 202d 2050 4349  Sv4-10.2.  - PCI
│ │ │ +003f4b40: 2d44 5353 7634 2d31 302e 322e 310a 2020  -DSSv4-10.2.1.  
│ │ │ +003f4b50: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +003f4b60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +003f4b70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +003f4b80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +003f4b90: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +003f4ba0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +003f4bb0: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ +003f4bc0: 6974 5f69 6e73 7461 6c6c 6564 0a0a 2d20  it_installed..- 
│ │ │ +003f4bd0: 6e61 6d65 3a20 456e 7375 7265 2061 7564  name: Ensure aud
│ │ │ +003f4be0: 6974 6420 6973 2069 6e73 7461 6c6c 6564  itd is installed
│ │ │ +003f4bf0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +003f4c00: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +003f4c10: 6e61 6d65 3a20 6175 6469 7464 0a20 2020  name: auditd.   
│ │ │ +003f4c20: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +003f4c30: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +003f4c40: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +003f4c50: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +003f4c60: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +003f4c70: 542d 3830 302d 3533 2d41 432d 3728 6129  T-800-53-AC-7(a)
│ │ │ +003f4c80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +003f4c90: 2d41 552d 3132 2832 290a 2020 2d20 4e49  -AU-12(2).  - NI
│ │ │ +003f4ca0: 5354 2d38 3030 2d35 332d 4155 2d31 340a  ST-800-53-AU-14.
│ │ │ +003f4cb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003f4cc0: 4155 2d32 2861 290a 2020 2d20 4e49 5354  AU-2(a).  - NIST
│ │ │ +003f4cd0: 2d38 3030 2d35 332d 4155 2d37 2831 290a  -800-53-AU-7(1).
│ │ │ +003f4ce0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +003f4cf0: 4155 2d37 2832 290a 2020 2d20 4e49 5354  AU-7(2).  - NIST
│ │ │ +003f4d00: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +003f4d10: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +003f4d20: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ +003f4d30: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ +003f4d40: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ +003f4d50: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +003f4d60: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +003f4d70: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +003f4d80: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +003f4d90: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +003f4da0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +003f4db0: 2020 2d20 7061 636b 6167 655f 6175 6469    - package_audi
│ │ │ +003f4dc0: 745f 696e 7374 616c 6c65 640a 3c2f 636f  t_installed.
< │ │ │ +003f4de0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +003f4df0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +003f4e00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +003f4e10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +003f4e20: 6431 3032 3622 2074 6162 696e 6465 783d d1026" tabindex= │ │ │ +003f4e30: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +003f4e40: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +003f4e50: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +003f4e60: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +003f4e70: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +003f4e80: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +003f4e90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +003f4ea0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +003f4970: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +003f49a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +003f49b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +003f49f0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +003f4a00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +003f4f40: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +003f4f90: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +003f4f20: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +003f4f50: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +003f4f70: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +003f4f80: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +003f4fa0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +003f4fb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +003f4fd0: 7564 6520 696e 7374 616c 6c5f 6175 6469  ude install_audi
│ │ │ +003f4fe0: 7464 0a0a 636c 6173 7320 696e 7374 616c  td..class instal
│ │ │ +003f4ff0: 6c5f 6175 6469 7464 207b 0a20 2070 6163  l_auditd {.  pac
│ │ │ +003f5000: 6b61 6765 207b 2027 6175 6469 7464 273a  kage { 'auditd':
│ │ │ +003f5010: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +003f5020: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +003f5030: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ +003f50f0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +003f5100: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +003f5110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]]
│ │ │ +003f5160: 0a6e 616d 6520 3d20 2261 7564 6974 6422  .name = "auditd"
│ │ │ +003f5170: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  003f5180: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remedi │ │ │ -003f6e20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -003f6e30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -003f6e40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -003f6e90: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -003f6ea0: 5d0a 656e 6162 6c65 6420 3d20 5b22 6175  ].enabled = ["au
│ │ │ -003f6eb0: 6469 7464 225d 0a3c 2f63 6f64 653e 3c2f  ditd"].
Remediat │ │ │ -003f6f70: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -003f6f80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -003f6fc0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -003f6fd0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -003f6fe0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -003f6ff0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -003f7000: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -003f7010: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -003f7020: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -003f7060: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -003f7070: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -003f7090: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -003f70a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -003f70c0: 6e61 626c 655f 6175 6469 7464 0a0a 636c  nable_auditd..cl
│ │ │ -003f70d0: 6173 7320 656e 6162 6c65 5f61 7564 6974  ass enable_audit
│ │ │ -003f70e0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -003f70f0: 6175 6469 7464 273a 0a20 2020 2065 6e61  auditd':.    ena
│ │ │ -003f7100: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -003f7110: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -003f7120: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -003f7130: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -003f7140: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -003f71f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -003f7200: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -003f7290: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -003f72b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -003f72d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -003f7300: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -003f7310: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -003f7320: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -003f7340: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -003f7350: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -003f7360: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -003f7370: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -003f7380: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ -003f7390: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -003f73a0: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ -003f73b0: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ -003f73c0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -003f73d0: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ -003f73e0: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ -003f73f0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -003f7400: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ -003f7410: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ -003f7420: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -003f7430: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ -003f7440: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ -003f7450: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -003f7460: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ -003f7470: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ -003f7480: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -003f7490: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003f74a0: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ -003f74b0: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ -003f74c0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -003f74d0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -003f74e0: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ -003f74f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -003f7500: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -003f7510: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -003f7520: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -003f7530: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -003f7540: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -003f7550: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ -003f7560: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -003f7570: 6e61 626c 6520 6175 6469 7464 2053 6572  nable auditd Ser
│ │ │ -003f7580: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -003f7590: 7276 6963 6520 6175 6469 7464 0a20 2062  rvice auditd.  b
│ │ │ -003f75a0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -003f75b0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -003f75c0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -003f75d0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -003f75e0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -003f75f0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -003f7600: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -003f7610: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -003f7620: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -003f7630: 6365 2061 7564 6974 640a 2020 2020 616e  ce auditd.    an
│ │ │ -003f7640: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -003f7650: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -003f7660: 653a 2061 7564 6974 640a 2020 2020 2020  e: auditd.      
│ │ │ -003f7670: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -003f7680: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -003f7690: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -003f76a0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -003f76b0: 0a20 2020 202d 2027 2261 7564 6974 6422  .    - '"auditd"
│ │ │ -003f76c0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -003f76d0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -003f76e0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e34  gs:.  - CJIS-5.4
│ │ │ -003f76f0: 2e31 2e31 0a20 202d 204e 4953 542d 3830  .1.1.  - NIST-80
│ │ │ -003f7700: 302d 3137 312d 332e 332e 310a 2020 2d20  0-171-3.3.1.  - 
│ │ │ -003f7710: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -003f7720: 2e32 0a20 202d 204e 4953 542d 3830 302d  .2.  - NIST-800-
│ │ │ -003f7730: 3137 312d 332e 332e 360a 2020 2d20 4e49  171-3.3.6.  - NI
│ │ │ -003f7740: 5354 2d38 3030 2d35 332d 4143 2d32 2867  ST-800-53-AC-2(g
│ │ │ -003f7750: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003f7760: 332d 4143 2d36 2839 290a 2020 2d20 4e49  3-AC-6(9).  - NI
│ │ │ -003f7770: 5354 2d38 3030 2d35 332d 4155 2d31 300a  ST-800-53-AU-10.
│ │ │ -003f7780: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -003f7790: 4155 2d31 3228 6329 0a20 202d 204e 4953  AU-12(c).  - NIS
│ │ │ -003f77a0: 542d 3830 302d 3533 2d41 552d 3134 2831  T-800-53-AU-14(1
│ │ │ -003f77b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -003f77c0: 332d 4155 2d32 2864 290a 2020 2d20 4e49  3-AU-2(d).  - NI
│ │ │ -003f77d0: 5354 2d38 3030 2d35 332d 4155 2d33 0a20  ST-800-53-AU-3. 
│ │ │ -003f77e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -003f77f0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -003f7800: 3830 302d 3533 2d53 492d 3428 3233 290a  800-53-SI-4(23).
│ │ │ -003f7810: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -003f7820: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -003f7830: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -003f7840: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -003f7850: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -003f7860: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -003f7870: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -003f7880: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -003f7890: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -003f78a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -003f78b0: 2020 2d20 7365 7276 6963 655f 6175 6469    - service_audi
│ │ │ -003f78c0: 7464 5f65 6e61 626c 6564 0a20 202d 2073  td_enabled.  - s
│ │ │ -003f78d0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -003f78e0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -003f78f0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -003f7900: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -003f7910: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ -003f7920: 6175 6469 7464 2220 696e 2061 6e73 6962  auditd" in ansib
│ │ │ -003f7930: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -003f7940: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +003f6e20: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +003f6e30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +003f6ec0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +003f6ed0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +003f6ef0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +003f6f10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +003f6f20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +003f6f60: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +003f6f70: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +003f6f80: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +003f6f90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +003f6fa0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +003f6fb0: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ +003f6fc0: 2e34 2e31 2e31 0a20 202d 204e 4953 542d .4.1.1. - NIST- │ │ │ +003f6fd0: 3830 302d 3137 312d 332e 332e 310a 2020 800-171-3.3.1. │ │ │ +003f6fe0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +003f6ff0: 2e33 2e32 0a20 202d 204e 4953 542d 3830 .3.2. - NIST-80 │ │ │ +003f7000: 302d 3137 312d 332e 332e 360a 2020 2d20 0-171-3.3.6. - │ │ │ +003f7010: 4e49 5354 2d38 3030 2d35 332d 4143 2d32 NIST-800-53-AC-2 │ │ │ +003f7020: 2867 290a 2020 2d20 4e49 5354 2d38 3030 (g). - NIST-800 │ │ │ +003f7030: 2d35 332d 4143 2d36 2839 290a 2020 2d20 -53-AC-6(9). - │ │ │ +003f7040: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ +003f7050: 300a 2020 2d20 4e49 5354 2d38 3030 2d35 0. - NIST-800-5 │ │ │ +003f7060: 332d 4155 2d31 3228 6329 0a20 202d 204e 3-AU-12(c). - N │ │ │ +003f7070: 4953 542d 3830 302d 3533 2d41 552d 3134 IST-800-53-AU-14 │ │ │ +003f7080: 2831 290a 2020 2d20 4e49 5354 2d38 3030 (1). - NIST-800 │ │ │ +003f7090: 2d35 332d 4155 2d32 2864 290a 2020 2d20 -53-AU-2(d). - │ │ │ +003f70a0: 4e49 5354 2d38 3030 2d35 332d 4155 2d33 NIST-800-53-AU-3 │ │ │ +003f70b0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +003f70c0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953 -CM-6(a). - NIS │ │ │ +003f70d0: 542d 3830 302d 3533 2d53 492d 3428 3233 T-800-53-SI-4(23 │ │ │ +003f70e0: 290a 2020 2d20 5043 492d 4453 532d 5265 ). - PCI-DSS-Re │ │ │ +003f70f0: 712d 3130 2e31 0a20 202d 2050 4349 2d44 q-10.1. - PCI-D │ │ │ +003f7100: 5353 7634 2d31 302e 320a 2020 2d20 5043 SSv4-10.2. - PC │ │ │ +003f7110: 492d 4453 5376 342d 3130 2e32 2e31 0a20 I-DSSv4-10.2.1. │ │ │ +003f7120: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ +003f7130: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +003f7140: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +003f7150: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +003f7160: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +003f7170: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +003f7180: 640a 2020 2d20 7365 7276 6963 655f 6175 d. - service_au │ │ │ +003f7190: 6469 7464 5f65 6e61 626c 6564 0a0a 2d20 ditd_enabled..- │ │ │ +003f71a0: 6e61 6d65 3a20 456e 6162 6c65 2061 7564 name: Enable aud │ │ │ +003f71b0: 6974 6420 5365 7276 6963 6520 2d20 456e itd Service - En │ │ │ +003f71c0: 6162 6c65 2073 6572 7669 6365 2061 7564 able service aud │ │ │ +003f71d0: 6974 640a 2020 626c 6f63 6b3a 0a0a 2020 itd. block:.. │ │ │ +003f71e0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074 - name: Gather t │ │ │ +003f71f0: 6865 2070 6163 6b61 6765 2066 6163 7473 he package facts │ │ │ +003f7200: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +003f7210: 6c74 696e 2e70 6163 6b61 6765 5f66 6163 ltin.package_fac │ │ │ +003f7220: 7473 3a0a 2020 2020 2020 6d61 6e61 6765 ts:. manage │ │ │ +003f7230: 723a 2061 7574 6f0a 0a20 202d 206e 616d r: auto.. - nam │ │ │ +003f7240: 653a 2045 6e61 626c 6520 6175 6469 7464 e: Enable auditd │ │ │ +003f7250: 2053 6572 7669 6365 202d 2045 6e61 626c Service - Enabl │ │ │ +003f7260: 6520 5365 7276 6963 6520 6175 6469 7464 e Service auditd │ │ │ +003f7270: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +003f7280: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ +003f7290: 2020 2020 6e61 6d65 3a20 6175 6469 7464 name: auditd │ │ │ +003f72a0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +003f72b0: 7472 7565 0a20 2020 2020 2073 7461 7465 true. state │ │ │ +003f72c0: 3a20 7374 6172 7465 640a 2020 2020 2020 : started. │ │ │ +003f72d0: 6d61 736b 6564 3a20 6661 6c73 650a 2020 masked: false. │ │ │ +003f72e0: 2020 7768 656e 3a0a 2020 2020 2d20 2722 when:. - '" │ │ │ +003f72f0: 6175 6469 7464 2220 696e 2061 6e73 6962 auditd" in ansib │ │ │ +003f7300: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +003f7310: 7327 0a20 2074 6167 733a 0a20 202d 2043 s'. tags:. - C │ │ │ +003f7320: 4a49 532d 352e 342e 312e 310a 2020 2d20 JIS-5.4.1.1. - │ │ │ +003f7330: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33 NIST-800-171-3.3 │ │ │ +003f7340: 2e31 0a20 202d 204e 4953 542d 3830 302d .1. - NIST-800- │ │ │ +003f7350: 3137 312d 332e 332e 320a 2020 2d20 4e49 171-3.3.2. - NI │ │ │ +003f7360: 5354 2d38 3030 2d31 3731 2d33 2e33 2e36 ST-800-171-3.3.6 │ │ │ +003f7370: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +003f7380: 2d41 432d 3228 6729 0a20 202d 204e 4953 -AC-2(g). - NIS │ │ │ +003f7390: 542d 3830 302d 3533 2d41 432d 3628 3929 T-800-53-AC-6(9) │ │ │ +003f73a0: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +003f73b0: 2d41 552d 3130 0a20 202d 204e 4953 542d -AU-10. - NIST- │ │ │ +003f73c0: 3830 302d 3533 2d41 552d 3132 2863 290a 800-53-AU-12(c). │ │ │ +003f73d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +003f73e0: 4155 2d31 3428 3129 0a20 202d 204e 4953 AU-14(1). - NIS │ │ │ +003f73f0: 542d 3830 302d 3533 2d41 552d 3228 6429 T-800-53-AU-2(d) │ │ │ +003f7400: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +003f7410: 2d41 552d 330a 2020 2d20 4e49 5354 2d38 -AU-3. - NIST-8 │ │ │ +003f7420: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +003f7430: 2d20 4e49 5354 2d38 3030 2d35 332d 5349 - NIST-800-53-SI │ │ │ +003f7440: 2d34 2832 3329 0a20 202d 2050 4349 2d44 -4(23). - PCI-D │ │ │ +003f7450: 5353 2d52 6571 2d31 302e 310a 2020 2d20 SS-Req-10.1. - │ │ │ +003f7460: 5043 492d 4453 5376 342d 3130 2e32 0a20 PCI-DSSv4-10.2. │ │ │ +003f7470: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ +003f7480: 322e 310a 2020 2d20 656e 6162 6c65 5f73 2.1. - enable_s │ │ │ +003f7490: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +003f74a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +003f74b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +003f74c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +003f74d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +003f74e0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +003f74f0: 6365 5f61 7564 6974 645f 656e 6162 6c65 ce_auditd_enable │ │ │ +003f7500: 640a 2020 2d20 7370 6563 6961 6c5f 7365 d. - special_se │ │ │ +003f7510: 7276 6963 655f 626c 6f63 6b0a 2020 7768 rvice_block. wh │ │ │ +003f7520: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d en:. - '"linux- │ │ │ +003f7530: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +003f7540: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +003f7550: 0a20 202d 2027 2261 7564 6974 6422 2069 . - '"auditd" i │ │ │ +003f7560: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +003f7570: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.
Remed │ │ │ +003f7630: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +003f7640: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +003f76d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +003f76e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +003f7700: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +003f7720: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +003f7730: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +003f7770: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +003f7780: 6520 656e 6162 6c65 5f61 7564 6974 640a e enable_auditd. │ │ │ +003f7790: 0a63 6c61 7373 2065 6e61 626c 655f 6175 .class enable_au │ │ │ +003f77a0: 6469 7464 207b 0a20 2073 6572 7669 6365 ditd {. service │ │ │ +003f77b0: 207b 2761 7564 6974 6427 3a0a 2020 2020 {'auditd':. │ │ │ +003f77c0: 656e 6162 6c65 203d 2667 743b 2074 7275 enable => tru │ │ │ +003f77d0: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +003f77e0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20 gt; 'running',. │ │ │ +003f77f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ +003f78b0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +003f78c0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +003f78d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +003f7920: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +003f7930: 6162 6c65 6420 3d20 5b22 6175 6469 7464  abled = ["auditd
│ │ │ +003f7940: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 003f7950: 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: │ │ │ │ @@ -168,14 +151,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 - │ │ │ │ @@ -1333,31 +1333,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: │ │ │ │ @@ -1384,14 +1367,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 - │ │ │ │ @@ -4556,31 +4556,14 @@ │ │ │ │ Rationale: password in resisting attempts 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -4601,14 +4584,31 @@ │ │ │ │ tags: │ │ │ │ - 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 - │ │ │ │ @@ -6135,31 +6135,14 @@ │ │ │ │ Control system will be available. │ │ │ │ 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- │ │ │ │ References: OS-000312-GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _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" │ │ │ │ -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: │ │ │ │ @@ -6169,14 +6152,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -6194,31 +6194,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_pam_apparmor_installed │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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-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_libpam-apparmor │ │ │ │ - │ │ │ │ -class install_libpam-apparmor { │ │ │ │ - package { 'libpam-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 libpam-apparmor is installed │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -6235,14 +6218,31 @@ │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_pam_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_libpam-apparmor │ │ │ │ + │ │ │ │ +class install_libpam-apparmor { │ │ │ │ + package { 'libpam-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 = "libpam-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 │ │ │ │ @@ -6425,31 +6425,14 @@ │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_apparmor_configured │ │ │ │ _n_i_s_t AC-3(4), AC-6(8), AC-6(10), CM-7(5)(b), CM-7(2), SC-7(21), CM-6(a) │ │ │ │ SRG-OS-000312-GPOS-00122, SRG-OS-000312-GPOS-00123, SRG-OS-000312-GPOS-00124, SRG- │ │ │ │ References: _o_s_-_s_r_g OS-000324-GPOS-00125, SRG-OS-000326-GPOS-00126, SRG-OS-000370-GPOS-00155, SRG-OS- │ │ │ │ 000480-GPOS-00230, SRG-OS-000480-GPOS-00227, SRG-OS-000480-GPOS-00231, SRG-OS- │ │ │ │ 000480-GPOS-00232 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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_ _A_n_s_i_b_l_e_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ - name: Start apparmor.service │ │ │ │ ansible.builtin.systemd: │ │ │ │ name: apparmor.service │ │ │ │ state: started │ │ │ │ enabled: true │ │ │ │ when: ansible_virtualization_type not in ["docker", "lxc", "openvz", "podman", "container"] │ │ │ │ @@ -6459,14 +6442,31 @@ │ │ │ │ - NIST-800-53-AC-6(8) │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - NIST-800-53-CM-7(2) │ │ │ │ - NIST-800-53-CM-7(5)(b) │ │ │ │ - NIST-800-53-SC-7(21) │ │ │ │ - apparmor_configured │ │ │ │ - medium_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:: 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"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree AAppppAArrmmoorr iiss eennaabblleedd iinn tthhee bboooottllooaaddeerr ccoonnffiigguurraattiioonn ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Configure AppArmor to be enabled at boot time and verify that it has not been overwritten by the │ │ │ │ bootloader boot parameters. Note: This recommendation is designed around the grub bootloader, if LILO │ │ │ │ or another bootloader is in use in your environment, enact equivalent settings. │ │ │ │ Rationale: AppArmor must be enabled at boot time in your bootloader configuration to ensure that the │ │ │ │ controls it provides are not overridden. │ │ │ │ Severity:  medium │ │ │ │ @@ -12019,31 +12019,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 │ │ │ │ _p_c_i_d_s_s Req-10.7 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ _p_c_i_d_s_s_4 10.5.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "logrotate" │ │ │ │ -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_logrotate │ │ │ │ - │ │ │ │ -class install_logrotate { │ │ │ │ - package { 'logrotate': │ │ │ │ - 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: │ │ │ │ @@ -12072,14 +12055,31 @@ │ │ │ │ - PCI-DSSv4-10.5.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_logrotate_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_logrotate │ │ │ │ + │ │ │ │ +class install_logrotate { │ │ │ │ + package { 'logrotate': │ │ │ │ + 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 = "logrotate" │ │ │ │ +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 - │ │ │ │ @@ -12425,31 +12425,14 @@ │ │ │ │ $ apt-get install rsyslog-gnutls │ │ │ │ Rationale: The rsyslog-gnutls package provides Transport Layer Security (TLS) support for the │ │ │ │ rsyslog daemon, which enables secure remote logging. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_rsyslog-gnutls_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000120-GPOS-00061 │ │ │ │ _a_n_s_s_i R71 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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-gnutls" │ │ │ │ -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-gnutls │ │ │ │ - │ │ │ │ -class install_rsyslog-gnutls { │ │ │ │ - package { 'rsyslog-gnutls': │ │ │ │ - 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: │ │ │ │ @@ -12470,14 +12453,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_rsyslog-gnutls_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-gnutls │ │ │ │ + │ │ │ │ +class install_rsyslog-gnutls { │ │ │ │ + package { 'rsyslog-gnutls': │ │ │ │ + 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-gnutls" │ │ │ │ +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 - │ │ │ │ @@ -12502,31 +12502,14 @@ │ │ │ │ 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: │ │ │ │ @@ -12549,14 +12532,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 - │ │ │ │ @@ -12585,31 +12585,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, │ │ │ │ A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -12646,14 +12629,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 - │ │ │ │ @@ -32877,27 +32877,14 @@ │ │ │ │ around configuration errors, unauthorized intrusions, and other potential errors. The │ │ │ │ setroubleshoot-plugins package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot-plugins │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot-plugins_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot-plugins │ │ │ │ - │ │ │ │ -class remove_setroubleshoot-plugins { │ │ │ │ - package { 'setroubleshoot-plugins': │ │ │ │ - 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: │ │ │ │ @@ -32919,14 +32906,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot-plugins_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_setroubleshoot-plugins │ │ │ │ + │ │ │ │ +class remove_setroubleshoot-plugins { │ │ │ │ + package { 'setroubleshoot-plugins': │ │ │ │ + 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 - │ │ │ │ @@ -32949,27 +32949,14 @@ │ │ │ │ information around configuration errors, unauthorized intrusions, and other potential errors. The │ │ │ │ setroubleshoot-server package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot-server │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot-server_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot-server │ │ │ │ - │ │ │ │ -class remove_setroubleshoot-server { │ │ │ │ - package { 'setroubleshoot-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: Gather the package facts │ │ │ │ package_facts: │ │ │ │ @@ -32991,14 +32978,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot-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_setroubleshoot-server │ │ │ │ + │ │ │ │ +class remove_setroubleshoot-server { │ │ │ │ + package { 'setroubleshoot-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 │ │ │ │ # Remediation is applicable only in certain platforms │ │ │ │ if dpkg-query --show --showformat='${db:Status-Status}' 'linux-base' 2>/dev/null | grep - │ │ │ │ @@ -33022,27 +33022,14 @@ │ │ │ │ setroubleshoot package can be removed with the following command: │ │ │ │ $ apt-get remove setroubleshoot │ │ │ │ Rationale: The SETroubleshoot service is an unnecessary daemon to have running on a server, │ │ │ │ especially if X Windows is removed or disabled. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_setroubleshoot_removed │ │ │ │ References: _a_n_s_s_i R49 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_setroubleshoot │ │ │ │ - │ │ │ │ -class remove_setroubleshoot { │ │ │ │ - package { 'setroubleshoot': │ │ │ │ - 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: │ │ │ │ @@ -33063,14 +33050,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_setroubleshoot_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_setroubleshoot │ │ │ │ + │ │ │ │ +class remove_setroubleshoot { │ │ │ │ + package { 'setroubleshoot': │ │ │ │ + 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 - │ │ │ │ @@ -33638,27 +33638,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33672,14 +33659,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -33693,27 +33693,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - 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 kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33722,14 +33709,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_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_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + 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 kea │ │ │ │ @@ -33921,27 +33921,14 @@ │ │ │ │ _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 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - 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: │ │ │ │ @@ -33968,14 +33955,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_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_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + 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 - │ │ │ │ @@ -34048,31 +34048,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -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_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - 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: │ │ │ │ @@ -34099,14 +34082,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_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_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + 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 = "chrony" │ │ │ │ +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 - │ │ │ │ @@ -34821,27 +34821,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: │ │ │ │ @@ -34872,14 +34859,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 - │ │ │ │ @@ -34913,27 +34913,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_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 │ │ │ │ _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_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - 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 NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34944,14 +34931,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_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_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + 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 ypbind-mt │ │ │ │ @@ -34989,27 +34989,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: │ │ │ │ @@ -35025,14 +35012,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 │ │ │ │ @@ -35073,27 +35073,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), IA-5(1)(c) │ │ │ │ _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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -35108,14 +35095,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 │ │ │ │ @@ -35138,27 +35138,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35170,14 +35157,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -35199,27 +35199,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_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), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-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 talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35230,14 +35217,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-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_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-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 talk-server │ │ │ │ @@ -35260,27 +35260,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: │ │ │ │ @@ -35291,14 +35278,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 │ │ │ │ @@ -35346,27 +35346,14 @@ │ │ │ │ _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 │ │ │ │ _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 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-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 telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35381,14 +35368,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-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_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-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 telnet-server │ │ │ │ @@ -35410,27 +35410,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: │ │ │ │ @@ -35442,14 +35429,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 │ │ │ │ @@ -35493,27 +35493,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35527,14 +35514,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -35553,27 +35553,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _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_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - 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 tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35584,14 +35571,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_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_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + 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 tftp │ │ │ │ @@ -36504,23 +36504,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 0640 /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: │ │ │ │ @@ -36584,14 +36575,23 @@ │ │ │ │ - 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 0640 /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 │ │ │ │ @@ -36631,23 +36631,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: │ │ │ │ @@ -36711,14 +36702,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 - │ │ │ │ @@ -36808,31 +36808,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -36855,14 +36838,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 - │ │ │ │ @@ -36892,31 +36892,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -36956,14 +36939,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 - │ │ │ │ @@ -73766,31 +73766,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -73831,14 +73814,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 - │ │ │ │ @@ -73899,31 +73899,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -73990,14 +73973,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-debian/ssg-debian12-guide-anssi_bp28_intermediary.html │ │ │ @@ -15031,133 +15031,133 @@ │ │ │ 0003ab60: 612d 7461 7267 6574 3d22 2369 6431 3522 a-target="#id15" │ │ │ 0003ab70: 2074 6162 696e 6465 783d 2230 2220 726f tabindex="0" ro │ │ │ 0003ab80: 6c65 3d22 6275 7474 6f6e 2220 6172 6961 le="button" aria │ │ │ 0003ab90: 2d65 7870 616e 6465 643d 2266 616c 7365 -expanded="false │ │ │ 0003aba0: 2220 7469 746c 653d 2241 6374 6976 6174 " title="Activat │ │ │ 0003abb0: 6520 746f 2072 6576 6561 6c22 2068 7265 e to reveal" hre │ │ │ 0003abc0: 663d 2223 2122 3e52 656d 6564 6961 7469 f="#!">Remediati │ │ │ -0003abd0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0003abe0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0003abf0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ -0003ac40: 6e61 6d65 203d 2022 6169 6465 220a 7665  name = "aide".ve
│ │ │ -0003ac50: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ -0003ac70: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003ac80: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003ac90: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003aca0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003acb0: 6431 3622 2074 6162 696e 6465 783d 2230 d16" tabindex="0 │ │ │ -0003acc0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003acd0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003ace0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003acf0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003ad00: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003ad10: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0003ad20: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003ad60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0003add0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0003adf0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0003ae20: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0003ae40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0003adb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0003adc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0003ae00: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0003ae10: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0003ae60: 696e 7374 616c 6c5f 6169 6465 0a0a 636c install_aide..cl │ │ │ -0003ae70: 6173 7320 696e 7374 616c 6c5f 6169 6465 ass install_aide │ │ │ -0003ae80: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -0003ae90: 6169 6465 273a 0a20 2020 2065 6e73 7572 aide':. ensur │ │ │ -0003aea0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -0003aeb0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedi │ │ │ -0003af70: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0003af80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003afc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0003b030: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0003b050: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0003b080: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0003b0a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0003b010: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0003b020: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0003b060: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0003b070: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0003b0c0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0003b0d0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0003b0e0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0003b0f0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0003b100: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31 gs:. - CJIS-5.1 │ │ │ -0003b110: 302e 312e 330a 2020 2d20 4e49 5354 2d38 0.1.3. - NIST-8 │ │ │ -0003b120: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -0003b130: 2d20 5043 492d 4453 532d 5265 712d 3131 - PCI-DSS-Req-11 │ │ │ -0003b140: 2e35 0a20 202d 2050 4349 2d44 5353 7634 .5. - PCI-DSSv4 │ │ │ -0003b150: 2d31 312e 352e 320a 2020 2d20 656e 6162 -11.5.2. - enab │ │ │ -0003b160: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -0003b170: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -0003b180: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -0003b190: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -0003b1a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -0003b1b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -0003b1c0: 6163 6b61 6765 5f61 6964 655f 696e 7374 ackage_aide_inst │ │ │ -0003b1d0: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ -0003b1e0: 6e73 7572 6520 6169 6465 2069 7320 696e nsure aide is in │ │ │ -0003b1f0: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ -0003b200: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ -0003b210: 653a 0a20 2020 206e 616d 653a 2061 6964 e:. name: aid │ │ │ -0003b220: 650a 2020 2020 7374 6174 653a 2070 7265 e. state: pre │ │ │ -0003b230: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ -0003b240: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ -0003b250: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ -0003b260: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ -0003b270: 2d20 434a 4953 2d35 2e31 302e 312e 330a - CJIS-5.10.1.3. │ │ │ -0003b280: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0003b290: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ -0003b2a0: 4453 532d 5265 712d 3131 2e35 0a20 202d DSS-Req-11.5. - │ │ │ -0003b2b0: 2050 4349 2d44 5353 7634 2d31 312e 352e PCI-DSSv4-11.5. │ │ │ -0003b2c0: 320a 2020 2d20 656e 6162 6c65 5f73 7472 2. - enable_str │ │ │ -0003b2d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0003b2e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0003b2f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0003b300: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -0003b310: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0003b320: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ -0003b330: 5f61 6964 655f 696e 7374 616c 6c65 640a _aide_installed. │ │ │ +0003abd0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0003abe0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +0003ac60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0003ac70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0003ac90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0003aca0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0003acc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0003ace0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0003ad10: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0003ad20: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0003ad30: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0003ad40: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0003ad50: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0003ad60: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ +0003ad70: 2e33 0a20 202d 204e 4953 542d 3830 302d  .3.  - NIST-800-
│ │ │ +0003ad80: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +0003ad90: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ +0003ada0: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ +0003adb0: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ +0003adc0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0003add0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0003ade0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0003adf0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0003ae00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0003ae10: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0003ae20: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ +0003ae30: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +0003ae40: 7265 2061 6964 6520 6973 2069 6e73 7461  re aide is insta
│ │ │ +0003ae50: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +0003ae60: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0003ae70: 2020 2020 6e61 6d65 3a20 6169 6465 0a20      name: aide. 
│ │ │ +0003ae80: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0003ae90: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0003aea0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0003aeb0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0003aec0: 7327 0a20 2074 6167 733a 0a20 202d 2043  s'.  tags:.  - C
│ │ │ +0003aed0: 4a49 532d 352e 3130 2e31 2e33 0a20 202d  JIS-5.10.1.3.  -
│ │ │ +0003aee0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0003aef0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +0003af00: 2d52 6571 2d31 312e 350a 2020 2d20 5043  -Req-11.5.  - PC
│ │ │ +0003af10: 492d 4453 5376 342d 3131 2e35 2e32 0a20  I-DSSv4-11.5.2. 
│ │ │ +0003af20: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0003af30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0003af40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0003af50: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0003af60: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0003af70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0003af80: 640a 2020 2d20 7061 636b 6167 655f 6169  d.  - package_ai
│ │ │ +0003af90: 6465 5f69 6e73 7461 6c6c 6564 0a3c 2f63  de_installed.
│ │ │ +0003afb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +0003b050: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0003b060: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0003b110: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0003b130: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0003b160: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0003b0f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0003b100: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0003b120: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0003b140: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0003b150: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

< │ │ │ +0003b210: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0003b220: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0003b230: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0003b240: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0003b250: 6431 3722 2074 6162 696e 6465 783d 2230 d17" tabindex="0 │ │ │ +0003b260: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +0003b270: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +0003b280: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +0003b290: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +0003b2a0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +0003b2b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0003b2c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0003b2d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ +0003b310: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0003b320: 735d 5d0a 6e61 6d65 203d 2022 6169 6465  s]].name = "aide
│ │ │ +0003b330: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  0003b340: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -00044ad0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00044ae0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -00044b30: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -00044b40: 6520 3d20 2273 7564 6f22 0a76 6572 7369  e = "sudo".versi
│ │ │ -00044b50: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -00044b60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00044c10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00044c20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00044ca0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00044cb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00044cd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00044ce0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00044d00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00044d20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00044d50: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00044d60: 7461 6c6c 5f73 7564 6f0a 0a63 6c61 7373  tall_sudo..class
│ │ │ -00044d70: 2069 6e73 7461 6c6c 5f73 7564 6f20 7b0a   install_sudo {.
│ │ │ -00044d80: 2020 7061 636b 6167 6520 7b20 2773 7564    package { 'sud
│ │ │ -00044d90: 6f27 3a0a 2020 2020 656e 7375 7265 203d  o':.    ensure =
│ │ │ -00044da0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00044db0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00044dc0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00044e70: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00044e80: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00044f00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00044f10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00044f30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00044f40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00044f60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00044f80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00044fb0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00044fc0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00044fd0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00044fe0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00044ff0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00045000: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00045010: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00045020: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00045030: 4349 2d44 5353 7634 2d32 2e32 2e36 0a20  CI-DSSv4-2.2.6. 
│ │ │ -00045040: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00045050: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00045060: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00045070: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00045080: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00045090: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000450a0: 640a 2020 2d20 7061 636b 6167 655f 7375  d.  - package_su
│ │ │ -000450b0: 646f 5f69 6e73 7461 6c6c 6564 0a0a 2d20  do_installed..- 
│ │ │ -000450c0: 6e61 6d65 3a20 456e 7375 7265 2073 7564  name: Ensure sud
│ │ │ -000450d0: 6f20 6973 2069 6e73 7461 6c6c 6564 0a20  o is installed. 
│ │ │ -000450e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000450f0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00045100: 6d65 3a20 7375 646f 0a20 2020 2073 7461  me: sudo.    sta
│ │ │ -00045110: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00045120: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00045130: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00045140: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00045150: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00045160: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00045170: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00045180: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00045190: 2e36 0a20 202d 2065 6e61 626c 655f 7374  .6.  - enable_st
│ │ │ -000451a0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000451b0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000451c0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000451d0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000451e0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000451f0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00045200: 655f 7375 646f 5f69 6e73 7461 6c6c 6564  e_sudo_installed
│ │ │ +00044ad0: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +00044ae0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
│ │ │ +00044b60: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00044b80: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00044bd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00044c00: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +00044c20: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +00044c30: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +00044c40: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +00044c50: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +00044c60: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00044c70: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +00044c80: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00044c90: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +00044ca0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00044cb0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00044cc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00044cd0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00044ce0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00044cf0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00044d00: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ +00044d10: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00044d20: 653a 2045 6e73 7572 6520 7375 646f 2069  e: Ensure sudo i
│ │ │ +00044d30: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +00044d40: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00044d50: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +00044d60: 2073 7564 6f0a 2020 2020 7374 6174 653a   sudo.    state:
│ │ │ +00044d70: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +00044d80: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00044d90: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00044da0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00044db0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00044dc0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00044dd0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00044de0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +00044df0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00044e00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00044e10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00044e20: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00044e30: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00044e40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00044e50: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +00044e60: 7564 6f5f 696e 7374 616c 6c65 640a 3c2f  udo_installed.
Rem │ │ │ +00044f20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00044f30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00044f40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +00044b70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00044b90: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00044be0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00044bf0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Comp │ │ │ +00044fc0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00044fd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00044ff0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00045010: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00045020: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00045060: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00045070: 6520 696e 7374 616c 6c5f 7375 646f 0a0a e install_sudo.. │ │ │ +00045080: 636c 6173 7320 696e 7374 616c 6c5f 7375 class install_su │ │ │ +00045090: 646f 207b 0a20 2070 6163 6b61 6765 207b do {. package { │ │ │ +000450a0: 2027 7375 646f 273a 0a20 2020 2065 6e73 'sudo':. ens │ │ │ +000450b0: 7572 6520 3d26 6774 3b20 2769 6e73 7461 ure => 'insta │ │ │ +000450c0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63 lled',. }.}.
│ │ │ +000450e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00045180: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00045190: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000451a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +000451f0: 6573 5d5d 0a6e 616d 6520 3d20 2273 7564  es]].name = "sud
│ │ │ +00045200: 6f22 0a76 6572 7369 6f6e 203d 2022 2a22  o".version = "*"
│ │ │  00045210: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OS │ │ │ -000793d0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000793e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000793f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -00079430: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -00079440: 203d 2022 6c69 6270 616d 2d70 7771 7561   = "libpam-pwqua
│ │ │ -00079450: 6c69 7479 220a 7665 7273 696f 6e20 3d20  lity".version = 
│ │ │ -00079460: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -00079520: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00079530: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000795b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000795d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00079620: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00079650: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00079670: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ -00079680: 7479 0a0a 636c 6173 7320 696e 7374 616c  ty..class instal
│ │ │ -00079690: 6c5f 6c69 6270 616d 2d70 7771 7561 6c69  l_libpam-pwquali
│ │ │ -000796a0: 7479 207b 0a20 2070 6163 6b61 6765 207b  ty {.  package {
│ │ │ -000796b0: 2027 6c69 6270 616d 2d70 7771 7561 6c69   'libpam-pwquali
│ │ │ -000796c0: 7479 273a 0a20 2020 2065 6e73 7572 6520  ty':.    ensure 
│ │ │ -000796d0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -000796e0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -000796f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000797a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -000797b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000797c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000797f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:< │ │ │ -000795c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000795e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00079630: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00079640: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00079860: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00079880: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000798b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000798d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00079840: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00079850: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00079890: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000798a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -000798f0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00079900: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00079910: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00079920: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00079930: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00079940: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00079950: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00079960: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00079970: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00079980: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00079990: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -000799a0: 6765 5f70 616d 5f70 7771 7561 6c69 7479 ge_pam_pwquality │ │ │ -000799b0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ -000799c0: 6d65 3a20 456e 7375 7265 206c 6962 7061 me: Ensure libpa │ │ │ -000799d0: 6d2d 7077 7175 616c 6974 7920 6973 2069 m-pwquality is i │ │ │ -000799e0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ -000799f0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00079a00: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69 ge:. name: li │ │ │ -00079a10: 6270 616d 2d70 7771 7561 6c69 7479 0a20 bpam-pwquality. │ │ │ -00079a20: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -00079a30: 740a 2020 7768 656e 3a20 2722 6c69 6270 t. when: '"libp │ │ │ -00079a40: 616d 2d72 756e 7469 6d65 2220 696e 2061 am-runtime" in a │ │ │ -00079a50: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -00079a60: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ -00079a70: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -00079a80: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00079a90: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00079aa0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00079ab0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00079ac0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00079ad0: 640a 2020 2d20 7061 636b 6167 655f 7061 d. - package_pa │ │ │ -00079ae0: 6d5f 7077 7175 616c 6974 795f 696e 7374 m_pwquality_inst │ │ │ -00079af0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediation An │ │ │ +000793d0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +000793e0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00079460: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00079480: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000794d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00079520: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00079530: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00079540: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00079550: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00079560: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00079570: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00079580: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00079590: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000795a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000795b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000795c0: 2020 2d20 7061 636b 6167 655f 7061 6d5f    - package_pam_
│ │ │ +000795d0: 7077 7175 616c 6974 795f 696e 7374 616c  pwquality_instal
│ │ │ +000795e0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +000795f0: 7572 6520 6c69 6270 616d 2d70 7771 7561  ure libpam-pwqua
│ │ │ +00079600: 6c69 7479 2069 7320 696e 7374 616c 6c65  lity is installe
│ │ │ +00079610: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +00079620: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00079630: 206e 616d 653a 206c 6962 7061 6d2d 7077   name: libpam-pw
│ │ │ +00079640: 7175 616c 6974 790a 2020 2020 7374 6174  quality.    stat
│ │ │ +00079650: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +00079660: 6e3a 2027 226c 6962 7061 6d2d 7275 6e74  n: '"libpam-runt
│ │ │ +00079670: 696d 6522 2069 6e20 616e 7369 626c 655f  ime" in ansible_
│ │ │ +00079680: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00079690: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000796a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000796b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000796c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000796d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000796e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000796f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00079700: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ +00079710: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a3c  lity_installed.<
│ │ │ +00079720: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000797d0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000797e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00079490: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000794a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000794e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000794f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00079880: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00079890: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000798e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00079920: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ +00079930: 7061 6d2d 7077 7175 616c 6974 790a 0a63  pam-pwquality..c
│ │ │ +00079940: 6c61 7373 2069 6e73 7461 6c6c 5f6c 6962  lass install_lib
│ │ │ +00079950: 7061 6d2d 7077 7175 616c 6974 7920 7b0a  pam-pwquality {.
│ │ │ +00079960: 2020 7061 636b 6167 6520 7b20 276c 6962    package { 'lib
│ │ │ +00079970: 7061 6d2d 7077 7175 616c 6974 7927 3a0a  pam-pwquality':.
│ │ │ +00079980: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00079990: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000799a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00079a60: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00079a70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

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

Remediatio │ │ │ -001ad860: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -001ad870: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -001ad930: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001ad940: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +00079870: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000798a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000798b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000798f0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00079900: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ -001ad900: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -001ad920: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -001ad950: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -001ad970: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001ad9a0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -001ad9b0: 6d6f 7665 5f64 6863 700a 0a63 6c61 7373  move_dhcp..class
│ │ │ -001ad9c0: 2072 656d 6f76 655f 6468 6370 207b 0a20   remove_dhcp {. 
│ │ │ -001ad9d0: 2070 6163 6b61 6765 207b 2027 6468 6370   package { 'dhcp
│ │ │ -001ad9e0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -001ad9f0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -001ada00: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -001adac0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001adad0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001adb60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001adb80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001adba0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001adbd0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001adbe0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -001adc10: 6e73 7461 6c6c 2044 4843 5020 5365 7276  nstall DHCP Serv
│ │ │ -001adc20: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -001adc30: 7265 2064 6863 7020 6973 2072 656d 6f76  re dhcp is remov
│ │ │ -001adc40: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -001adc50: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -001adc60: 2020 206e 616d 653a 2064 6863 700a 2020     name: dhcp.  
│ │ │ -001adc70: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -001adc80: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -001adc90: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -001adca0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001adcb0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -001adcc0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -001adcd0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001adce0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -001adcf0: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -001add00: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001add10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001add20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001add30: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001add40: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001add50: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -001add60: 636b 6167 655f 6468 6370 5f72 656d 6f76  ckage_dhcp_remov
│ │ │ -001add70: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +001ad860: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +001ad870: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +001ad8f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001ad900: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001ad920: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001ad930: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001ad950: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001ad970: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +001ad9a0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +001ad9b0: 6e69 6e73 7461 6c6c 2044 4843 5020 5365  ninstall DHCP Se
│ │ │ +001ad9c0: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ +001ad9d0: 7375 7265 2064 6863 7020 6973 2072 656d  sure dhcp is rem
│ │ │ +001ad9e0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001ad9f0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001ada00: 0a20 2020 206e 616d 653a 2064 6863 700a  .    name: dhcp.
│ │ │ +001ada10: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +001ada20: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +001ada30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +001ada40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001ada50: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +001ada60: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +001ada70: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +001ada80: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +001ada90: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +001adaa0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001adab0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001adac0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001adad0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +001adae0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +001adaf0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001adb00: 7061 636b 6167 655f 6468 6370 5f72 656d  package_dhcp_rem
│ │ │ +001adb10: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +001adbd0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +001adbe0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +001adc70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001adc90: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001adcb0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +001adce0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001adcf0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +001add20: 6f76 655f 6468 6370 0a0a 636c 6173 7320  ove_dhcp..class 
│ │ │ +001add30: 7265 6d6f 7665 5f64 6863 7020 7b0a 2020  remove_dhcp {.  
│ │ │ +001add40: 7061 636b 6167 6520 7b20 2764 6863 7027  package { 'dhcp'
│ │ │ +001add50: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +001add60: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +001add70: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 001add80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pup │ │ │ -001ae860: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001ae870: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001ae940: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001ae950: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001ae9a0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -001ae9b0: 6b65 610a 0a63 6c61 7373 2072 656d 6f76  kea..class remov
│ │ │ -001ae9c0: 655f 6b65 6120 7b0a 2020 7061 636b 6167  e_kea {.  packag
│ │ │ -001ae9d0: 6520 7b20 276b 6561 273a 0a20 2020 2065  e { 'kea':.    e
│ │ │ -001ae9e0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -001ae9f0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -001aea10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001aea20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001aea30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001aea40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001aea50: 6435 3339 2220 7461 6269 6e64 6578 3d22 d539" tabindex=" │ │ │ -001aea60: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001aea70: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001aea80: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001aea90: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001aeaa0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001aeab0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001aeac0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001aead0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -001ae920: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001ae930: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001ae970: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001ae980: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -001aeb50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001aeb80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001aeba0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001aebb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001aebd0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001aebe0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001aec00: 6d65 3a20 2755 6e69 6e73 7461 6c6c 206b  me: 'Uninstall k
│ │ │ -001aec10: 6561 2050 6163 6b61 6765 3a20 456e 7375  ea Package: Ensu
│ │ │ -001aec20: 7265 206b 6561 2069 7320 7265 6d6f 7665  re kea is remove
│ │ │ -001aec30: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -001aec40: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -001aec50: 2020 6e61 6d65 3a20 6b65 610a 2020 2020    name: kea.    
│ │ │ -001aec60: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -001aec70: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -001aec80: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001aec90: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001aeca0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001aecb0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -001aecc0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -001aecd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -001aece0: 636b 6167 655f 6b65 615f 7265 6d6f 7665  ckage_kea_remove
│ │ │ -001aecf0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +001ae850: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +001ae860: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +001ae870: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61

Complexity: │ │ │ +001ae940: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001ae950: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +001ae9b0: 616c 6c20 6b65 6120 5061 636b 6167 653a  all kea Package:
│ │ │ +001ae9c0: 2045 6e73 7572 6520 6b65 6120 6973 2072   Ensure kea is r
│ │ │ +001ae9d0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +001ae9e0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +001ae9f0: 653a 0a20 2020 206e 616d 653a 206b 6561  e:.    name: kea
│ │ │ +001aea00: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +001aea10: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +001aea20: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001aea30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001aea40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001aea50: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001aea60: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001aea70: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001aea80: 202d 2070 6163 6b61 6765 5f6b 6561 5f72   - package_kea_r
│ │ │ +001aea90: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +001aeb50: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +001aeb60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +001aebe0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001aec20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +001ae920: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001ae930: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001ae970: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001ae980: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +001aebf0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001aec10: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001aec40: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001aec60: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001aec90: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +001aeca0: 656d 6f76 655f 6b65 610a 0a63 6c61 7373  emove_kea..class
│ │ │ +001aecb0: 2072 656d 6f76 655f 6b65 6120 7b0a 2020   remove_kea {.  
│ │ │ +001aecc0: 7061 636b 6167 6520 7b20 276b 6561 273a  package { 'kea':
│ │ │ +001aecd0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001aece0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +001aecf0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 001aed00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediati │ │ │ -001b34f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -001b3500: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001b3580: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -001b3590: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -001b35b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -001b35c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -001b35e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -001b3600: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -001b3630: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -001b3640: 656d 6f76 655f 7365 6e64 6d61 696c 0a0a  emove_sendmail..
│ │ │ -001b3650: 636c 6173 7320 7265 6d6f 7665 5f73 656e  class remove_sen
│ │ │ -001b3660: 646d 6169 6c20 7b0a 2020 7061 636b 6167  dmail {.  packag
│ │ │ -001b3670: 6520 7b20 2773 656e 646d 6169 6c27 3a0a  e { 'sendmail':.
│ │ │ -001b3680: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -001b3690: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -001b36a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001b3760: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001b3770: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001b3840: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001b3850: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -001b38b0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -001b38c0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -001b38d0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -001b38e0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -001b38f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001b3900: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -001b3910: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -001b3920: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001b3930: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -001b3940: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -001b3950: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001b3960: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001b3970: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -001b3980: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -001b3990: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -001b39a0: 6b61 6765 5f73 656e 646d 6169 6c5f 7265  kage_sendmail_re
│ │ │ -001b39b0: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -001b39c0: 556e 696e 7374 616c 6c20 5365 6e64 6d61  Uninstall Sendma
│ │ │ -001b39d0: 696c 2050 6163 6b61 6765 3a20 456e 7375  il Package: Ensu
│ │ │ -001b39e0: 7265 2073 656e 646d 6169 6c20 6973 2072  re sendmail is r
│ │ │ -001b39f0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -001b3a00: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -001b3a10: 653a 0a20 2020 206e 616d 653a 2073 656e  e:.    name: sen
│ │ │ -001b3a20: 646d 6169 6c0a 2020 2020 7374 6174 653a  dmail.    state:
│ │ │ -001b3a30: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -001b3a40: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -001b3a50: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -001b3a60: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -001b3a70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001b3a80: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -001b3a90: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -001b3aa0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001b3ab0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -001b3ac0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -001b3ad0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -001b3ae0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -001b3af0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -001b3b00: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001b3b10: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001b3b20: 2070 6163 6b61 6765 5f73 656e 646d 6169   package_sendmai
│ │ │ -001b3b30: 6c5f 7265 6d6f 7665 640a 3c2f 636f 6465  l_removed.
│ │ │ +001b3580: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001b3610: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001b3620: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ -001b3820: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001b3830: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001b3870: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001b3880: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +001b3590: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001b35a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001b35e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001b35f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +001b3640: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +001b3650: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +001b3660: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +001b3670: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +001b3680: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +001b3690: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +001b36a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001b36b0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001b36c0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +001b36d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001b36e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001b36f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001b3700: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +001b3710: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +001b3720: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +001b3730: 202d 2070 6163 6b61 6765 5f73 656e 646d   - package_sendm
│ │ │ +001b3740: 6169 6c5f 7265 6d6f 7665 640a 0a2d 206e  ail_removed..- n
│ │ │ +001b3750: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +001b3760: 5365 6e64 6d61 696c 2050 6163 6b61 6765  Sendmail Package
│ │ │ +001b3770: 3a20 456e 7375 7265 2073 656e 646d 6169  : Ensure sendmai
│ │ │ +001b3780: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ +001b3790: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001b37a0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +001b37b0: 653a 2073 656e 646d 6169 6c0a 2020 2020  e: sendmail.    
│ │ │ +001b37c0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +001b37d0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +001b37e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +001b37f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +001b3800: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001b3810: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +001b3820: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001b3830: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +001b3840: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +001b3850: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +001b3860: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +001b3870: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001b3880: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +001b3890: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001b38a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001b38b0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +001b38c0: 656e 646d 6169 6c5f 7265 6d6f 7665 640a  endmail_removed.
│ │ │ +001b38d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001b3980: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +001b3990: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +001b3a30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +001b3ad0: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ +001b3ae0: 656e 646d 6169 6c0a 0a63 6c61 7373 2072  endmail..class r
│ │ │ +001b3af0: 656d 6f76 655f 7365 6e64 6d61 696c 207b  emove_sendmail {
│ │ │ +001b3b00: 0a20 2070 6163 6b61 6765 207b 2027 7365  .  package { 'se
│ │ │ +001b3b10: 6e64 6d61 696c 273a 0a20 2020 2065 6e73  ndmail':.    ens
│ │ │ +001b3b20: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +001b3b30: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Re │ │ │ -001ba3c0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -001ba3d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001ba3e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +001b3a20: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001b3a50: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001b3a60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001b3aa0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001b3ab0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -001ba480: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -001ba4d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -001ba510: 636c 7564 6520 7265 6d6f 7665 5f78 696e  clude remove_xin
│ │ │ -001ba520: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ -001ba530: 655f 7869 6e65 7464 207b 0a20 2070 6163  e_xinetd {.  pac
│ │ │ -001ba540: 6b61 6765 207b 2027 7869 6e65 7464 273a  kage { 'xinetd':
│ │ │ -001ba550: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -001ba560: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -001ba570: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -001ba580: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -001ba630: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -001ba640: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -001ba460: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001ba490: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001ba4b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001ba4c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -001ba4e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -001ba4f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -001ba6c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001ba6e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001ba730: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001ba760: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -001ba780: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -001ba790: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -001ba7a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -001ba7b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -001ba7c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001ba7d0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -001ba7e0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -001ba7f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -001ba800: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -001ba810: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -001ba820: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -001ba830: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001ba840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001ba850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001ba860: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -001ba870: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001ba880: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001ba890: 2070 6163 6b61 6765 5f78 696e 6574 645f   package_xinetd_
│ │ │ -001ba8a0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -001ba8b0: 2027 556e 696e 7374 616c 6c20 7869 6e65   'Uninstall xine
│ │ │ -001ba8c0: 7464 2050 6163 6b61 6765 3a20 456e 7375  td Package: Ensu
│ │ │ -001ba8d0: 7265 2078 696e 6574 6420 6973 2072 656d  re xinetd is rem
│ │ │ -001ba8e0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -001ba8f0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -001ba900: 0a20 2020 206e 616d 653a 2078 696e 6574  .    name: xinet
│ │ │ -001ba910: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ -001ba920: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -001ba930: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -001ba940: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -001ba950: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -001ba960: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001ba970: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -001ba980: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -001ba990: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001ba9a0: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ -001ba9b0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -001ba9c0: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -001ba9d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -001ba9e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001ba9f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -001baa00: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -001baa10: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -001baa20: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001baa30: 7061 636b 6167 655f 7869 6e65 7464 5f72  package_xinetd_r
│ │ │ -001baa40: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
low
Disr │ │ │ -001ba6f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001ba700: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001ba740: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001ba750: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +001ba470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001ba480: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001ba4d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +001ba510: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +001ba520: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +001ba530: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +001ba540: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +001ba550: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +001ba560: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +001ba570: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001ba580: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +001ba590: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +001ba5a0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ +001ba5b0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +001ba5c0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +001ba5d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001ba5e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001ba5f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001ba600: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +001ba610: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001ba620: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +001ba630: 6b61 6765 5f78 696e 6574 645f 7265 6d6f  kage_xinetd_remo
│ │ │ +001ba640: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ +001ba650: 696e 7374 616c 6c20 7869 6e65 7464 2050  install xinetd P
│ │ │ +001ba660: 6163 6b61 6765 3a20 456e 7375 7265 2078  ackage: Ensure x
│ │ │ +001ba670: 696e 6574 6420 6973 2072 656d 6f76 6564  inetd is removed
│ │ │ +001ba680: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +001ba690: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +001ba6a0: 206e 616d 653a 2078 696e 6574 640a 2020   name: xinetd.  
│ │ │ +001ba6b0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +001ba6c0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +001ba6d0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +001ba6e0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +001ba6f0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +001ba700: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001ba710: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001ba720: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001ba730: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001ba740: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +001ba750: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +001ba760: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +001ba770: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001ba780: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +001ba790: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +001ba7a0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +001ba7b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +001ba7c0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +001ba7d0: 6167 655f 7869 6e65 7464 5f72 656d 6f76  age_xinetd_remov
│ │ │ +001ba7e0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +001ba7f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +001ba8a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +001ba8b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +001ba460: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001ba490: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001ba4a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001ba4e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +001ba4f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +001ba930: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +001ba950: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +001ba9a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +001ba9d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +001ba9f0: 655f 7869 6e65 7464 0a0a 636c 6173 7320  e_xinetd..class 
│ │ │ +001baa00: 7265 6d6f 7665 5f78 696e 6574 6420 7b0a  remove_xinetd {.
│ │ │ +001baa10: 2020 7061 636b 6167 6520 7b20 2778 696e    package { 'xin
│ │ │ +001baa20: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ +001baa30: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +001baa40: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remedi
│ │ │ -001bbdc0: 6174 696f 6e20 5075 7070 6574 2073 6e69  ation Puppet sni
│ │ │ -001bbdd0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -001bbde0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001bbe10: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ +001ba960: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +001ba970: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +001ba9b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +001ba9c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -001bbe80: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001bbea0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001bbed0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -001bbe60: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001bbe70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001bbeb0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001bbec0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -001bbf10: 6520 7265 6d6f 7665 5f79 7062 696e 642d e remove_ypbind- │ │ │ -001bbf20: 6d74 0a0a 636c 6173 7320 7265 6d6f 7665 mt..class remove │ │ │ -001bbf30: 5f79 7062 696e 642d 6d74 207b 0a20 2070 _ypbind-mt {. p │ │ │ -001bbf40: 6163 6b61 6765 207b 2027 7970 6269 6e64 ackage { 'ypbind │ │ │ -001bbf50: 2d6d 7427 3a0a 2020 2020 656e 7375 7265 -mt':. ensure │ │ │ -001bbf60: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ -001bbf70: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ -001bc030: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -001bc040: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001bc0c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001bc0d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001bc0e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001bc120: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001bc130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001bc150: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001bc160: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -001bc180: 5265 6d6f 7665 204e 4953 2043 6c69 656e  Remove NIS Clien
│ │ │ -001bc190: 743a 2045 6e73 7572 6520 7970 6269 6e64  t: Ensure ypbind
│ │ │ -001bc1a0: 2d6d 7420 6973 2072 656d 6f76 6564 270a  -mt is removed'.
│ │ │ -001bc1b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001bc1c0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -001bc1d0: 616d 653a 2079 7062 696e 642d 6d74 0a20  ame: ypbind-mt. 
│ │ │ -001bc1e0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -001bc1f0: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -001bc200: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -001bc210: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -001bc220: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -001bc230: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -001bc240: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -001bc250: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -001bc260: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001bc270: 202d 2070 6163 6b61 6765 5f79 7062 696e   - package_ypbin
│ │ │ -001bc280: 645f 7265 6d6f 7665 640a 2020 2d20 756e  d_removed.  - un
│ │ │ -001bc290: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +001bbdc0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +001bbdd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ +001bbe80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001bbea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001bbed0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001bbe60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001bbe70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001bbe90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001bbeb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001bbec0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +001bbf00: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +001bbf10: 3a20 2752 656d 6f76 6520 4e49 5320 436c : 'Remove NIS Cl │ │ │ +001bbf20: 6965 6e74 3a20 456e 7375 7265 2079 7062 ient: Ensure ypb │ │ │ +001bbf30: 696e 642d 6d74 2069 7320 7265 6d6f 7665 ind-mt is remove │ │ │ +001bbf40: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +001bbf50: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +001bbf60: 2020 6e61 6d65 3a20 7970 6269 6e64 2d6d name: ypbind-m │ │ │ +001bbf70: 740a 2020 2020 7374 6174 653a 2061 6273 t. state: abs │ │ │ +001bbf80: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ +001bbf90: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ +001bbfa0: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ +001bbfb0: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ +001bbfc0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +001bbfd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +001bbfe0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +001bbff0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +001bc000: 640a 2020 2d20 7061 636b 6167 655f 7970 d. - package_yp │ │ │ +001bc010: 6269 6e64 5f72 656d 6f76 6564 0a20 202d bind_removed. - │ │ │ +001bc020: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974 unknown_severit │ │ │ +001bc030: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c y.
< │ │ │ +001bc040: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001bc0f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001bc100: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001bc1d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001bc1e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +001bc240: 5f79 7062 696e 642d 6d74 0a0a 636c 6173  _ypbind-mt..clas
│ │ │ +001bc250: 7320 7265 6d6f 7665 5f79 7062 696e 642d  s remove_ypbind-
│ │ │ +001bc260: 6d74 207b 0a20 2070 6163 6b61 6765 207b  mt {.  package {
│ │ │ +001bc270: 2027 7970 6269 6e64 2d6d 7427 3a0a 2020   'ypbind-mt':.  
│ │ │ +001bc280: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +001bc290: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  001bc2a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -001bd790: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001bd7a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001bd7b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +001bc1b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001bc1c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001bc200: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001bc210: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -001bd830: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001bd860: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001bd880: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001bd890: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001bd8b0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001bd8c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -001bd8e0: 6c75 6465 2072 656d 6f76 655f 7970 7365  lude remove_ypse
│ │ │ -001bd8f0: 7276 0a0a 636c 6173 7320 7265 6d6f 7665  rv..class remove
│ │ │ -001bd900: 5f79 7073 6572 7620 7b0a 2020 7061 636b  _ypserv {.  pack
│ │ │ -001bd910: 6167 6520 7b20 2779 7073 6572 7627 3a0a  age { 'ypserv':.
│ │ │ -001bd920: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -001bd930: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -001bd940: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -001bda00: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -001bda10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001bdae0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001bdaf0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -001bdb50: 616c 6c20 7970 7365 7276 2050 6163 6b61  all ypserv Packa
│ │ │ -001bdb60: 6765 3a20 456e 7375 7265 2079 7073 6572  ge: Ensure ypser
│ │ │ -001bdb70: 7620 6973 2072 656d 6f76 6564 270a 2020  v is removed'.  
│ │ │ -001bdb80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001bdb90: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -001bdba0: 653a 2079 7073 6572 760a 2020 2020 7374  e: ypserv.    st
│ │ │ -001bdbb0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -001bdbc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -001bdbd0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -001bdbe0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -001bdbf0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -001bdc00: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -001bdc10: 4e49 5354 2d38 3030 2d35 332d 4941 2d35  NIST-800-53-IA-5
│ │ │ -001bdc20: 2831 2928 6329 0a20 202d 2050 4349 2d44  (1)(c).  - PCI-D
│ │ │ -001bdc30: 5353 2d52 6571 2d32 2e32 2e32 0a20 202d  SS-Req-2.2.2.  -
│ │ │ -001bdc40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -001bdc50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -001bdc60: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -001bdc70: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -001bdc80: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -001bdc90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001bdca0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001bdcb0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001bdcc0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -001bdcd0: 5f79 7073 6572 765f 7265 6d6f 7665 640a  _ypserv_removed.
│ │ │ +001bd790: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +001bd7a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +001bd7b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -001bdac0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001bdad0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001bdb10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001bdb20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +001bd850: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001bd8a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +001bd8e0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +001bd8f0: 7970 7365 7276 2050 6163 6b61 6765 3a20  ypserv Package: 
│ │ │ +001bd900: 456e 7375 7265 2079 7073 6572 7620 6973  Ensure ypserv is
│ │ │ +001bd910: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +001bd920: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +001bd930: 6167 653a 0a20 2020 206e 616d 653a 2079  age:.    name: y
│ │ │ +001bd940: 7073 6572 760a 2020 2020 7374 6174 653a  pserv.    state:
│ │ │ +001bd950: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +001bd960: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001bd970: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +001bd980: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +001bd990: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001bd9a0: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ +001bd9b0: 2d38 3030 2d35 332d 4941 2d35 2831 2928  -800-53-IA-5(1)(
│ │ │ +001bd9c0: 6329 0a20 202d 2050 4349 2d44 5353 2d52  c).  - PCI-DSS-R
│ │ │ +001bd9d0: 6571 2d32 2e32 2e32 0a20 202d 2050 4349  eq-2.2.2.  - PCI
│ │ │ +001bd9e0: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +001bd9f0: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +001bda00: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +001bda10: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +001bda20: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +001bda30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001bda40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001bda50: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001bda60: 0a20 202d 2070 6163 6b61 6765 5f79 7073  .  - package_yps
│ │ │ +001bda70: 6572 765f 7265 6d6f 7665 640a 3c2f 636f  erv_removed.
< │ │ │ +001bda90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001bdaa0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001bdab0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001bdac0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001bdad0: 6435 3638 2220 7461 6269 6e64 6578 3d22 d568" tabindex=" │ │ │ +001bdae0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001bdaf0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +001bdb00: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +001bdb10: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +001bdb20: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +001bdb30: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +001bdb40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Co │ │ │ +001bd830: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001bd860: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001bd880: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001bd890: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001bd8b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001bd8c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +001bdbd0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001bdbe0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +001bdc00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +001bdc20: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +001bdc30: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +001bdc70: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +001bdc80: 7564 6520 7265 6d6f 7665 5f79 7073 6572  ude remove_ypser
│ │ │ +001bdc90: 760a 0a63 6c61 7373 2072 656d 6f76 655f  v..class remove_
│ │ │ +001bdca0: 7970 7365 7276 207b 0a20 2070 6163 6b61  ypserv {.  packa
│ │ │ +001bdcb0: 6765 207b 2027 7970 7365 7276 273a 0a20  ge { 'ypserv':. 
│ │ │ +001bdcc0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +001bdcd0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  001bdce0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pu │ │ │ -001bf570: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -001bf580: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -001bf650: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -001bf660: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -001bf6c0: 5f72 7368 2d73 6572 7665 720a 0a63 6c61  _rsh-server..cla
│ │ │ -001bf6d0: 7373 2072 656d 6f76 655f 7273 682d 7365  ss remove_rsh-se
│ │ │ -001bf6e0: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ -001bf6f0: 207b 2027 7273 682d 7365 7276 6572 273a   { 'rsh-server':
│ │ │ -001bf700: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -001bf710: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -001bf720: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -001bf730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -001bf7e0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -001bf7f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -001bf630: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -001bf640: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -001bf680: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -001bf690: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -001bf870: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -001bf890: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -001bf8e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -001bf910: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -001bf930: 7461 6c6c 2072 7368 2d73 6572 7665 7220  tall rsh-server 
│ │ │ -001bf940: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -001bf950: 7273 682d 7365 7276 6572 2069 7320 7265  rsh-server is re
│ │ │ -001bf960: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -001bf970: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -001bf980: 3a0a 2020 2020 6e61 6d65 3a20 7273 682d  :.    name: rsh-
│ │ │ -001bf990: 7365 7276 6572 0a20 2020 2073 7461 7465  server.    state
│ │ │ -001bf9a0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -001bf9b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001bf9c0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -001bf9d0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -001bf9e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001bf9f0: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ -001bfa00: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ -001bfa10: 2863 290a 2020 2d20 5043 492d 4453 5376  (c).  - PCI-DSSv
│ │ │ -001bfa20: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -001bfa30: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -001bfa40: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001bfa50: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -001bfa60: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001bfa70: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001bfa80: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -001bfa90: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001bfaa0: 7061 636b 6167 655f 7273 682d 7365 7276  package_rsh-serv
│ │ │ -001bfab0: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.Remediation An
│ │ │ +001bf570: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +001bf580: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disr │ │ │ -001bf8a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -001bf8b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -001bf8f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -001bf900: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +001bf600: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +001bf620: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +001bf670: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +001bf6a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +001bf6c0: 7461 6c6c 2072 7368 2d73 6572 7665 7220  tall rsh-server 
│ │ │ +001bf6d0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +001bf6e0: 7273 682d 7365 7276 6572 2069 7320 7265  rsh-server is re
│ │ │ +001bf6f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +001bf700: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001bf710: 3a0a 2020 2020 6e61 6d65 3a20 7273 682d  :.    name: rsh-
│ │ │ +001bf720: 7365 7276 6572 0a20 2020 2073 7461 7465  server.    state
│ │ │ +001bf730: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +001bf740: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001bf750: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +001bf760: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +001bf770: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001bf780: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ +001bf790: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ +001bf7a0: 2863 290a 2020 2d20 5043 492d 4453 5376  (c).  - PCI-DSSv
│ │ │ +001bf7b0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +001bf7c0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +001bf7d0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +001bf7e0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +001bf7f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +001bf800: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +001bf810: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +001bf820: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001bf830: 7061 636b 6167 655f 7273 682d 7365 7276  package_rsh-serv
│ │ │ +001bf840: 6572 5f72 656d 6f76 6564 0a3c 2f63 6f64  er_removed.
Remed │ │ │ +001bf900: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +001bf910: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +001bf630: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +001bf640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +001bf680: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +001bf690: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +001bf9c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001bf9e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001bfa10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001bf9a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001bf9b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001bf9d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001bf9f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001bfa00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +001bfa40: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +001bfa50: 6465 2072 656d 6f76 655f 7273 682d 7365 de remove_rsh-se │ │ │ +001bfa60: 7276 6572 0a0a 636c 6173 7320 7265 6d6f rver..class remo │ │ │ +001bfa70: 7665 5f72 7368 2d73 6572 7665 7220 7b0a ve_rsh-server {. │ │ │ +001bfa80: 2020 7061 636b 6167 6520 7b20 2772 7368 package { 'rsh │ │ │ +001bfa90: 2d73 6572 7665 7227 3a0a 2020 2020 656e -server':. en │ │ │ +001bfaa0: 7375 7265 203d 2667 743b 2027 7075 7267 sure => 'purg │ │ │ +001bfab0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remedia │ │ │ -001c09e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -001c09f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001c0a00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001c0a10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001c0a20: 7365 2220 6964 3d22 6964 3537 3522 3e3c se" id="id575">< │ │ │ -001c0a30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001c0a40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001c0a50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001c0a60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001c0a70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -001c0a80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001c0a90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -001c0ad0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001c0ae0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -001c0b00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -001c0b10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -001c0b30: 2072 656d 6f76 655f 7273 680a 0a63 6c61 remove_rsh..cla │ │ │ -001c0b40: 7373 2072 656d 6f76 655f 7273 6820 7b0a ss remove_rsh {. │ │ │ -001c0b50: 2020 7061 636b 6167 6520 7b20 2772 7368 package { 'rsh │ │ │ -001c0b60: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -001c0b70: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -001c0b80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -001c0c40: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001c0c50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001c0ce0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001c0d00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001c0d20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001c0d50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001c0d60: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -001c0d90: 6e73 7461 6c6c 2072 7368 2050 6163 6b61  nstall rsh Packa
│ │ │ -001c0da0: 6765 3a20 456e 7375 7265 2072 7368 2069  ge: Ensure rsh i
│ │ │ -001c0db0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -001c0dc0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -001c0dd0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -001c0de0: 7273 680a 2020 2020 7374 6174 653a 2061  rsh.    state: a
│ │ │ -001c0df0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -001c0e00: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -001c0e10: 2e31 2e31 330a 2020 2d20 5043 492d 4453  .1.13.  - PCI-DS
│ │ │ -001c0e20: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -001c0e30: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -001c0e40: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001c0e50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001c0e60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001c0e70: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -001c0e80: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001c0e90: 7061 636b 6167 655f 7273 685f 7265 6d6f  package_rsh_remo
│ │ │ -001c0ea0: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f  ved.  - unknown_
│ │ │ -001c0eb0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e  severity.
│ │ │ +001c09e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +001c09f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +001c0a00: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001c0a30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001c0aa0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001c0ac0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001c0af0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001c0a80: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001c0a90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001c0ad0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001c0ae0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +001c0b30: 2027 556e 696e 7374 616c 6c20 7273 6820 'Uninstall rsh │ │ │ +001c0b40: 5061 636b 6167 653a 2045 6e73 7572 6520 Package: Ensure │ │ │ +001c0b50: 7273 6820 6973 2072 656d 6f76 6564 270a rsh is removed'. │ │ │ +001c0b60: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +001c0b70: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ +001c0b80: 616d 653a 2072 7368 0a20 2020 2073 7461 ame: rsh. sta │ │ │ +001c0b90: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ +001c0ba0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +001c0bb0: 3137 312d 332e 312e 3133 0a20 202d 2050 171-3.1.13. - P │ │ │ +001c0bc0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ +001c0bd0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ +001c0be0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +001c0bf0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +001c0c00: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +001c0c10: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +001c0c20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +001c0c30: 0a20 202d 2070 6163 6b61 6765 5f72 7368 . - package_rsh │ │ │ +001c0c40: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b _removed. - unk │ │ │ +001c0c50: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f nown_severity.

Re │ │ │ +001c0d10: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001c0d20: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001c0d30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +001c0dd0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001c0e20: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +001c0e60: 636c 7564 6520 7265 6d6f 7665 5f72 7368  clude remove_rsh
│ │ │ +001c0e70: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ +001c0e80: 7368 207b 0a20 2070 6163 6b61 6765 207b  sh {.  package {
│ │ │ +001c0e90: 2027 7273 6827 3a0a 2020 2020 656e 7375   'rsh':.    ensu
│ │ │ +001c0ea0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +001c0eb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  001c0ec0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -001c1f30: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001c1f40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001c1fc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -001c2050: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001c2060: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ +001c0db0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001c0de0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001c0e00: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001c0e10: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001c0e30: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +001c0e40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -001c1fd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001c1fe0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -001c2020: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001c2030: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -001c2080: 7265 6d6f 7665 5f74 616c 6b2d 7365 7276  remove_talk-serv
│ │ │ -001c2090: 6572 0a0a 636c 6173 7320 7265 6d6f 7665  er..class remove
│ │ │ -001c20a0: 5f74 616c 6b2d 7365 7276 6572 207b 0a20  _talk-server {. 
│ │ │ -001c20b0: 2070 6163 6b61 6765 207b 2027 7461 6c6b   package { 'talk
│ │ │ -001c20c0: 2d73 6572 7665 7227 3a0a 2020 2020 656e  -server':.    en
│ │ │ -001c20d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -001c20e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -001c21a0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -001c21b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001c2240: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001c2250: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001c2270: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001c2290: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001c22a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001c22e0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -001c22f0: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ -001c2300: 6c6b 2d73 6572 7665 7220 5061 636b 6167  lk-server Packag
│ │ │ -001c2310: 653a 2045 6e73 7572 6520 7461 6c6b 2d73  e: Ensure talk-s
│ │ │ -001c2320: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ -001c2330: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -001c2340: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -001c2350: 206e 616d 653a 2074 616c 6b2d 7365 7276   name: talk-serv
│ │ │ -001c2360: 6572 0a20 2020 2073 7461 7465 3a20 6162  er.    state: ab
│ │ │ -001c2370: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -001c2380: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -001c2390: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -001c23a0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -001c23b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001c23c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001c23d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001c23e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001c23f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -001c2400: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -001c2410: 6765 5f74 616c 6b2d 7365 7276 6572 5f72  ge_talk-server_r
│ │ │ -001c2420: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
< │ │ │ +001c1f50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001c1f60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001c1f70: 7365 2220 6964 3d22 6964 3537 3922 3e3c se" id="id579">< │ │ │ +001c1f80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001c1f90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001c1fa0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001c1fb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001c1fc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001c1fd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001c1fe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001c2020: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001c2030: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001c2050: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +001c2060: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +001c2080: 2755 6e69 6e73 7461 6c6c 2074 616c 6b2d 'Uninstall talk- │ │ │ +001c2090: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ +001c20a0: 456e 7375 7265 2074 616c 6b2d 7365 7276 Ensure talk-serv │ │ │ +001c20b0: 6572 2069 7320 7265 6d6f 7665 6427 0a20 er is removed'. │ │ │ +001c20c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +001c20d0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ +001c20e0: 6d65 3a20 7461 6c6b 2d73 6572 7665 720a me: talk-server. │ │ │ +001c20f0: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +001c2100: 740a 2020 7461 6773 3a0a 2020 2d20 5043 t. tags:. - PC │ │ │ +001c2110: 492d 4453 5376 342d 322e 320a 2020 2d20 I-DSSv4-2.2. - │ │ │ +001c2120: 5043 492d 4453 5376 342d 322e 322e 340a PCI-DSSv4-2.2.4. │ │ │ +001c2130: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +001c2140: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +001c2150: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +001c2160: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +001c2170: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +001c2180: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +001c2190: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +001c21a0: 7461 6c6b 2d73 6572 7665 725f 7265 6d6f talk-server_remo │ │ │ +001c21b0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.
Remediation │ │ │ +001c2270: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +001c2280: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001c2300: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001c2320: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001c2370: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +001c23a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +001c2310: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001c2330: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001c2380: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +001c2390: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +001c23c0: 7665 5f74 616c 6b2d 7365 7276 6572 0a0a  ve_talk-server..
│ │ │ +001c23d0: 636c 6173 7320 7265 6d6f 7665 5f74 616c  class remove_tal
│ │ │ +001c23e0: 6b2d 7365 7276 6572 207b 0a20 2070 6163  k-server {.  pac
│ │ │ +001c23f0: 6b61 6765 207b 2027 7461 6c6b 2d73 6572  kage { 'talk-ser
│ │ │ +001c2400: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ +001c2410: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +001c2420: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
│ │ │ -001c3270: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -001c3280: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -001c3320: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -001c33c0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -001c33d0: 616c 6b0a 0a63 6c61 7373 2072 656d 6f76  alk..class remov
│ │ │ -001c33e0: 655f 7461 6c6b 207b 0a20 2070 6163 6b61  e_talk {.  packa
│ │ │ -001c33f0: 6765 207b 2027 7461 6c6b 273a 0a20 2020  ge { 'talk':.   
│ │ │ -001c3400: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -001c3410: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Re │ │ │ -001c34d0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -001c34e0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -001c3310: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001c3340: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001c3350: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001c3390: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -001c33a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -001c3580: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001c3590: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001c35e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -001c3620: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ -001c3630: 2074 616c 6b20 5061 636b 6167 653a 2045   talk Package: E
│ │ │ -001c3640: 6e73 7572 6520 7461 6c6b 2069 7320 7265  nsure talk is re
│ │ │ -001c3650: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -001c3660: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -001c3670: 3a0a 2020 2020 6e61 6d65 3a20 7461 6c6b  :.    name: talk
│ │ │ -001c3680: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -001c3690: 6e74 0a20 2074 6167 733a 0a20 202d 2050  nt.  tags:.  - P
│ │ │ -001c36a0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -001c36b0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -001c36c0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -001c36d0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -001c36e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001c36f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001c3700: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001c3710: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001c3720: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -001c3730: 5f74 616c 6b5f 7265 6d6f 7665 640a 3c2f  _talk_removed.
C │ │ │ -001c3570: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -001c35a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001c35b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001c35f0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -001c3600: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +001c3360: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001c3370: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +001c33c0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +001c33d0: 6c6c 2074 616c 6b20 5061 636b 6167 653a  ll talk Package:
│ │ │ +001c33e0: 2045 6e73 7572 6520 7461 6c6b 2069 7320   Ensure talk is 
│ │ │ +001c33f0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +001c3400: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +001c3410: 6765 3a0a 2020 2020 6e61 6d65 3a20 7461  ge:.    name: ta
│ │ │ +001c3420: 6c6b 0a20 2020 2073 7461 7465 3a20 6162  lk.    state: ab
│ │ │ +001c3430: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +001c3440: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +001c3450: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +001c3460: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +001c3470: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +001c3480: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +001c3490: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +001c34a0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +001c34b0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +001c34c0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +001c34d0: 6765 5f74 616c 6b5f 7265 6d6f 7665 640a  ge_talk_removed.
│ │ │ +001c34e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001c3590: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +001c35a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +001c3340: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001c3350: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001c3390: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +001c33a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +001c3640: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +001c36e0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +001c36f0: 616c 6b0a 0a63 6c61 7373 2072 656d 6f76  alk..class remov
│ │ │ +001c3700: 655f 7461 6c6b 207b 0a20 2070 6163 6b61  e_talk {.  packa
│ │ │ +001c3710: 6765 207b 2027 7461 6c6b 273a 0a20 2020  ge { 'talk':.   
│ │ │ +001c3720: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +001c3730: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediati │ │ │ -001c51f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -001c5200: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001c5280: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -001c52c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ +001c3630: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001c3660: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001c3670: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001c36b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +001c36c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -001c5290: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -001c52b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -001c52e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -001c5300: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -001c5330: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -001c5340: 656d 6f76 655f 7465 6c6e 6574 2d73 6572  emove_telnet-ser
│ │ │ -001c5350: 7665 720a 0a63 6c61 7373 2072 656d 6f76  ver..class remov
│ │ │ -001c5360: 655f 7465 6c6e 6574 2d73 6572 7665 7220  e_telnet-server 
│ │ │ -001c5370: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ -001c5380: 656c 6e65 742d 7365 7276 6572 273a 0a20  elnet-server':. 
│ │ │ -001c5390: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001c53a0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -001c53b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001c5460: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001c5470: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001c5480: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001c5550: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001c5560: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001c55b0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -001c55c0: 6c6c 2074 656c 6e65 742d 7365 7276 6572  ll telnet-server
│ │ │ -001c55d0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -001c55e0: 2074 656c 6e65 742d 7365 7276 6572 2069   telnet-server i
│ │ │ -001c55f0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -001c5600: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -001c5610: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -001c5620: 7465 6c6e 6574 2d73 6572 7665 720a 2020  telnet-server.  
│ │ │ -001c5630: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -001c5640: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -001c5650: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -001c5660: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001c5670: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -001c5680: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -001c5690: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -001c56a0: 322e 322e 320a 2020 2d20 5043 492d 4453  2.2.2.  - PCI-DS
│ │ │ -001c56b0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -001c56c0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -001c56d0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -001c56e0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -001c56f0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -001c5700: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001c5710: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -001c5720: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -001c5730: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ -001c5740: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +001c51f0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +001c5200: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +001c5280: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001c5310: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001c5320: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -001c5530: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001c5540: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001c5580: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001c5590: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +001c5290: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001c52a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001c52e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001c52f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +001c5340: 556e 696e 7374 616c 6c20 7465 6c6e 6574  Uninstall telnet
│ │ │ +001c5350: 2d73 6572 7665 7220 5061 636b 6167 653a  -server Package:
│ │ │ +001c5360: 2045 6e73 7572 6520 7465 6c6e 6574 2d73   Ensure telnet-s
│ │ │ +001c5370: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ +001c5380: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +001c5390: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +001c53a0: 206e 616d 653a 2074 656c 6e65 742d 7365   name: telnet-se
│ │ │ +001c53b0: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ +001c53c0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +001c53d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001c53e0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +001c53f0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +001c5400: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001c5410: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +001c5420: 5353 2d52 6571 2d32 2e32 2e32 0a20 202d  SS-Req-2.2.2.  -
│ │ │ +001c5430: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +001c5440: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +001c5450: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +001c5460: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +001c5470: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +001c5480: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001c5490: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001c54a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +001c54b0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +001c54c0: 5f74 656c 6e65 742d 7365 7276 6572 5f72  _telnet-server_r
│ │ │ +001c54d0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediati │ │ │ +001c5590: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +001c55a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +001c5620: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +001c5630: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +001c5650: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +001c5660: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +001c5680: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +001c56a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +001c56d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +001c56e0: 656d 6f76 655f 7465 6c6e 6574 2d73 6572  emove_telnet-ser
│ │ │ +001c56f0: 7665 720a 0a63 6c61 7373 2072 656d 6f76  ver..class remov
│ │ │ +001c5700: 655f 7465 6c6e 6574 2d73 6572 7665 7220  e_telnet-server 
│ │ │ +001c5710: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +001c5720: 656c 6e65 742d 7365 7276 6572 273a 0a20  elnet-server':. 
│ │ │ +001c5730: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +001c5740: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  001c5750: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediat │ │ │ -001c6650: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001c6660: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001c66e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001c66f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001c6700: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001c6740: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001c6750: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001c6770: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -001c6780: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -001c67a0: 7265 6d6f 7665 5f74 656c 6e65 740a 0a63  remove_telnet..c
│ │ │ -001c67b0: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -001c67c0: 6574 207b 0a20 2070 6163 6b61 6765 207b  et {.  package {
│ │ │ -001c67d0: 2027 7465 6c6e 6574 273a 0a20 2020 2065   'telnet':.    e
│ │ │ -001c67e0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -001c67f0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -001c6810: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001c6820: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001c6830: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001c6840: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001c6850: 6435 3932 2220 7461 6269 6e64 6578 3d22 d592" tabindex=" │ │ │ -001c6860: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001c6870: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001c6880: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001c6890: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001c68a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001c68b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001c68c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001c68d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001c6950: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001c6980: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001c69a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001c69b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001c69d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -001c69e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -001c6a00: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ -001c6a10: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ -001c6a20: 7265 2074 656c 6e65 7420 6973 2072 656d  re telnet is rem
│ │ │ -001c6a30: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -001c6a40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -001c6a50: 0a20 2020 206e 616d 653a 2074 656c 6e65  .    name: telne
│ │ │ -001c6a60: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ -001c6a70: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -001c6a80: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -001c6a90: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ -001c6aa0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -001c6ab0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -001c6ac0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -001c6ad0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001c6ae0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001c6af0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -001c6b00: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -001c6b10: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -001c6b20: 6163 6b61 6765 5f74 656c 6e65 745f 7265  ackage_telnet_re
│ │ │ -001c6b30: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


< │ │ │ +001c6670: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001c6680: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001c6690: 7365 2220 6964 3d22 6964 3539 3122 3e3c se" id="id591">< │ │ │ +001c66a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001c66b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001c66c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001c66d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001c66e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001c66f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001c6700: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001c6740: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001c6750: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001c6770: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +001c6780: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +001c67a0: 2752 656d 6f76 6520 7465 6c6e 6574 2043 'Remove telnet C │ │ │ +001c67b0: 6c69 656e 7473 3a20 456e 7375 7265 2074 lients: Ensure t │ │ │ +001c67c0: 656c 6e65 7420 6973 2072 656d 6f76 6564 elnet is removed │ │ │ +001c67d0: 270a 2020 616e 7369 626c 652e 6275 696c '. ansible.buil │ │ │ +001c67e0: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +001c67f0: 206e 616d 653a 2074 656c 6e65 740a 2020 name: telnet. │ │ │ +001c6800: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +001c6810: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +001c6820: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a -800-171-3.1.13. │ │ │ +001c6830: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +001c6840: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +001c6850: 322e 322e 340a 2020 2d20 6469 7361 626c 2.2.4. - disabl │ │ │ +001c6860: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +001c6870: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +001c6880: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +001c6890: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ +001c68a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +001c68b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +001c68c0: 6765 5f74 656c 6e65 745f 7265 6d6f 7665 ge_telnet_remove │ │ │ +001c68d0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.
< │ │ │ +001c68e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001c6990: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001c69a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001c6a70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001c6a80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +001c6ae0: 5f74 656c 6e65 740a 0a63 6c61 7373 2072  _telnet..class r
│ │ │ +001c6af0: 656d 6f76 655f 7465 6c6e 6574 207b 0a20  emove_telnet {. 
│ │ │ +001c6b00: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ +001c6b10: 6574 273a 0a20 2020 2065 6e73 7572 6520  et':.    ensure 
│ │ │ +001c6b20: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +001c6b30: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

│ │ │ -001c83b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -001c83c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +001c6a50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001c6a60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001c6aa0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001c6ab0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -001c8460: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -001c8500: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -001c8510: 6674 702d 7365 7276 6572 0a0a 636c 6173  ftp-server..clas
│ │ │ -001c8520: 7320 7265 6d6f 7665 5f74 6674 702d 7365  s remove_tftp-se
│ │ │ -001c8530: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ -001c8540: 207b 2027 7466 7470 2d73 6572 7665 7227   { 'tftp-server'
│ │ │ -001c8550: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -001c8560: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -001c8570: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -001c8580: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -001c8630: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -001c8640: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -001c8450: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001c8480: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001c8490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -001c84d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -001c84e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -001c86c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -001c86e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -001c8730: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -001c8760: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -001c86d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -001c86f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -001c8740: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -001c8750: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -001c8780: 7374 616c 6c20 7466 7470 2d73 6572 7665  stall tftp-serve
│ │ │ -001c8790: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -001c87a0: 6520 7466 7470 2d73 6572 7665 7220 6973  e tftp-server is
│ │ │ -001c87b0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -001c87c0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -001c87d0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -001c87e0: 6674 702d 7365 7276 6572 0a20 2020 2073  ftp-server.    s
│ │ │ -001c87f0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -001c8800: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -001c8810: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -001c8820: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001c8830: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -001c8840: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -001c8850: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -001c8860: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -001c8870: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -001c8880: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -001c8890: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -001c88a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001c88b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001c88c0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001c88d0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -001c88e0: 5f74 6674 702d 7365 7276 6572 5f72 656d  _tftp-server_rem
│ │ │ -001c88f0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +001c84a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +001c84b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +001c8500: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +001c8510: 6c6c 2074 6674 702d 7365 7276 6572 2050  ll tftp-server P
│ │ │ +001c8520: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +001c8530: 6674 702d 7365 7276 6572 2069 7320 7265  ftp-server is re
│ │ │ +001c8540: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +001c8550: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001c8560: 3a0a 2020 2020 6e61 6d65 3a20 7466 7470  :.    name: tftp
│ │ │ +001c8570: 2d73 6572 7665 720a 2020 2020 7374 6174  -server.    stat
│ │ │ +001c8580: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +001c8590: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +001c85a0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +001c85b0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +001c85c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001c85d0: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +001c85e0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +001c85f0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +001c8600: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +001c8610: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +001c8620: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +001c8630: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001c8640: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001c8650: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001c8660: 640a 2020 2d20 7061 636b 6167 655f 7466  d.  - package_tf
│ │ │ +001c8670: 7470 2d73 6572 7665 725f 7265 6d6f 7665  tp-server_remove
│ │ │ +001c8680: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +001c8690: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001c8740: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001c8750: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +001c8480: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +001c8490: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +001c84d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +001c84e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +001c8820: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001c8830: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +001c8890: 5f74 6674 702d 7365 7276 6572 0a0a 636c  _tftp-server..cl
│ │ │ +001c88a0: 6173 7320 7265 6d6f 7665 5f74 6674 702d  ass remove_tftp-
│ │ │ +001c88b0: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ +001c88c0: 6765 207b 2027 7466 7470 2d73 6572 7665  ge { 'tftp-serve
│ │ │ +001c88d0: 7227 3a0a 2020 2020 656e 7375 7265 203d  r':.    ensure =
│ │ │ +001c88e0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +001c88f0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Reme
│ │ │ -001c9630: 6469 6174 696f 6e20 5075 7070 6574 2073  diation Puppet s
│ │ │ -001c9640: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disru │ │ │ +001c8800: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001c8810: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001c8850: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001c8860: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -001c96d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001c96e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001c9700: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001c9720: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001c9730: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001c9770: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001c9780: 7564 6520 7265 6d6f 7665 5f74 6674 700a  ude remove_tftp.
│ │ │ -001c9790: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ -001c97a0: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ -001c97b0: 2027 7466 7470 273a 0a20 2020 2065 6e73   'tftp':.    ens
│ │ │ -001c97c0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -001c97d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -001c9890: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -001c98a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -001c9950: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001c9970: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001c99a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001c9930: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001c9940: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001c9960: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001c9980: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001c9990: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -001c99d0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001c99e0: 3a20 2752 656d 6f76 6520 7466 7470 2044 : 'Remove tftp D │ │ │ -001c99f0: 6165 6d6f 6e3a 2045 6e73 7572 6520 7466 aemon: Ensure tf │ │ │ -001c9a00: 7470 2069 7320 7265 6d6f 7665 6427 0a20 tp is removed'. │ │ │ -001c9a10: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -001c9a20: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61 .package:. na │ │ │ -001c9a30: 6d65 3a20 7466 7470 0a20 2020 2073 7461 me: tftp. sta │ │ │ -001c9a40: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ -001c9a50: 733a 0a20 202d 2050 4349 2d44 5353 7634 s:. - PCI-DSSv4 │ │ │ -001c9a60: 2d32 2e32 0a20 202d 2050 4349 2d44 5353 -2.2. - PCI-DSS │ │ │ -001c9a70: 7634 2d32 2e32 2e34 0a20 202d 2064 6973 v4-2.2.4. - dis │ │ │ -001c9a80: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -001c9a90: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -001c9aa0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -001c9ab0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665 ion. - low_seve │ │ │ -001c9ac0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -001c9ad0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -001c9ae0: 636b 6167 655f 7466 7470 5f72 656d 6f76 ckage_tftp_remov │ │ │ -001c9af0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e ed.
│ │ │ +001c9630: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +001c9640: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001c9650: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001c96d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001c9700: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001c9720: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001c9730: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001c9750: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001c9760: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001c9780: 6d65 3a20 2752 656d 6f76 6520 7466 7470  me: 'Remove tftp
│ │ │ +001c9790: 2044 6165 6d6f 6e3a 2045 6e73 7572 6520   Daemon: Ensure 
│ │ │ +001c97a0: 7466 7470 2069 7320 7265 6d6f 7665 6427  tftp is removed'
│ │ │ +001c97b0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +001c97c0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +001c97d0: 6e61 6d65 3a20 7466 7470 0a20 2020 2073  name: tftp.    s
│ │ │ +001c97e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +001c97f0: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ +001c9800: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +001c9810: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +001c9820: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +001c9830: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +001c9840: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +001c9850: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +001c9860: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +001c9870: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001c9880: 7061 636b 6167 655f 7466 7470 5f72 656d  package_tftp_rem
│ │ │ +001c9890: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +001c9950: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +001c9960: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +001c99f0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001c9a10: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001c9a30: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +001c9a60: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001c9a70: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +001c9aa0: 6f76 655f 7466 7470 0a0a 636c 6173 7320  ove_tftp..class 
│ │ │ +001c9ab0: 7265 6d6f 7665 5f74 6674 7020 7b0a 2020  remove_tftp {.  
│ │ │ +001c9ac0: 7061 636b 6167 6520 7b20 2774 6674 7027  package { 'tftp'
│ │ │ +001c9ad0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +001c9ae0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +001c9af0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 001c9b00: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remedia │ │ │ -001d7f10: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -001d7f20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001d7f30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001d7f40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001d7f50: 7365 2220 6964 3d22 6964 3632 3722 3e3c se" id="id627">< │ │ │ -001d7f60: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -001d7f70: 6520 7373 685f 7072 6976 6174 655f 6b65 e ssh_private_ke │ │ │ -001d7f80: 795f 7065 726d 730a 0a63 6c61 7373 2073 y_perms..class s │ │ │ -001d7f90: 7368 5f70 7269 7661 7465 5f6b 6579 5f70 sh_private_key_p │ │ │ -001d7fa0: 6572 6d73 207b 0a20 2065 7865 6320 7b20 erms {. exec { │ │ │ -001d7fb0: 2773 7368 645f 7072 6976 5f6b 6579 273a 'sshd_priv_key': │ │ │ -001d7fc0: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667 . command =&g │ │ │ -001d7fd0: 743b 2022 6368 6d6f 6420 3036 3430 202f t; "chmod 0640 / │ │ │ -001d7fe0: 6574 632f 7373 682f 2a5f 6b65 7922 2c0a etc/ssh/*_key",. │ │ │ -001d7ff0: 2020 2020 7061 7468 2020 2020 3d26 6774 path => │ │ │ -001d8000: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e ; '/bin:/usr/bin │ │ │ -001d8010: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c '. }.}.< │ │ │ -001d8020: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -001d80d0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -001d80e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001d80f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001d8100: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001d8110: 7365 2220 6964 3d22 6964 3632 3822 3e3c se" id="id628">< │ │ │ -001d8120: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001d8130: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001d8140: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001d8150: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001d8160: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -001d8170: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001d8180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -001d81c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001d81d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -001d81f0: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ -001d8210: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001d8220: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001d8230: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001d8240: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001d8250: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -001d8260: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001d8270: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001d8280: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001d8290: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001d82a0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001d82b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001d82c0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001d82d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001d82e0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001d82f0: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001d8300: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001d8310: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001d8320: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001d8330: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001d8340: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001d8350: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001d8360: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001d8370: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001d8380: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001d8390: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001d83a0: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ -001d83b0: 2046 696e 6420 726f 6f74 3a72 6f6f 742d Find root:root- │ │ │ -001d83c0: 6f77 6e65 6420 6b65 7973 0a20 2061 6e73 owned keys. ans │ │ │ -001d83d0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -001d83e0: 6d61 6e64 3a20 6669 6e64 202d 4820 2f65 mand: find -H /e │ │ │ -001d83f0: 7463 2f73 7368 2f20 2d6d 6178 6465 7074 tc/ssh/ -maxdept │ │ │ -001d8400: 6820 3120 2d75 7365 7220 726f 6f74 202d h 1 -user root - │ │ │ -001d8410: 7265 6765 7820 222e 2a5f 6b65 7924 220a regex ".*_key$". │ │ │ -001d8420: 2020 2020 2d74 7970 6520 6620 2d67 726f -type f -gro │ │ │ -001d8430: 7570 2072 6f6f 7420 2d70 6572 6d20 2f75 up root -perm /u │ │ │ -001d8440: 2b78 732c 672b 7877 7273 2c6f 2b78 7772 +xs,g+xwrs,o+xwr │ │ │ -001d8450: 740a 2020 7265 6769 7374 6572 3a20 726f t. register: ro │ │ │ -001d8460: 6f74 5f6f 776e 6564 5f6b 6579 730a 2020 ot_owned_keys. │ │ │ -001d8470: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -001d8480: 6c73 650a 2020 6661 696c 6564 5f77 6865 lse. failed_whe │ │ │ -001d8490: 6e3a 2066 616c 7365 0a20 2063 6865 636b n: false. check │ │ │ -001d84a0: 5f6d 6f64 653a 2066 616c 7365 0a20 2077 _mode: false. w │ │ │ -001d84b0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -001d84c0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -001d84d0: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -001d84e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001d84f0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001d8500: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001d8510: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001d8520: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001d8530: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001d8540: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001d8550: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001d8560: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001d8570: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001d8580: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001d8590: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001d85a0: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001d85b0: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001d85c0: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001d85d0: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001d85e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001d85f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001d8600: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001d8610: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001d8620: 5f6e 6565 6465 640a 0a2d 206e 616d 653a _needed..- name: │ │ │ -001d8630: 2053 6574 2070 6572 6d69 7373 696f 6e73 Set permissions │ │ │ -001d8640: 2066 6f72 2072 6f6f 743a 726f 6f74 2d6f for root:root-o │ │ │ -001d8650: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ -001d8660: 626c 652e 6275 696c 7469 6e2e 6669 6c65 ble.builtin.file │ │ │ -001d8670: 3a0a 2020 2020 7061 7468 3a20 277b 7b20 :. path: '{{ │ │ │ -001d8680: 6974 656d 207d 7d27 0a20 2020 206d 6f64 item }}'. mod │ │ │ -001d8690: 653a 2075 2d78 732c 672d 7877 7273 2c6f e: u-xs,g-xwrs,o │ │ │ -001d86a0: 2d78 7772 740a 2020 2020 7374 6174 653a -xwrt. state: │ │ │ -001d86b0: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ -001d86c0: 6d73 3a0a 2020 2d20 277b 7b20 726f 6f74 ms:. - '{{ root │ │ │ -001d86d0: 5f6f 776e 6564 5f6b 6579 732e 7374 646f _owned_keys.stdo │ │ │ -001d86e0: 7574 5f6c 696e 6573 207d 7d27 0a20 2077 ut_lines }}'. w │ │ │ -001d86f0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -001d8700: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -001d8710: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ -001d8720: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001d8730: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ -001d8740: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ -001d8750: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ -001d8760: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ -001d8770: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -001d8780: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ -001d8790: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -001d87a0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ -001d87b0: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ -001d87c0: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ -001d87d0: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ -001d87e0: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ -001d87f0: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ -001d8800: 6973 7369 6f6e 735f 7373 6864 5f70 7269 issions_sshd_pri │ │ │ -001d8810: 7661 7465 5f6b 6579 0a20 202d 206c 6f77 vate_key. - low │ │ │ -001d8820: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -001d8830: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -001d8840: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -001d8850: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -001d8860: 5f6e 6565 6465 640a 3c2f 636f 6465 3e3c _needed.< │ │ │ +001d7f10: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +001d7f20: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001d7f30: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +001d7f60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +001d7fd0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +001d7ff0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +001d8020: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +001d7fb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +001d7fc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +001d8000: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +001d8010: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
configure
│ │ │ +001d8050: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +001d8060: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +001d8070: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +001d8080: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +001d8090: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +001d80a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001d80b0: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +001d80c0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001d80d0: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +001d80e0: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +001d80f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001d8100: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +001d8110: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001d8120: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001d8130: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +001d8140: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001d8150: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +001d8160: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +001d8170: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +001d8180: 6d69 7373 696f 6e73 5f73 7368 645f 7072  missions_sshd_pr
│ │ │ +001d8190: 6976 6174 655f 6b65 790a 2020 2d20 6c6f  ivate_key.  - lo
│ │ │ +001d81a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001d81b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001d81c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001d81d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001d81e0: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ +001d81f0: 3a20 4669 6e64 2072 6f6f 743a 726f 6f74  : Find root:root
│ │ │ +001d8200: 2d6f 776e 6564 206b 6579 730a 2020 616e  -owned keys.  an
│ │ │ +001d8210: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +001d8220: 6d6d 616e 643a 2066 696e 6420 2d48 202f  mmand: find -H /
│ │ │ +001d8230: 6574 632f 7373 682f 202d 6d61 7864 6570  etc/ssh/ -maxdep
│ │ │ +001d8240: 7468 2031 202d 7573 6572 2072 6f6f 7420  th 1 -user root 
│ │ │ +001d8250: 2d72 6567 6578 2022 2e2a 5f6b 6579 2422  -regex ".*_key$"
│ │ │ +001d8260: 0a20 2020 202d 7479 7065 2066 202d 6772  .    -type f -gr
│ │ │ +001d8270: 6f75 7020 726f 6f74 202d 7065 726d 202f  oup root -perm /
│ │ │ +001d8280: 752b 7873 2c67 2b78 7772 732c 6f2b 7877  u+xs,g+xwrs,o+xw
│ │ │ +001d8290: 7274 0a20 2072 6567 6973 7465 723a 2072  rt.  register: r
│ │ │ +001d82a0: 6f6f 745f 6f77 6e65 645f 6b65 7973 0a20  oot_owned_keys. 
│ │ │ +001d82b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +001d82c0: 616c 7365 0a20 2066 6169 6c65 645f 7768  alse.  failed_wh
│ │ │ +001d82d0: 656e 3a20 6661 6c73 650a 2020 6368 6563  en: false.  chec
│ │ │ +001d82e0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 2020  k_mode: false.  
│ │ │ +001d82f0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +001d8300: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +001d8310: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +001d8320: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001d8330: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +001d8340: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001d8350: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +001d8360: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +001d8370: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001d8380: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +001d8390: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001d83a0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001d83b0: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +001d83c0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001d83d0: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +001d83e0: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +001d83f0: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +001d8400: 6d69 7373 696f 6e73 5f73 7368 645f 7072  missions_sshd_pr
│ │ │ +001d8410: 6976 6174 655f 6b65 790a 2020 2d20 6c6f  ivate_key.  - lo
│ │ │ +001d8420: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001d8430: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001d8440: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001d8450: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001d8460: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ +001d8470: 3a20 5365 7420 7065 726d 6973 7369 6f6e  : Set permission
│ │ │ +001d8480: 7320 666f 7220 726f 6f74 3a72 6f6f 742d  s for root:root-
│ │ │ +001d8490: 6f77 6e65 6420 6b65 7973 0a20 2061 6e73  owned keys.  ans
│ │ │ +001d84a0: 6962 6c65 2e62 7569 6c74 696e 2e66 696c  ible.builtin.fil
│ │ │ +001d84b0: 653a 0a20 2020 2070 6174 683a 2027 7b7b  e:.    path: '{{
│ │ │ +001d84c0: 2069 7465 6d20 7d7d 270a 2020 2020 6d6f   item }}'.    mo
│ │ │ +001d84d0: 6465 3a20 752d 7873 2c67 2d78 7772 732c  de: u-xs,g-xwrs,
│ │ │ +001d84e0: 6f2d 7877 7274 0a20 2020 2073 7461 7465  o-xwrt.    state
│ │ │ +001d84f0: 3a20 6669 6c65 0a20 2077 6974 685f 6974  : file.  with_it
│ │ │ +001d8500: 656d 733a 0a20 202d 2027 7b7b 2072 6f6f  ems:.  - '{{ roo
│ │ │ +001d8510: 745f 6f77 6e65 645f 6b65 7973 2e73 7464  t_owned_keys.std
│ │ │ +001d8520: 6f75 745f 6c69 6e65 7320 7d7d 270a 2020  out_lines }}'.  
│ │ │ +001d8530: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +001d8540: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +001d8550: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +001d8560: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001d8570: 3830 302d 3137 312d 332e 312e 3133 0a20  800-171-3.1.13. 
│ │ │ +001d8580: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001d8590: 332e 3133 2e31 300a 2020 2d20 4e49 5354  3.13.10.  - NIST
│ │ │ +001d85a0: 2d38 3030 2d35 332d 4143 2d31 3728 6129  -800-53-AC-17(a)
│ │ │ +001d85b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001d85c0: 2d41 432d 3628 3129 0a20 202d 204e 4953  -AC-6(1).  - NIS
│ │ │ +001d85d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001d85e0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +001d85f0: 2d32 2e32 2e34 0a20 202d 2050 4349 2d44  -2.2.4.  - PCI-D
│ │ │ +001d8600: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +001d8610: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +001d8620: 2063 6f6e 6669 6775 7265 5f73 7472 6174   configure_strat
│ │ │ +001d8630: 6567 790a 2020 2d20 6669 6c65 5f70 6572  egy.  - file_per
│ │ │ +001d8640: 6d69 7373 696f 6e73 5f73 7368 645f 7072  missions_sshd_pr
│ │ │ +001d8650: 6976 6174 655f 6b65 790a 2020 2d20 6c6f  ivate_key.  - lo
│ │ │ +001d8660: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001d8670: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001d8680: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001d8690: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001d86a0: 745f 6e65 6564 6564 0a3c 2f63 6f64 653e  t_needed.
│ │ │ +001d86b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +001d8760: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +001d8770: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001d8780: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001d8790: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001d87a0: 7365 2220 6964 3d22 6964 3632 3822 3e3c se" id="id628">< │ │ │ +001d87b0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +001d87c0: 6520 7373 685f 7072 6976 6174 655f 6b65 e ssh_private_ke │ │ │ +001d87d0: 795f 7065 726d 730a 0a63 6c61 7373 2073 y_perms..class s │ │ │ +001d87e0: 7368 5f70 7269 7661 7465 5f6b 6579 5f70 sh_private_key_p │ │ │ +001d87f0: 6572 6d73 207b 0a20 2065 7865 6320 7b20 erms {. exec { │ │ │ +001d8800: 2773 7368 645f 7072 6976 5f6b 6579 273a 'sshd_priv_key': │ │ │ +001d8810: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667 . command =&g │ │ │ +001d8820: 743b 2022 6368 6d6f 6420 3036 3430 202f t; "chmod 0640 / │ │ │ +001d8830: 6574 632f 7373 682f 2a5f 6b65 7922 2c0a etc/ssh/*_key",. │ │ │ +001d8840: 2020 2020 7061 7468 2020 2020 3d26 6774 path => │ │ │ +001d8850: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e ; '/bin:/usr/bin │ │ │ +001d8860: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c '. }.}.< │ │ │ 001d8870: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -001d9cd0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -001d9ce0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

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

Remediation │ │ │ -001d9e90: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001d9ea0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001d9f30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001d9f50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001d9f70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001d9fa0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001d9fb0: 636f 6e66 6967 7572 653c 2f74 643e 3c2f configure
│ │ │ -001d9fd0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -001d9fe0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -001d9ff0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -001da000: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -001da010: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -001da020: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ -001da030: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49  71-3.1.13.  - NI
│ │ │ -001da040: 5354 2d38 3030 2d31 3731 2d33 2e31 332e  ST-800-171-3.13.
│ │ │ -001da050: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ -001da060: 3533 2d41 432d 3137 2861 290a 2020 2d20  53-AC-17(a).  - 
│ │ │ -001da070: 4e49 5354 2d38 3030 2d35 332d 4143 2d36  NIST-800-53-AC-6
│ │ │ -001da080: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -001da090: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -001da0a0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ -001da0b0: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -001da0c0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -001da0d0: 342d 322e 322e 360a 2020 2d20 636f 6e66  4-2.2.6.  - conf
│ │ │ -001da0e0: 6967 7572 655f 7374 7261 7465 6779 0a20  igure_strategy. 
│ │ │ -001da0f0: 202d 2066 696c 655f 7065 726d 6973 7369   - file_permissi
│ │ │ -001da100: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579  ons_sshd_pub_key
│ │ │ -001da110: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001da120: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001da130: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -001da140: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -001da150: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001da160: 0a2d 206e 616d 653a 2046 696e 6420 2f65  .- name: Find /e
│ │ │ -001da170: 7463 2f73 7368 2f20 6669 6c65 2873 290a  tc/ssh/ file(s).
│ │ │ -001da180: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001da190: 6e2e 636f 6d6d 616e 643a 2066 696e 6420  n.command: find 
│ │ │ -001da1a0: 2d50 202f 6574 632f 7373 682f 202d 6d61  -P /etc/ssh/ -ma
│ │ │ -001da1b0: 7864 6570 7468 2031 202d 7065 726d 202f  xdepth 1 -perm /
│ │ │ -001da1c0: 752b 7873 2c67 2b78 7773 2c6f 2b78 7774  u+xs,g+xws,o+xwt
│ │ │ -001da1d0: 2020 2d74 7970 650a 2020 2020 6620 2d72    -type.    f -r
│ │ │ -001da1e0: 6567 6578 7479 7065 2070 6f73 6978 2d65  egextype posix-e
│ │ │ -001da1f0: 7874 656e 6465 6420 2d72 6567 6578 2022  xtended -regex "
│ │ │ -001da200: 5e2e 2a5c 2e70 7562 2422 0a20 2072 6567  ^.*\.pub$".  reg
│ │ │ -001da210: 6973 7465 723a 2066 696c 6573 5f66 6f75  ister: files_fou
│ │ │ -001da220: 6e64 0a20 2063 6861 6e67 6564 5f77 6865  nd.  changed_whe
│ │ │ -001da230: 6e3a 2066 616c 7365 0a20 2066 6169 6c65  n: false.  faile
│ │ │ -001da240: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -001da250: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -001da260: 650a 2020 7768 656e 3a20 2722 6c69 6e75  e.  when: '"linu
│ │ │ -001da270: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -001da280: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -001da290: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -001da2a0: 4953 542d 3830 302d 3137 312d 332e 312e  IST-800-171-3.1.
│ │ │ -001da2b0: 3133 0a20 202d 204e 4953 542d 3830 302d  13.  - NIST-800-
│ │ │ -001da2c0: 3137 312d 332e 3133 2e31 300a 2020 2d20  171-3.13.10.  - 
│ │ │ -001da2d0: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ -001da2e0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -001da2f0: 302d 3533 2d41 432d 3628 3129 0a20 202d  0-53-AC-6(1).  -
│ │ │ -001da300: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -001da310: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -001da320: 2d52 6571 2d32 2e32 2e34 0a20 202d 2050  -Req-2.2.4.  - P
│ │ │ -001da330: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -001da340: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -001da350: 0a20 202d 2063 6f6e 6669 6775 7265 5f73  .  - configure_s
│ │ │ -001da360: 7472 6174 6567 790a 2020 2d20 6669 6c65  trategy.  - file
│ │ │ -001da370: 5f70 6572 6d69 7373 696f 6e73 5f73 7368  _permissions_ssh
│ │ │ -001da380: 645f 7075 625f 6b65 790a 2020 2d20 6c6f  d_pub_key.  - lo
│ │ │ -001da390: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001da3a0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001da3b0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -001da3c0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -001da3d0: 745f 6e65 6564 6564 0a0a 2d20 6e61 6d65  t_needed..- name
│ │ │ -001da3e0: 3a20 5365 7420 7065 726d 6973 7369 6f6e  : Set permission
│ │ │ -001da3f0: 7320 666f 7220 2f65 7463 2f73 7368 2f20  s for /etc/ssh/ 
│ │ │ -001da400: 6669 6c65 2873 290a 2020 616e 7369 626c  file(s).  ansibl
│ │ │ -001da410: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a  e.builtin.file:.
│ │ │ -001da420: 2020 2020 7061 7468 3a20 277b 7b20 6974      path: '{{ it
│ │ │ -001da430: 656d 207d 7d27 0a20 2020 206d 6f64 653a  em }}'.    mode:
│ │ │ -001da440: 2075 2d78 732c 672d 7877 732c 6f2d 7877   u-xs,g-xws,o-xw
│ │ │ -001da450: 740a 2020 2020 7374 6174 653a 2066 696c  t.    state: fil
│ │ │ -001da460: 650a 2020 7769 7468 5f69 7465 6d73 3a0a  e.  with_items:.
│ │ │ -001da470: 2020 2d20 277b 7b20 6669 6c65 735f 666f    - '{{ files_fo
│ │ │ -001da480: 756e 642e 7374 646f 7574 5f6c 696e 6573  und.stdout_lines
│ │ │ -001da490: 207d 7d27 0a20 2077 6865 6e3a 2027 226c   }}'.  when: '"l
│ │ │ -001da4a0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -001da4b0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001da4c0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -001da4d0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -001da4e0: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ -001da4f0: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ -001da500: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -001da510: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ -001da520: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ -001da530: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001da540: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -001da550: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ -001da560: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -001da570: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -001da580: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ -001da590: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ -001da5a0: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ -001da5b0: 7373 6864 5f70 7562 5f6b 6579 0a20 202d  sshd_pub_key.  -
│ │ │ -001da5c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -001da5d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -001da5e0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -001da5f0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -001da600: 626f 6f74 5f6e 6565 6465 640a 3c2f 636f  boot_needed.
< │ │ │ +001d9cf0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001d9d00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001d9d10: 7365 2220 6964 3d22 6964 3633 3122 3e3c se" id="id631">< │ │ │ +001d9d20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001d9d30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001d9d40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001d9d50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001d9d60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001d9d70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001d9d80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001d9dc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001d9dd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001d9df0: 3c74 643e 636f 6e66 6967 7572 653c 2f74 configure< │ │ │ +001d9e10: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +001d9e20: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +001d9e30: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +001d9e40: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +001d9e50: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +001d9e60: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +001d9e70: 3030 2d31 3731 2d33 2e31 2e31 330a 2020 00-171-3.1.13. │ │ │ +001d9e80: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33 - NIST-800-171-3 │ │ │ +001d9e90: 2e31 332e 3130 0a20 202d 204e 4953 542d .13.10. - NIST- │ │ │ +001d9ea0: 3830 302d 3533 2d41 432d 3137 2861 290a 800-53-AC-17(a). │ │ │ +001d9eb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +001d9ec0: 4143 2d36 2831 290a 2020 2d20 4e49 5354 AC-6(1). - NIST │ │ │ +001d9ed0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +001d9ee0: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +001d9ef0: 322e 322e 340a 2020 2d20 5043 492d 4453 2.2.4. - PCI-DS │ │ │ +001d9f00: 5376 342d 322e 320a 2020 2d20 5043 492d Sv4-2.2. - PCI- │ │ │ +001d9f10: 4453 5376 342d 322e 322e 360a 2020 2d20 DSSv4-2.2.6. - │ │ │ +001d9f20: 636f 6e66 6967 7572 655f 7374 7261 7465 configure_strate │ │ │ +001d9f30: 6779 0a20 202d 2066 696c 655f 7065 726d gy. - file_perm │ │ │ +001d9f40: 6973 7369 6f6e 735f 7373 6864 5f70 7562 issions_sshd_pub │ │ │ +001d9f50: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d _key. - low_com │ │ │ +001d9f60: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +001d9f70: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +001d9f80: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +001d9f90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +001d9fa0: 6465 640a 0a2d 206e 616d 653a 2046 696e ded..- name: Fin │ │ │ +001d9fb0: 6420 2f65 7463 2f73 7368 2f20 6669 6c65 d /etc/ssh/ file │ │ │ +001d9fc0: 2873 290a 2020 616e 7369 626c 652e 6275 (s). ansible.bu │ │ │ +001d9fd0: 696c 7469 6e2e 636f 6d6d 616e 643a 2066 iltin.command: f │ │ │ +001d9fe0: 696e 6420 2d50 202f 6574 632f 7373 682f ind -P /etc/ssh/ │ │ │ +001d9ff0: 202d 6d61 7864 6570 7468 2031 202d 7065 -maxdepth 1 -pe │ │ │ +001da000: 726d 202f 752b 7873 2c67 2b78 7773 2c6f rm /u+xs,g+xws,o │ │ │ +001da010: 2b78 7774 2020 2d74 7970 650a 2020 2020 +xwt -type. │ │ │ +001da020: 6620 2d72 6567 6578 7479 7065 2070 6f73 f -regextype pos │ │ │ +001da030: 6978 2d65 7874 656e 6465 6420 2d72 6567 ix-extended -reg │ │ │ +001da040: 6578 2022 5e2e 2a5c 2e70 7562 2422 0a20 ex "^.*\.pub$". │ │ │ +001da050: 2072 6567 6973 7465 723a 2066 696c 6573 register: files │ │ │ +001da060: 5f66 6f75 6e64 0a20 2063 6861 6e67 6564 _found. changed │ │ │ +001da070: 5f77 6865 6e3a 2066 616c 7365 0a20 2066 _when: false. f │ │ │ +001da080: 6169 6c65 645f 7768 656e 3a20 6661 6c73 ailed_when: fals │ │ │ +001da090: 650a 2020 6368 6563 6b5f 6d6f 6465 3a20 e. check_mode: │ │ │ +001da0a0: 6661 6c73 650a 2020 7768 656e 3a20 2722 false. when: '" │ │ │ +001da0b0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ +001da0c0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ +001da0d0: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ +001da0e0: 202d 204e 4953 542d 3830 302d 3137 312d - NIST-800-171- │ │ │ +001da0f0: 332e 312e 3133 0a20 202d 204e 4953 542d 3.1.13. - NIST- │ │ │ +001da100: 3830 302d 3137 312d 332e 3133 2e31 300a 800-171-3.13.10. │ │ │ +001da110: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +001da120: 4143 2d31 3728 6129 0a20 202d 204e 4953 AC-17(a). - NIS │ │ │ +001da130: 542d 3830 302d 3533 2d41 432d 3628 3129 T-800-53-AC-6(1) │ │ │ +001da140: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +001da150: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ +001da160: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20 -DSS-Req-2.2.4. │ │ │ +001da170: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +001da180: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +001da190: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775 .2.6. - configu │ │ │ +001da1a0: 7265 5f73 7472 6174 6567 790a 2020 2d20 re_strategy. - │ │ │ +001da1b0: 6669 6c65 5f70 6572 6d69 7373 696f 6e73 file_permissions │ │ │ +001da1c0: 5f73 7368 645f 7075 625f 6b65 790a 2020 _sshd_pub_key. │ │ │ +001da1d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +001da1e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +001da1f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +001da200: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +001da210: 6562 6f6f 745f 6e65 6564 6564 0a0a 2d20 eboot_needed..- │ │ │ +001da220: 6e61 6d65 3a20 5365 7420 7065 726d 6973 name: Set permis │ │ │ +001da230: 7369 6f6e 7320 666f 7220 2f65 7463 2f73 sions for /etc/s │ │ │ +001da240: 7368 2f20 6669 6c65 2873 290a 2020 616e sh/ file(s). an │ │ │ +001da250: 7369 626c 652e 6275 696c 7469 6e2e 6669 sible.builtin.fi │ │ │ +001da260: 6c65 3a0a 2020 2020 7061 7468 3a20 277b le:. path: '{ │ │ │ +001da270: 7b20 6974 656d 207d 7d27 0a20 2020 206d { item }}'. m │ │ │ +001da280: 6f64 653a 2075 2d78 732c 672d 7877 732c ode: u-xs,g-xws, │ │ │ +001da290: 6f2d 7877 740a 2020 2020 7374 6174 653a o-xwt. state: │ │ │ +001da2a0: 2066 696c 650a 2020 7769 7468 5f69 7465 file. with_ite │ │ │ +001da2b0: 6d73 3a0a 2020 2d20 277b 7b20 6669 6c65 ms:. - '{{ file │ │ │ +001da2c0: 735f 666f 756e 642e 7374 646f 7574 5f6c s_found.stdout_l │ │ │ +001da2d0: 696e 6573 207d 7d27 0a20 2077 6865 6e3a ines }}'. when: │ │ │ +001da2e0: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +001da2f0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +001da300: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +001da310: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31 :. - NIST-800-1 │ │ │ +001da320: 3731 2d33 2e31 2e31 330a 2020 2d20 4e49 71-3.1.13. - NI │ │ │ +001da330: 5354 2d38 3030 2d31 3731 2d33 2e31 332e ST-800-171-3.13. │ │ │ +001da340: 3130 0a20 202d 204e 4953 542d 3830 302d 10. - NIST-800- │ │ │ +001da350: 3533 2d41 432d 3137 2861 290a 2020 2d20 53-AC-17(a). - │ │ │ +001da360: 4e49 5354 2d38 3030 2d35 332d 4143 2d36 NIST-800-53-AC-6 │ │ │ +001da370: 2831 290a 2020 2d20 4e49 5354 2d38 3030 (1). - NIST-800 │ │ │ +001da380: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +001da390: 5043 492d 4453 532d 5265 712d 322e 322e PCI-DSS-Req-2.2. │ │ │ +001da3a0: 340a 2020 2d20 5043 492d 4453 5376 342d 4. - PCI-DSSv4- │ │ │ +001da3b0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ +001da3c0: 342d 322e 322e 360a 2020 2d20 636f 6e66 4-2.2.6. - conf │ │ │ +001da3d0: 6967 7572 655f 7374 7261 7465 6779 0a20 igure_strategy. │ │ │ +001da3e0: 202d 2066 696c 655f 7065 726d 6973 7369 - file_permissi │ │ │ +001da3f0: 6f6e 735f 7373 6864 5f70 7562 5f6b 6579 ons_sshd_pub_key │ │ │ +001da400: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +001da410: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +001da420: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +001da430: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +001da440: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +001da450: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ +001da500: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +001da510: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
include ssh_pub
│ │ │ +001da570: 6c69 635f 6b65 795f 7065 726d 730a 0a63  lic_key_perms..c
│ │ │ +001da580: 6c61 7373 2073 7368 5f70 7562 6c69 635f  lass ssh_public_
│ │ │ +001da590: 6b65 795f 7065 726d 7320 7b0a 2020 6578  key_perms {.  ex
│ │ │ +001da5a0: 6563 207b 2027 7373 6864 5f70 7562 5f6b  ec { 'sshd_pub_k
│ │ │ +001da5b0: 6579 273a 0a20 2020 2063 6f6d 6d61 6e64  ey':.    command
│ │ │ +001da5c0: 203d 2667 743b 2022 6368 6d6f 6420 3036   => "chmod 06
│ │ │ +001da5d0: 3434 202f 6574 632f 7373 682f 2a2e 7075  44 /etc/ssh/*.pu
│ │ │ +001da5e0: 6222 2c0a 2020 2020 7061 7468 2020 2020  b",.    path    
│ │ │ +001da5f0: 3d26 6774 3b20 272f 6269 6e3a 2f75 7372  => '/bin:/usr
│ │ │ +001da600: 2f62 696e 270a 2020 7d0a 7d0a 3c2f 636f  /bin'.  }.}.
< │ │ │ 001da620: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 001da630: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 001da640: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 001da650: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 001da660: 6436 3333 2220 7461 6269 6e64 6578 3d22 d633" tabindex=" │ │ │ 001da670: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -122283,126 +122283,126 @@ │ │ │ 001ddaa0: 7267 6574 3d22 2369 6436 3337 2220 7461 rget="#id637" ta │ │ │ 001ddab0: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 001ddac0: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 001ddad0: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 001ddae0: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 001ddaf0: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 001ddb00: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -001ddb10: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -001ddb20: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...


│ │ │ -001ddb70: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -001ddb80: 6d65 203d 2022 7373 7364 220a 7665 7273  me = "sssd".vers
│ │ │ -001ddb90: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -001ddc50: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -001ddc60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001ddc70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001ddca0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -001ddd10: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001ddd30: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001ddd60: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -001ddd80: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -001ddcf0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001ddd00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -001ddd40: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -001ddd50: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -001ddda0: 696e 7374 616c 6c5f 7373 7364 0a0a 636c install_sssd..cl │ │ │ -001dddb0: 6173 7320 696e 7374 616c 6c5f 7373 7364 ass install_sssd │ │ │ -001dddc0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -001dddd0: 7373 7364 273a 0a20 2020 2065 6e73 7572 sssd':. ensur │ │ │ -001ddde0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ -001dddf0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ -001ddeb0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -001ddec0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001ddf50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001ddf60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001ddf80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001ddfa0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001ddfb0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001ddff0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001de000: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001de010: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001de020: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001de030: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -001de040: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001de050: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -001de060: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ -001de070: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -001de080: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -001de090: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -001de0a0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -001de0b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -001de0c0: 0a20 202d 2070 6163 6b61 6765 5f73 7373 . - package_sss │ │ │ -001de0d0: 645f 696e 7374 616c 6c65 640a 0a2d 206e d_installed..- n │ │ │ -001de0e0: 616d 653a 2045 6e73 7572 6520 7373 7364 ame: Ensure sssd │ │ │ -001de0f0: 2069 7320 696e 7374 616c 6c65 640a 2020 is installed. │ │ │ -001de100: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -001de110: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ -001de120: 653a 2073 7373 640a 2020 2020 7374 6174 e: sssd. stat │ │ │ -001de130: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ -001de140: 6e3a 2027 2273 7373 642d 636f 6d6d 6f6e n: '"sssd-common │ │ │ -001de150: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -001de160: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -001de170: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -001de180: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -001de190: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -001de1a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -001de1b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -001de1c0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -001de1d0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -001de1e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -001de1f0: 2020 2d20 7061 636b 6167 655f 7373 7364 - package_sssd │ │ │ -001de200: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.
Complexity: │ │ │ +001ddbb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +001ddbd0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +001ddbf0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +001ddc20: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +001ddc30: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +001ddc40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +001ddc60: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +001ddc70: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +001ddc80: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +001ddc90: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +001ddca0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +001ddcb0: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +001ddcc0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001ddcd0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001ddce0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001ddcf0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001ddd00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001ddd10: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +001ddd20: 636b 6167 655f 7373 7364 5f69 6e73 7461  ckage_sssd_insta
│ │ │ +001ddd30: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ +001ddd40: 7375 7265 2073 7373 6420 6973 2069 6e73  sure sssd is ins
│ │ │ +001ddd50: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +001ddd60: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001ddd70: 3a0a 2020 2020 6e61 6d65 3a20 7373 7364  :.    name: sssd
│ │ │ +001ddd80: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +001ddd90: 656e 740a 2020 7768 656e 3a20 2722 7373  ent.  when: '"ss
│ │ │ +001ddda0: 7364 2d63 6f6d 6d6f 6e22 2069 6e20 616e  sd-common" in an
│ │ │ +001dddb0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +001dddc0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +001dddd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001ddde0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +001dddf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +001dde00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001dde10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001dde20: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001dde30: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001dde40: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +001dde50: 6b61 6765 5f73 7373 645f 696e 7374 616c  kage_sssd_instal
│ │ │ +001dde60: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation │ │ │ +001ddf20: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +001ddf30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001ddfb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001ddfd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001de020: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +001de050: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +001de070: 6c5f 7373 7364 0a0a 636c 6173 7320 696e  l_sssd..class in
│ │ │ +001de080: 7374 616c 6c5f 7373 7364 207b 0a20 2070  stall_sssd {.  p
│ │ │ +001de090: 6163 6b61 6765 207b 2027 7373 7364 273a  ackage { 'sssd':
│ │ │ +001de0a0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +001de0b0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +001de0c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +001de180: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +001de190: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +001de1f0: 616d 6520 3d20 2273 7373 6422 0a76 6572  ame = "sssd".ver
│ │ │ +001de200: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediation O │ │ │ -001df440: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -001df450: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001df460: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -001df4a0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -001df4b0: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ -001df4c0: 6420 3d20 5b22 7373 7364 225d 0a3c 2f63  d = ["sssd"].
│ │ │ -001df4e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -001df580: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -001df590: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001df5a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +001ddfc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001ddfe0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001de030: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +001de040: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -001df620: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001df650: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001df670: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001df680: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001df6a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -001df6c0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -001df6d0: 6465 2065 6e61 626c 655f 7373 7364 0a0a  de enable_sssd..
│ │ │ -001df6e0: 636c 6173 7320 656e 6162 6c65 5f73 7373  class enable_sss
│ │ │ -001df6f0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -001df700: 7373 7364 273a 0a20 2020 2065 6e61 626c  sssd':.    enabl
│ │ │ -001df710: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -001df720: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -001df730: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -001df740: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001df7f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001df800: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001df810: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001df8e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001df8f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -001df940: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -001df950: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -001df960: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -001df970: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -001df980: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -001df990: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -001df9a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -001df9b0: 3533 2d49 412d 3528 3130 290a 2020 2d20  53-IA-5(10).  - 
│ │ │ -001df9c0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -001df9d0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -001df9e0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -001df9f0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -001dfa00: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -001dfa10: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -001dfa20: 202d 2073 6572 7669 6365 5f73 7373 645f   - service_sssd_
│ │ │ -001dfa30: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -001dfa40: 2045 6e61 626c 6520 7468 6520 5353 5344   Enable the SSSD
│ │ │ -001dfa50: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -001dfa60: 6520 7365 7276 6963 6520 7373 7364 0a20  e service sssd. 
│ │ │ -001dfa70: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -001dfa80: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -001dfa90: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -001dfaa0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001dfab0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -001dfac0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -001dfad0: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -001dfae0: 6162 6c65 2074 6865 2053 5353 4420 5365  able the SSSD Se
│ │ │ -001dfaf0: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ -001dfb00: 6572 7669 6365 2073 7373 640a 2020 2020  ervice sssd.    
│ │ │ -001dfb10: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001dfb20: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001dfb30: 616d 653a 2073 7373 640a 2020 2020 2020  ame: sssd.      
│ │ │ -001dfb40: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -001dfb50: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -001dfb60: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -001dfb70: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -001dfb80: 0a20 2020 202d 2027 2273 7373 642d 636f  .    - '"sssd-co
│ │ │ -001dfb90: 6d6d 6f6e 2220 696e 2061 6e73 6962 6c65  mmon" in ansible
│ │ │ -001dfba0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -001dfbb0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -001dfbc0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -001dfbd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001dfbe0: 2d49 412d 3528 3130 290a 2020 2d20 656e  -IA-5(10).  - en
│ │ │ -001dfbf0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -001dfc00: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -001dfc10: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -001dfc20: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -001dfc30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -001dfc40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -001dfc50: 2073 6572 7669 6365 5f73 7373 645f 656e   service_sssd_en
│ │ │ -001dfc60: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -001dfc70: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -001dfc80: 2020 7768 656e 3a0a 2020 2d20 2722 7373    when:.  - '"ss
│ │ │ -001dfc90: 7364 2d63 6f6d 6d6f 6e22 2069 6e20 616e  sd-common" in an
│ │ │ -001dfca0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001dfcb0: 6167 6573 270a 2020 2d20 2820 2273 7373  ages'.  - ( "sss
│ │ │ -001dfcc0: 642d 636f 6d6d 6f6e 2220 696e 2061 6e73  d-common" in ans
│ │ │ -001dfcd0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -001dfce0: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ -001dfcf0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -001dfd00: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -001dfd10: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).Remediation A
│ │ │ +001df440: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +001df450: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity:low
Disrup │ │ │ -001df8c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001df8d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001df910: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -001df920: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +001df4d0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +001df4f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +001df540: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +001df570: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +001df590: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +001df5a0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +001df5b0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +001df5c0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +001df5d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001df5e0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +001df5f0: 3030 2d35 332d 4941 2d35 2831 3029 0a20  00-53-IA-5(10). 
│ │ │ +001df600: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +001df610: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +001df620: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +001df630: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +001df640: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +001df650: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001df660: 640a 2020 2d20 7365 7276 6963 655f 7373  d.  - service_ss
│ │ │ +001df670: 7364 5f65 6e61 626c 6564 0a0a 2d20 6e61  sd_enabled..- na
│ │ │ +001df680: 6d65 3a20 456e 6162 6c65 2074 6865 2053  me: Enable the S
│ │ │ +001df690: 5353 4420 5365 7276 6963 6520 2d20 456e  SSD Service - En
│ │ │ +001df6a0: 6162 6c65 2073 6572 7669 6365 2073 7373  able service sss
│ │ │ +001df6b0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +001df6c0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +001df6d0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +001df6e0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +001df6f0: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +001df700: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +001df710: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +001df720: 2045 6e61 626c 6520 7468 6520 5353 5344   Enable the SSSD
│ │ │ +001df730: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +001df740: 6520 5365 7276 6963 6520 7373 7364 0a20  e Service sssd. 
│ │ │ +001df750: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +001df760: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +001df770: 2020 6e61 6d65 3a20 7373 7364 0a20 2020    name: sssd.   
│ │ │ +001df780: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +001df790: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +001df7a0: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +001df7b0: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +001df7c0: 656e 3a0a 2020 2020 2d20 2722 7373 7364  en:.    - '"sssd
│ │ │ +001df7d0: 2d63 6f6d 6d6f 6e22 2069 6e20 616e 7369  -common" in ansi
│ │ │ +001df7e0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +001df7f0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +001df800: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +001df810: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +001df820: 2d35 332d 4941 2d35 2831 3029 0a20 202d  -53-IA-5(10).  -
│ │ │ +001df830: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +001df840: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +001df850: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +001df860: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +001df870: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +001df880: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +001df890: 2020 2d20 7365 7276 6963 655f 7373 7364    - service_sssd
│ │ │ +001df8a0: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +001df8b0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +001df8c0: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ +001df8d0: 2273 7373 642d 636f 6d6d 6f6e 2220 696e  "sssd-common" in
│ │ │ +001df8e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +001df8f0: 6163 6b61 6765 7327 0a20 202d 2028 2022  ackages'.  - ( "
│ │ │ +001df900: 7373 7364 2d63 6f6d 6d6f 6e22 2069 6e20  sssd-common" in 
│ │ │ +001df910: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +001df920: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +001df930: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +001df940: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +001df950: 730a 2020 2020 290a 3c2f 636f 6465 3e3c  s.    ).<
│ │ │ +001df960: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +001dfa10: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +001dfa20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +001dfaa0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +001dfb30: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:< │ │ │ +001df4e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +001df500: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +001df550: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +001df560: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexi │ │ │ +001dfab0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001dfac0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +001dfb00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001dfb10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +001dfb50: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ +001dfb60: 6162 6c65 5f73 7373 640a 0a63 6c61 7373  able_sssd..class
│ │ │ +001dfb70: 2065 6e61 626c 655f 7373 7364 207b 0a20   enable_sssd {. 
│ │ │ +001dfb80: 2073 6572 7669 6365 207b 2773 7373 6427   service {'sssd'
│ │ │ +001dfb90: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +001dfba0: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +001dfbb0: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +001dfbc0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ +001dfc80: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +001dfc90: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +001dfca0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +001dfcf0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +001dfd00: 5d0a 656e 6162 6c65 6420 3d20 5b22 7373  ].enabled = ["ss
│ │ │ +001dfd10: 7364 225d 0a3c 2f63 6f64 653e 3c2f 7072  sd"].
Reme │ │ │ -001ea2d0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -001ea2e0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -001ea2f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -001ea340: 6765 735d 5d0a 6e61 6d65 203d 2022 6175 ges]].name = "au │ │ │ -001ea350: 6469 7464 220a 7665 7273 696f 6e20 3d20 ditd".version = │ │ │ -001ea360: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation │ │ │ -001ea420: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -001ea430: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -001ea4b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -001ea4d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -001ea520: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -001ea550: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -001ea570: 6c5f 6175 6469 7464 0a0a 636c 6173 7320  l_auditd..class 
│ │ │ -001ea580: 696e 7374 616c 6c5f 6175 6469 7464 207b  install_auditd {
│ │ │ -001ea590: 0a20 2070 6163 6b61 6765 207b 2027 6175  .  package { 'au
│ │ │ -001ea5a0: 6469 7464 273a 0a20 2020 2065 6e73 7572  ditd':.    ensur
│ │ │ -001ea5b0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -001ea5c0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -001ea680: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -001ea690: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:< │ │ │ -001ea4c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -001ea4e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -001ea530: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -001ea540: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Comp │ │ │ -001ea720: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001ea730: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001ea750: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001ea770: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001ea780: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001ea7c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001ea7d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001ea7e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001ea7f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -001ea800: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -001ea810: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001ea820: 3030 2d35 332d 4143 2d37 2861 290a 2020 00-53-AC-7(a). │ │ │ -001ea830: 2d20 4e49 5354 2d38 3030 2d35 332d 4155 - NIST-800-53-AU │ │ │ -001ea840: 2d31 3228 3229 0a20 202d 204e 4953 542d -12(2). - NIST- │ │ │ -001ea850: 3830 302d 3533 2d41 552d 3134 0a20 202d 800-53-AU-14. - │ │ │ -001ea860: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -001ea870: 3228 6129 0a20 202d 204e 4953 542d 3830 2(a). - NIST-80 │ │ │ -001ea880: 302d 3533 2d41 552d 3728 3129 0a20 202d 0-53-AU-7(1). - │ │ │ -001ea890: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -001ea8a0: 3728 3229 0a20 202d 204e 4953 542d 3830 7(2). - NIST-80 │ │ │ -001ea8b0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -001ea8c0: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -001ea8d0: 310a 2020 2d20 5043 492d 4453 5376 342d 1. - PCI-DSSv4- │ │ │ -001ea8e0: 3130 2e32 0a20 202d 2050 4349 2d44 5353 10.2. - PCI-DSS │ │ │ -001ea8f0: 7634 2d31 302e 322e 310a 2020 2d20 656e v4-10.2.1. - en │ │ │ -001ea900: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -001ea910: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -001ea920: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -001ea930: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -001ea940: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -001ea950: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -001ea960: 2070 6163 6b61 6765 5f61 7564 6974 5f69 package_audit_i │ │ │ -001ea970: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65 nstalled..- name │ │ │ -001ea980: 3a20 456e 7375 7265 2061 7564 6974 6420 : Ensure auditd │ │ │ -001ea990: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ -001ea9a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -001ea9b0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -001ea9c0: 3a20 6175 6469 7464 0a20 2020 2073 7461 : auditd. sta │ │ │ -001ea9d0: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ -001ea9e0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -001ea9f0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -001eaa00: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -001eaa10: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -001eaa20: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ -001eaa30: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -001eaa40: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ -001eaa50: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ -001eaa60: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ -001eaa70: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -001eaa80: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ -001eaa90: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ -001eaaa0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ -001eaab0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -001eaac0: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ -001eaad0: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ -001eaae0: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ -001eaaf0: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ -001eab00: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -001eab10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -001eab20: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -001eab30: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -001eab40: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -001eab50: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -001eab60: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ -001eab70: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +001ea2d0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +001ea2e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001ea2f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001ea370: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001ea3a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001ea3c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001ea3d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001ea3f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +001ea410: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +001ea420: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +001ea430: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +001ea440: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +001ea450: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +001ea460: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +001ea470: 3830 302d 3533 2d41 432d 3728 6129 0a20  800-53-AC-7(a). 
│ │ │ +001ea480: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +001ea490: 552d 3132 2832 290a 2020 2d20 4e49 5354  U-12(2).  - NIST
│ │ │ +001ea4a0: 2d38 3030 2d35 332d 4155 2d31 340a 2020  -800-53-AU-14.  
│ │ │ +001ea4b0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +001ea4c0: 2d32 2861 290a 2020 2d20 4e49 5354 2d38  -2(a).  - NIST-8
│ │ │ +001ea4d0: 3030 2d35 332d 4155 2d37 2831 290a 2020  00-53-AU-7(1).  
│ │ │ +001ea4e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +001ea4f0: 2d37 2832 290a 2020 2d20 4e49 5354 2d38  -7(2).  - NIST-8
│ │ │ +001ea500: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +001ea510: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +001ea520: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ +001ea530: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ +001ea540: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ +001ea550: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +001ea560: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +001ea570: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +001ea580: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +001ea590: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +001ea5a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +001ea5b0: 2d20 7061 636b 6167 655f 6175 6469 745f  - package_audit_
│ │ │ +001ea5c0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +001ea5d0: 653a 2045 6e73 7572 6520 6175 6469 7464  e: Ensure auditd
│ │ │ +001ea5e0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +001ea5f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001ea600: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +001ea610: 653a 2061 7564 6974 640a 2020 2020 7374  e: auditd.    st
│ │ │ +001ea620: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +001ea630: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +001ea640: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +001ea650: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +001ea660: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +001ea670: 3030 2d35 332d 4143 2d37 2861 290a 2020  00-53-AC-7(a).  
│ │ │ +001ea680: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +001ea690: 2d31 3228 3229 0a20 202d 204e 4953 542d  -12(2).  - NIST-
│ │ │ +001ea6a0: 3830 302d 3533 2d41 552d 3134 0a20 202d  800-53-AU-14.  -
│ │ │ +001ea6b0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +001ea6c0: 3228 6129 0a20 202d 204e 4953 542d 3830  2(a).  - NIST-80
│ │ │ +001ea6d0: 302d 3533 2d41 552d 3728 3129 0a20 202d  0-53-AU-7(1).  -
│ │ │ +001ea6e0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +001ea6f0: 3728 3229 0a20 202d 204e 4953 542d 3830  7(2).  - NIST-80
│ │ │ +001ea700: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +001ea710: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ +001ea720: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ +001ea730: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ +001ea740: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ +001ea750: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +001ea760: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +001ea770: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +001ea780: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +001ea790: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001ea7a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001ea7b0: 2070 6163 6b61 6765 5f61 7564 6974 5f69   package_audit_i
│ │ │ +001ea7c0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +001ea7d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +001ea880: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +001ea890: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001ea8a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001ea8b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001ea8c0: 7365 2220 6964 3d22 6964 3635 3222 3e3c se" id="id652">< │ │ │ +001ea8d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001ea8e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001ea8f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001ea900: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001ea910: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001ea920: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +001ea930: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001ea970: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001ea980: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +001ea9a0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +001ea9b0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ +001ea9d0: 6e73 7461 6c6c 5f61 7564 6974 640a 0a63  nstall_auditd..c
│ │ │ +001ea9e0: 6c61 7373 2069 6e73 7461 6c6c 5f61 7564  lass install_aud
│ │ │ +001ea9f0: 6974 6420 7b0a 2020 7061 636b 6167 6520  itd {.  package 
│ │ │ +001eaa00: 7b20 2761 7564 6974 6427 3a0a 2020 2020  { 'auditd':.    
│ │ │ +001eaa10: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ +001eaa20: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ +001eaa30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001eaae0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +001eaaf0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +001eab00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ +001eab50: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +001eab60: 2022 6175 6469 7464 220a 7665 7273 696f   "auditd".versio
│ │ │ +001eab70: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  001eab80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
R │ │ │ -001ec810: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -001ec820: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -001ec830: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001ec840: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001ec870: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -001ec880: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -001ec890: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -001ec8a0: 5b22 6175 6469 7464 225d 0a3c 2f63 6f64  ["auditd"].
Remed │ │ │ -001ec960: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -001ec970: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -001eca20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -001eca40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -001eca70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -001eca00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -001eca10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -001eca30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -001eca50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -001eca60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediation │ │ │ -001ecbe0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -001ecbf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001ecc80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001ecca0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001eccc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -001eccf0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -001ecd00: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -001ecd10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -001ecd30: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -001ecd40: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -001ecd50: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -001ecd60: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -001ecd70: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ -001ecd80: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -001ecd90: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ -001ecda0: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ -001ecdb0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -001ecdc0: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ -001ecdd0: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ -001ecde0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -001ecdf0: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ -001ece00: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ -001ece10: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -001ece20: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ -001ece30: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ -001ece40: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -001ece50: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ -001ece60: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ -001ece70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -001ece80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001ece90: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ -001ecea0: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ -001eceb0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -001ecec0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -001eced0: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ -001ecee0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -001ecef0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -001ecf00: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -001ecf10: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -001ecf20: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -001ecf30: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -001ecf40: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ -001ecf50: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -001ecf60: 6e61 626c 6520 6175 6469 7464 2053 6572  nable auditd Ser
│ │ │ -001ecf70: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -001ecf80: 7276 6963 6520 6175 6469 7464 0a20 2062  rvice auditd.  b
│ │ │ -001ecf90: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -001ecfa0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -001ecfb0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -001ecfc0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -001ecfd0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -001ecfe0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -001ecff0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -001ed000: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -001ed010: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -001ed020: 6365 2061 7564 6974 640a 2020 2020 616e  ce auditd.    an
│ │ │ -001ed030: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -001ed040: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -001ed050: 653a 2061 7564 6974 640a 2020 2020 2020  e: auditd.      
│ │ │ -001ed060: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -001ed070: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -001ed080: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -001ed090: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -001ed0a0: 0a20 2020 202d 2027 2261 7564 6974 6422  .    - '"auditd"
│ │ │ -001ed0b0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -001ed0c0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -001ed0d0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e34  gs:.  - CJIS-5.4
│ │ │ -001ed0e0: 2e31 2e31 0a20 202d 204e 4953 542d 3830  .1.1.  - NIST-80
│ │ │ -001ed0f0: 302d 3137 312d 332e 332e 310a 2020 2d20  0-171-3.3.1.  - 
│ │ │ -001ed100: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -001ed110: 2e32 0a20 202d 204e 4953 542d 3830 302d  .2.  - NIST-800-
│ │ │ -001ed120: 3137 312d 332e 332e 360a 2020 2d20 4e49  171-3.3.6.  - NI
│ │ │ -001ed130: 5354 2d38 3030 2d35 332d 4143 2d32 2867  ST-800-53-AC-2(g
│ │ │ -001ed140: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001ed150: 332d 4143 2d36 2839 290a 2020 2d20 4e49  3-AC-6(9).  - NI
│ │ │ -001ed160: 5354 2d38 3030 2d35 332d 4155 2d31 300a  ST-800-53-AU-10.
│ │ │ -001ed170: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001ed180: 4155 2d31 3228 6329 0a20 202d 204e 4953  AU-12(c).  - NIS
│ │ │ -001ed190: 542d 3830 302d 3533 2d41 552d 3134 2831  T-800-53-AU-14(1
│ │ │ -001ed1a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001ed1b0: 332d 4155 2d32 2864 290a 2020 2d20 4e49  3-AU-2(d).  - NI
│ │ │ -001ed1c0: 5354 2d38 3030 2d35 332d 4155 2d33 0a20  ST-800-53-AU-3. 
│ │ │ -001ed1d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -001ed1e0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -001ed1f0: 3830 302d 3533 2d53 492d 3428 3233 290a  800-53-SI-4(23).
│ │ │ -001ed200: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -001ed210: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ -001ed220: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ -001ed230: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ -001ed240: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -001ed250: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -001ed260: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001ed270: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -001ed280: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -001ed290: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001ed2a0: 2020 2d20 7365 7276 6963 655f 6175 6469    - service_audi
│ │ │ -001ed2b0: 7464 5f65 6e61 626c 6564 0a20 202d 2073  td_enabled.  - s
│ │ │ -001ed2c0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -001ed2d0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -001ed2e0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -001ed2f0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -001ed300: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ -001ed310: 6175 6469 7464 2220 696e 2061 6e73 6962  auditd" in ansib
│ │ │ -001ed320: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -001ed330: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +001ec810: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +001ec820: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +001ec8c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +001ec960: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +001ec970: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +001ec980: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +001ec990: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +001ec9a0: 6f0a 2020 7461 6773 3a0a 2020 2d20 434a  o.  tags:.  - CJ
│ │ │ +001ec9b0: 4953 2d35 2e34 2e31 2e31 0a20 202d 204e  IS-5.4.1.1.  - N
│ │ │ +001ec9c0: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +001ec9d0: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ +001ec9e0: 3731 2d33 2e33 2e32 0a20 202d 204e 4953  71-3.3.2.  - NIS
│ │ │ +001ec9f0: 542d 3830 302d 3137 312d 332e 332e 360a  T-800-171-3.3.6.
│ │ │ +001eca00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001eca10: 4143 2d32 2867 290a 2020 2d20 4e49 5354  AC-2(g).  - NIST
│ │ │ +001eca20: 2d38 3030 2d35 332d 4143 2d36 2839 290a  -800-53-AC-6(9).
│ │ │ +001eca30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001eca40: 4155 2d31 300a 2020 2d20 4e49 5354 2d38  AU-10.  - NIST-8
│ │ │ +001eca50: 3030 2d35 332d 4155 2d31 3228 6329 0a20  00-53-AU-12(c). 
│ │ │ +001eca60: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +001eca70: 552d 3134 2831 290a 2020 2d20 4e49 5354  U-14(1).  - NIST
│ │ │ +001eca80: 2d38 3030 2d35 332d 4155 2d32 2864 290a  -800-53-AU-2(d).
│ │ │ +001eca90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +001ecaa0: 4155 2d33 0a20 202d 204e 4953 542d 3830  AU-3.  - NIST-80
│ │ │ +001ecab0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +001ecac0: 204e 4953 542d 3830 302d 3533 2d53 492d   NIST-800-53-SI-
│ │ │ +001ecad0: 3428 3233 290a 2020 2d20 5043 492d 4453  4(23).  - PCI-DS
│ │ │ +001ecae0: 532d 5265 712d 3130 2e31 0a20 202d 2050  S-Req-10.1.  - P
│ │ │ +001ecaf0: 4349 2d44 5353 7634 2d31 302e 320a 2020  CI-DSSv4-10.2.  
│ │ │ +001ecb00: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +001ecb10: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +001ecb20: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +001ecb30: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001ecb40: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001ecb50: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +001ecb60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +001ecb70: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +001ecb80: 655f 6175 6469 7464 5f65 6e61 626c 6564  e_auditd_enabled
│ │ │ +001ecb90: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +001ecba0: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ +001ecbb0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +001ecbc0: 2061 7564 6974 640a 2020 626c 6f63 6b3a   auditd.  block:
│ │ │ +001ecbd0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +001ecbe0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +001ecbf0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +001ecc00: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +001ecc10: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +001ecc20: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +001ecc30: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +001ecc40: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +001ecc50: 6e61 626c 6520 5365 7276 6963 6520 6175  nable Service au
│ │ │ +001ecc60: 6469 7464 0a20 2020 2061 6e73 6962 6c65  ditd.    ansible
│ │ │ +001ecc70: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +001ecc80: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175  :.      name: au
│ │ │ +001ecc90: 6469 7464 0a20 2020 2020 2065 6e61 626c  ditd.      enabl
│ │ │ +001ecca0: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +001eccb0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +001eccc0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +001eccd0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +001ecce0: 2d20 2722 6175 6469 7464 2220 696e 2061  - '"auditd" in a
│ │ │ +001eccf0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +001ecd00: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +001ecd10: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ +001ecd20: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +001ecd30: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ +001ecd40: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ +001ecd50: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +001ecd60: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ +001ecd70: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ +001ecd80: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +001ecd90: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ +001ecda0: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ +001ecdb0: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +001ecdc0: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +001ecdd0: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ +001ecde0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +001ecdf0: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ +001ece00: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ +001ece10: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +001ece20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +001ece30: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ +001ece40: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ +001ece50: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +001ece60: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +001ece70: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ +001ece80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +001ece90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +001ecea0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +001eceb0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +001ecec0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +001eced0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +001ecee0: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ +001ecef0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +001ecf00: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +001ecf10: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +001ecf20: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +001ecf30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +001ecf40: 6765 7327 0a20 202d 2027 2261 7564 6974  ges'.  - '"audit
│ │ │ +001ecf50: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +001ecf60: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +001ed020: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +001ed030: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +001ed040: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +001ec8b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001ec8e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001ec8f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001ec930: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +001ec940: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +001ed0e0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +001ed130: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +001ed0c0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +001ed0f0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +001ed110: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +001ed120: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +001ed140: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +001ed150: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +001ed170: 7564 6520 656e 6162 6c65 5f61 7564 6974  ude enable_audit
│ │ │ +001ed180: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +001ed190: 6175 6469 7464 207b 0a20 2073 6572 7669  auditd {.  servi
│ │ │ +001ed1a0: 6365 207b 2761 7564 6974 6427 3a0a 2020  ce {'auditd':.  
│ │ │ +001ed1b0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +001ed1c0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +001ed1d0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +001ed1e0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +001ed2a0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +001ed2b0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +001ed2c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +001ed310: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +001ed320: 6162 6c65 6420 3d20 5b22 6175 6469 7464  abled = ["auditd
│ │ │ +001ed330: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 001ed340: 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: │ │ │ │ @@ -165,14 +148,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 - │ │ │ │ @@ -570,31 +570,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: │ │ │ │ @@ -621,14 +604,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 - │ │ │ │ @@ -3701,31 +3701,14 @@ │ │ │ │ Rationale: password in resisting attempts 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -3746,14 +3729,31 @@ │ │ │ │ tags: │ │ │ │ - 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 - │ │ │ │ @@ -26924,27 +26924,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -26958,14 +26945,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -26979,27 +26979,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally reactivated and │ │ │ │ disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - 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 kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27008,14 +26995,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_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_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + 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 kea │ │ │ │ @@ -27207,27 +27207,14 @@ │ │ │ │ _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 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - 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: │ │ │ │ @@ -27254,14 +27241,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_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_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + 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 - │ │ │ │ @@ -27629,27 +27629,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: │ │ │ │ @@ -27680,14 +27667,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 - │ │ │ │ @@ -27721,27 +27721,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_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 │ │ │ │ _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_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - 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 NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27752,14 +27739,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_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_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + 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 ypbind-mt │ │ │ │ @@ -27797,27 +27797,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: │ │ │ │ @@ -27833,14 +27820,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 │ │ │ │ @@ -27881,27 +27881,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), IA-5(1)(c) │ │ │ │ _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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -27916,14 +27903,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 │ │ │ │ @@ -27946,27 +27946,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -27978,14 +27965,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -28007,27 +28007,14 @@ │ │ │ │ intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_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), │ │ │ │ References: 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-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 talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28038,14 +28025,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-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_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-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 talk-server │ │ │ │ @@ -28068,27 +28068,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: │ │ │ │ @@ -28099,14 +28086,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 │ │ │ │ @@ -28154,27 +28154,14 @@ │ │ │ │ _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 │ │ │ │ _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 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-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 telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28189,14 +28176,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-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_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-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 telnet-server │ │ │ │ @@ -28218,27 +28218,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: │ │ │ │ @@ -28250,14 +28237,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 │ │ │ │ @@ -28301,27 +28301,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28335,14 +28322,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -28361,27 +28361,14 @@ │ │ │ │ Rationale: It is recommended that TFTP be removed, unless there is a specific need for TFTP (such as │ │ │ │ a boot server). In that case, use extreme caution when configuring the services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _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_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - 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 tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -28392,14 +28379,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_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_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + 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 tftp │ │ │ │ @@ -29312,23 +29312,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 0640 /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: │ │ │ │ @@ -29392,14 +29383,23 @@ │ │ │ │ - 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 0640 /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 │ │ │ │ @@ -29439,23 +29439,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: │ │ │ │ @@ -29519,14 +29510,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 - │ │ │ │ @@ -29616,31 +29616,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -29663,14 +29646,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 - │ │ │ │ @@ -29700,31 +29700,14 @@ │ │ │ │ References: SR 2.1 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.18.1.4, 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-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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -29764,14 +29747,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 - │ │ │ │ @@ -30439,31 +30439,14 @@ │ │ │ │ SRG-OS-000350-GPOS-00138, SRG-OS-000351-GPOS-00139, SRG-OS-000352-GPOS-00140, │ │ │ │ SRG-OS-000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS-000358-GPOS-00145, │ │ │ │ SRG-OS-000365-GPOS-00152, SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -30504,14 +30487,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 - │ │ │ │ @@ -30572,31 +30572,14 @@ │ │ │ │ SRG-OS-000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR-000990, SRG-APP-000508-CTR- │ │ │ │ 001300, SRG-APP-000510-CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -30663,14 +30646,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-debian/ssg-debian12-guide-anssi_bp28_minimal.html │ │ │ @@ -23576,129 +23576,129 @@ │ │ │ 0005c170: 612d 7461 7267 6574 3d22 2369 6434 3922 a-target="#id49" │ │ │ 0005c180: 2074 6162 696e 6465 783d 2230 2220 726f tabindex="0" ro │ │ │ 0005c190: 6c65 3d22 6275 7474 6f6e 2220 6172 6961 le="button" aria │ │ │ 0005c1a0: 2d65 7870 616e 6465 643d 2266 616c 7365 -expanded="false │ │ │ 0005c1b0: 2220 7469 746c 653d 2241 6374 6976 6174 " title="Activat │ │ │ 0005c1c0: 6520 746f 2072 6576 6561 6c22 2068 7265 e to reveal" hre │ │ │ 0005c1d0: 663d 2223 2122 3e52 656d 6564 6961 7469 f="#!">Remediati │ │ │ -0005c1e0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0005c1f0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0005c200: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]].
│ │ │ -0005c250: 6e61 6d65 203d 2022 6c69 6270 616d 2d70  name = "libpam-p
│ │ │ -0005c260: 7771 7561 6c69 7479 220a 7665 7273 696f  wquality".versio
│ │ │ -0005c270: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -0005c280: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -0005c330: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0005c340: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -0005c3d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0005c3f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0005c400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005c410: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0005c420: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0005c440: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -0005c480: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ -0005c490: 6c69 7479 0a0a 636c 6173 7320 696e 7374  lity..class inst
│ │ │ -0005c4a0: 616c 6c5f 6c69 6270 616d 2d70 7771 7561  all_libpam-pwqua
│ │ │ -0005c4b0: 6c69 7479 207b 0a20 2070 6163 6b61 6765  lity {.  package
│ │ │ -0005c4c0: 207b 2027 6c69 6270 616d 2d70 7771 7561   { 'libpam-pwqua
│ │ │ -0005c4d0: 6c69 7479 273a 0a20 2020 2065 6e73 7572  lity':.    ensur
│ │ │ -0005c4e0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -0005c4f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -0005c5b0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0005c5c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0005c600: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0005c670: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0005c690: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0005c6c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0005c6e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0005c650: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0005c660: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0005c6a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0005c6b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -0005c700: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0005c710: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0005c720: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0005c730: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0005c740: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -0005c750: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0005c760: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0005c770: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0005c780: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -0005c790: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -0005c7a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -0005c7b0: 6765 5f70 616d 5f70 7771 7561 6c69 7479 ge_pam_pwquality │ │ │ -0005c7c0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61 _installed..- na │ │ │ -0005c7d0: 6d65 3a20 456e 7375 7265 206c 6962 7061 me: Ensure libpa │ │ │ -0005c7e0: 6d2d 7077 7175 616c 6974 7920 6973 2069 m-pwquality is i │ │ │ -0005c7f0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962 nstalled. ansib │ │ │ -0005c800: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0005c810: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69 ge:. name: li │ │ │ -0005c820: 6270 616d 2d70 7771 7561 6c69 7479 0a20 bpam-pwquality. │ │ │ -0005c830: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -0005c840: 740a 2020 7768 656e 3a20 2722 6c69 6270 t. when: '"libp │ │ │ -0005c850: 616d 2d72 756e 7469 6d65 2220 696e 2061 am-runtime" in a │ │ │ -0005c860: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0005c870: 6b61 6765 7327 0a20 2074 6167 733a 0a20 kages'. tags:. │ │ │ -0005c880: 202d 2065 6e61 626c 655f 7374 7261 7465 - enable_strate │ │ │ -0005c890: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -0005c8a0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -0005c8b0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -0005c8c0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -0005c8d0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0005c8e0: 640a 2020 2d20 7061 636b 6167 655f 7061 d. - package_pa │ │ │ -0005c8f0: 6d5f 7077 7175 616c 6974 795f 696e 7374 m_pwquality_inst │ │ │ -0005c900: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +0005c270: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0005c280: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0005c2a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0005c2b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0005c2d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0005c2f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0005c320: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0005c330: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0005c340: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0005c350: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0005c360: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0005c370: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0005c380: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0005c390: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0005c3a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0005c3b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0005c3c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0005c3d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0005c3e0: 7061 6d5f 7077 7175 616c 6974 795f 696e  pam_pwquality_in
│ │ │ +0005c3f0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +0005c400: 2045 6e73 7572 6520 6c69 6270 616d 2d70   Ensure libpam-p
│ │ │ +0005c410: 7771 7561 6c69 7479 2069 7320 696e 7374  wquality is inst
│ │ │ +0005c420: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0005c430: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0005c440: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ +0005c450: 6d2d 7077 7175 616c 6974 790a 2020 2020  m-pwquality.    
│ │ │ +0005c460: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +0005c470: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +0005c480: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +0005c490: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0005c4a0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0005c4b0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0005c4c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0005c4d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0005c4e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0005c4f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0005c500: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0005c510: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +0005c520: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +0005c530: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0005c540: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +0005c5f0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0005c600: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +0005c6d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0005c6e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0005c730: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6c  nclude install_l
│ │ │ +0005c740: 6962 7061 6d2d 7077 7175 616c 6974 790a  ibpam-pwquality.
│ │ │ +0005c750: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6c  .class install_l
│ │ │ +0005c760: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ +0005c770: 7b0a 2020 7061 636b 6167 6520 7b20 276c  {.  package { 'l
│ │ │ +0005c780: 6962 7061 6d2d 7077 7175 616c 6974 7927  ibpam-pwquality'
│ │ │ +0005c790: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0005c7a0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +0005c7b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ +0005c870: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0005c880: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

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

Remediation Pup │ │ │ -0006acd0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0006ace0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0005c6b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0005c6c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0005c700: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0005c710: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0006ad70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0006ae10: 696e 636c 7564 6520 7265 6d6f 7665 5f64  include remove_d
│ │ │ -0006ae20: 6863 700a 0a63 6c61 7373 2072 656d 6f76  hcp..class remov
│ │ │ -0006ae30: 655f 6468 6370 207b 0a20 2070 6163 6b61  e_dhcp {.  packa
│ │ │ -0006ae40: 6765 207b 2027 6468 6370 273a 0a20 2020  ge { 'dhcp':.   
│ │ │ -0006ae50: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0006ae60: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Rem │ │ │ -0006af20: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0006af30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0006af40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -0006ad60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0006ad90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0006ada0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0006ade0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0006adf0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -0006afc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0006aff0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0006b010: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0006b020: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0006b040: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0006b050: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0006b070: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2044  me: 'Uninstall D
│ │ │ -0006b080: 4843 5020 5365 7276 6572 2050 6163 6b61  HCP Server Packa
│ │ │ -0006b090: 6765 3a20 456e 7375 7265 2064 6863 7020  ge: Ensure dhcp 
│ │ │ -0006b0a0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -0006b0b0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0006b0c0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0006b0d0: 2064 6863 700a 2020 2020 7374 6174 653a   dhcp.    state:
│ │ │ -0006b0e0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -0006b0f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0006b100: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -0006b110: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -0006b120: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0006b130: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ -0006b140: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -0006b150: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -0006b160: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0006b170: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0006b180: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0006b190: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0006b1a0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0006b1b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0006b1c0: 640a 2020 2d20 7061 636b 6167 655f 6468  d.  - package_dh
│ │ │ -0006b1d0: 6370 5f72 656d 6f76 6564 0a3c 2f63 6f64  cp_removed.Remediation Ans
│ │ │ +0006acd0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0006ace0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
< │ │ │ +0006adb0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0006adc0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0006ae10: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0006ae20: 6c6c 2044 4843 5020 5365 7276 6572 2050  ll DHCP Server P
│ │ │ +0006ae30: 6163 6b61 6765 3a20 456e 7375 7265 2064  ackage: Ensure d
│ │ │ +0006ae40: 6863 7020 6973 2072 656d 6f76 6564 270a  hcp is removed'.
│ │ │ +0006ae50: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0006ae60: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0006ae70: 616d 653a 2064 6863 700a 2020 2020 7374  ame: dhcp.    st
│ │ │ +0006ae80: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0006ae90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0006aea0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0006aeb0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0006aec0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0006aed0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0006aee0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0006aef0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0006af00: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0006af10: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0006af20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0006af30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0006af40: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0006af50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0006af60: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0006af70: 655f 6468 6370 5f72 656d 6f76 6564 0a3c  e_dhcp_removed.<
│ │ │ +0006af80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0006b030: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0006b040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0006b050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +0006ad90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0006ada0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0006ade0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0006adf0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +0006b0d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0006b100: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0006b120: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0006b130: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0006b150: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0006b160: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0006b180: 6c75 6465 2072 656d 6f76 655f 6468 6370  lude remove_dhcp
│ │ │ +0006b190: 0a0a 636c 6173 7320 7265 6d6f 7665 5f64  ..class remove_d
│ │ │ +0006b1a0: 6863 7020 7b0a 2020 7061 636b 6167 6520  hcp {.  package 
│ │ │ +0006b1b0: 7b20 2764 6863 7027 3a0a 2020 2020 656e  { 'dhcp':.    en
│ │ │ +0006b1c0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0006b1d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediation │ │ │ -0006bcc0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0006bcd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0006bd50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0006bd70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0006bdc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0006bdf0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0006bd60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0006bd80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0006bdd0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0006bde0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0006be10: 7665 5f6b 6561 0a0a 636c 6173 7320 7265  ve_kea..class re
│ │ │ -0006be20: 6d6f 7665 5f6b 6561 207b 0a20 2070 6163  move_kea {.  pac
│ │ │ -0006be30: 6b61 6765 207b 2027 6b65 6127 3a0a 2020  kage { 'kea':.  
│ │ │ -0006be40: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0006be50: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0006be60: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0006bf10: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0006bf20: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low< │ │ │ -0006bfd0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0006c020: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0006c060: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0006c070: 6b65 6120 5061 636b 6167 653a 2045 6e73  kea Package: Ens
│ │ │ -0006c080: 7572 6520 6b65 6120 6973 2072 656d 6f76  ure kea is remov
│ │ │ -0006c090: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0006c0a0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0006c0b0: 2020 206e 616d 653a 206b 6561 0a20 2020     name: kea.   
│ │ │ -0006c0c0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0006c0d0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0006c0e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0006c0f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0006c100: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0006c110: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0006c120: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0006c130: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0006c140: 6163 6b61 6765 5f6b 6561 5f72 656d 6f76  ackage_kea_remov
│ │ │ -0006c150: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0006bcc0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +0006bcd0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ +0006bda0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Co │ │ │ -0006bfb0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0006bfe0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0006c000: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0006c010: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0006c030: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0006c040: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +0006bd60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0006bd80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0006bdd0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0006bde0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0006be10: 6e73 7461 6c6c 206b 6561 2050 6163 6b61  nstall kea Packa
│ │ │ +0006be20: 6765 3a20 456e 7375 7265 206b 6561 2069  ge: Ensure kea i
│ │ │ +0006be30: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0006be40: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0006be50: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0006be60: 6b65 610a 2020 2020 7374 6174 653a 2061  kea.    state: a
│ │ │ +0006be70: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +0006be80: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0006be90: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0006bea0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0006beb0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0006bec0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0006bed0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0006bee0: 640a 2020 2d20 7061 636b 6167 655f 6b65  d.  - package_ke
│ │ │ +0006bef0: 615f 7265 6d6f 7665 640a 3c2f 636f 6465  a_removed.
Remedia │ │ │ +0006bfb0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0006bfc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0006bfd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0006bfe0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0006bff0: 7365 2220 6964 3d22 6964 3731 223e 3c74 se" id="id71"> │ │ │ +0006c040: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0006c050: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0006c060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0006c0a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0006c0b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0006c0d0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0006c0e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +0006c100: 7265 6d6f 7665 5f6b 6561 0a0a 636c 6173  remove_kea..clas
│ │ │ +0006c110: 7320 7265 6d6f 7665 5f6b 6561 207b 0a20  s remove_kea {. 
│ │ │ +0006c120: 2070 6163 6b61 6765 207b 2027 6b65 6127   package { 'kea'
│ │ │ +0006c130: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0006c140: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0006c150: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0006c160: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Reme │ │ │ -0006db70: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0006db80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0006dc30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0006dc50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0006dc80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0006dc10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0006dc20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0006dc40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0006dc60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0006dc70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0006dcb0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0006dcc0: 6465 2072 656d 6f76 655f 7365 6e64 6d61 de remove_sendma │ │ │ -0006dcd0: 696c 0a0a 636c 6173 7320 7265 6d6f 7665 il..class remove │ │ │ -0006dce0: 5f73 656e 646d 6169 6c20 7b0a 2020 7061 _sendmail {. pa │ │ │ -0006dcf0: 636b 6167 6520 7b20 2773 656e 646d 6169 ckage { 'sendmai │ │ │ -0006dd00: 6c27 3a0a 2020 2020 656e 7375 7265 203d l':. ensure = │ │ │ -0006dd10: 2667 743b 2027 7075 7267 6564 272c 0a20 > 'purged',. │ │ │ -0006dd20: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ -0006dde0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0006ddf0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0006de70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0006de90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0006dee0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0006df10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0006de80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0006dea0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0006def0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0006df00: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0006df30: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0006df40: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0006df50: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0006df60: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0006df70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0006df80: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0006df90: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0006dfa0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0006dfb0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0006dfc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0006dfd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0006dfe0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0006dff0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0006e000: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0006e010: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0006e020: 6163 6b61 6765 5f73 656e 646d 6169 6c5f  ackage_sendmail_
│ │ │ -0006e030: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -0006e040: 2027 556e 696e 7374 616c 6c20 5365 6e64   'Uninstall Send
│ │ │ -0006e050: 6d61 696c 2050 6163 6b61 6765 3a20 456e  mail Package: En
│ │ │ -0006e060: 7375 7265 2073 656e 646d 6169 6c20 6973  sure sendmail is
│ │ │ -0006e070: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0006e080: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0006e090: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ -0006e0a0: 656e 646d 6169 6c0a 2020 2020 7374 6174  endmail.    stat
│ │ │ -0006e0b0: 653a 2061 6273 656e 740a 2020 7768 656e  e: absent.  when
│ │ │ -0006e0c0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -0006e0d0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0006e0e0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0006e0f0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0006e100: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0006e110: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0006e120: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0006e130: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0006e140: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0006e150: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0006e160: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0006e170: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0006e180: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0006e190: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0006e1a0: 202d 2070 6163 6b61 6765 5f73 656e 646d   - package_sendm
│ │ │ -0006e1b0: 6169 6c5f 7265 6d6f 7665 640a 3c2f 636f  ail_removed.<
│ │ │ +0006db90: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +0006dc10: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0006dc20: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0006dc40: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0006dc60: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0006dc70: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0006dcb0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0006dcc0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0006dcd0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0006dce0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0006dcf0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0006dd00: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0006dd10: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0006dd20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0006dd30: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0006dd40: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0006dd50: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0006dd60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0006dd70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0006dd80: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0006dd90: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0006dda0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0006ddb0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +0006ddc0: 656e 646d 6169 6c5f 7265 6d6f 7665 640a  endmail_removed.
│ │ │ +0006ddd0: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ +0006dde0: 616c 6c20 5365 6e64 6d61 696c 2050 6163  all Sendmail Pac
│ │ │ +0006ddf0: 6b61 6765 3a20 456e 7375 7265 2073 656e  kage: Ensure sen
│ │ │ +0006de00: 646d 6169 6c20 6973 2072 656d 6f76 6564  dmail is removed
│ │ │ +0006de10: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0006de20: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0006de30: 206e 616d 653a 2073 656e 646d 6169 6c0a   name: sendmail.
│ │ │ +0006de40: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0006de50: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0006de60: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0006de70: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0006de80: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0006de90: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0006dea0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0006deb0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0006dec0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0006ded0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0006dee0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0006def0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0006df00: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0006df10: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0006df20: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0006df30: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0006df40: 6765 5f73 656e 646d 6169 6c5f 7265 6d6f  ge_sendmail_remo
│ │ │ +0006df50: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation P │ │ │ +0006e010: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0006e020: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +0006e0f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0006e100: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0006e160: 5f73 656e 646d 6169 6c0a 0a63 6c61 7373  _sendmail..class
│ │ │ +0006e170: 2072 656d 6f76 655f 7365 6e64 6d61 696c   remove_sendmail
│ │ │ +0006e180: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0006e190: 7365 6e64 6d61 696c 273a 0a20 2020 2065  sendmail':.    e
│ │ │ +0006e1a0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0006e1b0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0006e1d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0006e1e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0006e1f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0006e200: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0006e210: 6437 3622 2074 6162 696e 6465 783d 2230 d76" tabindex="0 │ │ │ 0006e220: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -28679,118 +28679,118 @@ │ │ │ 00070060: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00070070: 6437 3822 2074 6162 696e 6465 783d 2230 d78" tabindex="0 │ │ │ 00070080: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ 00070090: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ 000700a0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ 000700b0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ 000700c0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -000700d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000700e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00070120: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0006e0d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0006e0e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0006e120: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0006e130: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -00070190: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000701b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000701e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00070170: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00070180: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000701c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000701d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

Rem │ │ │ -00070330: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00070340: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00070350: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -000703d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00070400: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00070420: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00070430: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00070450: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00070460: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00070480: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00070490: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000704a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000704b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000704c0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -000704d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -000704e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000704f0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00070500: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00070510: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00070520: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00070530: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00070540: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00070550: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00070560: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00070570: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -00070580: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00070590: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000705a0: 6765 5f78 696e 6574 645f 7265 6d6f 7665  ge_xinetd_remove
│ │ │ -000705b0: 640a 0a2d 206e 616d 653a 2027 556e 696e  d..- name: 'Unin
│ │ │ -000705c0: 7374 616c 6c20 7869 6e65 7464 2050 6163  stall xinetd Pac
│ │ │ -000705d0: 6b61 6765 3a20 456e 7375 7265 2078 696e  kage: Ensure xin
│ │ │ -000705e0: 6574 6420 6973 2072 656d 6f76 6564 270a  etd is removed'.
│ │ │ -000705f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00070600: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00070610: 616d 653a 2078 696e 6574 640a 2020 2020  ame: xinetd.    
│ │ │ -00070620: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -00070630: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00070640: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00070650: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00070660: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00070670: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00070680: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00070690: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -000706a0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -000706b0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -000706c0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -000706d0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -000706e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000706f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00070700: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00070710: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -00070720: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00070730: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00070740: 655f 7869 6e65 7464 5f72 656d 6f76 6564  e_xinetd_removed
│ │ │ +000700d0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +000700e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
│ │ │ +00070190: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000701b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000701e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00070170: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00070180: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000701a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000701c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000701d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00070210: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00070220: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00070230: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00070240: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00070250: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00070260: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00070270: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00070280: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00070290: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +000702a0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +000702b0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +000702c0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +000702d0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +000702e0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000702f0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00070300: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00070310: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +00070320: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +00070330: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +00070340: 5f78 696e 6574 645f 7265 6d6f 7665 640a _xinetd_removed. │ │ │ +00070350: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +00070360: 616c 6c20 7869 6e65 7464 2050 6163 6b61 all xinetd Packa │ │ │ +00070370: 6765 3a20 456e 7375 7265 2078 696e 6574 ge: Ensure xinet │ │ │ +00070380: 6420 6973 2072 656d 6f76 6564 270a 2020 d is removed'. │ │ │ +00070390: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +000703a0: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +000703b0: 653a 2078 696e 6574 640a 2020 2020 7374 e: xinetd. st │ │ │ +000703c0: 6174 653a 2061 6273 656e 740a 2020 7768 ate: absent. wh │ │ │ +000703d0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +000703e0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +000703f0: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +00070400: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00070410: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00070420: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +00070430: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +00070440: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +00070450: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ +00070460: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +00070470: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ +00070480: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00070490: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +000704a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +000704b0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ +000704c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +000704d0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +000704e0: 7869 6e65 7464 5f72 656d 6f76 6564 0a3c xinetd_removed.< │ │ │ +000704f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
Re │ │ │ +000705a0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000705b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000705c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +00070640: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00070670: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00070690: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000706a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000706c0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +000706d0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +000706f0: 6c75 6465 2072 656d 6f76 655f 7869 6e65  lude remove_xine
│ │ │ +00070700: 7464 0a0a 636c 6173 7320 7265 6d6f 7665  td..class remove
│ │ │ +00070710: 5f78 696e 6574 6420 7b0a 2020 7061 636b  _xinetd {.  pack
│ │ │ +00070720: 6167 6520 7b20 2778 696e 6574 6427 3a0a  age { 'xinetd':.
│ │ │ +00070730: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00070740: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00070750: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -00071ac0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00071ad0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -00071b70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00071b80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00071bd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00071c10: 6e63 6c75 6465 2072 656d 6f76 655f 7970  nclude remove_yp
│ │ │ -00071c20: 6269 6e64 2d6d 740a 0a63 6c61 7373 2072  bind-mt..class r
│ │ │ -00071c30: 656d 6f76 655f 7970 6269 6e64 2d6d 7420  emove_ypbind-mt 
│ │ │ -00071c40: 7b0a 2020 7061 636b 6167 6520 7b20 2779  {.  package { 'y
│ │ │ -00071c50: 7062 696e 642d 6d74 273a 0a20 2020 2065  pbind-mt':.    e
│ │ │ -00071c60: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00071c70: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00071c90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00071ca0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00071cb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00071cc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00071cd0: 6438 3322 2074 6162 696e 6465 783d 2230 d83" tabindex="0 │ │ │ -00071ce0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00071cf0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00071d00: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00071d10: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00071d20: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00071d30: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00071d40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -00071b60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00071b90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00071ba0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00071be0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00071bf0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00071df0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00071e10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00071e40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00071dd0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00071de0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00071e00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00071e20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00071e30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00071e70: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00071e80: 3a20 2752 656d 6f76 6520 4e49 5320 436c : 'Remove NIS Cl │ │ │ -00071e90: 6965 6e74 3a20 456e 7375 7265 2079 7062 ient: Ensure ypb │ │ │ -00071ea0: 696e 642d 6d74 2069 7320 7265 6d6f 7665 ind-mt is remove │ │ │ -00071eb0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00071ec0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00071ed0: 2020 6e61 6d65 3a20 7970 6269 6e64 2d6d name: ypbind-m │ │ │ -00071ee0: 740a 2020 2020 7374 6174 653a 2061 6273 t. state: abs │ │ │ -00071ef0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -00071f00: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -00071f10: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -00071f20: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -00071f30: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00071f40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00071f50: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00071f60: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00071f70: 640a 2020 2d20 7061 636b 6167 655f 7970 d. - package_yp │ │ │ -00071f80: 6269 6e64 5f72 656d 6f76 6564 0a20 202d bind_removed. - │ │ │ -00071f90: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974 unknown_severit │ │ │ -00071fa0: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c y.
< │ │ │ +00071ac0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00071ad0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00071ae0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00071b70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00071c10: 206e 616d 653a 2027 5265 6d6f 7665 204e   name: 'Remove N
│ │ │ +00071c20: 4953 2043 6c69 656e 743a 2045 6e73 7572  IS Client: Ensur
│ │ │ +00071c30: 6520 7970 6269 6e64 2d6d 7420 6973 2072  e ypbind-mt is r
│ │ │ +00071c40: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00071c50: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00071c60: 653a 0a20 2020 206e 616d 653a 2079 7062  e:.    name: ypb
│ │ │ +00071c70: 696e 642d 6d74 0a20 2020 2073 7461 7465  ind-mt.    state
│ │ │ +00071c80: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00071c90: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00071ca0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00071cb0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +00071cc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00071cd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00071ce0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00071cf0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00071d00: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00071d10: 6765 5f79 7062 696e 645f 7265 6d6f 7665  ge_ypbind_remove
│ │ │ +00071d20: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ +00071d30: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.Remediatio
│ │ │ +00071df0: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00071e00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00071ed0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ +00071b60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00071b90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00071ba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00071be0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00071bf0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00071e90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00071eb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00071f00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00071f10: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00071f40: 6f76 655f 7970 6269 6e64 2d6d 740a 0a63  ove_ypbind-mt..c
│ │ │ +00071f50: 6c61 7373 2072 656d 6f76 655f 7970 6269  lass remove_ypbi
│ │ │ +00071f60: 6e64 2d6d 7420 7b0a 2020 7061 636b 6167  nd-mt {.  packag
│ │ │ +00071f70: 6520 7b20 2779 7062 696e 642d 6d74 273a  e { 'ypbind-mt':
│ │ │ +00071f80: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00071f90: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00071fa0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00071fb0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Reme │ │ │ -00073490: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -000734a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00073550: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00073570: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000735a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00073530: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00073540: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00073560: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00073580: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00073590: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -000735d0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -000735e0: 6465 2072 656d 6f76 655f 7970 7365 7276 de remove_ypserv │ │ │ -000735f0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f79 ..class remove_y │ │ │ -00073600: 7073 6572 7620 7b0a 2020 7061 636b 6167 pserv {. packag │ │ │ -00073610: 6520 7b20 2779 7073 6572 7627 3a0a 2020 e { 'ypserv':. │ │ │ -00073620: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00073630: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -00073640: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>Re │ │ │ -000736f0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00073700: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low< │ │ │ -000737b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00073800: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00073840: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00073850: 7970 7365 7276 2050 6163 6b61 6765 3a20  ypserv Package: 
│ │ │ -00073860: 456e 7375 7265 2079 7073 6572 7620 6973  Ensure ypserv is
│ │ │ -00073870: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00073880: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00073890: 6167 653a 0a20 2020 206e 616d 653a 2079  age:.    name: y
│ │ │ -000738a0: 7073 6572 760a 2020 2020 7374 6174 653a  pserv.    state:
│ │ │ -000738b0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -000738c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000738d0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -000738e0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -000738f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00073900: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ -00073910: 2d38 3030 2d35 332d 4941 2d35 2831 2928  -800-53-IA-5(1)(
│ │ │ -00073920: 6329 0a20 202d 2050 4349 2d44 5353 2d52  c).  - PCI-DSS-R
│ │ │ -00073930: 6571 2d32 2e32 2e32 0a20 202d 2050 4349  eq-2.2.2.  - PCI
│ │ │ -00073940: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00073950: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00073960: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00073970: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00073980: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00073990: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000739a0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000739b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000739c0: 0a20 202d 2070 6163 6b61 6765 5f79 7073  .  - package_yps
│ │ │ -000739d0: 6572 765f 7265 6d6f 7665 640a 3c2f 636f  erv_removed.<
│ │ │ +000734b0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Co │ │ │ -00073790: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000737c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000737e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000737f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00073810: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00073820: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +00073530: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00073540: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00073560: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00073580: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00073590: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +000735d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000735e0: 653a 2027 556e 696e 7374 616c 6c20 7970  e: 'Uninstall yp
│ │ │ +000735f0: 7365 7276 2050 6163 6b61 6765 3a20 456e  serv Package: En
│ │ │ +00073600: 7375 7265 2079 7073 6572 7620 6973 2072  sure ypserv is r
│ │ │ +00073610: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00073620: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00073630: 653a 0a20 2020 206e 616d 653a 2079 7073  e:.    name: yps
│ │ │ +00073640: 6572 760a 2020 2020 7374 6174 653a 2061  erv.    state: a
│ │ │ +00073650: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00073660: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00073670: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +00073680: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +00073690: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +000736a0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ +000736b0: 3030 2d35 332d 4941 2d35 2831 2928 6329  00-53-IA-5(1)(c)
│ │ │ +000736c0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +000736d0: 2d32 2e32 2e32 0a20 202d 2050 4349 2d44  -2.2.2.  - PCI-D
│ │ │ +000736e0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +000736f0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00073700: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00073710: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +00073720: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +00073730: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00073740: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00073750: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00073760: 202d 2070 6163 6b61 6765 5f79 7073 6572   - package_ypser
│ │ │ +00073770: 765f 7265 6d6f 7665 640a 3c2f 636f 6465  v_removed.
Remedia │ │ │ +00073830: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00073840: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00073850: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00073860: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00073870: 7365 2220 6964 3d22 6964 3837 223e 3c74 se" id="id87"> │ │ │ +000738c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000738d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000738e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00073920: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00073930: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00073950: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00073960: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00073980: 7265 6d6f 7665 5f79 7073 6572 760a 0a63  remove_ypserv..c
│ │ │ +00073990: 6c61 7373 2072 656d 6f76 655f 7970 7365  lass remove_ypse
│ │ │ +000739a0: 7276 207b 0a20 2070 6163 6b61 6765 207b  rv {.  package {
│ │ │ +000739b0: 2027 7970 7365 7276 273a 0a20 2020 2065   'ypserv':.    e
│ │ │ +000739c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +000739d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 000739f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00073a00: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00073a10: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00073a20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00073a30: 6438 3822 2074 6162 696e 6465 783d 2230 d88" tabindex="0 │ │ │ 00073a40: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -29984,99 +29984,99 @@ │ │ │ 000751f0: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 00075200: 3930 2220 7461 6269 6e64 6578 3d22 3022 90" tabindex="0" │ │ │ 00075210: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 00075220: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 00075230: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 00075240: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 00075250: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -00075260: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00075270: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00075280: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -000752b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000752c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000752d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000752e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000752f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00075300: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00075310: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00075350: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00075360: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00075380: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00075390: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -000753b0: 2072 656d 6f76 655f 7273 682d 7365 7276 remove_rsh-serv │ │ │ -000753c0: 6572 0a0a 636c 6173 7320 7265 6d6f 7665 er..class remove │ │ │ -000753d0: 5f72 7368 2d73 6572 7665 7220 7b0a 2020 _rsh-server {. │ │ │ -000753e0: 7061 636b 6167 6520 7b20 2772 7368 2d73 package { 'rsh-s │ │ │ -000753f0: 6572 7665 7227 3a0a 2020 2020 656e 7375 erver':. ensu │ │ │ -00075400: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -00075410: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00075420: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remediat │ │ │ -000754d0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000754e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000754f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00075500: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00075510: 7365 2220 6964 3d22 6964 3931 223e 3c74 se" id="id91"> │ │ │ -00075560: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00075570: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00075580: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000755c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000755d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000755f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00075600: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -00075620: 556e 696e 7374 616c 6c20 7273 682d 7365  Uninstall rsh-se
│ │ │ -00075630: 7276 6572 2050 6163 6b61 6765 3a20 456e  rver Package: En
│ │ │ -00075640: 7375 7265 2072 7368 2d73 6572 7665 7220  sure rsh-server 
│ │ │ -00075650: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00075660: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00075670: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00075680: 2072 7368 2d73 6572 7665 720a 2020 2020   rsh-server.    
│ │ │ -00075690: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -000756a0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -000756b0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000756c0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000756d0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -000756e0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -000756f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4941  - NIST-800-53-IA
│ │ │ -00075700: 2d35 2831 2928 6329 0a20 202d 2050 4349  -5(1)(c).  - PCI
│ │ │ -00075710: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00075720: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00075730: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00075740: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -00075750: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -00075760: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00075770: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00075780: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00075790: 0a20 202d 2070 6163 6b61 6765 5f72 7368  .  - package_rsh
│ │ │ -000757a0: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +00075260: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +00075270: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ +000752b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00075320: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00075340: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00075370: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00075300: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00075310: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00075350: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00075360: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +000753b0: 2027 556e 696e 7374 616c 6c20 7273 682d 'Uninstall rsh- │ │ │ +000753c0: 7365 7276 6572 2050 6163 6b61 6765 3a20 server Package: │ │ │ +000753d0: 456e 7375 7265 2072 7368 2d73 6572 7665 Ensure rsh-serve │ │ │ +000753e0: 7220 6973 2072 656d 6f76 6564 270a 2020 r is removed'. │ │ │ +000753f0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +00075400: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +00075410: 653a 2072 7368 2d73 6572 7665 720a 2020 e: rsh-server. │ │ │ +00075420: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +00075430: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +00075440: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +00075450: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00075460: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +00075470: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +00075480: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00075490: 4941 2d35 2831 2928 6329 0a20 202d 2050 IA-5(1)(c). - P │ │ │ +000754a0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ +000754b0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ +000754c0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +000754d0: 6174 6567 790a 2020 2d20 6869 6768 5f73 ategy. - high_s │ │ │ +000754e0: 6576 6572 6974 790a 2020 2d20 6c6f 775f everity. - low_ │ │ │ +000754f0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00075500: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00075510: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ +00075520: 6564 0a20 202d 2070 6163 6b61 6765 5f72 ed. - package_r │ │ │ +00075530: 7368 2d73 6572 7665 725f 7265 6d6f 7665 sh-server_remove │ │ │ +00075540: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.

< │ │ │ +00075550: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00075600: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00075610: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +000756a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00075740: 696e 636c 7564 6520 7265 6d6f 7665 5f72  include remove_r
│ │ │ +00075750: 7368 2d73 6572 7665 720a 0a63 6c61 7373  sh-server..class
│ │ │ +00075760: 2072 656d 6f76 655f 7273 682d 7365 7276   remove_rsh-serv
│ │ │ +00075770: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ +00075780: 2027 7273 682d 7365 7276 6572 273a 0a20   'rsh-server':. 
│ │ │ +00075790: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000757a0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  000757b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedi │ │ │ -000766d0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000766e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000766f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00076720: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00076730: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00076740: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00076750: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00076760: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -000767f0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00076800: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +00075690: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000756c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000756d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00075710: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00075720: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -00076770: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00076780: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -000767c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000767d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -00076820: 2072 656d 6f76 655f 7273 680a 0a63 6c61 remove_rsh..cla │ │ │ -00076830: 7373 2072 656d 6f76 655f 7273 6820 7b0a ss remove_rsh {. │ │ │ -00076840: 2020 7061 636b 6167 6520 7b20 2772 7368 package { 'rsh │ │ │ -00076850: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -00076860: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -00076870: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation A │ │ │ -00076930: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00076940: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ -000769c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000769e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00076a30: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00076a60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00076a80: 7461 6c6c 2072 7368 2050 6163 6b61 6765  tall rsh Package
│ │ │ -00076a90: 3a20 456e 7375 7265 2072 7368 2069 7320  : Ensure rsh is 
│ │ │ -00076aa0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00076ab0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00076ac0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7273  ge:.    name: rs
│ │ │ -00076ad0: 680a 2020 2020 7374 6174 653a 2061 6273  h.    state: abs
│ │ │ -00076ae0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -00076af0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -00076b00: 2e31 330a 2020 2d20 5043 492d 4453 5376  .13.  - PCI-DSSv
│ │ │ -00076b10: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00076b20: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00076b30: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00076b40: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00076b50: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00076b60: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -00076b70: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00076b80: 636b 6167 655f 7273 685f 7265 6d6f 7665  ckage_rsh_remove
│ │ │ -00076b90: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -00076ba0: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.
│ │ │ +00076720: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disr │ │ │ -000769f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00076a00: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00076a40: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00076a50: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00076790: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000767b0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000767e0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00076770: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00076780: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000767c0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000767d0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00076820: 2027 556e 696e 7374 616c 6c20 7273 6820 'Uninstall rsh │ │ │ +00076830: 5061 636b 6167 653a 2045 6e73 7572 6520 Package: Ensure │ │ │ +00076840: 7273 6820 6973 2072 656d 6f76 6564 270a rsh is removed'. │ │ │ +00076850: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00076860: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ +00076870: 616d 653a 2072 7368 0a20 2020 2073 7461 ame: rsh. sta │ │ │ +00076880: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ +00076890: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +000768a0: 3137 312d 332e 312e 3133 0a20 202d 2050 171-3.1.13. - P │ │ │ +000768b0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d CI-DSSv4-2.2. - │ │ │ +000768c0: 2050 4349 2d44 5353 7634 2d32 2e32 2e34 PCI-DSSv4-2.2.4 │ │ │ +000768d0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +000768e0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +000768f0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00076900: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00076910: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00076920: 0a20 202d 2070 6163 6b61 6765 5f72 7368 . - package_rsh │ │ │ +00076930: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b _removed. - unk │ │ │ +00076940: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f nown_severity.

Rem │ │ │ +00076a00: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00076a10: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00076a20: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +00076aa0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00076ab0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00076ad0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00076af0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00076b00: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00076b40: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +00076b50: 7564 6520 7265 6d6f 7665 5f72 7368 0a0a  ude remove_rsh..
│ │ │ +00076b60: 636c 6173 7320 7265 6d6f 7665 5f72 7368  class remove_rsh
│ │ │ +00076b70: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00076b80: 7273 6827 3a0a 2020 2020 656e 7375 7265  rsh':.    ensure
│ │ │ +00076b90: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00076ba0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediation Pu │ │ │ -00077c20: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00077c30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00077d00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00077d10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00077d60: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00077d70: 7461 6c6b 2d73 6572 7665 720a 0a63 6c61  talk-server..cla
│ │ │ -00077d80: 7373 2072 656d 6f76 655f 7461 6c6b 2d73  ss remove_talk-s
│ │ │ -00077d90: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ -00077da0: 6520 7b20 2774 616c 6b2d 7365 7276 6572  e { 'talk-server
│ │ │ -00077db0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00077dc0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00077dd0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -00077e90: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00077ea0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ -00077ce0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00077cf0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00077d30: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00077d40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00077f20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00077f40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00077f90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00077fc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00077fe0: 7461 6c6c 2074 616c 6b2d 7365 7276 6572  tall talk-server
│ │ │ -00077ff0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00078000: 2074 616c 6b2d 7365 7276 6572 2069 7320   talk-server is 
│ │ │ -00078010: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00078020: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00078030: 6765 3a0a 2020 2020 6e61 6d65 3a20 7461  ge:.    name: ta
│ │ │ -00078040: 6c6b 2d73 6572 7665 720a 2020 2020 7374  lk-server.    st
│ │ │ -00078050: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00078060: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -00078070: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00078080: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00078090: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -000780a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000780b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000780c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000780d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000780e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000780f0: 2d20 7061 636b 6167 655f 7461 6c6b 2d73  - package_talk-s
│ │ │ -00078100: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.Remediation An
│ │ │ +00077c20: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00077c30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
low
Disr │ │ │ -00077f50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00077f60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00077fa0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00077fb0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +00077d00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00077d10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00077d70: 616c 6c20 7461 6c6b 2d73 6572 7665 7220  all talk-server 
│ │ │ +00077d80: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00077d90: 7461 6c6b 2d73 6572 7665 7220 6973 2072  talk-server is r
│ │ │ +00077da0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00077db0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00077dc0: 653a 0a20 2020 206e 616d 653a 2074 616c  e:.    name: tal
│ │ │ +00077dd0: 6b2d 7365 7276 6572 0a20 2020 2073 7461  k-server.    sta
│ │ │ +00077de0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ +00077df0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +00077e00: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00077e10: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00077e20: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00077e30: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00077e40: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00077e50: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00077e60: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00077e70: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00077e80: 2070 6163 6b61 6765 5f74 616c 6b2d 7365   package_talk-se
│ │ │ +00077e90: 7276 6572 5f72 656d 6f76 6564 0a3c 2f63  rver_removed.
│ │ │ +00077eb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00077f50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00077f60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00077ce0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00077cf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00077d30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00077d40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00078010: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00078030: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00078060: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00077ff0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00078000: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00078020: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00078040: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00078050: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00078090: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +000780a0: 6465 2072 656d 6f76 655f 7461 6c6b 2d73 de remove_talk-s │ │ │ +000780b0: 6572 7665 720a 0a63 6c61 7373 2072 656d erver..class rem │ │ │ +000780c0: 6f76 655f 7461 6c6b 2d73 6572 7665 7220 ove_talk-server │ │ │ +000780d0: 7b0a 2020 7061 636b 6167 6520 7b20 2774 {. package { 't │ │ │ +000780e0: 616c 6b2d 7365 7276 6572 273a 0a20 2020 alk-server':. │ │ │ +000780f0: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +00078100: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
Remediati │ │ │ -00078f60: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00078f70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00078ff0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00079000: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00079020: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00079030: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00079050: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00079070: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -000790a0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -000790b0: 656d 6f76 655f 7461 6c6b 0a0a 636c 6173  emove_talk..clas
│ │ │ -000790c0: 7320 7265 6d6f 7665 5f74 616c 6b20 7b0a  s remove_talk {.
│ │ │ -000790d0: 2020 7061 636b 6167 6520 7b20 2774 616c    package { 'tal
│ │ │ -000790e0: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ -000790f0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00079100: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000791c0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000791d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00079260: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00079280: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00079290: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000792a0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000792b0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000792d0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00079300: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00079310: 696e 7374 616c 6c20 7461 6c6b 2050 6163  install talk Pac
│ │ │ -00079320: 6b61 6765 3a20 456e 7375 7265 2074 616c  kage: Ensure tal
│ │ │ -00079330: 6b20 6973 2072 656d 6f76 6564 270a 2020  k is removed'.  
│ │ │ -00079340: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00079350: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00079360: 653a 2074 616c 6b0a 2020 2020 7374 6174  e: talk.    stat
│ │ │ -00079370: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00079380: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00079390: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -000793a0: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -000793b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000793c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000793d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000793e0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000793f0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00079400: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00079410: 7061 636b 6167 655f 7461 6c6b 5f72 656d  package_talk_rem
│ │ │ -00079420: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +00078ff0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00079000: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00079010: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00079050: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00079060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00079080: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00079090: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +000790b0: 556e 696e 7374 616c 6c20 7461 6c6b 2050  Uninstall talk P
│ │ │ +000790c0: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +000790d0: 616c 6b20 6973 2072 656d 6f76 6564 270a  alk is removed'.
│ │ │ +000790e0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000790f0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00079100: 616d 653a 2074 616c 6b0a 2020 2020 7374  ame: talk.    st
│ │ │ +00079110: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00079120: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ +00079130: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00079140: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +00079150: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00079160: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00079170: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00079180: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00079190: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000791a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000791b0: 2d20 7061 636b 6167 655f 7461 6c6b 5f72  - package_talk_r
│ │ │ +000791c0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Remediati │ │ │ +00079280: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00079290: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +00079310: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00079320: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00079340: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00079350: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00079370: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00079390: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +000793c0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +000793d0: 656d 6f76 655f 7461 6c6b 0a0a 636c 6173  emove_talk..clas
│ │ │ +000793e0: 7320 7265 6d6f 7665 5f74 616c 6b20 7b0a  s remove_talk {.
│ │ │ +000793f0: 2020 7061 636b 6167 6520 7b20 2774 616c    package { 'tal
│ │ │ +00079400: 6b27 3a0a 2020 2020 656e 7375 7265 203d  k':.    ensure =
│ │ │ +00079410: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00079420: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Re │ │ │ -0007aed0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007aee0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007aef0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0007af90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007afe0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0007b020: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ -0007b030: 6e65 742d 7365 7276 6572 0a0a 636c 6173  net-server..clas
│ │ │ -0007b040: 7320 7265 6d6f 7665 5f74 656c 6e65 742d  s remove_telnet-
│ │ │ -0007b050: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ -0007b060: 6765 207b 2027 7465 6c6e 6574 2d73 6572  ge { 'telnet-ser
│ │ │ -0007b070: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ -0007b080: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007b090: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0007b150: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0007b160: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0007b1e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0007b270: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007b280: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -0007af70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007afa0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007afc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007afd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007aff0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007b000: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -0007b1f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007b200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0007b240: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007b250: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -0007b2a0: 556e 696e 7374 616c 6c20 7465 6c6e 6574  Uninstall telnet
│ │ │ -0007b2b0: 2d73 6572 7665 7220 5061 636b 6167 653a  -server Package:
│ │ │ -0007b2c0: 2045 6e73 7572 6520 7465 6c6e 6574 2d73   Ensure telnet-s
│ │ │ -0007b2d0: 6572 7665 7220 6973 2072 656d 6f76 6564  erver is removed
│ │ │ -0007b2e0: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0007b2f0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0007b300: 206e 616d 653a 2074 656c 6e65 742d 7365   name: telnet-se
│ │ │ -0007b310: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ -0007b320: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0007b330: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007b340: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0007b350: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0007b360: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0007b370: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ -0007b380: 5353 2d52 6571 2d32 2e32 2e32 0a20 202d  SS-Req-2.2.2.  -
│ │ │ -0007b390: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0007b3a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0007b3b0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0007b3c0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007b3d0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007b3e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007b3f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007b400: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007b410: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007b420: 5f74 656c 6e65 742d 7365 7276 6572 5f72  _telnet-server_r
│ │ │ -0007b430: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
< │ │ │ +0007af80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007af90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007afe0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0007b020: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0007b030: 2074 656c 6e65 742d 7365 7276 6572 2050   telnet-server P
│ │ │ +0007b040: 6163 6b61 6765 3a20 456e 7375 7265 2074  ackage: Ensure t
│ │ │ +0007b050: 656c 6e65 742d 7365 7276 6572 2069 7320  elnet-server is 
│ │ │ +0007b060: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0007b070: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0007b080: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +0007b090: 6c6e 6574 2d73 6572 7665 720a 2020 2020  lnet-server.    
│ │ │ +0007b0a0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0007b0b0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0007b0c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0007b0d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0007b0e0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0007b0f0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0007b100: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ +0007b110: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +0007b120: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +0007b130: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ +0007b140: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0007b150: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ +0007b160: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0007b170: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0007b180: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0007b190: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0007b1a0: 7061 636b 6167 655f 7465 6c6e 6574 2d73  package_telnet-s
│ │ │ +0007b1b0: 6572 7665 725f 7265 6d6f 7665 640a 3c2f  erver_removed.
Re │ │ │ +0007b270: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0007b280: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007b290: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +0007af70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007afa0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007afb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007aff0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007b000: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +0007b330: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0007b380: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0007b3c0: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +0007b3d0: 6e65 742d 7365 7276 6572 0a0a 636c 6173  net-server..clas
│ │ │ +0007b3e0: 7320 7265 6d6f 7665 5f74 656c 6e65 742d  s remove_telnet-
│ │ │ +0007b3f0: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ +0007b400: 6765 207b 2027 7465 6c6e 6574 2d73 6572  ge { 'telnet-ser
│ │ │ +0007b410: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ +0007b420: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +0007b430: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.R
│ │ │ -0007c330: 656d 6564 6961 7469 6f6e 2050 7570 7065  emediation Puppe
│ │ │ -0007c340: 7420 736e 6970 7065 7420 e287 b23c 2f61  t snippet ...
Co │ │ │ +0007b310: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0007b340: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0007b360: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0007b370: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0007b390: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0007b3a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0007c3e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007c3f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007c440: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0007c480: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -0007c490: 6c6e 6574 0a0a 636c 6173 7320 7265 6d6f  lnet..class remo
│ │ │ -0007c4a0: 7665 5f74 656c 6e65 7420 7b0a 2020 7061  ve_telnet {.  pa
│ │ │ -0007c4b0: 636b 6167 6520 7b20 2774 656c 6e65 7427  ckage { 'telnet'
│ │ │ -0007c4c0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007c4d0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0007c4e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0007c4f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0007c5a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0007c5b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
C │ │ │ -0007c3d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007c400: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007c410: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007c450: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007c460: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0007c630: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007c650: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007c6a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007c6d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007c640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007c660: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007c6b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007c6c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -0007c6f0: 7665 2074 656c 6e65 7420 436c 6965 6e74  ve telnet Client
│ │ │ -0007c700: 733a 2045 6e73 7572 6520 7465 6c6e 6574  s: Ensure telnet
│ │ │ -0007c710: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0007c720: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0007c730: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0007c740: 3a20 7465 6c6e 6574 0a20 2020 2073 7461  : telnet.    sta
│ │ │ -0007c750: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0007c760: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0007c770: 3137 312d 332e 312e 3133 0a20 202d 2050  171-3.1.13.  - P
│ │ │ -0007c780: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -0007c790: 2050 4349 2d44 5353 7634 2d32 2e32 2e34   PCI-DSSv4-2.2.4
│ │ │ -0007c7a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0007c7b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0007c7c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0007c7d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0007c7e0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0007c7f0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0007c800: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ -0007c810: 6c6e 6574 5f72 656d 6f76 6564 0a3c 2f63  lnet_removed.
│ │ │ +0007c3e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0007c480: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ +0007c490: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ +0007c4a0: 6e73 7572 6520 7465 6c6e 6574 2069 7320  nsure telnet is 
│ │ │ +0007c4b0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0007c4c0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0007c4d0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +0007c4e0: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +0007c4f0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0007c500: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +0007c510: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ +0007c520: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +0007c530: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +0007c540: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0007c550: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007c560: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007c570: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0007c580: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0007c590: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007c5a0: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +0007c5b0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007c5c0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c670: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007c680: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007c690: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007c6a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007c6b0: 7365 2220 6964 3d22 6964 3131 3122 3e3c se" id="id111">< │ │ │ +0007c6c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007c6d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007c6e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007c6f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007c700: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0007c790: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0007c7a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +0007c3d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007c400: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007c410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007c450: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007c460: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0007c710: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007c720: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007c760: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007c770: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0007c7c0: 2072 656d 6f76 655f 7465 6c6e 6574 0a0a remove_telnet.. │ │ │ +0007c7d0: 636c 6173 7320 7265 6d6f 7665 5f74 656c class remove_tel │ │ │ +0007c7e0: 6e65 7420 7b0a 2020 7061 636b 6167 6520 net {. package │ │ │ +0007c7f0: 7b20 2774 656c 6e65 7427 3a0a 2020 2020 { 'telnet':. │ │ │ +0007c800: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +0007c810: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ 0007c830: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -0007e0a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0007e0b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007e130: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0007e140: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0007e160: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0007e170: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0007e190: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0007e1b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0007e1e0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0007e1f0: 656d 6f76 655f 7466 7470 2d73 6572 7665  emove_tftp-serve
│ │ │ -0007e200: 720a 0a63 6c61 7373 2072 656d 6f76 655f  r..class remove_
│ │ │ -0007e210: 7466 7470 2d73 6572 7665 7220 7b0a 2020  tftp-server {.  
│ │ │ -0007e220: 7061 636b 6167 6520 7b20 2774 6674 702d  package { 'tftp-
│ │ │ -0007e230: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -0007e240: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0007e250: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0007e310: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007e320: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007e3d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007e3f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007e420: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007e3b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007e3c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007e3e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007e400: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007e410: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007e450: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0007e460: 3a20 2755 6e69 6e73 7461 6c6c 2074 6674 : 'Uninstall tft │ │ │ -0007e470: 702d 7365 7276 6572 2050 6163 6b61 6765 p-server Package │ │ │ -0007e480: 3a20 456e 7375 7265 2074 6674 702d 7365 : Ensure tftp-se │ │ │ -0007e490: 7276 6572 2069 7320 7265 6d6f 7665 6427 rver is removed' │ │ │ -0007e4a0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -0007e4b0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -0007e4c0: 6e61 6d65 3a20 7466 7470 2d73 6572 7665 name: tftp-serve │ │ │ -0007e4d0: 720a 2020 2020 7374 6174 653a 2061 6273 r. state: abs │ │ │ -0007e4e0: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -0007e4f0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -0007e500: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -0007e510: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ -0007e520: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -0007e530: 2862 290a 2020 2d20 5043 492d 4453 5376 (b). - PCI-DSSv │ │ │ -0007e540: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ -0007e550: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ -0007e560: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -0007e570: 202d 2068 6967 685f 7365 7665 7269 7479 - high_severity │ │ │ -0007e580: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0007e590: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0007e5a0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265 uption. - no_re │ │ │ -0007e5b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0007e5c0: 7061 636b 6167 655f 7466 7470 2d73 6572 package_tftp-ser │ │ │ -0007e5d0: 7665 725f 7265 6d6f 7665 640a 3c2f 636f ver_removed.
│ │ │ +0007e130: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0007e140: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007e150: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0007e190: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007e1a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0007e1c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0007e1d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0007e1f0: 556e 696e 7374 616c 6c20 7466 7470 2d73  Uninstall tftp-s
│ │ │ +0007e200: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +0007e210: 6e73 7572 6520 7466 7470 2d73 6572 7665  nsure tftp-serve
│ │ │ +0007e220: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ +0007e230: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0007e240: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0007e250: 653a 2074 6674 702d 7365 7276 6572 0a20  e: tftp-server. 
│ │ │ +0007e260: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0007e270: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0007e280: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0007e290: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007e2a0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0007e2b0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0007e2c0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0007e2d0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0007e2e0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +0007e2f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0007e300: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0007e310: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0007e320: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0007e330: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0007e340: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0007e350: 6b61 6765 5f74 6674 702d 7365 7276 6572  kage_tftp-server
│ │ │ +0007e360: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007e370: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007e420: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007e430: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007e440: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007e450: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007e460: 7365 2220 6964 3d22 6964 3131 3522 3e3c se" id="id115">< │ │ │ +0007e470: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007e480: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007e490: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007e4a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007e4b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0007e4c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007e4d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0007e510: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007e520: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0007e540: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0007e550: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +0007e570: 2072 656d 6f76 655f 7466 7470 2d73 6572 remove_tftp-ser │ │ │ +0007e580: 7665 720a 0a63 6c61 7373 2072 656d 6f76 ver..class remov │ │ │ +0007e590: 655f 7466 7470 2d73 6572 7665 7220 7b0a e_tftp-server {. │ │ │ +0007e5a0: 2020 7061 636b 6167 6520 7b20 2774 6674 package { 'tft │ │ │ +0007e5b0: 702d 7365 7276 6572 273a 0a20 2020 2065 p-server':. e │ │ │ +0007e5c0: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ +0007e5d0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ 0007e5f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0007e600: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0007e610: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0007e620: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0007e630: 6431 3136 2220 7461 6269 6e64 6578 3d22 d116" tabindex=" │ │ │ 0007e640: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -32555,91 +32555,91 @@ │ │ │ 0007f2a0: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 0007f2b0: 6765 743d 2223 6964 3131 3822 2074 6162 get="#id118" tab │ │ │ 0007f2c0: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 0007f2d0: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 0007f2e0: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 0007f2f0: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 0007f300: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -0007f310: 2122 3e52 656d 6564 6961 7469 6f6e 2050 !">Remediation P │ │ │ -0007f320: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0007f330: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0007f3b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0007f3d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0007f420: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0007f450: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0007f470: 655f 7466 7470 0a0a 636c 6173 7320 7265  e_tftp..class re
│ │ │ -0007f480: 6d6f 7665 5f74 6674 7020 7b0a 2020 7061  move_tftp {.  pa
│ │ │ -0007f490: 636b 6167 6520 7b20 2774 6674 7027 3a0a  ckage { 'tftp':.
│ │ │ -0007f4a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0007f4b0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0007f4c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0007f580: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0007f590: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -0007f3e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0007f3f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0007f430: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0007f440: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -0007f660: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007f670: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ -0007f6d0: 2074 6674 7020 4461 656d 6f6e 3a20 456e   tftp Daemon: En
│ │ │ -0007f6e0: 7375 7265 2074 6674 7020 6973 2072 656d  sure tftp is rem
│ │ │ -0007f6f0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007f700: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007f710: 0a20 2020 206e 616d 653a 2074 6674 700a  .    name: tftp.
│ │ │ -0007f720: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007f730: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -0007f740: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -0007f750: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -0007f760: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0007f770: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0007f780: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0007f790: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -0007f7a0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -0007f7b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0007f7c0: 0a20 202d 2070 6163 6b61 6765 5f74 6674  .  - package_tft
│ │ │ -0007f7d0: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.Remediation A
│ │ │ +0007f320: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0007f330: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -0007f640: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007f650: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007f690: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0007f6a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0007f3b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0007f3d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0007f420: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0007f450: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0007f3c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0007f3e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0007f430: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0007f440: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ +0007f470: 7665 2074 6674 7020 4461 656d 6f6e 3a20  ve tftp Daemon: 
│ │ │ +0007f480: 456e 7375 7265 2074 6674 7020 6973 2072  Ensure tftp is r
│ │ │ +0007f490: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0007f4a0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0007f4b0: 653a 0a20 2020 206e 616d 653a 2074 6674  e:.    name: tft
│ │ │ +0007f4c0: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ +0007f4d0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007f4e0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0007f4f0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0007f500: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0007f510: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0007f520: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0007f530: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0007f540: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0007f550: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007f560: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +0007f570: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
< │ │ │ +0007f590: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0007f5a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0007f5b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0007f5c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0007f5d0: 6431 3139 2220 7461 6269 6e64 6578 3d22 d119" tabindex=" │ │ │ +0007f5e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0007f5f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0007f600: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0007f610: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0007f620: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0007f630: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0007f640: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0007f6d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0007f6e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0007f700: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0007f720: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0007f730: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0007f770: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0007f780: 7564 6520 7265 6d6f 7665 5f74 6674 700a  ude remove_tftp.
│ │ │ +0007f790: 0a63 6c61 7373 2072 656d 6f76 655f 7466  .class remove_tf
│ │ │ +0007f7a0: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +0007f7b0: 2027 7466 7470 273a 0a20 2020 2065 6e73   'tftp':.    ens
│ │ │ +0007f7c0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0007f7d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  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: │ │ │ │ @@ -2180,14 +2163,31 @@ │ │ │ │ tags: │ │ │ │ - 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 - │ │ │ │ @@ -2806,27 +2806,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-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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2840,14 +2827,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -2861,27 +2861,14 @@ │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll kkeeaa PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ If the system does not need to act as a DHCP server, the kea package can be uninstalled. │ │ │ │ Rationale: Removing the DHCP server ensures that it cannot be easily or accidentally │ │ │ │ reactivated and disrupt network operation. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_kea_removed │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_kea │ │ │ │ - │ │ │ │ -class remove_kea { │ │ │ │ - package { 'kea': │ │ │ │ - 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 kea Package: Ensure kea is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -2890,14 +2877,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_kea_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_kea │ │ │ │ + │ │ │ │ +class remove_kea { │ │ │ │ + package { 'kea': │ │ │ │ + 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 kea │ │ │ │ @@ -2948,27 +2948,14 @@ │ │ │ │ 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 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227, SRG-OS-000095-GPOS-00049 │ │ │ │ _a_n_s_s_i R62 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_sendmail │ │ │ │ - │ │ │ │ -class remove_sendmail { │ │ │ │ - package { 'sendmail': │ │ │ │ - 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: │ │ │ │ @@ -2995,14 +2982,27 @@ │ │ │ │ - NIST-800-53-CM-7(b) │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_sendmail_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_sendmail │ │ │ │ + │ │ │ │ +class remove_sendmail { │ │ │ │ + package { 'sendmail': │ │ │ │ + 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 - │ │ │ │ @@ -3060,27 +3060,14 @@ │ │ │ │ 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 │ │ │ │ _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: │ │ │ │ @@ -3111,14 +3098,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 - │ │ │ │ @@ -3154,27 +3154,14 @@ │ │ │ │ Severity:  unknown │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ypbind_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 │ │ │ │ _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_ypbind-mt │ │ │ │ - │ │ │ │ -class remove_ypbind-mt { │ │ │ │ - package { 'ypbind-mt': │ │ │ │ - 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 NIS Client: Ensure ypbind-mt is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3185,14 +3172,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ypbind_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_ypbind-mt │ │ │ │ + │ │ │ │ +class remove_ypbind-mt { │ │ │ │ + package { 'ypbind-mt': │ │ │ │ + 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 ypbind-mt │ │ │ │ @@ -3230,27 +3230,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: │ │ │ │ @@ -3266,14 +3253,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 │ │ │ │ @@ -3314,27 +3314,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), IA-5(1)(c) │ │ │ │ _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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -3349,14 +3336,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 │ │ │ │ @@ -3379,27 +3379,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3411,14 +3398,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -3440,27 +3440,14 @@ │ │ │ │ accidental (or intentional) activation of talk services. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_talk-server_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) │ │ │ │ References: (1), 164.312(e)(2)(ii) │ │ │ │ _a_n_s_s_i R62 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_talk-server { │ │ │ │ - package { 'talk-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 talk-server Package: Ensure talk-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3471,14 +3458,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_talk-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_talk-server │ │ │ │ + │ │ │ │ +class remove_talk-server { │ │ │ │ + package { 'talk-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 talk-server │ │ │ │ @@ -3501,27 +3501,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: │ │ │ │ @@ -3532,14 +3519,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 │ │ │ │ @@ -3588,27 +3588,14 @@ │ │ │ │ _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 │ │ │ │ _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 │ │ │ │ _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-server │ │ │ │ - │ │ │ │ -class remove_telnet-server { │ │ │ │ - package { 'telnet-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 telnet-server Package: Ensure telnet-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3623,14 +3610,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_telnet-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_telnet-server │ │ │ │ + │ │ │ │ +class remove_telnet-server { │ │ │ │ + package { 'telnet-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 telnet-server │ │ │ │ @@ -3653,27 +3653,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: │ │ │ │ @@ -3685,14 +3672,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 │ │ │ │ @@ -3736,27 +3736,14 @@ │ │ │ │ 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 │ │ │ │ _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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3770,14 +3757,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -3797,27 +3797,14 @@ │ │ │ │ Rationale: (such as a boot server). In that case, use extreme caution when configuring the │ │ │ │ services. │ │ │ │ Severity:  low │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_tftp_removed │ │ │ │ _o_s_-_s_r_g SRG-OS-000074-GPOS-00042 │ │ │ │ References: _a_n_s_s_i R62 │ │ │ │ _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_tftp │ │ │ │ - │ │ │ │ -class remove_tftp { │ │ │ │ - package { 'tftp': │ │ │ │ - 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 tftp Daemon: Ensure tftp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -3828,14 +3815,27 @@ │ │ │ │ - PCI-DSSv4-2.2.4 │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_tftp_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_tftp │ │ │ │ + │ │ │ │ +class remove_tftp { │ │ │ │ + package { 'tftp': │ │ │ │ + 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 tftp │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_average.html │ │ │ @@ -20723,129 +20723,129 @@ │ │ │ 00050f20: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 00050f30: 743d 2223 6964 3338 2220 7461 6269 6e64 t="#id38" tabind │ │ │ 00050f40: 6578 3d22 3022 2072 6f6c 653d 2262 7574 ex="0" role="but │ │ │ 00050f50: 746f 6e22 2061 7269 612d 6578 7061 6e64 ton" aria-expand │ │ │ 00050f60: 6564 3d22 6661 6c73 6522 2074 6974 6c65 ed="false" title │ │ │ 00050f70: 3d22 4163 7469 7661 7465 2074 6f20 7265 ="Activate to re │ │ │ 00050f80: 7665 616c 2220 6872 6566 3d22 2321 223e veal" href="#!"> │ │ │ -00050f90: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00050fa0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00050fb0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00050ff0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00051000: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00051010: 2273 7973 6c6f 672d 6e67 220a 7665 7273  "syslog-ng".vers
│ │ │ -00051020: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedia │ │ │ -000510e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000510f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00051100: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00051110: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00051120: 7365 2220 6964 3d22 6964 3339 223e 3c74 se" id="id39"> │ │ │ -00051170: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00051180: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00051190: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000511d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000511e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00051200: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00051220: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00051230: 7374 616c 6c5f 7379 736c 6f67 2d6e 670a  stall_syslog-ng.
│ │ │ -00051240: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ -00051250: 7973 6c6f 672d 6e67 207b 0a20 2070 6163  yslog-ng {.  pac
│ │ │ -00051260: 6b61 6765 207b 2027 7379 736c 6f67 2d6e  kage { 'syslog-n
│ │ │ -00051270: 6727 3a0a 2020 2020 656e 7375 7265 203d  g':.    ensure =
│ │ │ -00051280: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00051290: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000512a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -00051350: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00051360: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -000513e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000513f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00051410: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00051420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00051440: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00051460: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00051490: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000514a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000514b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000514c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000514d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000514e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000514f0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00051500: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00051510: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00051520: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00051530: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00051540: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00051550: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00051560: 7061 636b 6167 655f 7379 736c 6f67 6e67  package_syslogng
│ │ │ -00051570: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -00051580: 6d65 3a20 456e 7375 7265 2073 7973 6c6f  me: Ensure syslo
│ │ │ -00051590: 672d 6e67 2069 7320 696e 7374 616c 6c65  g-ng is installe
│ │ │ -000515a0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000515b0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000515c0: 206e 616d 653a 2073 7973 6c6f 672d 6e67   name: syslog-ng
│ │ │ -000515d0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -000515e0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -000515f0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00051600: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00051610: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -00051620: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00051630: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -00051640: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00051650: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00051660: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00051670: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00051680: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00051690: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000516a0: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -000516b0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +00051040: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000510e0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +000510f0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00051100: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00051110: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00051120: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00051130: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00051140: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00051150: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00051160: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00051170: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00051180: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00051190: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000511a0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000511b0: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +000511c0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +000511d0: 7572 6520 7379 736c 6f67 2d6e 6720 6973  ure syslog-ng is
│ │ │ +000511e0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000511f0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00051200: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00051210: 7379 736c 6f67 2d6e 670a 2020 2020 7374  syslog-ng.    st
│ │ │ +00051220: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00051230: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00051240: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00051250: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00051260: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00051270: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00051280: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +00051290: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000512a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000512b0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000512c0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000512d0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000512e0: 0a20 202d 2070 6163 6b61 6765 5f73 7973  .  - package_sys
│ │ │ +000512f0: 6c6f 676e 675f 696e 7374 616c 6c65 640a  logng_installed.
│ │ │ +00051300: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ +000513b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +000513c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00051030: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00051060: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00051070: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000510b0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000510c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +00051470: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000514c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00051450: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00051480: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000514a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000514b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000514d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000514e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00051500: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ +00051510: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ +00051520: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ +00051530: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ +00051540: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ +00051550: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +00051560: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ +00051620: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00051630: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00051640: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ +00051690: 6765 735d 5d0a 6e61 6d65 203d 2022 7379 ges]].name = "sy │ │ │ +000516a0: 736c 6f67 2d6e 6722 0a76 6572 7369 6f6e slog-ng".version │ │ │ +000516b0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Reme │ │ │ -00052760: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00052770: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00052780: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ -000527d0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000527e0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ -000527f0: 736c 6f67 2d6e 6722 5d0a 3c2f 636f 6465  slog-ng"].
Remedia │ │ │ -000528b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000528c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000528d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000528e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000528f0: 7365 2220 6964 3d22 6964 3434 223e 3c74 se" id="id44"> │ │ │ -00052940: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00052950: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00052960: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000529a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000529b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000529d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000529f0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -00052a00: 6162 6c65 5f73 7973 6c6f 672d 6e67 0a0a  able_syslog-ng..
│ │ │ -00052a10: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ -00052a20: 6c6f 672d 6e67 207b 0a20 2073 6572 7669  log-ng {.  servi
│ │ │ -00052a30: 6365 207b 2773 7973 6c6f 672d 6e67 273a  ce {'syslog-ng':
│ │ │ -00052a40: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00052a50: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00052a60: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00052a70: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedia │ │ │ -00052b30: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00052b40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00052b50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00052b80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00052b90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00052ba0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00052bb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00052bc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00052bd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00052be0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00052c20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00052c30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00052c50: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00052c60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00052c80: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00052c90: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00052ca0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00052cb0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00052cc0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00052cd0: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00052ce0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00052cf0: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00052d00: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00052d10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00052d20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00052d30: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00052d40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00052d50: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00052d60: 655f 7379 736c 6f67 6e67 5f65 6e61 626c  e_syslogng_enabl
│ │ │ -00052d70: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00052d80: 6c65 2073 7973 6c6f 672d 6e67 2053 6572  le syslog-ng Ser
│ │ │ -00052d90: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -00052da0: 7276 6963 6520 7379 736c 6f67 2d6e 670a  rvice syslog-ng.
│ │ │ -00052db0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -00052dc0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00052dd0: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ -00052de0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00052df0: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ -00052e00: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ -00052e10: 7574 6f0a 0a20 202d 206e 616d 653a 2045  uto..  - name: E
│ │ │ -00052e20: 6e61 626c 6520 7379 736c 6f67 2d6e 6720  nable syslog-ng 
│ │ │ -00052e30: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -00052e40: 2053 6572 7669 6365 2073 7973 6c6f 672d   Service syslog-
│ │ │ -00052e50: 6e67 0a20 2020 2061 6e73 6962 6c65 2e62  ng.    ansible.b
│ │ │ -00052e60: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00052e70: 2020 2020 2020 6e61 6d65 3a20 7379 736c        name: sysl
│ │ │ -00052e80: 6f67 2d6e 670a 2020 2020 2020 656e 6162  og-ng.      enab
│ │ │ -00052e90: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00052ea0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00052eb0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00052ec0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00052ed0: 202d 2027 2273 7973 6c6f 672d 6e67 2220   - '"syslog-ng" 
│ │ │ -00052ee0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00052ef0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00052f00: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00052f10: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ -00052f20: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00052f30: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ -00052f40: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00052f50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00052f60: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00052f70: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00052f80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00052f90: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00052fa0: 655f 7379 736c 6f67 6e67 5f65 6e61 626c  e_syslogng_enabl
│ │ │ -00052fb0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00052fc0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00052fd0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00052fe0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00052ff0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.<
│ │ │ +00052780: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Comp │ │ │ +00052800: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00052810: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00052830: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00052850: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00052860: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000528a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000528b0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000528c0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000528d0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000528e0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000528f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00052900: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +00052910: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00052920: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +00052930: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00052940: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00052950: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00052960: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00052970: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00052980: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00052990: 7669 6365 5f73 7973 6c6f 676e 675f 656e vice_syslogng_en │ │ │ +000529a0: 6162 6c65 640a 0a2d 206e 616d 653a 2045 abled..- name: E │ │ │ +000529b0: 6e61 626c 6520 7379 736c 6f67 2d6e 6720 nable syslog-ng │ │ │ +000529c0: 5365 7276 6963 6520 2d20 456e 6162 6c65 Service - Enable │ │ │ +000529d0: 2073 6572 7669 6365 2073 7973 6c6f 672d service syslog- │ │ │ +000529e0: 6e67 0a20 2062 6c6f 636b 3a0a 0a20 202d ng. block:.. - │ │ │ +000529f0: 206e 616d 653a 2047 6174 6865 7220 7468 name: Gather th │ │ │ +00052a00: 6520 7061 636b 6167 6520 6661 6374 730a e package facts. │ │ │ +00052a10: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +00052a20: 7469 6e2e 7061 636b 6167 655f 6661 6374 tin.package_fact │ │ │ +00052a30: 733a 0a20 2020 2020 206d 616e 6167 6572 s:. manager │ │ │ +00052a40: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65 : auto.. - name │ │ │ +00052a50: 3a20 456e 6162 6c65 2073 7973 6c6f 672d : Enable syslog- │ │ │ +00052a60: 6e67 2053 6572 7669 6365 202d 2045 6e61 ng Service - Ena │ │ │ +00052a70: 626c 6520 5365 7276 6963 6520 7379 736c ble Service sysl │ │ │ +00052a80: 6f67 2d6e 670a 2020 2020 616e 7369 626c og-ng. ansibl │ │ │ +00052a90: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ +00052aa0: 643a 0a20 2020 2020 206e 616d 653a 2073 d:. name: s │ │ │ +00052ab0: 7973 6c6f 672d 6e67 0a20 2020 2020 2065 yslog-ng. e │ │ │ +00052ac0: 6e61 626c 6564 3a20 7472 7565 0a20 2020 nabled: true. │ │ │ +00052ad0: 2020 2073 7461 7465 3a20 7374 6172 7465 state: starte │ │ │ +00052ae0: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +00052af0: 6661 6c73 650a 2020 2020 7768 656e 3a0a false. when:. │ │ │ +00052b00: 2020 2020 2d20 2722 7379 736c 6f67 2d6e - '"syslog-n │ │ │ +00052b10: 6722 2069 6e20 616e 7369 626c 655f 6661 g" in ansible_fa │ │ │ +00052b20: 6374 732e 7061 636b 6167 6573 270a 2020 cts.packages'. │ │ │ +00052b30: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00052b40: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +00052b50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00052b60: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +00052b70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00052b80: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00052b90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00052ba0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00052bb0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00052bc0: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00052bd0: 7669 6365 5f73 7973 6c6f 676e 675f 656e vice_syslogng_en │ │ │ +00052be0: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ +00052bf0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ +00052c00: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +00052c10: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +00052c20: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00052c30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
│ │ │ +00052ce0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00052cf0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00052d90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00052da0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00052df0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00052e30: 6c75 6465 2065 6e61 626c 655f 7379 736c  lude enable_sysl
│ │ │ +00052e40: 6f67 2d6e 670a 0a63 6c61 7373 2065 6e61  og-ng..class ena
│ │ │ +00052e50: 626c 655f 7379 736c 6f67 2d6e 6720 7b0a  ble_syslog-ng {.
│ │ │ +00052e60: 2020 7365 7276 6963 6520 7b27 7379 736c    service {'sysl
│ │ │ +00052e70: 6f67 2d6e 6727 3a0a 2020 2020 656e 6162  og-ng':.    enab
│ │ │ +00052e80: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ +00052e90: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00052ea0: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ +00052eb0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00052f60: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00052f70: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00052f80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00052fc0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00052fd0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00052fe0: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +00052ff0: 5b22 7379 736c 6f67 2d6e 6722 5d0a 3c2f  ["syslog-ng"].
R │ │ │ -000541a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000541b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000541c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000541d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00054200: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -00054210: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -00054220: 7273 7973 6c6f 6722 0a76 6572 7369 6f6e rsyslog".version │ │ │ -00054230: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediatio │ │ │ -000542f0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00054300: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -000543d0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00054420: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +00052d80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00052db0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00052dc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00052e00: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00052e10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00054390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -000543b0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00054400: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00054410: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include insta
│ │ │ -00054440: 6c6c 5f72 7379 736c 6f67 0a0a 636c 6173  ll_rsyslog..clas
│ │ │ -00054450: 7320 696e 7374 616c 6c5f 7273 7973 6c6f  s install_rsyslo
│ │ │ -00054460: 6720 7b0a 2020 7061 636b 6167 6520 7b20  g {.  package { 
│ │ │ -00054470: 2772 7379 736c 6f67 273a 0a20 2020 2065  'rsyslog':.    e
│ │ │ -00054480: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00054490: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000544a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -00054550: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00054560: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low< │ │ │ -00054610: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00054660: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000545f0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00054620: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00054640: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00054650: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00054670: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00054680: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000546a0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000546b0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000546c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000546d0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000546e0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -000546f0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00054700: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00054710: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00054720: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00054730: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00054740: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00054750: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00054760: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00054770: 7379 736c 6f67 5f69 6e73 7461 6c6c 6564  syslog_installed
│ │ │ -00054780: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -00054790: 2072 7379 736c 6f67 2069 7320 696e 7374   rsyslog is inst
│ │ │ -000547a0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000547b0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000547c0: 0a20 2020 206e 616d 653a 2072 7379 736c  .    name: rsysl
│ │ │ -000547d0: 6f67 0a20 2020 2073 7461 7465 3a20 7072  og.    state: pr
│ │ │ -000547e0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000547f0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00054800: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00054810: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00054820: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00054830: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -00054840: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00054850: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00054860: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00054870: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00054880: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00054890: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000548a0: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ -000548b0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +000541a0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +000541b0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +00054250: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00054260: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000542b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000542f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00054300: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00054310: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00054320: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00054330: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00054340: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00054350: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00054360: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00054370: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00054380: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00054390: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000543a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000543b0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000543c0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +000543d0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +000543e0: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ +000543f0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +00054400: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00054410: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ +00054420: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ +00054430: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +00054440: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00054450: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00054460: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00054470: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00054480: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00054490: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000544a0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000544b0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000544c0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000544d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000544e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000544f0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +00054500: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00054510: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +000545c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +000545d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00054650: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +00054690: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ +00054240: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00054270: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00054280: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000542c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000542d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00054660: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00054680: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000546b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000546d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00054700: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00054710: 7461 6c6c 5f72 7379 736c 6f67 0a0a 636c  tall_rsyslog..cl
│ │ │ +00054720: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ +00054730: 6c6f 6720 7b0a 2020 7061 636b 6167 6520  log {.  package 
│ │ │ +00054740: 7b20 2772 7379 736c 6f67 273a 0a20 2020  { 'rsyslog':.   
│ │ │ +00054750: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00054760: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00054770: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00054820: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00054830: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00054840: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00054880: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00054890: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000548a0: 2272 7379 736c 6f67 220a 7665 7273 696f  "rsyslog".versio
│ │ │ +000548b0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  000548c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediatio │ │ │ -00055b30: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00055b40: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00055b50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ -00055ba0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00055bb0: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ -00055bc0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00055bd0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pup │ │ │ -00055c80: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00055c90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -00055d20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00055dc0: 636c 7564 6520 656e 6162 6c65 5f72 7379  clude enable_rsy
│ │ │ -00055dd0: 736c 6f67 0a0a 636c 6173 7320 656e 6162  slog..class enab
│ │ │ -00055de0: 6c65 5f72 7379 736c 6f67 207b 0a20 2073  le_rsyslog {.  s
│ │ │ -00055df0: 6572 7669 6365 207b 2772 7379 736c 6f67  ervice {'rsyslog
│ │ │ -00055e00: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00055e10: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ -00055e20: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ -00055e30: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ -00055e50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00055e60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00055e70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00055e80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00055e90: 6435 3522 2074 6162 696e 6465 783d 2230 d55" tabindex="0 │ │ │ -00055ea0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00055eb0: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00055ec0: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00055ed0: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00055ee0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00055ef0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00055f00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00055d10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00055d40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00055d50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00055d90: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00055da0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00055fb0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00055fd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00056000: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00055f90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00055fa0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00055fc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00055fe0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00055ff0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00056040: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00056050: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00056060: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00056070: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00056080: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00056090: 302d 3533 2d41 552d 3428 3129 0a20 202d 0-53-AU-4(1). - │ │ │ -000560a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -000560b0: 3628 6129 0a20 202d 2065 6e61 626c 655f 6(a). - enable_ │ │ │ -000560c0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -000560d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -000560e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -000560f0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -00056100: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00056110: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ -00056120: 6963 655f 7273 7973 6c6f 675f 656e 6162 ice_rsyslog_enab │ │ │ -00056130: 6c65 640a 0a2d 206e 616d 653a 2045 6e61 led..- name: Ena │ │ │ -00056140: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ -00056150: 6963 6520 2d20 456e 6162 6c65 2073 6572 ice - Enable ser │ │ │ -00056160: 7669 6365 2072 7379 736c 6f67 0a20 2062 vice rsyslog. b │ │ │ -00056170: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a lock:.. - name: │ │ │ -00056180: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00056190: 6167 6520 6661 6374 730a 2020 2020 616e age facts. an │ │ │ -000561a0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -000561b0: 636b 6167 655f 6661 6374 733a 0a20 2020 ckage_facts:. │ │ │ -000561c0: 2020 206d 616e 6167 6572 3a20 6175 746f manager: auto │ │ │ -000561d0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162 .. - name: Enab │ │ │ -000561e0: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ -000561f0: 6365 202d 2045 6e61 626c 6520 5365 7276 ce - Enable Serv │ │ │ -00056200: 6963 6520 7273 7973 6c6f 670a 2020 2020 ice rsyslog. │ │ │ -00056210: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00056220: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00056230: 616d 653a 2072 7379 736c 6f67 0a20 2020 ame: rsyslog. │ │ │ -00056240: 2020 2065 6e61 626c 6564 3a20 7472 7565 enabled: true │ │ │ -00056250: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00056260: 6172 7465 640a 2020 2020 2020 6d61 736b arted. mask │ │ │ -00056270: 6564 3a20 6661 6c73 650a 2020 2020 7768 ed: false. wh │ │ │ -00056280: 656e 3a0a 2020 2020 2d20 2722 7273 7973 en:. - '"rsys │ │ │ -00056290: 6c6f 6722 2069 6e20 616e 7369 626c 655f log" in ansible_ │ │ │ -000562a0: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ -000562b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -000562c0: 2d38 3030 2d35 332d 4155 2d34 2831 290a -800-53-AU-4(1). │ │ │ -000562d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -000562e0: 434d 2d36 2861 290a 2020 2d20 656e 6162 CM-6(a). - enab │ │ │ -000562f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00056300: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00056310: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00056320: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -00056330: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00056340: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ -00056350: 6572 7669 6365 5f72 7379 736c 6f67 5f65 ervice_rsyslog_e │ │ │ -00056360: 6e61 626c 6564 0a20 202d 2073 7065 6369 nabled. - speci │ │ │ -00056370: 616c 5f73 6572 7669 6365 5f62 6c6f 636b al_service_block │ │ │ -00056380: 0a20 2077 6865 6e3a 2027 226c 696e 7578 . when: '"linux │ │ │ -00056390: 2d62 6173 6522 2069 6e20 616e 7369 626c -base" in ansibl │ │ │ -000563a0: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -000563b0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.

< │ │ │ +00055b30: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00055b40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ +00055bd0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00055bf0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00055c00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00055c10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00055c20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00055c40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00055c80: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00055c90: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00055ca0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00055cb0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00055cc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00055cd0: 4155 2d34 2831 290a 2020 2d20 4e49 5354  AU-4(1).  - NIST
│ │ │ +00055ce0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00055cf0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00055d00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00055d10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00055d20: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00055d30: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00055d40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00055d50: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ +00055d60: 7379 736c 6f67 5f65 6e61 626c 6564 0a0a  syslog_enabled..
│ │ │ +00055d70: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ +00055d80: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ +00055d90: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00055da0: 7273 7973 6c6f 670a 2020 626c 6f63 6b3a  rsyslog.  block:
│ │ │ +00055db0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +00055dc0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00055dd0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +00055de0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00055df0: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +00055e00: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +00055e10: 206e 616d 653a 2045 6e61 626c 6520 7273   name: Enable rs
│ │ │ +00055e20: 7973 6c6f 6720 5365 7276 6963 6520 2d20  yslog Service - 
│ │ │ +00055e30: 456e 6162 6c65 2053 6572 7669 6365 2072  Enable Service r
│ │ │ +00055e40: 7379 736c 6f67 0a20 2020 2061 6e73 6962  syslog.    ansib
│ │ │ +00055e50: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00055e60: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00055e70: 7273 7973 6c6f 670a 2020 2020 2020 656e  rsyslog.      en
│ │ │ +00055e80: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ +00055e90: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ +00055ea0: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ +00055eb0: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ +00055ec0: 2020 202d 2027 2272 7379 736c 6f67 2220     - '"rsyslog" 
│ │ │ +00055ed0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00055ee0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +00055ef0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00055f00: 3533 2d41 552d 3428 3129 0a20 202d 204e  53-AU-4(1).  - N
│ │ │ +00055f10: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00055f20: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +00055f30: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00055f40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00055f50: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00055f60: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00055f70: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00055f80: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00055f90: 655f 7273 7973 6c6f 675f 656e 6162 6c65  e_rsyslog_enable
│ │ │ +00055fa0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00055fb0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00055fc0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00055fd0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00055fe0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00056000: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +000560a0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000560b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00056160: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00056180: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000561b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00056140: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00056150: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00056170: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00056190: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000561a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediatio │ │ │ +00056320: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00056330: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00056340: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ +00056390: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +000563a0: 6c65 6420 3d20 5b22 7273 7973 6c6f 6722  led = ["rsyslog"
│ │ │ +000563b0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 000563c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Rem │ │ │ -00078730: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00078740: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00078750: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000787d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00078800: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00078820: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00078830: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00078850: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00078860: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00078880: 6c75 6465 2072 656d 6f76 655f 696e 6574  lude remove_inet
│ │ │ -00078890: 7574 696c 732d 7465 6c6e 6574 640a 0a63  utils-telnetd..c
│ │ │ -000788a0: 6c61 7373 2072 656d 6f76 655f 696e 6574  lass remove_inet
│ │ │ -000788b0: 7574 696c 732d 7465 6c6e 6574 6420 7b0a  utils-telnetd {.
│ │ │ -000788c0: 2020 7061 636b 6167 6520 7b20 2769 6e65    package { 'ine
│ │ │ -000788d0: 7475 7469 6c73 2d74 656c 6e65 7464 273a  tutils-telnetd':
│ │ │ -000788e0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000788f0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00078900: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00078910: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000789c0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000789d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00078a50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00078a70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00078ac0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00078af0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00078b10: 7461 6c6c 2074 6865 2069 6e65 742d 6261  tall the inet-ba
│ │ │ -00078b20: 7365 6420 7465 6c6e 6574 2073 6572 7665  sed telnet serve
│ │ │ -00078b30: 723a 2045 6e73 7572 6520 696e 6574 7574  r: Ensure inetut
│ │ │ -00078b40: 696c 732d 7465 6c6e 6574 6420 6973 2072  ils-telnetd is r
│ │ │ -00078b50: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00078b60: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00078b70: 653a 0a20 2020 206e 616d 653a 2069 6e65  e:.    name: ine
│ │ │ -00078b80: 7475 7469 6c73 2d74 656c 6e65 7464 0a20  tutils-telnetd. 
│ │ │ -00078b90: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00078ba0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00078bb0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00078bc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00078bd0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00078be0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00078bf0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00078c00: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -00078c10: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -00078c20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00078c30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00078c40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00078c50: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -00078c60: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -00078c70: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00078730: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00078740: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00078750: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -00078a80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00078a90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00078ad0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00078ae0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
low< │ │ │ +000787f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00078840: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00078880: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00078890: 7468 6520 696e 6574 2d62 6173 6564 2074  the inet-based t
│ │ │ +000788a0: 656c 6e65 7420 7365 7276 6572 3a20 456e  elnet server: En
│ │ │ +000788b0: 7375 7265 2069 6e65 7475 7469 6c73 2d74  sure inetutils-t
│ │ │ +000788c0: 656c 6e65 7464 2069 7320 7265 6d6f 7665  elnetd is remove
│ │ │ +000788d0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +000788e0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000788f0: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ +00078900: 732d 7465 6c6e 6574 640a 2020 2020 7374  s-telnetd.    st
│ │ │ +00078910: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +00078920: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00078930: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00078940: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00078950: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00078960: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +00078970: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00078980: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00078990: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +000789a0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000789b0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +000789c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000789d0: 2d20 7061 636b 6167 655f 696e 6574 7574  - package_inetut
│ │ │ +000789e0: 696c 732d 7465 6c6e 6574 645f 7265 6d6f  ils-telnetd_remo
│ │ │ +000789f0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +00078ab0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00078ac0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ +000787d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00078800: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00078820: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00078830: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00078850: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00078860: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00078b40: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00078b60: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00078bb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00078be0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00078b50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00078b70: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00078bc0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00078bd0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00078c00: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +00078c10: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +00078c20: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ +00078c30: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ +00078c40: 207b 2027 696e 6574 7574 696c 732d 7465   { 'inetutils-te
│ │ │ +00078c50: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ +00078c60: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00078c70: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00078c80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Re │ │ │ -00079790: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000797a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000797b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00079850: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000798a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -000798e0: 636c 7564 6520 7265 6d6f 7665 5f6e 6973  clude remove_nis
│ │ │ -000798f0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6e  ..class remove_n
│ │ │ -00079900: 6973 207b 0a20 2070 6163 6b61 6765 207b  is {.  package {
│ │ │ -00079910: 2027 6e69 7327 3a0a 2020 2020 656e 7375   'nis':.    ensu
│ │ │ -00079920: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00079930: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00079940: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000799f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00079a00: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00079a10: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00079a40: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ -00079830: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00079860: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00079880: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00079890: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000798b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -000798c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00079ab0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00079ad0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00079b00: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00079a90: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00079aa0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00079ae0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00079af0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00079b40: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -00079b50: 6e69 7320 7061 636b 6167 653a 2045 6e73 nis package: Ens │ │ │ -00079b60: 7572 6520 6e69 7320 6973 2072 656d 6f76 ure nis is remov │ │ │ -00079b70: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -00079b80: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00079b90: 2020 206e 616d 653a 206e 6973 0a20 2020 name: nis. │ │ │ -00079ba0: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -00079bb0: 2074 6167 733a 0a20 202d 2064 6973 6162 tags:. - disab │ │ │ -00079bc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -00079bd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -00079be0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -00079bf0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269 n. - low_severi │ │ │ -00079c00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -00079c10: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -00079c20: 6167 655f 6e69 735f 7265 6d6f 7665 640a age_nis_removed. │ │ │ +00079790: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +000797a0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...

< │ │ │ +00079840: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00079850: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000798a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +000798e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +000798f0: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ +00079900: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ +00079910: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00079920: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00079930: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ +00079940: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ +00079950: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00079960: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00079970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00079980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00079990: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +000799a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000799b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000799c0: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ +000799d0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +00079a90: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +00079aa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +00079b70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +00079830: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00079860: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00079870: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000798b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +000798c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00079b30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00079b50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00079ba0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00079bb0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00079be0: 6f76 655f 6e69 730a 0a63 6c61 7373 2072  ove_nis..class r
│ │ │ +00079bf0: 656d 6f76 655f 6e69 7320 7b0a 2020 7061  emove_nis {.  pa
│ │ │ +00079c00: 636b 6167 6520 7b20 276e 6973 273a 0a20  ckage { 'nis':. 
│ │ │ +00079c10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00079c20: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00079c30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0007a5b0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007a5c0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0007a660: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007a700: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ -0007a710: 7470 6461 7465 0a0a 636c 6173 7320 7265  tpdate..class re
│ │ │ -0007a720: 6d6f 7665 5f6e 7470 6461 7465 207b 0a20  move_ntpdate {. 
│ │ │ -0007a730: 2070 6163 6b61 6765 207b 2027 6e74 7064   package { 'ntpd
│ │ │ -0007a740: 6174 6527 3a0a 2020 2020 656e 7375 7265  ate':.    ensure
│ │ │ -0007a750: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -0007a760: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0007a820: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0007a830: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0007a8b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0007a940: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007a950: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -0007a650: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007a680: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007a690: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007a6d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007a6e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -0007a8c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007a8d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0007a910: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007a920: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -0007a970: 556e 696e 7374 616c 6c20 7468 6520 6e74  Uninstall the nt
│ │ │ -0007a980: 7064 6174 6520 7061 636b 6167 653a 2045  pdate package: E
│ │ │ -0007a990: 6e73 7572 6520 6e74 7064 6174 6520 6973  nsure ntpdate is
│ │ │ -0007a9a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007a9b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007a9c0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ -0007a9d0: 7470 6461 7465 0a20 2020 2073 7461 7465  tpdate.    state
│ │ │ -0007a9e0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -0007a9f0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0007aa00: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0007aa10: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0007aa20: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0007aa30: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -0007aa40: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0007aa50: 640a 2020 2d20 7061 636b 6167 655f 6e74  d.  - package_nt
│ │ │ -0007aa60: 7064 6174 655f 7265 6d6f 7665 640a 3c2f  pdate_removed.
< │ │ │ +0007a6a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007a6b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007a700: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007a710: 6c6c 2074 6865 206e 7470 6461 7465 2070  ll the ntpdate p
│ │ │ +0007a720: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ +0007a730: 7470 6461 7465 2069 7320 7265 6d6f 7665  tpdate is remove
│ │ │ +0007a740: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +0007a750: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0007a760: 2020 6e61 6d65 3a20 6e74 7064 6174 650a    name: ntpdate.
│ │ │ +0007a770: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0007a780: 740a 2020 7461 6773 3a0a 2020 2d20 6469  t.  tags:.  - di
│ │ │ +0007a790: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0007a7a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0007a7b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0007a7c0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +0007a7d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0007a7e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0007a7f0: 6163 6b61 6765 5f6e 7470 6461 7465 5f72  ackage_ntpdate_r
│ │ │ +0007a800: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0007a8c0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0007a8d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0007a950: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0007a990: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +0007a680: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007a690: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007a6d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007a6e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +0007a960: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0007a980: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0007a9b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0007a9d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0007aa00: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0007aa10: 656d 6f76 655f 6e74 7064 6174 650a 0a63  emove_ntpdate..c
│ │ │ +0007aa20: 6c61 7373 2072 656d 6f76 655f 6e74 7064  lass remove_ntpd
│ │ │ +0007aa30: 6174 6520 7b0a 2020 7061 636b 6167 6520  ate {.  package 
│ │ │ +0007aa40: 7b20 276e 7470 6461 7465 273a 0a20 2020  { 'ntpdate':.   
│ │ │ +0007aa50: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0007aa60: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediati │ │ │ -0007bb40: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0007bb50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007bbd0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0007bbe0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0007bc00: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0007bc10: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0007bc30: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0007bc50: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0007bc80: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0007bc90: 656d 6f76 655f 7465 6c6e 6574 642d 7373  emove_telnetd-ss
│ │ │ -0007bca0: 6c0a 0a63 6c61 7373 2072 656d 6f76 655f  l..class remove_
│ │ │ -0007bcb0: 7465 6c6e 6574 642d 7373 6c20 7b0a 2020  telnetd-ssl {.  
│ │ │ -0007bcc0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -0007bcd0: 7464 2d73 736c 273a 0a20 2020 2065 6e73  td-ssl':.    ens
│ │ │ -0007bce0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0007bcf0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0007bdb0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007bdc0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0007be70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007be90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007bec0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007be50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007be60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007be80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007bea0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007beb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007bef0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0007bf00: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -0007bf10: 2073 736c 2063 6f6d 706c 6961 6e74 2074 ssl compliant t │ │ │ -0007bf20: 656c 6e65 7420 7365 7276 6572 3a20 456e elnet server: En │ │ │ -0007bf30: 7375 7265 2074 656c 6e65 7464 2d73 736c sure telnetd-ssl │ │ │ -0007bf40: 2069 7320 7265 6d6f 7665 6427 0a20 2061 is removed'. a │ │ │ -0007bf50: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -0007bf60: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -0007bf70: 3a20 7465 6c6e 6574 642d 7373 6c0a 2020 : telnetd-ssl. │ │ │ -0007bf80: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0007bf90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ -0007bfa0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ -0007bfb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0007bfc0: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ -0007bfd0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ -0007bfe0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -0007bff0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ -0007c000: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ -0007c010: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0007c020: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0007c030: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0007c040: 640a 2020 2d20 7061 636b 6167 655f 7465 d. - package_te │ │ │ -0007c050: 6c6e 6574 642d 7373 6c5f 7265 6d6f 7665 lnetd-ssl_remove │ │ │ -0007c060: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0007bb40: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +0007bb50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0007bbd0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0007bbe0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007bbf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0007bc30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007bc40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0007bc60: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0007bc70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0007bc90: 556e 696e 7374 616c 6c20 7468 6520 7373  Uninstall the ss
│ │ │ +0007bca0: 6c20 636f 6d70 6c69 616e 7420 7465 6c6e  l compliant teln
│ │ │ +0007bcb0: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ +0007bcc0: 6520 7465 6c6e 6574 642d 7373 6c20 6973  e telnetd-ssl is
│ │ │ +0007bcd0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0007bce0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0007bcf0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +0007bd00: 656c 6e65 7464 2d73 736c 0a20 2020 2073  elnetd-ssl.    s
│ │ │ +0007bd10: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0007bd20: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0007bd30: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0007bd40: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0007bd50: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0007bd60: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0007bd70: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0007bd80: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +0007bd90: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +0007bda0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0007bdb0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0007bdc0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0007bdd0: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ +0007bde0: 7464 2d73 736c 5f72 656d 6f76 6564 0a3c  td-ssl_removed.<
│ │ │ +0007bdf0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0007bea0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0007beb0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +0007bf50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007bf60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007bfb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0007bff0: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ +0007c000: 6c6e 6574 642d 7373 6c0a 0a63 6c61 7373  lnetd-ssl..class
│ │ │ +0007c010: 2072 656d 6f76 655f 7465 6c6e 6574 642d   remove_telnetd-
│ │ │ +0007c020: 7373 6c20 7b0a 2020 7061 636b 6167 6520  ssl {.  package 
│ │ │ +0007c030: 7b20 2774 656c 6e65 7464 2d73 736c 273a  { 'telnetd-ssl':
│ │ │ +0007c040: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0007c050: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0007c060: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0007c070: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -0007d130: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0007d140: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +0007bf40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007bf70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007bf80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007bfc0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007bfd0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0007d1e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007d1f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007d240: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0007d280: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -0007d290: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ -0007d2a0: 6f76 655f 7465 6c6e 6574 6420 7b0a 2020  ove_telnetd {.  
│ │ │ -0007d2b0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ -0007d2c0: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ -0007d2d0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0007d2e0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0007d3a0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0007d3b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0007d430: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0007d470: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -0007d1d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007d200: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007d210: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007d250: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007d260: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -0007d440: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0007d460: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0007d490: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0007d4b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0007d4e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0007d4f0: 6e69 6e73 7461 6c6c 2074 6865 2074 656c  ninstall the tel
│ │ │ -0007d500: 6e65 7420 7365 7276 6572 3a20 456e 7375  net server: Ensu
│ │ │ -0007d510: 7265 2074 656c 6e65 7464 2069 7320 7265  re telnetd is re
│ │ │ -0007d520: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -0007d530: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007d540: 3a0a 2020 2020 6e61 6d65 3a20 7465 6c6e  :.    name: teln
│ │ │ -0007d550: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ -0007d560: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -0007d570: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0007d580: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0007d590: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0007d5a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0007d5b0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0007d5c0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0007d5d0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0007d5e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0007d5f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0007d600: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0007d610: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0007d620: 6167 655f 7465 6c6e 6574 645f 7265 6d6f  age_telnetd_remo
│ │ │ -0007d630: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0007d1e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0007d280: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0007d290: 6c20 7468 6520 7465 6c6e 6574 2073 6572  l the telnet ser
│ │ │ +0007d2a0: 7665 723a 2045 6e73 7572 6520 7465 6c6e  ver: Ensure teln
│ │ │ +0007d2b0: 6574 6420 6973 2072 656d 6f76 6564 270a  etd is removed'.
│ │ │ +0007d2c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0007d2d0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0007d2e0: 616d 653a 2074 656c 6e65 7464 0a20 2020  ame: telnetd.   
│ │ │ +0007d2f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +0007d300: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0007d310: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0007d320: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0007d330: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +0007d340: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +0007d350: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0007d360: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +0007d370: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +0007d380: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0007d390: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0007d3a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0007d3b0: 0a20 202d 2070 6163 6b61 6765 5f74 656c  .  - package_tel
│ │ │ +0007d3c0: 6e65 7464 5f72 656d 6f76 6564 0a3c 2f63  netd_removed.
│ │ │ +0007d3e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0007d480: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0007d490: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0007d4a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +0007d1d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007d200: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007d210: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007d250: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007d260: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +0007d520: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007d550: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007d570: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007d580: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007d5a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0007d5b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +0007d5d0: 6c75 6465 2072 656d 6f76 655f 7465 6c6e  lude remove_teln
│ │ │ +0007d5e0: 6574 640a 0a63 6c61 7373 2072 656d 6f76  etd..class remov
│ │ │ +0007d5f0: 655f 7465 6c6e 6574 6420 7b0a 2020 7061  e_telnetd {.  pa
│ │ │ +0007d600: 636b 6167 6520 7b20 2774 656c 6e65 7464  ckage { 'telnetd
│ │ │ +0007d610: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0007d620: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0007d630: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Reme │ │ │ -0007f560: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0007f570: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0007f580: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ -0007f5d0: 6765 735d 5d0a 6e61 6d65 203d 2022 6e74 ges]].name = "nt │ │ │ -0007f5e0: 7022 0a76 6572 7369 6f6e 203d 2022 2a22 p".version = "*" │ │ │ -0007f5f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ -0007f6b0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0007f6c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0007f790: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007f7a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0007f7f0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f6e  nclude install_n
│ │ │ -0007f800: 7470 0a0a 636c 6173 7320 696e 7374 616c  tp..class instal
│ │ │ -0007f810: 6c5f 6e74 7020 7b0a 2020 7061 636b 6167  l_ntp {.  packag
│ │ │ -0007f820: 6520 7b20 276e 7470 273a 0a20 2020 2065  e { 'ntp':.    e
│ │ │ -0007f830: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -0007f840: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -0007f850: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0007f900: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0007f910: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:low
Disrup │ │ │ -0007f770: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007f780: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007f7c0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0007f7d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0007f9b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0007fa50: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0007fa60: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0007fa70: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0007fa80: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0007fa90: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0007faa0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0007fab0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0007fac0: 712d 3130 2e34 0a20 202d 2065 6e61 626c  q-10.4.  - enabl
│ │ │ -0007fad0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0007fae0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0007faf0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0007fb00: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0007fb10: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0007fb20: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0007fb30: 6167 655f 6e74 705f 696e 7374 616c 6c65  age_ntp_installe
│ │ │ -0007fb40: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ -0007fb50: 6520 6e74 7020 6973 2069 6e73 7461 6c6c  e ntp is install
│ │ │ -0007fb60: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ -0007fb70: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0007fb80: 2020 6e61 6d65 3a20 6e74 700a 2020 2020    name: ntp.    
│ │ │ -0007fb90: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -0007fba0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -0007fbb0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -0007fbc0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -0007fbd0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0007fbe0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0007fbf0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0007fc00: 3130 2e34 0a20 202d 2065 6e61 626c 655f  10.4.  - enable_
│ │ │ -0007fc10: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -0007fc20: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -0007fc30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0007fc40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0007fc50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0007fc60: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0007fc70: 655f 6e74 705f 696e 7374 616c 6c65 640a  e_ntp_installed.
│ │ │ +0007f560: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +0007f570: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +0007f580: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
│ │ │ -0007f9a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007f9d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007f9e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007fa20: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0007fa30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +0007f600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007f630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007f650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007f660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007f680: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0007f6a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0007f6b0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0007f6c0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0007f6d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0007f6e0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0007f6f0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0007f700: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0007f710: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +0007f720: 302e 340a 2020 2d20 656e 6162 6c65 5f73  0.4.  - enable_s
│ │ │ +0007f730: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0007f740: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0007f750: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0007f760: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0007f770: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0007f780: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0007f790: 5f6e 7470 5f69 6e73 7461 6c6c 6564 0a0a  _ntp_installed..
│ │ │ +0007f7a0: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ +0007f7b0: 7470 2069 7320 696e 7374 616c 6c65 640a  tp is installed.
│ │ │ +0007f7c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0007f7d0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0007f7e0: 616d 653a 206e 7470 0a20 2020 2073 7461  ame: ntp.    sta
│ │ │ +0007f7f0: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ +0007f800: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +0007f810: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0007f820: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +0007f830: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0007f840: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0007f850: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ +0007f860: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ +0007f870: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0007f880: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0007f890: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007f8a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007f8b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007f8c0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +0007f8d0: 7470 5f69 6e73 7461 6c6c 6564 0a3c 2f63  tp_installed.
│ │ │ +0007f8f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0007f990: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0007f9a0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0007f9b0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0007fa30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0007fa60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0007fa80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0007fa90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0007fab0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0007fad0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0007fae0: 6465 2069 6e73 7461 6c6c 5f6e 7470 0a0a  de install_ntp..
│ │ │ +0007faf0: 636c 6173 7320 696e 7374 616c 6c5f 6e74  class install_nt
│ │ │ +0007fb00: 7020 7b0a 2020 7061 636b 6167 6520 7b20  p {.  package { 
│ │ │ +0007fb10: 276e 7470 273a 0a20 2020 2065 6e73 7572  'ntp':.    ensur
│ │ │ +0007fb20: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ +0007fb30: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +0007fbf0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0007fc00: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0007fc10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +0007fc60: 6573 5d5d 0a6e 616d 6520 3d20 226e 7470  es]].name = "ntp
│ │ │ +0007fc70: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │  0007fc80: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
'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: │ │ │ │ @@ -1910,14 +1893,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -1947,31 +1947,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2008,14 +1991,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2048,31 +2048,14 @@ │ │ │ │ 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: │ │ │ │ @@ -2095,14 +2078,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/ │ │ │ │ @@ -2135,31 +2135,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -2196,14 +2179,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/ │ │ │ │ @@ -4494,27 +4494,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' │ │ │ │ @@ -4527,14 +4514,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 │ │ │ │ @@ -4550,27 +4550,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: │ │ │ │ @@ -4579,14 +4566,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 │ │ │ │ @@ -4602,27 +4602,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: │ │ │ │ @@ -4631,14 +4618,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 │ │ │ │ @@ -4671,27 +4671,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' │ │ │ │ @@ -4704,14 +4691,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 │ │ │ │ @@ -4745,27 +4745,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -4777,14 +4764,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 │ │ │ │ @@ -4860,31 +4860,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -4909,14 +4892,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_high.html │ │ │ @@ -21319,128 +21319,128 @@ │ │ │ 00053460: 2d74 6172 6765 743d 2223 6964 3431 2220 -target="#id41" │ │ │ 00053470: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 00053480: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 00053490: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 000534a0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 000534b0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 000534c0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -000534d0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000534e0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -000534f0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ -00053540: 616d 6520 3d20 2273 7973 6c6f 672d 6e67  ame = "syslog-ng
│ │ │ -00053550: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -00053560: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00053610: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00053620: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -000536d0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00053720: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000536b0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000536e0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00053700: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00053710: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00053730: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00053740: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00053760: 7564 6520 696e 7374 616c 6c5f 7379 736c  ude install_sysl
│ │ │ -00053770: 6f67 2d6e 670a 0a63 6c61 7373 2069 6e73  og-ng..class ins
│ │ │ -00053780: 7461 6c6c 5f73 7973 6c6f 672d 6e67 207b  tall_syslog-ng {
│ │ │ -00053790: 0a20 2070 6163 6b61 6765 207b 2027 7379  .  package { 'sy
│ │ │ -000537a0: 736c 6f67 2d6e 6727 3a0a 2020 2020 656e  slog-ng':.    en
│ │ │ -000537b0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000537c0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ -00053880: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00053890: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000538a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -00053920: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00053950: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00053970: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00053980: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000539a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000539c0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000539d0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000539e0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -000539f0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00053a00: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00053a10: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00053a20: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00053a30: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00053a40: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00053a50: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00053a60: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00053a70: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00053a80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00053a90: 640a 2020 2d20 7061 636b 6167 655f 7379  d.  - package_sy
│ │ │ -00053aa0: 736c 6f67 6e67 5f69 6e73 7461 6c6c 6564  slogng_installed
│ │ │ -00053ab0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -00053ac0: 2073 7973 6c6f 672d 6e67 2069 7320 696e   syslog-ng is in
│ │ │ -00053ad0: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -00053ae0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00053af0: 653a 0a20 2020 206e 616d 653a 2073 7973  e:.    name: sys
│ │ │ -00053b00: 6c6f 672d 6e67 0a20 2020 2073 7461 7465  log-ng.    state
│ │ │ -00053b10: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00053b20: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00053b30: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00053b40: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00053b50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00053b60: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00053b70: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00053b80: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00053b90: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00053ba0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00053bb0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00053bc0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00053bd0: 2d20 7061 636b 6167 655f 7379 736c 6f67  - package_syslog
│ │ │ -00053be0: 6e67 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ng_installed.
Complexity │ │ │ +00053570: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00053590: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000535a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000535b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000535c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000535e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00053620: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00053630: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00053640: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00053650: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00053660: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00053670: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +00053680: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00053690: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000536a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000536b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000536c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000536d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000536e0: 6163 6b61 6765 5f73 7973 6c6f 676e 675f  ackage_syslogng_
│ │ │ +000536f0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +00053700: 653a 2045 6e73 7572 6520 7379 736c 6f67  e: Ensure syslog
│ │ │ +00053710: 2d6e 6720 6973 2069 6e73 7461 6c6c 6564  -ng is installed
│ │ │ +00053720: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00053730: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00053740: 6e61 6d65 3a20 7379 736c 6f67 2d6e 670a  name: syslog-ng.
│ │ │ +00053750: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +00053760: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00053770: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00053780: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00053790: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000537a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +000537b0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ +000537c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000537d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000537e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000537f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00053800: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00053810: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00053820: 6765 5f73 7973 6c6f 676e 675f 696e 7374  ge_syslogng_inst
│ │ │ +00053830: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediation │ │ │ +000538f0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00053900: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00053980: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000539a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000539f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00053a20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00053a40: 6c5f 7379 736c 6f67 2d6e 670a 0a63 6c61  l_syslog-ng..cla
│ │ │ +00053a50: 7373 2069 6e73 7461 6c6c 5f73 7973 6c6f  ss install_syslo
│ │ │ +00053a60: 672d 6e67 207b 0a20 2070 6163 6b61 6765  g-ng {.  package
│ │ │ +00053a70: 207b 2027 7379 736c 6f67 2d6e 6727 3a0a   { 'syslog-ng':.
│ │ │ +00053a80: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00053a90: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00053aa0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +00053b60: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00053b70: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00053b80: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +00053bc0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +00053bd0: 203d 2022 7379 736c 6f67 2d6e 6722 0a76   = "syslog-ng".v
│ │ │ +00053be0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 00053c00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation OS │ │ │ -00054ca0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00054cb0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00054cc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ -00054d00: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00054d10: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -00054d20: 3d20 5b22 7379 736c 6f67 2d6e 6722 5d0a  = ["syslog-ng"].
│ │ │ -00054d30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00054de0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00054df0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:< │ │ │ +00053990: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000539b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00053a00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00053a10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -00054ea0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00054ef0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00054e80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00054eb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00054ed0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00054ee0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00054f00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00054f10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00054f30: 7564 6520 656e 6162 6c65 5f73 7973 6c6f  ude enable_syslo
│ │ │ -00054f40: 672d 6e67 0a0a 636c 6173 7320 656e 6162  g-ng..class enab
│ │ │ -00054f50: 6c65 5f73 7973 6c6f 672d 6e67 207b 0a20  le_syslog-ng {. 
│ │ │ -00054f60: 2073 6572 7669 6365 207b 2773 7973 6c6f   service {'syslo
│ │ │ -00054f70: 672d 6e67 273a 0a20 2020 2065 6e61 626c  g-ng':.    enabl
│ │ │ -00054f80: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00054f90: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00054fa0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00054fb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00055060: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00055070: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -00055110: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00055120: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00055170: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000551b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000551c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000551d0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000551e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000551f0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00055200: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -00055210: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00055220: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00055230: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00055240: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00055250: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00055260: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00055270: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00055280: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00055290: 7365 7276 6963 655f 7379 736c 6f67 6e67  service_syslogng
│ │ │ -000552a0: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -000552b0: 3a20 456e 6162 6c65 2073 7973 6c6f 672d  : Enable syslog-
│ │ │ -000552c0: 6e67 2053 6572 7669 6365 202d 2045 6e61  ng Service - Ena
│ │ │ -000552d0: 626c 6520 7365 7276 6963 6520 7379 736c  ble service sysl
│ │ │ -000552e0: 6f67 2d6e 670a 2020 626c 6f63 6b3a 0a0a  og-ng.  block:..
│ │ │ -000552f0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -00055300: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00055310: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -00055320: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -00055330: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -00055340: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -00055350: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ -00055360: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ -00055370: 456e 6162 6c65 2053 6572 7669 6365 2073  Enable Service s
│ │ │ -00055380: 7973 6c6f 672d 6e67 0a20 2020 2061 6e73  yslog-ng.    ans
│ │ │ -00055390: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000553a0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000553b0: 3a20 7379 736c 6f67 2d6e 670a 2020 2020  : syslog-ng.    
│ │ │ -000553c0: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ -000553d0: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ -000553e0: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ -000553f0: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ -00055400: 6e3a 0a20 2020 202d 2027 2273 7973 6c6f  n:.    - '"syslo
│ │ │ -00055410: 672d 6e67 2220 696e 2061 6e73 6962 6c65  g-ng" in ansible
│ │ │ -00055420: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00055430: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00055440: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -00055450: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00055460: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00055470: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00055480: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00055490: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000554a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -000554b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -000554c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -000554d0: 7365 7276 6963 655f 7379 736c 6f67 6e67  service_syslogng
│ │ │ -000554e0: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -000554f0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00055500: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -00055510: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00055520: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00055530: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation An │ │ │ +00054ca0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00054cb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ -00055100: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00055130: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00055140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00055180: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00055190: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +00054d80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00054d90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00054de0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00054df0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00054e00: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00054e10: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00054e20: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00054e30: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00054e40: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00054e50: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00054e60: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00054e70: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00054e80: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00054e90: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00054ea0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00054eb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00054ec0: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ +00054ed0: 676e 675f 656e 6162 6c65 640a 0a2d 206e  gng_enabled..- n
│ │ │ +00054ee0: 616d 653a 2045 6e61 626c 6520 7379 736c  ame: Enable sysl
│ │ │ +00054ef0: 6f67 2d6e 6720 5365 7276 6963 6520 2d20  og-ng Service - 
│ │ │ +00054f00: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ +00054f10: 7973 6c6f 672d 6e67 0a20 2062 6c6f 636b  yslog-ng.  block
│ │ │ +00054f20: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ +00054f30: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00054f40: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ +00054f50: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00054f60: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ +00054f70: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ +00054f80: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +00054f90: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ +00054fa0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ +00054fb0: 6520 7379 736c 6f67 2d6e 670a 2020 2020  e syslog-ng.    
│ │ │ +00054fc0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00054fd0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00054fe0: 616d 653a 2073 7973 6c6f 672d 6e67 0a20  ame: syslog-ng. 
│ │ │ +00054ff0: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ +00055000: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ +00055010: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ +00055020: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ +00055030: 7768 656e 3a0a 2020 2020 2d20 2722 7379  when:.    - '"sy
│ │ │ +00055040: 736c 6f67 2d6e 6722 2069 6e20 616e 7369  slog-ng" in ansi
│ │ │ +00055050: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00055060: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00055070: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00055080: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00055090: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000550a0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000550b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000550c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000550d0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000550e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000550f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00055100: 202d 2073 6572 7669 6365 5f73 7973 6c6f   - service_syslo
│ │ │ +00055110: 676e 675f 656e 6162 6c65 640a 2020 2d20  gng_enabled.  - 
│ │ │ +00055120: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ +00055130: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ +00055140: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00055150: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00055160: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediatio
│ │ │ +00055220: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00055230: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
low< │ │ │ +00055300: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00055350: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disru │ │ │ +00054d60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00054d70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00054db0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00054dc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +000552c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000552e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00055330: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00055340: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ +00055370: 655f 7379 736c 6f67 2d6e 670a 0a63 6c61  e_syslog-ng..cla
│ │ │ +00055380: 7373 2065 6e61 626c 655f 7379 736c 6f67  ss enable_syslog
│ │ │ +00055390: 2d6e 6720 7b0a 2020 7365 7276 6963 6520  -ng {.  service 
│ │ │ +000553a0: 7b27 7379 736c 6f67 2d6e 6727 3a0a 2020  {'syslog-ng':.  
│ │ │ +000553b0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +000553c0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +000553d0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +000553e0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +000554a0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +000554b0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +000554c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customization
│ │ │ +00055510: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +00055520: 6c65 6420 3d20 5b22 7379 736c 6f67 2d6e  led = ["syslog-n
│ │ │ +00055530: 6722 5d0a 3c2f 636f 6465 3e3c 2f70 7265  g"].
Remediation │ │ │ -000566e0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -000566f0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ -00056740: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -00056750: 6d65 203d 2022 7273 7973 6c6f 6722 0a76  me = "rsyslog".v
│ │ │ -00056760: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00056780: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Reme │ │ │ -00056820: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00056830: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -000568e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00056900: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00056930: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000568c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000568d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000568f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00056910: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00056920: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00056970: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ -00056980: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ -00056990: 7273 7973 6c6f 6720 7b0a 2020 7061 636b rsyslog {. pack │ │ │ -000569a0: 6167 6520 7b20 2772 7379 736c 6f67 273a age { 'rsyslog': │ │ │ -000569b0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -000569c0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20 ; 'installed',. │ │ │ -000569d0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ -00056a90: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00056aa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00056b20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00056b40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00056b90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00056bc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00056be0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00056bf0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00056c00: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00056c10: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00056c20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00056c30: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -00056c40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00056c50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00056c60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00056c70: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00056c80: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00056c90: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00056ca0: 6b61 6765 5f72 7379 736c 6f67 5f69 6e73  kage_rsyslog_ins
│ │ │ -00056cb0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00056cc0: 456e 7375 7265 2072 7379 736c 6f67 2069  Ensure rsyslog i
│ │ │ -00056cd0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00056ce0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00056cf0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00056d00: 2072 7379 736c 6f67 0a20 2020 2073 7461   rsyslog.    sta
│ │ │ -00056d10: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -00056d20: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00056d30: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00056d40: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -00056d50: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00056d60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00056d70: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00056d80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00056d90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00056da0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00056db0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00056dc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00056dd0: 2020 2d20 7061 636b 6167 655f 7273 7973    - package_rsys
│ │ │ -00056de0: 6c6f 675f 696e 7374 616c 6c65 640a 3c2f  log_installed.
low< │ │ │ +000567c0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +00056810: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00056b30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00056b50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00056ba0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00056bb0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +00056780: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +000567a0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +000567f0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00056800: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +00056830: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00056840: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00056850: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00056860: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00056870: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00056880: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ +00056890: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000568a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000568b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000568c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000568d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000568e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000568f0: 636b 6167 655f 7273 7973 6c6f 675f 696e  ckage_rsyslog_in
│ │ │ +00056900: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00056910: 2045 6e73 7572 6520 7273 7973 6c6f 6720   Ensure rsyslog 
│ │ │ +00056920: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00056930: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00056940: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00056950: 3a20 7273 7973 6c6f 670a 2020 2020 7374  : rsyslog.    st
│ │ │ +00056960: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00056970: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00056980: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00056990: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +000569a0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +000569b0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +000569c0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000569d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000569e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000569f0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00056a00: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00056a10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00056a20: 0a20 202d 2070 6163 6b61 6765 5f72 7379  .  - package_rsy
│ │ │ +00056a30: 736c 6f67 5f69 6e73 7461 6c6c 6564 0a3c  slog_installed.<
│ │ │ +00056a40: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +00056af0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00056b00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00056b10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ +00056b90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00056bc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00056be0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00056bf0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00056c10: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00056c30: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00056c40: 6465 2069 6e73 7461 6c6c 5f72 7379 736c  de install_rsysl
│ │ │ +00056c50: 6f67 0a0a 636c 6173 7320 696e 7374 616c  og..class instal
│ │ │ +00056c60: 6c5f 7273 7973 6c6f 6720 7b0a 2020 7061  l_rsyslog {.  pa
│ │ │ +00056c70: 636b 6167 6520 7b20 2772 7379 736c 6f67  ckage { 'rsyslog
│ │ │ +00056c80: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00056c90: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +00056ca0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediatio │ │ │ +00056d60: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00056d70: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00056d80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].n
│ │ │ +00056dd0: 616d 6520 3d20 2272 7379 736c 6f67 220a  ame = "rsyslog".
│ │ │ +00056de0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Reme │ │ │ -00058060: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00058070: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00058080: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ -000580d0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -000580e0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ -000580f0: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │ -00058100: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediati │ │ │ -000581b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000581c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
Complexity │ │ │ -00058250: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00058270: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00058280: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00058290: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000582a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000582c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ -00058300: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ -00058310: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ -00058320: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ -00058330: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ -00058340: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -00058350: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00058360: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -00058370: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00058380: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Ans │ │ │ -00058430: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00058440: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00058510: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00058520: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00058570: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00058580: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00058590: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -000585a0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -000585b0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -000585c0: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ -000585d0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -000585e0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000585f0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00058600: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00058610: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00058620: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00058630: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00058640: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00058650: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ -00058660: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ -00058670: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -00058680: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -00058690: 6c65 2073 6572 7669 6365 2072 7379 736c  le service rsysl
│ │ │ -000586a0: 6f67 0a20 2062 6c6f 636b 3a0a 0a20 202d  og.  block:..  -
│ │ │ -000586b0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -000586c0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -000586d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -000586e0: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -000586f0: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -00058700: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -00058710: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ -00058720: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -00058730: 6520 5365 7276 6963 6520 7273 7973 6c6f  e Service rsyslo
│ │ │ -00058740: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ -00058750: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00058760: 2020 2020 206e 616d 653a 2072 7379 736c       name: rsysl
│ │ │ -00058770: 6f67 0a20 2020 2020 2065 6e61 626c 6564  og.      enabled
│ │ │ -00058780: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -00058790: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -000587a0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -000587b0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -000587c0: 2722 7273 7973 6c6f 6722 2069 6e20 616e  '"rsyslog" in an
│ │ │ -000587d0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -000587e0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -000587f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00058800: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -00058810: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00058820: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00058830: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00058840: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00058850: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00058860: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00058870: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00058880: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -00058890: 736c 6f67 5f65 6e61 626c 6564 0a20 202d  slog_enabled.  -
│ │ │ -000588a0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -000588b0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -000588c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000588d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000588e0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00058060: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00058070: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00058080: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -000584f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00058500: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00058540: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00058550: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00058100: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00058110: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00058130: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00058150: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00058160: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000581a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000581b0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000581c0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000581d0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000581e0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000581f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00058200: 3030 2d35 332d 4155 2d34 2831 290a 2020 00-53-AU-4(1). │ │ │ +00058210: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00058220: 2d36 2861 290a 2020 2d20 656e 6162 6c65 -6(a). - enable │ │ │ +00058230: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00058240: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00058250: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00058260: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00058270: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00058280: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +00058290: 7669 6365 5f72 7379 736c 6f67 5f65 6e61 vice_rsyslog_ena │ │ │ +000582a0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e bled..- name: En │ │ │ +000582b0: 6162 6c65 2072 7379 736c 6f67 2053 6572 able rsyslog Ser │ │ │ +000582c0: 7669 6365 202d 2045 6e61 626c 6520 7365 vice - Enable se │ │ │ +000582d0: 7276 6963 6520 7273 7973 6c6f 670a 2020 rvice rsyslog. │ │ │ +000582e0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +000582f0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00058300: 6b61 6765 2066 6163 7473 0a20 2020 2061 kage facts. a │ │ │ +00058310: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ +00058320: 6163 6b61 6765 5f66 6163 7473 3a0a 2020 ackage_facts:. │ │ │ +00058330: 2020 2020 6d61 6e61 6765 723a 2061 7574 manager: aut │ │ │ +00058340: 6f0a 0a20 202d 206e 616d 653a 2045 6e61 o.. - name: Ena │ │ │ +00058350: 626c 6520 7273 7973 6c6f 6720 5365 7276 ble rsyslog Serv │ │ │ +00058360: 6963 6520 2d20 456e 6162 6c65 2053 6572 ice - Enable Ser │ │ │ +00058370: 7669 6365 2072 7379 736c 6f67 0a20 2020 vice rsyslog. │ │ │ +00058380: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +00058390: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +000583a0: 6e61 6d65 3a20 7273 7973 6c6f 670a 2020 name: rsyslog. │ │ │ +000583b0: 2020 2020 656e 6162 6c65 643a 2074 7275 enabled: tru │ │ │ +000583c0: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ +000583d0: 7461 7274 6564 0a20 2020 2020 206d 6173 tarted. mas │ │ │ +000583e0: 6b65 643a 2066 616c 7365 0a20 2020 2077 ked: false. w │ │ │ +000583f0: 6865 6e3a 0a20 2020 202d 2027 2272 7379 hen:. - '"rsy │ │ │ +00058400: 736c 6f67 2220 696e 2061 6e73 6962 6c65 slog" in ansible │ │ │ +00058410: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00058420: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ +00058430: 542d 3830 302d 3533 2d41 552d 3428 3129 T-800-53-AU-4(1) │ │ │ +00058440: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00058450: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ +00058460: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00058470: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00058480: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00058490: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000584a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000584b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000584c0: 7365 7276 6963 655f 7273 7973 6c6f 675f service_rsyslog_ │ │ │ +000584d0: 656e 6162 6c65 640a 2020 2d20 7370 6563 enabled. - spec │ │ │ +000584e0: 6961 6c5f 7365 7276 6963 655f 626c 6f63 ial_service_bloc │ │ │ +000584f0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75 k. when: '"linu │ │ │ +00058500: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +00058510: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +00058520: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e s'. │ │ │ +00058530: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ +000585e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +000585f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ +000586c0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000586d0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00058720: 6e63 6c75 6465 2065 6e61 626c 655f 7273  nclude enable_rs
│ │ │ +00058730: 7973 6c6f 670a 0a63 6c61 7373 2065 6e61  yslog..class ena
│ │ │ +00058740: 626c 655f 7273 7973 6c6f 6720 7b0a 2020  ble_rsyslog {.  
│ │ │ +00058750: 7365 7276 6963 6520 7b27 7273 7973 6c6f  service {'rsyslo
│ │ │ +00058760: 6727 3a0a 2020 2020 656e 6162 6c65 203d  g':.    enable =
│ │ │ +00058770: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +00058780: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +00058790: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +000587b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00058850: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00058860: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00058870: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ +000588c0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +000588d0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ +000588e0: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │  000588f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediati
│ │ │ -0007ae10: 6f6e 204f 5342 7569 6c64 2042 6c75 6570  on OSBuild Bluep
│ │ │ -0007ae20: 7269 6e74 2073 6e69 7070 6574 20e2 87b2  rint snippet ...
│ │ │ -0007ae30: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
.[[packages]]
│ │ │ -0007ae80: 0a6e 616d 6520 3d20 2263 726f 6e22 0a76  .name = "cron".v
│ │ │ -0007ae90: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0007aeb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0007af50: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0007af60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007af70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ +000586a0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000586b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000586f0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00058700: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ -0007aff0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007b020: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007b040: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007b050: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007b070: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0007b090: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0007b0a0: 6465 2069 6e73 7461 6c6c 5f63 726f 6e0a  de install_cron.
│ │ │ -0007b0b0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f63  .class install_c
│ │ │ -0007b0c0: 726f 6e20 7b0a 2020 7061 636b 6167 6520  ron {.  package 
│ │ │ -0007b0d0: 7b20 2763 726f 6e27 3a0a 2020 2020 656e  { 'cron':.    en
│ │ │ -0007b0e0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0007b0f0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -0007b1b0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0007b1c0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -0007b260: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007b270: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007b2c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0007b300: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0007b310: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0007b320: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0007b330: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0007b340: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0007b350: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0007b360: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -0007b370: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -0007b380: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c  -2.2.6.  - enabl
│ │ │ -0007b390: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0007b3a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0007b3b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0007b3c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0007b3d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0007b3e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0007b3f0: 636b 6167 655f 6372 6f6e 5f69 6e73 7461  ckage_cron_insta
│ │ │ -0007b400: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -0007b410: 7375 7265 2063 726f 6e20 6973 2069 6e73  sure cron is ins
│ │ │ -0007b420: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -0007b430: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0007b440: 3a0a 2020 2020 6e61 6d65 3a20 6372 6f6e  :.    name: cron
│ │ │ -0007b450: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ -0007b460: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ -0007b470: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0007b480: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0007b490: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0007b4a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0007b4b0: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ -0007b4c0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -0007b4d0: 5353 7634 2d32 2e32 2e36 0a20 202d 2065  SSv4-2.2.6.  - e
│ │ │ -0007b4e0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0007b4f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0007b500: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0007b510: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0007b520: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0007b530: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0007b540: 2d20 7061 636b 6167 655f 6372 6f6e 5f69  - package_cron_i
│ │ │ -0007b550: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +0007ae10: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +0007ae20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0007aea0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0007af30: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ -0007b250: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007b280: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007b290: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007b2d0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0007b2e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +0007aeb0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007aec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0007af00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007af10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0007af50: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0007af60: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0007af70: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0007af80: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0007af90: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0007afa0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0007afb0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +0007afc0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +0007afd0: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +0007afe0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0007aff0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0007b000: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0007b010: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0007b020: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0007b030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007b040: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ +0007b050: 726f 6e5f 696e 7374 616c 6c65 640a 0a2d  ron_installed..-
│ │ │ +0007b060: 206e 616d 653a 2045 6e73 7572 6520 6372   name: Ensure cr
│ │ │ +0007b070: 6f6e 2069 7320 696e 7374 616c 6c65 640a  on is installed.
│ │ │ +0007b080: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0007b090: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0007b0a0: 616d 653a 2063 726f 6e0a 2020 2020 7374  ame: cron.    st
│ │ │ +0007b0b0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +0007b0c0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0007b0d0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0007b0e0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +0007b0f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0007b100: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0007b110: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0007b120: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0007b130: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ +0007b140: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0007b150: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007b160: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007b170: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0007b180: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0007b190: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0007b1a0: 6765 5f63 726f 6e5f 696e 7374 616c 6c65  ge_cron_installe
│ │ │ +0007b1b0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007b1c0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0007b270: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0007b280: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007b350: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007b360: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0007b3b0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +0007b3c0: 6372 6f6e 0a0a 636c 6173 7320 696e 7374  cron..class inst
│ │ │ +0007b3d0: 616c 6c5f 6372 6f6e 207b 0a20 2070 6163  all_cron {.  pac
│ │ │ +0007b3e0: 6b61 6765 207b 2027 6372 6f6e 273a 0a20  kage { 'cron':. 
│ │ │ +0007b3f0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0007b400: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +0007b410: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +0007b420: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +0007b4d0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0007b4e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0007b4f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0007b530: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +0007b540: 6520 3d20 2263 726f 6e22 0a76 6572 7369  e = "cron".versi
│ │ │ +0007b550: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  0007b560: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Re │ │ │ -0007ca90: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0007caa0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0007cab0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +0007b330: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007b340: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007b380: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0007b390: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -0007cb50: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0007cba0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0007cbe0: 636c 7564 6520 7265 6d6f 7665 5f69 6e65  clude remove_ine
│ │ │ -0007cbf0: 7475 7469 6c73 2d74 656c 6e65 7464 0a0a  tutils-telnetd..
│ │ │ -0007cc00: 636c 6173 7320 7265 6d6f 7665 5f69 6e65  class remove_ine
│ │ │ -0007cc10: 7475 7469 6c73 2d74 656c 6e65 7464 207b  tutils-telnetd {
│ │ │ -0007cc20: 0a20 2070 6163 6b61 6765 207b 2027 696e  .  package { 'in
│ │ │ -0007cc30: 6574 7574 696c 732d 7465 6c6e 6574 6427  etutils-telnetd'
│ │ │ -0007cc40: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0007cc50: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0007cc60: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0007cc70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0007cd20: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0007cd30: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Co │ │ │ -0007cb30: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0007cb60: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0007cb80: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0007cb90: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0007cbb0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0007cbc0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0007cdb0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0007cdd0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0007ce20: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0007ce50: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0007cdc0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0007cde0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0007ce30: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0007ce40: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0007ce70: 7374 616c 6c20 7468 6520 696e 6574 2d62  stall the inet-b
│ │ │ -0007ce80: 6173 6564 2074 656c 6e65 7420 7365 7276  ased telnet serv
│ │ │ -0007ce90: 6572 3a20 456e 7375 7265 2069 6e65 7475  er: Ensure inetu
│ │ │ -0007cea0: 7469 6c73 2d74 656c 6e65 7464 2069 7320  tils-telnetd is 
│ │ │ -0007ceb0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -0007cec0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0007ced0: 6765 3a0a 2020 2020 6e61 6d65 3a20 696e  ge:.    name: in
│ │ │ -0007cee0: 6574 7574 696c 732d 7465 6c6e 6574 640a  etutils-telnetd.
│ │ │ -0007cef0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007cf00: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -0007cf10: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0007cf20: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0007cf30: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0007cf40: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0007cf50: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0007cf60: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -0007cf70: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -0007cf80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007cf90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007cfa0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007cfb0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007cfc0: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -0007cfd0: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
< │ │ │ +0007cb40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007cb50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007cba0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0007cbe0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0007cbf0: 2074 6865 2069 6e65 742d 6261 7365 6420   the inet-based 
│ │ │ +0007cc00: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ +0007cc10: 6e73 7572 6520 696e 6574 7574 696c 732d  nsure inetutils-
│ │ │ +0007cc20: 7465 6c6e 6574 6420 6973 2072 656d 6f76  telnetd is remov
│ │ │ +0007cc30: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0007cc40: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0007cc50: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ +0007cc60: 6c73 2d74 656c 6e65 7464 0a20 2020 2073  ls-telnetd.    s
│ │ │ +0007cc70: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0007cc80: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0007cc90: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0007cca0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0007ccb0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0007ccc0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0007ccd0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0007cce0: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ +0007ccf0: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ +0007cd00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0007cd10: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0007cd20: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0007cd30: 202d 2070 6163 6b61 6765 5f69 6e65 7475   - package_inetu
│ │ │ +0007cd40: 7469 6c73 2d74 656c 6e65 7464 5f72 656d  tils-telnetd_rem
│ │ │ +0007cd50: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation
│ │ │ +0007ce10: 2050 7570 7065 7420 736e 6970 7065 7420   Puppet snippet 
│ │ │ +0007ce20: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0007cef0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +0007cb30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007cb60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007cb70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007cbb0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007cbc0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0007ceb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0007ced0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0007cf20: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0007cf30: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +0007cf60: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ +0007cf70: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ +0007cf80: 6f76 655f 696e 6574 7574 696c 732d 7465  ove_inetutils-te
│ │ │ +0007cf90: 6c6e 6574 6420 7b0a 2020 7061 636b 6167  lnetd {.  packag
│ │ │ +0007cfa0: 6520 7b20 2769 6e65 7475 7469 6c73 2d74  e { 'inetutils-t
│ │ │ +0007cfb0: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ +0007cfc0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0007cfd0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
R │ │ │ -0007daf0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0007db00: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0007dba0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007dbb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007dc00: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0007dc40: 6e63 6c75 6465 2072 656d 6f76 655f 6e69  nclude remove_ni
│ │ │ -0007dc50: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -0007dc60: 6e69 7320 7b0a 2020 7061 636b 6167 6520  nis {.  package 
│ │ │ -0007dc70: 7b20 276e 6973 273a 0a20 2020 2065 6e73  { 'nis':.    ens
│ │ │ -0007dc80: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0007dc90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0007dd50: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0007dd60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -0007db90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007dbc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007dbd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007dc10: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007dc20: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0007de10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0007de30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0007de60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0007ddf0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0007de00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0007de20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0007de40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0007de50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0007de90: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0007dea0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -0007deb0: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ -0007dec0: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ -0007ded0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -0007dee0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -0007def0: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ -0007df00: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -0007df10: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -0007df20: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0007df30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0007df40: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0007df50: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -0007df60: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -0007df70: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -0007df80: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +0007daf0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0007db00: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +0007dba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0007dc40: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0007dc50: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ +0007dc60: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ +0007dc70: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0007dc80: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0007dc90: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +0007dca0: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ +0007dcb0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +0007dcc0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0007dcd0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0007dce0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0007dcf0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +0007dd00: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0007dd10: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0007dd20: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ +0007dd30: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0007ddf0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0007de00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0007dec0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007ded0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0007db90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007dbc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007dbd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007dc10: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007dc20: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +0007de90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0007deb0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0007dee0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0007df00: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0007df30: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0007df40: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ +0007df50: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ +0007df60: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ +0007df70: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0007df80: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0007df90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -0007e920: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0007e930: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0007ea00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007ea10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0007ea60: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0007ea70: 6e74 7064 6174 650a 0a63 6c61 7373 2072  ntpdate..class r
│ │ │ -0007ea80: 656d 6f76 655f 6e74 7064 6174 6520 7b0a  emove_ntpdate {.
│ │ │ -0007ea90: 2020 7061 636b 6167 6520 7b20 276e 7470    package { 'ntp
│ │ │ -0007eaa0: 6461 7465 273a 0a20 2020 2065 6e73 7572  date':.    ensur
│ │ │ -0007eab0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0007eac0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0007ead0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0007eb80: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -0007eb90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0007eba0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007ebb0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007ebc0: 7365 2220 6964 3d22 6964 3132 3822 3e3c se" id="id128">< │ │ │ -0007ebd0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007ebe0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007ebf0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007ec00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007ec10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0007eca0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0007ecb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -0007e9e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007e9f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007ea30: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0007ea40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0007ec20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007ec30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0007ec70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007ec80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0007ecd0: 2755 6e69 6e73 7461 6c6c 2074 6865 206e 'Uninstall the n │ │ │ -0007ece0: 7470 6461 7465 2070 6163 6b61 6765 3a20 tpdate package: │ │ │ -0007ecf0: 456e 7375 7265 206e 7470 6461 7465 2069 Ensure ntpdate i │ │ │ -0007ed00: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ -0007ed10: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -0007ed20: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -0007ed30: 6e74 7064 6174 650a 2020 2020 7374 6174 ntpdate. stat │ │ │ -0007ed40: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -0007ed50: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -0007ed60: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0007ed70: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0007ed80: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0007ed90: 206c 6f77 5f73 6576 6572 6974 790a 2020 low_severity. │ │ │ -0007eda0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -0007edb0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e ed. - package_n │ │ │ -0007edc0: 7470 6461 7465 5f72 656d 6f76 6564 0a3c tpdate_removed.< │ │ │ +0007e910: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0007e920: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0007e930: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007ea00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007ea10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +0007ea70: 616c 6c20 7468 6520 6e74 7064 6174 6520  all the ntpdate 
│ │ │ +0007ea80: 7061 636b 6167 653a 2045 6e73 7572 6520  package: Ensure 
│ │ │ +0007ea90: 6e74 7064 6174 6520 6973 2072 656d 6f76  ntpdate is remov
│ │ │ +0007eaa0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0007eab0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0007eac0: 2020 206e 616d 653a 206e 7470 6461 7465     name: ntpdate
│ │ │ +0007ead0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0007eae0: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +0007eaf0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0007eb00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0007eb10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0007eb20: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0007eb30: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0007eb40: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0007eb50: 7061 636b 6167 655f 6e74 7064 6174 655f  package_ntpdate_
│ │ │ +0007eb60: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +0007eb70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0007ec20: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +0007ec30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +0007ecb0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0007ed40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0007ed50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +0007e9e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007e9f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007ea30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0007ea40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexi │ │ │ +0007ecc0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0007ecd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0007ed10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0007ed20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +0007ed70: 7265 6d6f 7665 5f6e 7470 6461 7465 0a0a  remove_ntpdate..
│ │ │ +0007ed80: 636c 6173 7320 7265 6d6f 7665 5f6e 7470  class remove_ntp
│ │ │ +0007ed90: 6461 7465 207b 0a20 2070 6163 6b61 6765  date {.  package
│ │ │ +0007eda0: 207b 2027 6e74 7064 6174 6527 3a0a 2020   { 'ntpdate':.  
│ │ │ +0007edb0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0007edc0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0007edd0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -0007fea0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0007feb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0007ff30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0007ff40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0007ff50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0007ff90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0007ffa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0007ffc0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0007ffd0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0007fff0: 7265 6d6f 7665 5f74 656c 6e65 7464 2d73  remove_telnetd-s
│ │ │ -00080000: 736c 0a0a 636c 6173 7320 7265 6d6f 7665  sl..class remove
│ │ │ -00080010: 5f74 656c 6e65 7464 2d73 736c 207b 0a20  _telnetd-ssl {. 
│ │ │ -00080020: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -00080030: 6574 642d 7373 6c27 3a0a 2020 2020 656e  etd-ssl':.    en
│ │ │ -00080040: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -00080050: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00080110: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00080120: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -000801b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000801c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000801e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00080200: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00080210: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00080250: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00080260: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -00080270: 6520 7373 6c20 636f 6d70 6c69 616e 7420  e ssl compliant 
│ │ │ -00080280: 7465 6c6e 6574 2073 6572 7665 723a 2045  telnet server: E
│ │ │ -00080290: 6e73 7572 6520 7465 6c6e 6574 642d 7373  nsure telnetd-ss
│ │ │ -000802a0: 6c20 6973 2072 656d 6f76 6564 270a 2020  l is removed'.  
│ │ │ -000802b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000802c0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000802d0: 653a 2074 656c 6e65 7464 2d73 736c 0a20  e: telnetd-ssl. 
│ │ │ -000802e0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -000802f0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00080300: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00080310: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00080320: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00080330: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00080340: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00080350: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ -00080360: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ -00080370: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00080380: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00080390: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000803a0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -000803b0: 656c 6e65 7464 2d73 736c 5f72 656d 6f76  elnetd-ssl_remov
│ │ │ -000803c0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0007fea0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0007feb0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007fec0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007fed0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007fee0: 7365 2220 6964 3d22 6964 3133 3122 3e3c se" id="id131">< │ │ │ +0007fef0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007ff00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007ff10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007ff20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007ff30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0007ff40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007ff50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0007ff90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007ffa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0007ffc0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0007ffd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0007fff0: 2755 6e69 6e73 7461 6c6c 2074 6865 2073 'Uninstall the s │ │ │ +00080000: 736c 2063 6f6d 706c 6961 6e74 2074 656c sl compliant tel │ │ │ +00080010: 6e65 7420 7365 7276 6572 3a20 456e 7375 net server: Ensu │ │ │ +00080020: 7265 2074 656c 6e65 7464 2d73 736c 2069 re telnetd-ssl i │ │ │ +00080030: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ +00080040: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00080050: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +00080060: 7465 6c6e 6574 642d 7373 6c0a 2020 2020 telnetd-ssl. │ │ │ +00080070: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ +00080080: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00080090: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +000800a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +000800b0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +000800c0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +000800d0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +000800e0: 6779 0a20 202d 2068 6967 685f 7365 7665 gy. - high_seve │ │ │ +000800f0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d rity. - low_com │ │ │ +00080100: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00080110: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +00080120: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00080130: 2020 2d20 7061 636b 6167 655f 7465 6c6e - package_teln │ │ │ +00080140: 6574 642d 7373 6c5f 7265 6d6f 7665 640a etd-ssl_removed. │ │ │ +00080150: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ +00080200: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00080210: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000802b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00080350: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +00080360: 656c 6e65 7464 2d73 736c 0a0a 636c 6173  elnetd-ssl..clas
│ │ │ +00080370: 7320 7265 6d6f 7665 5f74 656c 6e65 7464  s remove_telnetd
│ │ │ +00080380: 2d73 736c 207b 0a20 2070 6163 6b61 6765  -ssl {.  package
│ │ │ +00080390: 207b 2027 7465 6c6e 6574 642d 7373 6c27   { 'telnetd-ssl'
│ │ │ +000803a0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +000803b0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +000803c0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 000803d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 │ │ │ -00081490: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000814a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000802a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000802d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000802e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00080320: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00080330: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00081540: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -000815e0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -000815f0: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ -00081600: 6d6f 7665 5f74 656c 6e65 7464 207b 0a20  move_telnetd {. 
│ │ │ -00081610: 2070 6163 6b61 6765 207b 2027 7465 6c6e   package { 'teln
│ │ │ -00081620: 6574 6427 3a0a 2020 2020 656e 7375 7265  etd':.    ensure
│ │ │ -00081630: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00081640: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -00081700: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -00081710: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -00081790: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -00081820: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00081830: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -00081530: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00081560: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00081570: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000815b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -000815c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -000817a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000817b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -000817f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00081800: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -00081850: 556e 696e 7374 616c 6c20 7468 6520 7465  Uninstall the te
│ │ │ -00081860: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ -00081870: 7572 6520 7465 6c6e 6574 6420 6973 2072  ure telnetd is r
│ │ │ -00081880: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00081890: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000818a0: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ -000818b0: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ -000818c0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -000818d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -000818e0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -000818f0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00081900: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00081910: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00081920: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00081930: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00081940: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00081950: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00081960: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00081970: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00081980: 6b61 6765 5f74 656c 6e65 7464 5f72 656d  kage_telnetd_rem
│ │ │ -00081990: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
< │ │ │ +00081580: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00081590: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +000815e0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +000815f0: 6c6c 2074 6865 2074 656c 6e65 7420 7365  ll the telnet se
│ │ │ +00081600: 7276 6572 3a20 456e 7375 7265 2074 656c  rver: Ensure tel
│ │ │ +00081610: 6e65 7464 2069 7320 7265 6d6f 7665 6427  netd is removed'
│ │ │ +00081620: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00081630: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00081640: 6e61 6d65 3a20 7465 6c6e 6574 640a 2020  name: telnetd.  
│ │ │ +00081650: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00081660: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00081670: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00081680: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00081690: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +000816a0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +000816b0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +000816c0: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ +000816d0: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ +000816e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000816f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00081700: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00081710: 640a 2020 2d20 7061 636b 6167 655f 7465  d.  - package_te
│ │ │ +00081720: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Re │ │ │ +000817e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000817f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00081800: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ +00081560: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00081570: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000815b0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +000815c0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +000818a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000818f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00081930: 636c 7564 6520 7265 6d6f 7665 5f74 656c  clude remove_tel
│ │ │ +00081940: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ +00081950: 7665 5f74 656c 6e65 7464 207b 0a20 2070  ve_telnetd {.  p
│ │ │ +00081960: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ +00081970: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +00081980: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00081990: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Rem
│ │ │ -000838c0: 6564 6961 7469 6f6e 204f 5342 7569 6c64  ediation OSBuild
│ │ │ -000838d0: 2042 6c75 6570 7269 6e74 2073 6e69 7070   Blueprint snipp
│ │ │ -000838e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...

.[[pack │ │ │ -00083930: 6167 6573 5d5d 0a6e 616d 6520 3d20 226e ages]].name = "n │ │ │ -00083940: 7470 220a 7665 7273 696f 6e20 3d20 222a tp".version = "* │ │ │ -00083950: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".

< │ │ │ -00083960: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -00083a10: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00083a20: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Co │ │ │ +00081880: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000818b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000818d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000818e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00081900: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00081910: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00083af0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00083b00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00083b50: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00083b60: 6e74 700a 0a63 6c61 7373 2069 6e73 7461  ntp..class insta
│ │ │ -00083b70: 6c6c 5f6e 7470 207b 0a20 2070 6163 6b61  ll_ntp {.  packa
│ │ │ -00083b80: 6765 207b 2027 6e74 7027 3a0a 2020 2020  ge { 'ntp':.    
│ │ │ -00083b90: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -00083ba0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -00083bb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00083c60: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00083c70: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00083c80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ -00083ad0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00083ae0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00083b20: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00083b30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00083d50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00083d60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00083db0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00083dc0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00083dd0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00083de0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00083df0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00083e00: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00083e10: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00083e20: 6571 2d31 302e 340a 2020 2d20 656e 6162  eq-10.4.  - enab
│ │ │ -00083e30: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00083e40: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -00083e50: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00083e60: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00083e70: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00083e80: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00083e90: 6b61 6765 5f6e 7470 5f69 6e73 7461 6c6c  kage_ntp_install
│ │ │ -00083ea0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -00083eb0: 7265 206e 7470 2069 7320 696e 7374 616c  re ntp is instal
│ │ │ -00083ec0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -00083ed0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00083ee0: 2020 206e 616d 653a 206e 7470 0a20 2020     name: ntp.   
│ │ │ -00083ef0: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00083f00: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00083f10: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00083f20: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00083f30: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00083f40: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00083f50: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -00083f60: 2d31 302e 340a 2020 2d20 656e 6162 6c65  -10.4.  - enable
│ │ │ -00083f70: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00083f80: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00083f90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00083fa0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00083fb0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00083fc0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00083fd0: 6765 5f6e 7470 5f69 6e73 7461 6c6c 6564  ge_ntp_installed
│ │ │ +000838c0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000838d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000838e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Complexity:low
Disrup │ │ │ -00083d30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00083d40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00083d80: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00083d90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ +00083980: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000839d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00083960: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00083990: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000839b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000839c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000839e0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000839f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00083a10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00083a20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00083a30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00083a40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00083a50: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00083a60: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00083a70: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +00083a80: 3130 2e34 0a20 202d 2065 6e61 626c 655f  10.4.  - enable_
│ │ │ +00083a90: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +00083aa0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +00083ab0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00083ac0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00083ad0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00083ae0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00083af0: 655f 6e74 705f 696e 7374 616c 6c65 640a  e_ntp_installed.
│ │ │ +00083b00: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00083b10: 6e74 7020 6973 2069 6e73 7461 6c6c 6564  ntp is installed
│ │ │ +00083b20: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00083b30: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00083b40: 6e61 6d65 3a20 6e74 700a 2020 2020 7374  name: ntp.    st
│ │ │ +00083b50: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00083b60: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00083b70: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00083b80: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00083b90: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00083ba0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00083bb0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ +00083bc0: 2e34 0a20 202d 2065 6e61 626c 655f 7374  .4.  - enable_st
│ │ │ +00083bd0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +00083be0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +00083bf0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00083c00: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00083c10: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00083c20: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00083c30: 6e74 705f 696e 7374 616c 6c65 640a 3c2f  ntp_installed.
Re │ │ │ +00083cf0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00083d00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00083d10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00083db0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00083e00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00083d90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00083dc0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00083de0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00083df0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00083e10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00083e20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00083e40: 7564 6520 696e 7374 616c 6c5f 6e74 700a  ude install_ntp.
│ │ │ +00083e50: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f6e  .class install_n
│ │ │ +00083e60: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +00083e70: 2027 6e74 7027 3a0a 2020 2020 656e 7375   'ntp':.    ensu
│ │ │ +00083e80: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +00083e90: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +00083eb0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00083ec0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00083ed0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00083ee0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00083ef0: 6431 3431 2220 7461 6269 6e64 6578 3d22 d141" tabindex=" │ │ │ +00083f00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00083f10: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00083f20: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00083f30: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00083f40: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00083f50: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00083f60: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00083f70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +00083fc0: 6765 735d 5d0a 6e61 6d65 203d 2022 6e74 ges]].name = "nt │ │ │ +00083fd0: 7022 0a76 6572 7369 6f6e 203d 2022 2a22 p".version = "*" │ │ │ 00083fe0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .
Remed │ │ │ -00085180: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00085190: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -000851a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -000851f0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00085200: 5d0a 656e 6162 6c65 6420 3d20 5b22 6e74  ].enabled = ["nt
│ │ │ -00085210: 7022 5d0a 3c2f 636f 6465 3e3c 2f70 7265  p"].
Remediation │ │ │ -000852d0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000852e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00085360: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00085380: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000853d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00085400: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00085420: 5f6e 7470 0a0a 636c 6173 7320 656e 6162  _ntp..class enab
│ │ │ -00085430: 6c65 5f6e 7470 207b 0a20 2073 6572 7669  le_ntp {.  servi
│ │ │ -00085440: 6365 207b 276e 7470 273a 0a20 2020 2065  ce {'ntp':.    e
│ │ │ -00085450: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ -00085460: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00085470: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ -00085480: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00085540: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00085550: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00085620: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00085670: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00085370: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00085390: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000853e0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000853f0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000855e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00085600: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00085650: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00085660: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -00085690: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -000856a0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -000856b0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -000856c0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -000856d0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -000856e0: 552d 3828 3129 2861 290a 2020 2d20 4e49  U-8(1)(a).  - NI
│ │ │ -000856f0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00085700: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00085710: 712d 3130 2e34 0a20 202d 2050 4349 2d44  q-10.4.  - PCI-D
│ │ │ -00085720: 5353 7634 2d31 302e 360a 2020 2d20 5043  SSv4-10.6.  - PC
│ │ │ -00085730: 492d 4453 5376 342d 3130 2e36 2e31 0a20  I-DSSv4-10.6.1. 
│ │ │ -00085740: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00085750: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -00085760: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -00085770: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00085780: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00085790: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000857a0: 2020 2d20 7365 7276 6963 655f 6e74 705f    - service_ntp_
│ │ │ -000857b0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000857c0: 2045 6e61 626c 6520 7468 6520 4e54 5020   Enable the NTP 
│ │ │ -000857d0: 4461 656d 6f6e 202d 2045 6e61 626c 6520  Daemon - Enable 
│ │ │ -000857e0: 7365 7276 6963 6520 6e74 700a 2020 626c  service ntp.  bl
│ │ │ -000857f0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00085800: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00085810: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00085820: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00085830: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00085840: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00085850: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00085860: 6520 7468 6520 4e54 5020 4461 656d 6f6e  e the NTP Daemon
│ │ │ -00085870: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -00085880: 6520 6e74 700a 2020 2020 616e 7369 626c  e ntp.    ansibl
│ │ │ -00085890: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -000858a0: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -000858b0: 7470 0a20 2020 2020 2065 6e61 626c 6564  tp.      enabled
│ │ │ -000858c0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -000858d0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -000858e0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -000858f0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -00085900: 2722 6e74 7022 2069 6e20 616e 7369 626c  '"ntp" in ansibl
│ │ │ -00085910: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00085920: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -00085930: 5354 2d38 3030 2d35 332d 4155 2d38 2831  ST-800-53-AU-8(1
│ │ │ -00085940: 2928 6129 0a20 202d 204e 4953 542d 3830  )(a).  - NIST-80
│ │ │ -00085950: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -00085960: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00085970: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00085980: 3130 2e36 0a20 202d 2050 4349 2d44 5353  10.6.  - PCI-DSS
│ │ │ -00085990: 7634 2d31 302e 362e 310a 2020 2d20 656e  v4-10.6.1.  - en
│ │ │ -000859a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000859b0: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -000859c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000859d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000859e0: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -000859f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00085a00: 6572 7669 6365 5f6e 7470 5f65 6e61 626c  ervice_ntp_enabl
│ │ │ -00085a10: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00085a20: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00085a30: 6865 6e3a 0a20 202d 2027 226c 696e 7578  hen:.  - '"linux
│ │ │ -00085a40: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00085a50: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00085a60: 270a 2020 2d20 2722 6e74 7022 2069 6e20  '.  - '"ntp" in 
│ │ │ -00085a70: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00085a80: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00085180: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00085190: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Comp │ │ │ +00085220: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00085230: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00085250: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00085270: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00085280: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000852c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +000852d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000852e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000852f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00085300: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00085310: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00085320: 3030 2d35 332d 4155 2d38 2831 2928 6129 00-53-AU-8(1)(a) │ │ │ +00085330: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00085340: 2d43 4d2d 3628 6129 0a20 202d 2050 4349 -CM-6(a). - PCI │ │ │ +00085350: 2d44 5353 2d52 6571 2d31 302e 340a 2020 -DSS-Req-10.4. │ │ │ +00085360: 2d20 5043 492d 4453 5376 342d 3130 2e36 - PCI-DSSv4-10.6 │ │ │ +00085370: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ +00085380: 302e 362e 310a 2020 2d20 656e 6162 6c65 0.6.1. - enable │ │ │ +00085390: 5f73 7472 6174 6567 790a 2020 2d20 6869 _strategy. - hi │ │ │ +000853a0: 6768 5f73 6576 6572 6974 790a 2020 2d20 gh_severity. - │ │ │ +000853b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +000853c0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +000853d0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f n. - no_reboot_ │ │ │ +000853e0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +000853f0: 6365 5f6e 7470 5f65 6e61 626c 6564 0a0a ce_ntp_enabled.. │ │ │ +00085400: 2d20 6e61 6d65 3a20 456e 6162 6c65 2074 - name: Enable t │ │ │ +00085410: 6865 204e 5450 2044 6165 6d6f 6e20 2d20 he NTP Daemon - │ │ │ +00085420: 456e 6162 6c65 2073 6572 7669 6365 206e Enable service n │ │ │ +00085430: 7470 0a20 2062 6c6f 636b 3a0a 0a20 202d tp. block:.. - │ │ │ +00085440: 206e 616d 653a 2047 6174 6865 7220 7468 name: Gather th │ │ │ +00085450: 6520 7061 636b 6167 6520 6661 6374 730a e package facts. │ │ │ +00085460: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +00085470: 7469 6e2e 7061 636b 6167 655f 6661 6374 tin.package_fact │ │ │ +00085480: 733a 0a20 2020 2020 206d 616e 6167 6572 s:. manager │ │ │ +00085490: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65 : auto.. - name │ │ │ +000854a0: 3a20 456e 6162 6c65 2074 6865 204e 5450 : Enable the NTP │ │ │ +000854b0: 2044 6165 6d6f 6e20 2d20 456e 6162 6c65 Daemon - Enable │ │ │ +000854c0: 2053 6572 7669 6365 206e 7470 0a20 2020 Service ntp. │ │ │ +000854d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +000854e0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +000854f0: 6e61 6d65 3a20 6e74 700a 2020 2020 2020 name: ntp. │ │ │ +00085500: 656e 6162 6c65 643a 2074 7275 650a 2020 enabled: true. │ │ │ +00085510: 2020 2020 7374 6174 653a 2073 7461 7274 state: start │ │ │ +00085520: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ +00085530: 2066 616c 7365 0a20 2020 2077 6865 6e3a false. when: │ │ │ +00085540: 0a20 2020 202d 2027 226e 7470 2220 696e . - '"ntp" in │ │ │ +00085550: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00085560: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ +00085570: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +00085580: 2d41 552d 3828 3129 2861 290a 2020 2d20 -AU-8(1)(a). - │ │ │ +00085590: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +000855a0: 2861 290a 2020 2d20 5043 492d 4453 532d (a). - PCI-DSS- │ │ │ +000855b0: 5265 712d 3130 2e34 0a20 202d 2050 4349 Req-10.4. - PCI │ │ │ +000855c0: 2d44 5353 7634 2d31 302e 360a 2020 2d20 -DSSv4-10.6. - │ │ │ +000855d0: 5043 492d 4453 5376 342d 3130 2e36 2e31 PCI-DSSv4-10.6.1 │ │ │ +000855e0: 0a20 202d 2065 6e61 626c 655f 7374 7261 . - enable_stra │ │ │ +000855f0: 7465 6779 0a20 202d 2068 6967 685f 7365 tegy. - high_se │ │ │ +00085600: 7665 7269 7479 0a20 202d 206c 6f77 5f63 verity. - low_c │ │ │ +00085610: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +00085620: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +00085630: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +00085640: 640a 2020 2d20 7365 7276 6963 655f 6e74 d. - service_nt │ │ │ +00085650: 705f 656e 6162 6c65 640a 2020 2d20 7370 p_enabled. - sp │ │ │ +00085660: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ +00085670: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20 ock. when:. - │ │ │ +00085680: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00085690: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +000856a0: 6163 6b61 6765 7327 0a20 202d 2027 226e ackages'. - '"n │ │ │ +000856b0: 7470 2220 696e 2061 6e73 6962 6c65 5f66 tp" in ansible_f │ │ │ +000856c0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c acts.packages'.< │ │ │ +000856d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
R │ │ │ +00085780: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00085790: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00085830: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00085840: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00085890: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000858d0: 6c75 6465 2065 6e61 626c 655f 6e74 700a  lude enable_ntp.
│ │ │ +000858e0: 0a63 6c61 7373 2065 6e61 626c 655f 6e74  .class enable_nt
│ │ │ +000858f0: 7020 7b0a 2020 7365 7276 6963 6520 7b27  p {.  service {'
│ │ │ +00085900: 6e74 7027 3a0a 2020 2020 656e 6162 6c65  ntp':.    enable
│ │ │ +00085910: 203d 2667 743b 2074 7275 652c 0a20 2020   => true,.   
│ │ │ +00085920: 2065 6e73 7572 6520 3d26 6774 3b20 2772   ensure => 'r
│ │ │ +00085930: 756e 6e69 6e67 272c 0a20 207d 0a7d 0a3c  unning',.  }.}.<
│ │ │ +00085940: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +000859f0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00085a00: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00085a10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00085a20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00085a50: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00085a60: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00085a70: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ +00085a80: 5b22 6e74 7022 5d0a 3c2f 636f 6465 3e3c  ["ntp"].<
│ │ │  00085a90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00094120: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00094130: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00094140: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00094180: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -00094190: 5d5d 0a6e 616d 6520 3d20 2261 7564 6974  ]].name = "audit
│ │ │ -000941a0: 6422 0a76 6572 7369 6f6e 203d 2022 2a22  d".version = "*"
│ │ │ -000941b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -00094270: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00094280: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +00085820: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00085850: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00085860: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000858a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000858b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00094350: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00094360: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000943b0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f61  nclude install_a
│ │ │ -000943c0: 7564 6974 640a 0a63 6c61 7373 2069 6e73  uditd..class ins
│ │ │ -000943d0: 7461 6c6c 5f61 7564 6974 6420 7b0a 2020  tall_auditd {.  
│ │ │ -000943e0: 7061 636b 6167 6520 7b20 2761 7564 6974  package { 'audit
│ │ │ -000943f0: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -00094400: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -00094410: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00094420: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -000944d0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -000944e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -000944f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00094500: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00094510: 7365 2220 6964 3d22 6964 3136 3622 3e3c se" id="id166">< │ │ │ -00094520: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00094530: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00094540: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00094550: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00094560: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -000945f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00094600: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -00094330: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00094340: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00094380: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00094390: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -00094570: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00094580: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -000945c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000945d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -00094620: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00094630: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00094640: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00094650: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00094660: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00094670: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ -00094680: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ -00094690: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ -000946a0: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ -000946b0: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ -000946c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000946d0: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ -000946e0: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ -000946f0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00094700: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00094710: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ -00094720: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00094730: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00094740: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ -00094750: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00094760: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00094770: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00094780: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00094790: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000947a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000947b0: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ -000947c0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -000947d0: 6e73 7572 6520 6175 6469 7464 2069 7320  nsure auditd is 
│ │ │ -000947e0: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000947f0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00094800: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -00094810: 7564 6974 640a 2020 2020 7374 6174 653a  uditd.    state:
│ │ │ -00094820: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00094830: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00094840: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00094850: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00094860: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00094870: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ -00094880: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ -00094890: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ -000948a0: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ -000948b0: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ -000948c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -000948d0: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ -000948e0: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ -000948f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00094900: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00094910: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -00094920: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -00094930: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00094940: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -00094950: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00094960: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00094970: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00094980: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00094990: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000949a0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000949b0: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ -000949c0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
│ │ │ +00094140: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00094170: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000941e0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00094200: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00094230: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00094250: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000941c0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000941d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00094210: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00094220: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00094270: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00094280: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00094290: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000942a0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000942b0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +000942c0: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ +000942d0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ +000942e0: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ +000942f0: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ +00094300: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ +00094310: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +00094320: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ +00094330: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ +00094340: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ +00094350: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +00094360: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ +00094370: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ +00094380: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +00094390: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ +000943a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +000943b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +000943c0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +000943d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +000943e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +000943f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +00094400: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ +00094410: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ +00094420: 456e 7375 7265 2061 7564 6974 6420 6973 Ensure auditd is │ │ │ +00094430: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +00094440: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00094450: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +00094460: 6175 6469 7464 0a20 2020 2073 7461 7465 auditd. state │ │ │ +00094470: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ +00094480: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +00094490: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +000944a0: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +000944b0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ +000944c0: 3533 2d41 432d 3728 6129 0a20 202d 204e 53-AC-7(a). - N │ │ │ +000944d0: 4953 542d 3830 302d 3533 2d41 552d 3132 IST-800-53-AU-12 │ │ │ +000944e0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +000944f0: 2d35 332d 4155 2d31 340a 2020 2d20 4e49 -53-AU-14. - NI │ │ │ +00094500: 5354 2d38 3030 2d35 332d 4155 2d32 2861 ST-800-53-AU-2(a │ │ │ +00094510: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00094520: 332d 4155 2d37 2831 290a 2020 2d20 4e49 3-AU-7(1). - NI │ │ │ +00094530: 5354 2d38 3030 2d35 332d 4155 2d37 2832 ST-800-53-AU-7(2 │ │ │ +00094540: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +00094550: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +00094560: 492d 4453 532d 5265 712d 3130 2e31 0a20 I-DSS-Req-10.1. │ │ │ +00094570: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ +00094580: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +00094590: 3130 2e32 2e31 0a20 202d 2065 6e61 626c 10.2.1. - enabl │ │ │ +000945a0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +000945b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +000945c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +000945d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +000945e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +000945f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +00094600: 636b 6167 655f 6175 6469 745f 696e 7374 ckage_audit_inst │ │ │ +00094610: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.

Remediatio │ │ │ +000946d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000946e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00094770: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00094790: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +000947a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000947b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +000947c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +000947e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ +00094820: 616c 6c5f 6175 6469 7464 0a0a 636c 6173  all_auditd..clas
│ │ │ +00094830: 7320 696e 7374 616c 6c5f 6175 6469 7464  s install_auditd
│ │ │ +00094840: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00094850: 6175 6469 7464 273a 0a20 2020 2065 6e73  auditd':.    ens
│ │ │ +00094860: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00094870: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00094890: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00094930: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00094940: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00094950: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

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

Reme │ │ │ -00096660: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00096670: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00096680: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -000966d0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -000966e0: 735d 0a65 6e61 626c 6564 203d 205b 2261 s].enabled = ["a │ │ │ -000966f0: 7564 6974 6422 5d0a 3c2f 636f 6465 3e3c uditd"].< │ │ │ -00096700: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -000967b0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000967c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00096840: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00096850: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00096860: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000968a0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000968b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000968d0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000968f0: 3c63 6f64 653e 696e 636c 7564 6520 656e  include en
│ │ │ -00096900: 6162 6c65 5f61 7564 6974 640a 0a63 6c61  able_auditd..cla
│ │ │ -00096910: 7373 2065 6e61 626c 655f 6175 6469 7464  ss enable_auditd
│ │ │ -00096920: 207b 0a20 2073 6572 7669 6365 207b 2761   {.  service {'a
│ │ │ -00096930: 7564 6974 6427 3a0a 2020 2020 656e 6162  uditd':.    enab
│ │ │ -00096940: 6c65 203d 2667 743b 2074 7275 652c 0a20  le => true,. 
│ │ │ -00096950: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00096960: 2772 756e 6e69 6e67 272c 0a20 207d 0a7d  'running',.  }.}
│ │ │ -00096970: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00096a30: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00096a40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00096b10: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00096b20: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00096b70: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00096b80: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00096b90: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00096ba0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00096bb0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00096bc0: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ -00096bd0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -00096be0: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ -00096bf0: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ -00096c00: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ -00096c10: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -00096c20: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ -00096c30: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +00096660: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00096670: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00096680: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
low
Disru │ │ │ -00096af0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00096b00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00096b40: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00096b50: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +00096700: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00096730: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00096750: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00096760: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00096780: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000967a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +000967b0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +000967c0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +000967d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +000967e0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +000967f0: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ +00096800: 352e 342e 312e 310a 2020 2d20 4e49 5354  5.4.1.1.  - NIST
│ │ │ +00096810: 2d38 3030 2d31 3731 2d33 2e33 2e31 0a20  -800-171-3.3.1. 
│ │ │ +00096820: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00096830: 332e 332e 320a 2020 2d20 4e49 5354 2d38  3.3.2.  - NIST-8
│ │ │ +00096840: 3030 2d31 3731 2d33 2e33 2e36 0a20 202d  00-171-3.3.6.  -
│ │ │ +00096850: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +00096860: 3228 6729 0a20 202d 204e 4953 542d 3830  2(g).  - NIST-80
│ │ │ +00096870: 302d 3533 2d41 432d 3628 3929 0a20 202d  0-53-AC-6(9).  -
│ │ │ +00096880: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00096890: 3130 0a20 202d 204e 4953 542d 3830 302d  10.  - NIST-800-
│ │ │ +000968a0: 3533 2d41 552d 3132 2863 290a 2020 2d20  53-AU-12(c).  - 
│ │ │ +000968b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31  NIST-800-53-AU-1
│ │ │ +000968c0: 3428 3129 0a20 202d 204e 4953 542d 3830  4(1).  - NIST-80
│ │ │ +000968d0: 302d 3533 2d41 552d 3228 6429 0a20 202d  0-53-AU-2(d).  -
│ │ │ +000968e0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +000968f0: 330a 2020 2d20 4e49 5354 2d38 3030 2d35  3.  - NIST-800-5
│ │ │ +00096900: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00096910: 5354 2d38 3030 2d35 332d 5349 2d34 2832  ST-800-53-SI-4(2
│ │ │ +00096920: 3329 0a20 202d 2050 4349 2d44 5353 2d52  3).  - PCI-DSS-R
│ │ │ +00096930: 6571 2d31 302e 310a 2020 2d20 5043 492d  eq-10.1.  - PCI-
│ │ │ +00096940: 4453 5376 342d 3130 2e32 0a20 202d 2050  DSSv4-10.2.  - P
│ │ │ +00096950: 4349 2d44 5353 7634 2d31 302e 322e 310a  CI-DSSv4-10.2.1.
│ │ │ +00096960: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00096970: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00096980: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00096990: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +000969a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +000969b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000969c0: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ +000969d0: 7564 6974 645f 656e 6162 6c65 640a 0a2d  uditd_enabled..-
│ │ │ +000969e0: 206e 616d 653a 2045 6e61 626c 6520 6175   name: Enable au
│ │ │ +000969f0: 6469 7464 2053 6572 7669 6365 202d 2045  ditd Service - E
│ │ │ +00096a00: 6e61 626c 6520 7365 7276 6963 6520 6175  nable service au
│ │ │ +00096a10: 6469 7464 0a20 2062 6c6f 636b 3a0a 0a20  ditd.  block:.. 
│ │ │ +00096a20: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00096a30: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00096a40: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00096a50: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +00096a60: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +00096a70: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +00096a80: 6d65 3a20 456e 6162 6c65 2061 7564 6974  me: Enable audit
│ │ │ +00096a90: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +00096aa0: 6c65 2053 6572 7669 6365 2061 7564 6974  le Service audit
│ │ │ +00096ab0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00096ac0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00096ad0: 2020 2020 206e 616d 653a 2061 7564 6974       name: audit
│ │ │ +00096ae0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +00096af0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ +00096b00: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ +00096b10: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ +00096b20: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ +00096b30: 2261 7564 6974 6422 2069 6e20 616e 7369  "auditd" in ansi
│ │ │ +00096b40: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00096b50: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00096b60: 434a 4953 2d35 2e34 2e31 2e31 0a20 202d  CJIS-5.4.1.1.  -
│ │ │ +00096b70: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +00096b80: 332e 310a 2020 2d20 4e49 5354 2d38 3030  3.1.  - NIST-800
│ │ │ +00096b90: 2d31 3731 2d33 2e33 2e32 0a20 202d 204e  -171-3.3.2.  - N
│ │ │ +00096ba0: 4953 542d 3830 302d 3137 312d 332e 332e  IST-800-171-3.3.
│ │ │ +00096bb0: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ +00096bc0: 332d 4143 2d32 2867 290a 2020 2d20 4e49  3-AC-2(g).  - NI
│ │ │ +00096bd0: 5354 2d38 3030 2d35 332d 4143 2d36 2839  ST-800-53-AC-6(9
│ │ │ +00096be0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00096bf0: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ +00096c00: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ +00096c10: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00096c20: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ +00096c30: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │  00096c40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00096c50: 332d 4155 2d31 300a 2020 2d20 4e49 5354  3-AU-10.  - NIST
│ │ │ -00096c60: 2d38 3030 2d35 332d 4155 2d31 3228 6329  -800-53-AU-12(c)
│ │ │ -00096c70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00096c80: 2d41 552d 3134 2831 290a 2020 2d20 4e49  -AU-14(1).  - NI
│ │ │ -00096c90: 5354 2d38 3030 2d35 332d 4155 2d32 2864  ST-800-53-AU-2(d
│ │ │ -00096ca0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00096cb0: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ -00096cc0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00096cd0: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -00096ce0: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ -00096cf0: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ -00096d00: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ -00096d10: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -00096d20: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ -00096d30: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00096d40: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00096d50: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00096d60: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00096d70: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00096d80: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00096d90: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ -00096da0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162  ed..- name: Enab
│ │ │ -00096db0: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ -00096dc0: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -00096dd0: 6365 2061 7564 6974 640a 2020 626c 6f63  ce auditd.  bloc
│ │ │ -00096de0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -00096df0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00096e00: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -00096e10: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00096e20: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -00096e30: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -00096e40: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -00096e50: 6175 6469 7464 2053 6572 7669 6365 202d  auditd Service -
│ │ │ -00096e60: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -00096e70: 6175 6469 7464 0a20 2020 2061 6e73 6962  auditd.    ansib
│ │ │ -00096e80: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00096e90: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00096ea0: 6175 6469 7464 0a20 2020 2020 2065 6e61  auditd.      ena
│ │ │ -00096eb0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ -00096ec0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ -00096ed0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ -00096ee0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ -00096ef0: 2020 2d20 2722 6175 6469 7464 2220 696e    - '"auditd" in
│ │ │ -00096f00: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00096f10: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00096f20: 0a20 202d 2043 4a49 532d 352e 342e 312e  .  - CJIS-5.4.1.
│ │ │ -00096f30: 310a 2020 2d20 4e49 5354 2d38 3030 2d31  1.  - NIST-800-1
│ │ │ -00096f40: 3731 2d33 2e33 2e31 0a20 202d 204e 4953  71-3.3.1.  - NIS
│ │ │ -00096f50: 542d 3830 302d 3137 312d 332e 332e 320a  T-800-171-3.3.2.
│ │ │ -00096f60: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -00096f70: 2d33 2e33 2e36 0a20 202d 204e 4953 542d  -3.3.6.  - NIST-
│ │ │ -00096f80: 3830 302d 3533 2d41 432d 3228 6729 0a20  800-53-AC-2(g). 
│ │ │ -00096f90: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00096fa0: 432d 3628 3929 0a20 202d 204e 4953 542d  C-6(9).  - NIST-
│ │ │ -00096fb0: 3830 302d 3533 2d41 552d 3130 0a20 202d  800-53-AU-10.  -
│ │ │ -00096fc0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -00096fd0: 3132 2863 290a 2020 2d20 4e49 5354 2d38  12(c).  - NIST-8
│ │ │ -00096fe0: 3030 2d35 332d 4155 2d31 3428 3129 0a20  00-53-AU-14(1). 
│ │ │ -00096ff0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00097000: 552d 3228 6429 0a20 202d 204e 4953 542d  U-2(d).  - NIST-
│ │ │ -00097010: 3830 302d 3533 2d41 552d 330a 2020 2d20  800-53-AU-3.  - 
│ │ │ -00097020: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00097030: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00097040: 2d35 332d 5349 2d34 2832 3329 0a20 202d  -53-SI-4(23).  -
│ │ │ -00097050: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00097060: 310a 2020 2d20 5043 492d 4453 5376 342d  1.  - PCI-DSSv4-
│ │ │ -00097070: 3130 2e32 0a20 202d 2050 4349 2d44 5353  10.2.  - PCI-DSS
│ │ │ -00097080: 7634 2d31 302e 322e 310a 2020 2d20 656e  v4-10.2.1.  - en
│ │ │ -00097090: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000970a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000970b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000970c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000970d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000970e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000970f0: 2073 6572 7669 6365 5f61 7564 6974 645f   service_auditd_
│ │ │ -00097100: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ -00097110: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00097120: 6b0a 2020 7768 656e 3a0a 2020 2d20 2722  k.  when:.  - '"
│ │ │ -00097130: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00097140: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00097150: 6b61 6765 7327 0a20 202d 2027 2261 7564  kages'.  - '"aud
│ │ │ -00097160: 6974 6422 2069 6e20 616e 7369 626c 655f  itd" in ansible_
│ │ │ -00097170: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00096c50: 332d 4155 2d33 0a20 202d 204e 4953 542d  3-AU-3.  - NIST-
│ │ │ +00096c60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00096c70: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ +00096c80: 492d 3428 3233 290a 2020 2d20 5043 492d  I-4(23).  - PCI-
│ │ │ +00096c90: 4453 532d 5265 712d 3130 2e31 0a20 202d  DSS-Req-10.1.  -
│ │ │ +00096ca0: 2050 4349 2d44 5353 7634 2d31 302e 320a   PCI-DSSv4-10.2.
│ │ │ +00096cb0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +00096cc0: 2e32 2e31 0a20 202d 2065 6e61 626c 655f  .2.1.  - enable_
│ │ │ +00096cd0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00096ce0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00096cf0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00096d00: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00096d10: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00096d20: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00096d30: 6963 655f 6175 6469 7464 5f65 6e61 626c  ice_auditd_enabl
│ │ │ +00096d40: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +00096d50: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +00096d60: 6865 6e3a 0a20 202d 2027 226c 696e 7578  hen:.  - '"linux
│ │ │ +00096d70: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00096d80: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00096d90: 270a 2020 2d20 2722 6175 6469 7464 2220  '.  - '"auditd" 
│ │ │ +00096da0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00096db0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +00096e70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00096e80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00096f30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00096f50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00096f80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00096f10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00096f20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00096f40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00096f60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00096f70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

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

│ │ │ +00097150: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00097160: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00097170: 6564 203d 205b 2261 7564 6974 6422 5d0a  ed = ["auditd"].
│ │ │  00097180: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
'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: │ │ │ │ @@ -2102,14 +2085,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -2139,31 +2139,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2200,14 +2183,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2240,31 +2240,14 @@ │ │ │ │ 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: │ │ │ │ @@ -2287,14 +2270,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/ │ │ │ │ @@ -2327,31 +2327,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -2388,14 +2371,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/ │ │ │ │ @@ -4690,31 +4690,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: │ │ │ │ @@ -4741,14 +4724,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/ │ │ │ │ @@ -4787,27 +4787,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' │ │ │ │ @@ -4820,14 +4807,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 │ │ │ │ @@ -4843,27 +4843,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: │ │ │ │ @@ -4872,14 +4859,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 │ │ │ │ @@ -4895,27 +4895,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: │ │ │ │ @@ -4924,14 +4911,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 │ │ │ │ @@ -4964,27 +4964,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' │ │ │ │ @@ -4997,14 +4984,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 │ │ │ │ @@ -5038,27 +5038,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -5070,14 +5057,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 │ │ │ │ @@ -5153,31 +5153,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5202,14 +5185,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ │ │ @@ -5243,31 +5243,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5312,14 +5295,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" 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_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + 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 = ["ntp"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -6225,31 +6225,14 @@ │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -6290,14 +6273,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/ │ │ │ │ @@ -6369,31 +6369,14 @@ │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -6460,14 +6443,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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_minimal.html │ │ │ @@ -15722,128 +15722,128 @@ │ │ │ 0003d690: 6172 6765 743d 2223 6964 3231 2220 7461 arget="#id21" ta │ │ │ 0003d6a0: 6269 6e64 6578 3d22 3022 2072 6f6c 653d bindex="0" role= │ │ │ 0003d6b0: 2262 7574 746f 6e22 2061 7269 612d 6578 "button" aria-ex │ │ │ 0003d6c0: 7061 6e64 6564 3d22 6661 6c73 6522 2074 panded="false" t │ │ │ 0003d6d0: 6974 6c65 3d22 4163 7469 7661 7465 2074 itle="Activate t │ │ │ 0003d6e0: 6f20 7265 7665 616c 2220 6872 6566 3d22 o reveal" href=" │ │ │ 0003d6f0: 2321 223e 5265 6d65 6469 6174 696f 6e20 #!">Remediation │ │ │ -0003d700: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -0003d710: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ -0003d760: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -0003d770: 6520 3d20 2273 7973 6c6f 672d 6e67 220a  e = "syslog-ng".
│ │ │ -0003d780: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Rem │ │ │ -0003d840: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0003d850: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003d860: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ -0003d8e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003d8f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003d910: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003d930: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003d940: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003d980: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0003d990: 6520 696e 7374 616c 6c5f 7379 736c 6f67 e install_syslog │ │ │ -0003d9a0: 2d6e 670a 0a63 6c61 7373 2069 6e73 7461 -ng..class insta │ │ │ -0003d9b0: 6c6c 5f73 7973 6c6f 672d 6e67 207b 0a20 ll_syslog-ng {. │ │ │ -0003d9c0: 2070 6163 6b61 6765 207b 2027 7379 736c package { 'sysl │ │ │ -0003d9d0: 6f67 2d6e 6727 3a0a 2020 2020 656e 7375 og-ng':. ensu │ │ │ -0003d9e0: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -0003d9f0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.
< │ │ │ -0003da10: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0003da20: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0003da30: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0003da40: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0003da50: 6432 3322 2074 6162 696e 6465 783d 2230 d23" tabindex="0 │ │ │ -0003da60: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -0003da70: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -0003da80: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -0003da90: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -0003daa0: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -0003dab0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0003dac0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0003db70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0003db90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0003dbc0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0003db50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0003db60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0003db80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0003dba0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0003dbb0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0003dc00: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0003dc10: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0003dc20: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0003dc30: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0003dc40: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0003dc50: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0003dc60: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -0003dc70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0003dc80: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0003dc90: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0003dca0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0003dcb0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0003dcc0: 2020 2d20 7061 636b 6167 655f 7379 736c - package_sysl │ │ │ -0003dcd0: 6f67 6e67 5f69 6e73 7461 6c6c 6564 0a0a ogng_installed.. │ │ │ -0003dce0: 2d20 6e61 6d65 3a20 456e 7375 7265 2073 - name: Ensure s │ │ │ -0003dcf0: 7973 6c6f 672d 6e67 2069 7320 696e 7374 yslog-ng is inst │ │ │ -0003dd00: 616c 6c65 640a 2020 616e 7369 626c 652e alled. ansible. │ │ │ -0003dd10: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -0003dd20: 0a20 2020 206e 616d 653a 2073 7973 6c6f . name: syslo │ │ │ -0003dd30: 672d 6e67 0a20 2020 2073 7461 7465 3a20 g-ng. state: │ │ │ -0003dd40: 7072 6573 656e 740a 2020 7768 656e 3a20 present. when: │ │ │ -0003dd50: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -0003dd60: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -0003dd70: 6163 6b61 6765 7327 0a20 2074 6167 733a ackages'. tags: │ │ │ -0003dd80: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0003dd90: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61 -CM-6(a). - ena │ │ │ -0003dda0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0003ddb0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -0003ddc0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -0003ddd0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -0003dde0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -0003ddf0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -0003de00: 7061 636b 6167 655f 7379 736c 6f67 6e67 package_syslogng │ │ │ -0003de10: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64 _installed.

│ │ │ +0003d790: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0003d7b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0003d800: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0003d830: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0003d850: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0003d860: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0003d870: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0003d880: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0003d890: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0003d8a0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +0003d8b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0003d8c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0003d8d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0003d8e0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0003d8f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0003d900: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0003d910: 6b61 6765 5f73 7973 6c6f 676e 675f 696e  kage_syslogng_in
│ │ │ +0003d920: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +0003d930: 2045 6e73 7572 6520 7379 736c 6f67 2d6e   Ensure syslog-n
│ │ │ +0003d940: 6720 6973 2069 6e73 7461 6c6c 6564 0a20  g is installed. 
│ │ │ +0003d950: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0003d960: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +0003d970: 6d65 3a20 7379 736c 6f67 2d6e 670a 2020  me: syslog-ng.  
│ │ │ +0003d980: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +0003d990: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +0003d9a0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +0003d9b0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0003d9c0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +0003d9d0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0003d9e0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +0003d9f0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0003da00: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0003da10: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0003da20: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0003da30: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0003da40: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0003da50: 5f73 7973 6c6f 676e 675f 696e 7374 616c  _syslogng_instal
│ │ │ +0003da60: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265  led.
Remediation P │ │ │ +0003db20: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0003db30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +0003d7a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0003d7c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0003d810: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0003d820: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +0003dc00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0003dc10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +0003dc60: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +0003dc70: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ +0003dc80: 2069 6e73 7461 6c6c 5f73 7973 6c6f 672d   install_syslog-
│ │ │ +0003dc90: 6e67 207b 0a20 2070 6163 6b61 6765 207b  ng {.  package {
│ │ │ +0003dca0: 2027 7379 736c 6f67 2d6e 6727 3a0a 2020   'syslog-ng':.  
│ │ │ +0003dcb0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0003dcc0: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +0003dcd0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0003dce0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OSB │ │ │ +0003dd90: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0003dda0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ +0003ddf0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +0003de00: 2022 7379 736c 6f67 2d6e 6722 0a76 6572   "syslog-ng".ver
│ │ │ +0003de10: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
│ │ │ -0003eec0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0003eed0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0003eee0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0003ef20: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0003ef30: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0003ef40: 6963 6573 5d0a 656e 6162 6c65 6420 3d20  ices].enabled = 
│ │ │ -0003ef50: 5b22 7379 736c 6f67 2d6e 6722 5d0a 3c2f  ["syslog-ng"].
Rem │ │ │ -0003f010: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0003f020: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0003f030: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +0003dbe0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0003dbf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0003dc30: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +0003dc40: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -0003f0b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0003f0c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0003f0e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0003f100: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0003f110: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0003f150: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0003f160: 6520 656e 6162 6c65 5f73 7973 6c6f 672d e enable_syslog- │ │ │ -0003f170: 6e67 0a0a 636c 6173 7320 656e 6162 6c65 ng..class enable │ │ │ -0003f180: 5f73 7973 6c6f 672d 6e67 207b 0a20 2073 _syslog-ng {. s │ │ │ -0003f190: 6572 7669 6365 207b 2773 7973 6c6f 672d ervice {'syslog- │ │ │ -0003f1a0: 6e67 273a 0a20 2020 2065 6e61 626c 6520 ng':. enable │ │ │ -0003f1b0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020 => true,. │ │ │ -0003f1c0: 656e 7375 7265 203d 2667 743b 2027 7275 ensure => 'ru │ │ │ -0003f1d0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f nning',. }.}.
Rem │ │ │ -0003f290: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0003f2a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003f2b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0003f330: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003f360: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003f380: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003f390: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003f3b0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003f3d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0003f3e0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0003f3f0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0003f400: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0003f410: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0003f420: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0003f430: 3830 302d 3533 2d41 552d 3428 3129 0a20  800-53-AU-4(1). 
│ │ │ -0003f440: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0003f450: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -0003f460: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0003f470: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0003f480: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0003f490: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0003f4a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0003f4b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0003f4c0: 7276 6963 655f 7379 736c 6f67 6e67 5f65  rvice_syslogng_e
│ │ │ -0003f4d0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -0003f4e0: 456e 6162 6c65 2073 7973 6c6f 672d 6e67  Enable syslog-ng
│ │ │ -0003f4f0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -0003f500: 6520 7365 7276 6963 6520 7379 736c 6f67  e service syslog
│ │ │ -0003f510: 2d6e 670a 2020 626c 6f63 6b3a 0a0a 2020  -ng.  block:..  
│ │ │ -0003f520: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0003f530: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0003f540: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0003f550: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -0003f560: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -0003f570: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -0003f580: 653a 2045 6e61 626c 6520 7379 736c 6f67  e: Enable syslog
│ │ │ -0003f590: 2d6e 6720 5365 7276 6963 6520 2d20 456e  -ng Service - En
│ │ │ -0003f5a0: 6162 6c65 2053 6572 7669 6365 2073 7973  able Service sys
│ │ │ -0003f5b0: 6c6f 672d 6e67 0a20 2020 2061 6e73 6962  log-ng.    ansib
│ │ │ -0003f5c0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0003f5d0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0003f5e0: 7379 736c 6f67 2d6e 670a 2020 2020 2020  syslog-ng.      
│ │ │ -0003f5f0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -0003f600: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -0003f610: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0003f620: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -0003f630: 0a20 2020 202d 2027 2273 7973 6c6f 672d  .    - '"syslog-
│ │ │ -0003f640: 6e67 2220 696e 2061 6e73 6962 6c65 5f66  ng" in ansible_f
│ │ │ -0003f650: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -0003f660: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0003f670: 3830 302d 3533 2d41 552d 3428 3129 0a20  800-53-AU-4(1). 
│ │ │ -0003f680: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0003f690: 4d2d 3628 6129 0a20 202d 2065 6e61 626c  M-6(a).  - enabl
│ │ │ -0003f6a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0003f6b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0003f6c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0003f6d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0003f6e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0003f6f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0003f700: 7276 6963 655f 7379 736c 6f67 6e67 5f65  rvice_syslogng_e
│ │ │ -0003f710: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ -0003f720: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0003f730: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -0003f740: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0003f750: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0003f760: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0003eec0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0003eed0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0003eee0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0003ef70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +0003f010: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +0003f020: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +0003f030: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +0003f040: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +0003f050: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +0003f060: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +0003f070: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0003f080: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +0003f090: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0003f0a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0003f0b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0003f0c0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0003f0d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0003f0e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0003f0f0: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ +0003f100: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ +0003f110: 653a 2045 6e61 626c 6520 7379 736c 6f67  e: Enable syslog
│ │ │ +0003f120: 2d6e 6720 5365 7276 6963 6520 2d20 456e  -ng Service - En
│ │ │ +0003f130: 6162 6c65 2073 6572 7669 6365 2073 7973  able service sys
│ │ │ +0003f140: 6c6f 672d 6e67 0a20 2062 6c6f 636b 3a0a  log-ng.  block:.
│ │ │ +0003f150: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +0003f160: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0003f170: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +0003f180: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +0003f190: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +0003f1a0: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +0003f1b0: 6e61 6d65 3a20 456e 6162 6c65 2073 7973  name: Enable sys
│ │ │ +0003f1c0: 6c6f 672d 6e67 2053 6572 7669 6365 202d  log-ng Service -
│ │ │ +0003f1d0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +0003f1e0: 7379 736c 6f67 2d6e 670a 2020 2020 616e  syslog-ng.    an
│ │ │ +0003f1f0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0003f200: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0003f210: 653a 2073 7973 6c6f 672d 6e67 0a20 2020  e: syslog-ng.   
│ │ │ +0003f220: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +0003f230: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0003f240: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +0003f250: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +0003f260: 656e 3a0a 2020 2020 2d20 2722 7379 736c  en:.    - '"sysl
│ │ │ +0003f270: 6f67 2d6e 6722 2069 6e20 616e 7369 626c  og-ng" in ansibl
│ │ │ +0003f280: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0003f290: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ +0003f2a0: 5354 2d38 3030 2d35 332d 4155 2d34 2831  ST-800-53-AU-4(1
│ │ │ +0003f2b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0003f2c0: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +0003f2d0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0003f2e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0003f2f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0003f300: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0003f310: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0003f320: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0003f330: 2073 6572 7669 6365 5f73 7973 6c6f 676e   service_syslogn
│ │ │ +0003f340: 675f 656e 6162 6c65 640a 2020 2d20 7370  g_enabled.  - sp
│ │ │ +0003f350: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +0003f360: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +0003f370: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0003f380: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0003f390: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation 
│ │ │ +0003f450: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +0003f460: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0003ef60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0003ef90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0003efa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0003efe0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0003eff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +0003f4e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0003f500: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0003f550: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ +0003f5a0: 7379 736c 6f67 2d6e 670a 0a63 6c61 7373  syslog-ng..class
│ │ │ +0003f5b0: 2065 6e61 626c 655f 7379 736c 6f67 2d6e   enable_syslog-n
│ │ │ +0003f5c0: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ +0003f5d0: 7379 736c 6f67 2d6e 6727 3a0a 2020 2020  syslog-ng':.    
│ │ │ +0003f5e0: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ +0003f5f0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +0003f600: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ +0003f610: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ +0003f6d0: 4f53 4275 696c 6420 426c 7565 7072 696e  OSBuild Blueprin
│ │ │ +0003f6e0: 7420 736e 6970 7065 7420 e287 b23c 2f61  t snippet ...
.
│ │ │ +0003f730: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0003f740: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +0003f750: 6420 3d20 5b22 7379 736c 6f67 2d6e 6722  d = ["syslog-ng"
│ │ │ +0003f760: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 0003f770: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ -00040910: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00040920: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00040930: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ -00040970: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -00040980: 203d 2022 7273 7973 6c6f 6722 0a76 6572   = "rsyslog".ver
│ │ │ -00040990: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedi │ │ │ -00040a50: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00040a60: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00040a70: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -00040aa0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00040ab0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00040ac0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00040ad0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00040ae0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00040b70: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00040b80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disr │ │ │ +0003f510: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0003f520: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0003f560: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0003f570: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -00040af0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00040b00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00040b40: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00040b50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ -00040ba0: 6e73 7461 6c6c 5f72 7379 736c 6f67 0a0a  nstall_rsyslog..
│ │ │ -00040bb0: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ -00040bc0: 7973 6c6f 6720 7b0a 2020 7061 636b 6167  yslog {.  packag
│ │ │ -00040bd0: 6520 7b20 2772 7379 736c 6f67 273a 0a20  e { 'rsyslog':. 
│ │ │ -00040be0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00040bf0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -00040c00: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00040c10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation An │ │ │ -00040cc0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00040cd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ -00040da0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00040db0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00040e00: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00040e10: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00040e20: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00040e30: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00040e40: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00040e50: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00040e60: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -00040e70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00040e80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00040e90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00040ea0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00040eb0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00040ec0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00040ed0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ -00040ee0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -00040ef0: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ -00040f00: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -00040f10: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00040f20: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -00040f30: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ -00040f40: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00040f50: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00040f60: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00040f70: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00040f80: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00040f90: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -00040fa0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00040fb0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00040fc0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00040fd0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00040fe0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00040ff0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00041000: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -00041010: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.Remediation A
│ │ │ +00040910: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00040920: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -00040d80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00040d90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00040dd0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00040de0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000409a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000409c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00040a10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +00040a60: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00040a70: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +00040a80: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +00040a90: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +00040aa0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00040ab0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ +00040ac0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00040ad0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00040ae0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00040af0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00040b00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00040b10: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00040b20: 6167 655f 7273 7973 6c6f 675f 696e 7374  age_rsyslog_inst
│ │ │ +00040b30: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +00040b40: 6e73 7572 6520 7273 7973 6c6f 6720 6973  nsure rsyslog is
│ │ │ +00040b50: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00040b60: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00040b70: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00040b80: 7273 7973 6c6f 670a 2020 2020 7374 6174  rsyslog.    stat
│ │ │ +00040b90: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ +00040ba0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00040bb0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00040bc0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +00040bd0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00040be0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00040bf0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00040c00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00040c10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00040c20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00040c30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00040c40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00040c50: 202d 2070 6163 6b61 6765 5f72 7379 736c   - package_rsysl
│ │ │ +00040c60: 6f67 5f69 6e73 7461 6c6c 6564 0a3c 2f63  og_installed.
│ │ │ +00040c80: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00040d20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00040d30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +000409d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000409e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00040a20: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00040a30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00040de0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00040e00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00040e30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00040dc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00040dd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00040df0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00040e10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00040e20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00040e70: 2069 6e73 7461 6c6c 5f72 7379 736c 6f67 install_rsyslog │ │ │ +00040e80: 0a0a 636c 6173 7320 696e 7374 616c 6c5f ..class install_ │ │ │ +00040e90: 7273 7973 6c6f 6720 7b0a 2020 7061 636b rsyslog {. pack │ │ │ +00040ea0: 6167 6520 7b20 2772 7379 736c 6f67 273a age { 'rsyslog': │ │ │ +00040eb0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +00040ec0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20 ; 'installed',. │ │ │ +00040ed0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediation │ │ │ +00040f90: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00040fa0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.
│ │ │ +00040ff0: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +00041000: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ +00041010: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 00041030: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 00041040: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 00041050: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 00041060: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 00041070: 6433 3422 2074 6162 696e 6465 783d 2230 d34" tabindex="0 │ │ │ 00041080: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ @@ -16931,151 +16931,151 @@ │ │ │ 00042220: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 00042230: 3336 2220 7461 6269 6e64 6578 3d22 3022 36" tabindex="0" │ │ │ 00042240: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 00042250: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 00042260: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 00042270: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 00042280: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -00042290: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000422a0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000422b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -000422f0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00042300: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00042310: 656e 6162 6c65 6420 3d20 5b22 7273 7973  enabled = ["rsys
│ │ │ -00042320: 6c6f 6722 5d0a 3c2f 636f 6465 3e3c 2f70  log"].

Remediation │ │ │ -000423e0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000423f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00042470: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00042490: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000424e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00042510: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00042530: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ -00042540: 656e 6162 6c65 5f72 7379 736c 6f67 207b  enable_rsyslog {
│ │ │ -00042550: 0a20 2073 6572 7669 6365 207b 2772 7379  .  service {'rsy
│ │ │ -00042560: 736c 6f67 273a 0a20 2020 2065 6e61 626c  slog':.    enabl
│ │ │ -00042570: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00042580: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00042590: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -000425a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -00042650: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00042660: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
Complexity:< │ │ │ -00042480: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000424a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000424f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00042500: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00042700: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00042710: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00042760: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000427a0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000427b0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000427c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000427d0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000427e0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000427f0: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ -00042800: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00042810: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00042820: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00042830: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00042840: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00042850: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00042860: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00042870: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00042880: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ -00042890: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ -000428a0: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ -000428b0: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000428c0: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ -000428d0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -000428e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000428f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00042900: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00042910: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ -00042920: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ -00042930: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ -00042940: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ -00042950: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -00042960: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ -00042970: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00042980: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00042990: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ -000429a0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -000429b0: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -000429c0: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -000429d0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -000429e0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -000429f0: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ -00042a00: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00042a10: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00042a20: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ -00042a30: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ -00042a40: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00042a50: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00042a60: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00042a70: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00042a80: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00042a90: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00042aa0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00042ab0: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ -00042ac0: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ -00042ad0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00042ae0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00042af0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00042b00: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00042b10: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


│ │ │ +000422e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
C │ │ │ -000426f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00042720: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00042730: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00042770: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00042780: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00042350: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00042370: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000423a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000423c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00042330: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00042340: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00042380: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00042390: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000423e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000423f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00042400: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00042410: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00042420: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00042430: 2d35 332d 4155 2d34 2831 290a 2020 2d20 -53-AU-4(1). - │ │ │ +00042440: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +00042450: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +00042460: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00042470: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00042480: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00042490: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +000424a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +000424b0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +000424c0: 6365 5f72 7379 736c 6f67 5f65 6e61 626c ce_rsyslog_enabl │ │ │ +000424d0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 6162 ed..- name: Enab │ │ │ +000424e0: 6c65 2072 7379 736c 6f67 2053 6572 7669 le rsyslog Servi │ │ │ +000424f0: 6365 202d 2045 6e61 626c 6520 7365 7276 ce - Enable serv │ │ │ +00042500: 6963 6520 7273 7973 6c6f 670a 2020 626c ice rsyslog. bl │ │ │ +00042510: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ +00042520: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00042530: 6765 2066 6163 7473 0a20 2020 2061 6e73 ge facts. ans │ │ │ +00042540: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +00042550: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00042560: 2020 6d61 6e61 6765 723a 2061 7574 6f0a manager: auto. │ │ │ +00042570: 0a20 202d 206e 616d 653a 2045 6e61 626c . - name: Enabl │ │ │ +00042580: 6520 7273 7973 6c6f 6720 5365 7276 6963 e rsyslog Servic │ │ │ +00042590: 6520 2d20 456e 6162 6c65 2053 6572 7669 e - Enable Servi │ │ │ +000425a0: 6365 2072 7379 736c 6f67 0a20 2020 2061 ce rsyslog. a │ │ │ +000425b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +000425c0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +000425d0: 6d65 3a20 7273 7973 6c6f 670a 2020 2020 me: rsyslog. │ │ │ +000425e0: 2020 656e 6162 6c65 643a 2074 7275 650a enabled: true. │ │ │ +000425f0: 2020 2020 2020 7374 6174 653a 2073 7461 state: sta │ │ │ +00042600: 7274 6564 0a20 2020 2020 206d 6173 6b65 rted. maske │ │ │ +00042610: 643a 2066 616c 7365 0a20 2020 2077 6865 d: false. whe │ │ │ +00042620: 6e3a 0a20 2020 202d 2027 2272 7379 736c n:. - '"rsysl │ │ │ +00042630: 6f67 2220 696e 2061 6e73 6962 6c65 5f66 og" in ansible_f │ │ │ +00042640: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +00042650: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +00042660: 3830 302d 3533 2d41 552d 3428 3129 0a20 800-53-AU-4(1). │ │ │ +00042670: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +00042680: 4d2d 3628 6129 0a20 202d 2065 6e61 626c M-6(a). - enabl │ │ │ +00042690: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +000426a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +000426b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +000426c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +000426d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +000426e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ +000426f0: 7276 6963 655f 7273 7973 6c6f 675f 656e rvice_rsyslog_en │ │ │ +00042700: 6162 6c65 640a 2020 2d20 7370 6563 6961 abled. - specia │ │ │ +00042710: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a l_service_block. │ │ │ +00042720: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +00042730: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +00042740: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00042750: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f . │ │ │ +00042800: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00042810: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +000428b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000428c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00042910: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00042950: 6c75 6465 2065 6e61 626c 655f 7273 7973  lude enable_rsys
│ │ │ +00042960: 6c6f 670a 0a63 6c61 7373 2065 6e61 626c  log..class enabl
│ │ │ +00042970: 655f 7273 7973 6c6f 6720 7b0a 2020 7365  e_rsyslog {.  se
│ │ │ +00042980: 7276 6963 6520 7b27 7273 7973 6c6f 6727  rvice {'rsyslog'
│ │ │ +00042990: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +000429a0: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +000429b0: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +000429c0: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remedi │ │ │ +00042a80: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00042a90: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00042aa0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ +00042ae0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00042af0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00042b00: 656e 6162 6c65 6420 3d20 5b22 7273 7973  enabled = ["rsys
│ │ │ +00042b10: 6c6f 6722 5d0a 3c2f 636f 6465 3e3c 2f70  log"].

Remediation │ │ │ -00058bf0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00058c00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
C │ │ │ +000428a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000428d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000428e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00042920: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00042930: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00058c80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00058ca0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00058cf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00058d20: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00058c90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00058cb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00058d00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00058d10: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00058d40: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ -00058d50: 6e65 7464 0a0a 636c 6173 7320 7265 6d6f  netd..class remo
│ │ │ -00058d60: 7665 5f69 6e65 7475 7469 6c73 2d74 656c  ve_inetutils-tel
│ │ │ -00058d70: 6e65 7464 207b 0a20 2070 6163 6b61 6765  netd {.  package
│ │ │ -00058d80: 207b 2027 696e 6574 7574 696c 732d 7465   { 'inetutils-te
│ │ │ -00058d90: 6c6e 6574 6427 3a0a 2020 2020 656e 7375  lnetd':.    ensu
│ │ │ -00058da0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00058db0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00058dc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00058e70: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00058e80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00058e90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00058ea0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00058eb0: 7365 2220 6964 3d22 6964 3830 223e 3c74 se" id="id80"> │ │ │ -00058f00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00058f10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00058f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00058f60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00058f70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00058f90: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00058fa0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -00058fc0: 556e 696e 7374 616c 6c20 7468 6520 696e  Uninstall the in
│ │ │ -00058fd0: 6574 2d62 6173 6564 2074 656c 6e65 7420  et-based telnet 
│ │ │ -00058fe0: 7365 7276 6572 3a20 456e 7375 7265 2069  server: Ensure i
│ │ │ -00058ff0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -00059000: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00059010: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00059020: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00059030: 3a20 696e 6574 7574 696c 732d 7465 6c6e  : inetutils-teln
│ │ │ -00059040: 6574 640a 2020 2020 7374 6174 653a 2061  etd.    state: a
│ │ │ -00059050: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00059060: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00059070: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00059080: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00059090: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000590a0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -000590b0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -000590c0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -000590d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -000590e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -000590f0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00059100: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00059110: 6167 655f 696e 6574 7574 696c 732d 7465  age_inetutils-te
│ │ │ -00059120: 6c6e 6574 645f 7265 6d6f 7665 640a 3c2f  lnetd_removed.
Complexity: │ │ │ +00058c90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00058cb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00058cd0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00058d00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00058d10: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +00058d40: 6e73 7461 6c6c 2074 6865 2069 6e65 742d  nstall the inet-
│ │ │ +00058d50: 6261 7365 6420 7465 6c6e 6574 2073 6572  based telnet ser
│ │ │ +00058d60: 7665 723a 2045 6e73 7572 6520 696e 6574  ver: Ensure inet
│ │ │ +00058d70: 7574 696c 732d 7465 6c6e 6574 6420 6973  utils-telnetd is
│ │ │ +00058d80: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +00058d90: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00058da0: 6167 653a 0a20 2020 206e 616d 653a 2069  age:.    name: i
│ │ │ +00058db0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ +00058dc0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00058dd0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00058de0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00058df0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00058e00: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00058e10: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00058e20: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +00058e30: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +00058e40: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +00058e50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00058e60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00058e70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00058e80: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00058e90: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ +00058ea0: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
Remedi │ │ │ +00058f60: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00058f70: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00058f80: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00058fb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00058fc0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00058fd0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00058fe0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00058ff0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00059000: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00059010: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00059050: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00059060: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00059080: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00059090: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +000590b0: 2072 656d 6f76 655f 696e 6574 7574 696c remove_inetutil │ │ │ +000590c0: 732d 7465 6c6e 6574 640a 0a63 6c61 7373 s-telnetd..class │ │ │ +000590d0: 2072 656d 6f76 655f 696e 6574 7574 696c remove_inetutil │ │ │ +000590e0: 732d 7465 6c6e 6574 6420 7b0a 2020 7061 s-telnetd {. pa │ │ │ +000590f0: 636b 6167 6520 7b20 2769 6e65 7475 7469 ckage { 'inetuti │ │ │ +00059100: 6c73 2d74 656c 6e65 7464 273a 0a20 2020 ls-telnetd':. │ │ │ +00059110: 2065 6e73 7572 6520 3d26 6774 3b20 2770 ensure => 'p │ │ │ +00059120: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f urged',. }.}.
R │ │ │ -00059c40: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00059c50: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ -00059d00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00059d50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00059d90: 636c 7564 6520 7265 6d6f 7665 5f6e 6973  clude remove_nis
│ │ │ -00059da0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6e  ..class remove_n
│ │ │ -00059db0: 6973 207b 0a20 2070 6163 6b61 6765 207b  is {.  package {
│ │ │ -00059dc0: 2027 6e69 7327 3a0a 2020 2020 656e 7375   'nis':.    ensu
│ │ │ -00059dd0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00059de0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00059df0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -00059ea0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00059eb0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00059ec0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00059ed0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00059ee0: 7365 2220 6964 3d22 6964 3834 223e 3c74 se" id="id84"> │ │ │ -00059f30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -00059fc0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00059fd0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -00059ce0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00059d10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00059d30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00059d40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00059d60: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00059d70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -00059f40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00059f50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00059f90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00059fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ -00059ff0: 556e 696e 7374 616c 6c20 7468 6520 6e69  Uninstall the ni
│ │ │ -0005a000: 7320 7061 636b 6167 653a 2045 6e73 7572  s package: Ensur
│ │ │ -0005a010: 6520 6e69 7320 6973 2072 656d 6f76 6564  e nis is removed
│ │ │ -0005a020: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0005a030: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0005a040: 206e 616d 653a 206e 6973 0a20 2020 2073   name: nis.    s
│ │ │ -0005a050: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0005a060: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0005a070: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0005a080: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0005a090: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0005a0a0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0005a0b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0005a0c0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0005a0d0: 655f 6e69 735f 7265 6d6f 7665 640a 3c2f  e_nis_removed.
< │ │ │ +00059cf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00059d00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00059d50: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00059d90: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00059da0: 2074 6865 206e 6973 2070 6163 6b61 6765   the nis package
│ │ │ +00059db0: 3a20 456e 7375 7265 206e 6973 2069 7320  : Ensure nis is 
│ │ │ +00059dc0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00059dd0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00059de0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6e69  ge:.    name: ni
│ │ │ +00059df0: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ +00059e00: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00059e10: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00059e20: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00059e30: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00059e40: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +00059e50: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00059e60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00059e70: 2070 6163 6b61 6765 5f6e 6973 5f72 656d   package_nis_rem
│ │ │ +00059e80: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.Remediation 
│ │ │ +00059f40: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +00059f50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ +00059ce0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00059d10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00059d20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00059d60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00059d70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00059fd0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00059ff0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0005a040: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0005a070: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0005a090: 655f 6e69 730a 0a63 6c61 7373 2072 656d  e_nis..class rem
│ │ │ +0005a0a0: 6f76 655f 6e69 7320 7b0a 2020 7061 636b  ove_nis {.  pack
│ │ │ +0005a0b0: 6167 6520 7b20 276e 6973 273a 0a20 2020  age { 'nis':.   
│ │ │ +0005a0c0: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +0005a0d0: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Remediati │ │ │ -0005b1a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0005b1b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0005b270: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0005b280: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0005a000: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0005a010: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0005a050: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0005a060: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity │ │ │ -0005b240: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0005b260: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0005b290: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0005b2b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0005b2e0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -0005b2f0: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ -0005b300: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ -0005b310: 656c 6e65 7464 2d73 736c 207b 0a20 2070  elnetd-ssl {.  p
│ │ │ -0005b320: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ -0005b330: 642d 7373 6c27 3a0a 2020 2020 656e 7375  d-ssl':.    ensu
│ │ │ -0005b340: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0005b350: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0005b360: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ -0005b410: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0005b420: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0005b430: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0005b440: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0005b450: 7365 2220 6964 3d22 6964 3838 223e 3c74 se" id="id88"> │ │ │ -0005b4a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0005b4b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0005b4c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0005b500: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0005b510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0005b530: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0005b540: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ -0005b560: 556e 696e 7374 616c 6c20 7468 6520 7373  Uninstall the ss
│ │ │ -0005b570: 6c20 636f 6d70 6c69 616e 7420 7465 6c6e  l compliant teln
│ │ │ -0005b580: 6574 2073 6572 7665 723a 2045 6e73 7572  et server: Ensur
│ │ │ -0005b590: 6520 7465 6c6e 6574 642d 7373 6c20 6973  e telnetd-ssl is
│ │ │ -0005b5a0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0005b5b0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0005b5c0: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -0005b5d0: 656c 6e65 7464 2d73 736c 0a20 2020 2073  elnetd-ssl.    s
│ │ │ -0005b5e0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0005b5f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0005b600: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0005b610: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0005b620: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0005b630: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0005b640: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0005b650: 790a 2020 2d20 6869 6768 5f73 6576 6572  y.  - high_sever
│ │ │ -0005b660: 6974 790a 2020 2d20 6c6f 775f 636f 6d70  ity.  - low_comp
│ │ │ -0005b670: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0005b680: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0005b690: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0005b6a0: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ -0005b6b0: 7464 2d73 736c 5f72 656d 6f76 6564 0a3c  td-ssl_removed.<
│ │ │ +0005b1a0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +0005b1b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +0005b230: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0005b240: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0005b260: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0005b270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0005b290: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0005b2b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +0005b2e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +0005b2f0: 6e69 6e73 7461 6c6c 2074 6865 2073 736c  ninstall the ssl
│ │ │ +0005b300: 2063 6f6d 706c 6961 6e74 2074 656c 6e65   compliant telne
│ │ │ +0005b310: 7420 7365 7276 6572 3a20 456e 7375 7265  t server: Ensure
│ │ │ +0005b320: 2074 656c 6e65 7464 2d73 736c 2069 7320   telnetd-ssl is 
│ │ │ +0005b330: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +0005b340: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +0005b350: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +0005b360: 6c6e 6574 642d 7373 6c0a 2020 2020 7374  lnetd-ssl.    st
│ │ │ +0005b370: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0005b380: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0005b390: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0005b3a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0005b3b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0005b3c0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0005b3d0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0005b3e0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +0005b3f0: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +0005b400: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0005b410: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +0005b420: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0005b430: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +0005b440: 642d 7373 6c5f 7265 6d6f 7665 640a 3c2f  d-ssl_removed.
Rem │ │ │ +0005b500: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0005b510: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0005b520: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Comp │ │ │ +0005b5a0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0005b5b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0005b5d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0005b5f0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0005b600: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0005b640: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0005b650: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ +0005b660: 7464 2d73 736c 0a0a 636c 6173 7320 7265  td-ssl..class re
│ │ │ +0005b670: 6d6f 7665 5f74 656c 6e65 7464 2d73 736c  move_telnetd-ssl
│ │ │ +0005b680: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0005b690: 7465 6c6e 6574 642d 7373 6c27 3a0a 2020  telnetd-ssl':.  
│ │ │ +0005b6a0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0005b6b0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0005b6c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediat │ │ │ -0005c790: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0005c7a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0005c820: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0005c830: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0005c850: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0005c860: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0005c880: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0005c8a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0005c8d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0005c8e0: 656d 6f76 655f 7465 6c6e 6574 640a 0a63  emove_telnetd..c
│ │ │ -0005c8f0: 6c61 7373 2072 656d 6f76 655f 7465 6c6e  lass remove_teln
│ │ │ -0005c900: 6574 6420 7b0a 2020 7061 636b 6167 6520  etd {.  package 
│ │ │ -0005c910: 7b20 2774 656c 6e65 7464 273a 0a20 2020  { 'telnetd':.   
│ │ │ -0005c920: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -0005c930: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Rem │ │ │ -0005c9f0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0005ca00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0005ca10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0005ca90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0005cac0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0005cae0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0005caf0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0005cb10: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0005cb20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0005cb40: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0005cb50: 6865 2074 656c 6e65 7420 7365 7276 6572  he telnet server
│ │ │ -0005cb60: 3a20 456e 7375 7265 2074 656c 6e65 7464  : Ensure telnetd
│ │ │ -0005cb70: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0005cb80: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0005cb90: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0005cba0: 3a20 7465 6c6e 6574 640a 2020 2020 7374  : telnetd.    st
│ │ │ -0005cbb0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0005cbc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -0005cbd0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -0005cbe0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0005cbf0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0005cc00: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -0005cc10: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0005cc20: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -0005cc30: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -0005cc40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0005cc50: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0005cc60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0005cc70: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ -0005cc80: 645f 7265 6d6f 7665 640a 3c2f 636f 6465  d_removed.
< │ │ │ +0005c7b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0005c7c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0005c7d0: 7365 2220 6964 3d22 6964 3931 223e 3c74 se" id="id91"> │ │ │ +0005c820: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0005c830: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0005c840: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0005c880: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0005c890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0005c8b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0005c8c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0005c8e0: 556e 696e 7374 616c 6c20 7468 6520 7465  Uninstall the te
│ │ │ +0005c8f0: 6c6e 6574 2073 6572 7665 723a 2045 6e73  lnet server: Ens
│ │ │ +0005c900: 7572 6520 7465 6c6e 6574 6420 6973 2072  ure telnetd is r
│ │ │ +0005c910: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +0005c920: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +0005c930: 653a 0a20 2020 206e 616d 653a 2074 656c  e:.    name: tel
│ │ │ +0005c940: 6e65 7464 0a20 2020 2073 7461 7465 3a20  netd.    state: 
│ │ │ +0005c950: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0005c960: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0005c970: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0005c980: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0005c990: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0005c9a0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0005c9b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0005c9c0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0005c9d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0005c9e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0005c9f0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0005ca00: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0005ca10: 6b61 6765 5f74 656c 6e65 7464 5f72 656d  kage_telnetd_rem
│ │ │ +0005ca20: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +0005cae0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0005caf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +0005cb70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0005cb90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0005cbe0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0005cc10: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0005cc30: 655f 7465 6c6e 6574 640a 0a63 6c61 7373  e_telnetd..class
│ │ │ +0005cc40: 2072 656d 6f76 655f 7465 6c6e 6574 6420   remove_telnetd 
│ │ │ +0005cc50: 7b0a 2020 7061 636b 6167 6520 7b20 2774  {.  package { 't
│ │ │ +0005cc60: 656c 6e65 7464 273a 0a20 2020 2065 6e73  elnetd':.    ens
│ │ │ +0005cc70: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0005cc80: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  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: │ │ │ │ @@ -367,14 +350,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -404,31 +404,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -465,14 +448,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -505,31 +505,14 @@ │ │ │ │ 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: │ │ │ │ @@ -552,14 +535,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/ │ │ │ │ @@ -592,31 +592,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -653,14 +636,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/ │ │ │ │ @@ -1896,27 +1896,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' │ │ │ │ @@ -1929,14 +1916,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 │ │ │ │ @@ -1952,27 +1952,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: │ │ │ │ @@ -1981,14 +1968,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 │ │ │ │ @@ -2021,27 +2021,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' │ │ │ │ @@ -2054,14 +2041,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 │ │ │ │ @@ -2095,27 +2095,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -2127,14 +2114,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 │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-anssi_np_nt28_restrictive.html │ │ │ @@ -20734,129 +20734,129 @@ │ │ │ 00050fd0: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 00050fe0: 6964 3338 2220 7461 6269 6e64 6578 3d22 id38" tabindex=" │ │ │ 00050ff0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 00051000: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 00051010: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 00051020: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 00051030: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00051040: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00051050: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00051060: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ -000510b0: 6573 5d5d 0a6e 616d 6520 3d20 2273 7973  es]].name = "sys
│ │ │ -000510c0: 6c6f 672d 6e67 220a 7665 7273 696f 6e20  log-ng".version 
│ │ │ -000510d0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -00051190: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -000511a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low
Disr │ │ │ +0005cba0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0005cbb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0005cbf0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0005cc00: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -00051220: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00051240: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00051290: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000512c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000512e0: 6c5f 7379 736c 6f67 2d6e 670a 0a63 6c61  l_syslog-ng..cla
│ │ │ -000512f0: 7373 2069 6e73 7461 6c6c 5f73 7973 6c6f  ss install_syslo
│ │ │ -00051300: 672d 6e67 207b 0a20 2070 6163 6b61 6765  g-ng {.  package
│ │ │ -00051310: 207b 2027 7379 736c 6f67 2d6e 6727 3a0a   { 'syslog-ng':.
│ │ │ -00051320: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00051330: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -00051340: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation A │ │ │ -00051400: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00051410: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -00051230: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00051250: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000512a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000512b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -00051490: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000514b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00051500: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00051550: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00051560: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00051570: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00051580: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00051590: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000515a0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000515b0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000515c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000515d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000515e0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000515f0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00051600: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00051610: 6167 655f 7379 736c 6f67 6e67 5f69 6e73  age_syslogng_ins
│ │ │ -00051620: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00051630: 456e 7375 7265 2073 7973 6c6f 672d 6e67  Ensure syslog-ng
│ │ │ -00051640: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00051650: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00051660: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00051670: 653a 2073 7973 6c6f 672d 6e67 0a20 2020  e: syslog-ng.   
│ │ │ -00051680: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ -00051690: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -000516a0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -000516b0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000516c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000516d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -000516e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000516f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00051700: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00051710: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00051720: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00051730: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00051740: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00051750: 7379 736c 6f67 6e67 5f69 6e73 7461 6c6c  syslogng_install
│ │ │ -00051760: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00051040: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +00051050: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00051060: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ -000514c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000514d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00051510: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00051520: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +000510e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000510f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00051110: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00051130: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00051140: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00051180: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00051190: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +000511a0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +000511b0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +000511c0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +000511d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +000511e0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +000511f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567 - enable_strateg │ │ │ +00051200: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00051210: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +00051220: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00051230: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +00051240: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00051250: 0a20 202d 2070 6163 6b61 6765 5f73 7973 . - package_sys │ │ │ +00051260: 6c6f 676e 675f 696e 7374 616c 6c65 640a logng_installed. │ │ │ +00051270: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ +00051280: 7379 736c 6f67 2d6e 6720 6973 2069 6e73 syslog-ng is ins │ │ │ +00051290: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65 talled. ansible │ │ │ +000512a0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +000512b0: 3a0a 2020 2020 6e61 6d65 3a20 7379 736c :. name: sysl │ │ │ +000512c0: 6f67 2d6e 670a 2020 2020 7374 6174 653a og-ng. state: │ │ │ +000512d0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a present. when: │ │ │ +000512e0: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +000512f0: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +00051300: 7061 636b 6167 6573 270a 2020 7461 6773 packages'. tags │ │ │ +00051310: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35 :. - NIST-800-5 │ │ │ +00051320: 332d 434d 2d36 2861 290a 2020 2d20 656e 3-CM-6(a). - en │ │ │ +00051330: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00051340: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00051350: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00051360: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00051370: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00051380: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00051390: 2070 6163 6b61 6765 5f73 7973 6c6f 676e package_syslogn │ │ │ +000513a0: 675f 696e 7374 616c 6c65 640a 3c2f 636f g_installed.
< │ │ │ +000513c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000513d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000513e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000513f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00051400: 6433 3922 2074 6162 696e 6465 783d 2230 d39" tabindex="0 │ │ │ +00051410: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ +00051420: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ +00051430: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ +00051440: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ +00051450: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ +00051460: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00051470: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000514b0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00051520: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00051540: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00051570: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00051590: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00051500: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00051510: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00051550: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00051560: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +000515b0: 696e 7374 616c 6c5f 7379 736c 6f67 2d6e install_syslog-n │ │ │ +000515c0: 670a 0a63 6c61 7373 2069 6e73 7461 6c6c g..class install │ │ │ +000515d0: 5f73 7973 6c6f 672d 6e67 207b 0a20 2070 _syslog-ng {. p │ │ │ +000515e0: 6163 6b61 6765 207b 2027 7379 736c 6f67 ackage { 'syslog │ │ │ +000515f0: 2d6e 6727 3a0a 2020 2020 656e 7375 7265 -ng':. ensure │ │ │ +00051600: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +00051610: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedia │ │ │ +000516d0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000516e0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000516f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +00051740: 5d0a 6e61 6d65 203d 2022 7379 736c 6f67  ].name = "syslog
│ │ │ +00051750: 2d6e 6722 0a76 6572 7369 6f6e 203d 2022  -ng".version = "
│ │ │ +00051760: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 00051770: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediat │ │ │ -00052810: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00052820: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00052830: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizati
│ │ │ -00052880: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -00052890: 6162 6c65 6420 3d20 5b22 7379 736c 6f67  abled = ["syslog
│ │ │ -000528a0: 2d6e 6722 5d0a 3c2f 636f 6465 3e3c 2f70  -ng"].

Remediation │ │ │ -00052960: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00052970: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000529f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00052a10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00052a60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00052a90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00052ab0: 5f73 7973 6c6f 672d 6e67 0a0a 636c 6173  _syslog-ng..clas
│ │ │ -00052ac0: 7320 656e 6162 6c65 5f73 7973 6c6f 672d  s enable_syslog-
│ │ │ -00052ad0: 6e67 207b 0a20 2073 6572 7669 6365 207b  ng {.  service {
│ │ │ -00052ae0: 2773 7973 6c6f 672d 6e67 273a 0a20 2020  'syslog-ng':.   
│ │ │ -00052af0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -00052b00: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -00052b10: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -00052b20: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ -00052be0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00052bf0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
low< │ │ │ -00052cc0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00052d10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00052a00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00052a20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00052a70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00052a80: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -00052c80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00052ca0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00052cf0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00052d00: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -00052d30: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00052d40: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00052d50: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00052d60: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00052d70: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00052d80: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00052d90: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00052da0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00052db0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00052dc0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00052dd0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00052de0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00052df0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00052e00: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -00052e10: 736c 6f67 6e67 5f65 6e61 626c 6564 0a0a  slogng_enabled..
│ │ │ -00052e20: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -00052e30: 7973 6c6f 672d 6e67 2053 6572 7669 6365  yslog-ng Service
│ │ │ -00052e40: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -00052e50: 6520 7379 736c 6f67 2d6e 670a 2020 626c  e syslog-ng.  bl
│ │ │ -00052e60: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00052e70: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00052e80: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00052e90: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00052ea0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00052eb0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00052ec0: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ -00052ed0: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ -00052ee0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -00052ef0: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ -00052f00: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00052f10: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00052f20: 2020 6e61 6d65 3a20 7379 736c 6f67 2d6e    name: syslog-n
│ │ │ -00052f30: 670a 2020 2020 2020 656e 6162 6c65 643a  g.      enabled:
│ │ │ -00052f40: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -00052f50: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -00052f60: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -00052f70: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -00052f80: 2273 7973 6c6f 672d 6e67 2220 696e 2061  "syslog-ng" in a
│ │ │ -00052f90: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00052fa0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00052fb0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00052fc0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ -00052fd0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00052fe0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00052ff0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00053000: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00053010: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00053020: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00053030: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00053040: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -00053050: 736c 6f67 6e67 5f65 6e61 626c 6564 0a20  slogng_enabled. 
│ │ │ -00053060: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -00053070: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -00053080: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00053090: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000530a0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +00052830: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00052840: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00052850: 7365 2220 6964 3d22 6964 3433 223e 3c74 se" id="id43"> │ │ │ +000528a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000528b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000528c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00052900: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00052910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00052930: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00052950: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00052960: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00052970: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00052980: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00052990: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000529a0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000529b0: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +000529c0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +000529d0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +000529e0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000529f0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00052a00: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00052a10: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00052a20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00052a30: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00052a40: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +00052a50: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +00052a60: 6520 7379 736c 6f67 2d6e 6720 5365 7276  e syslog-ng Serv
│ │ │ +00052a70: 6963 6520 2d20 456e 6162 6c65 2073 6572  ice - Enable ser
│ │ │ +00052a80: 7669 6365 2073 7973 6c6f 672d 6e67 0a20  vice syslog-ng. 
│ │ │ +00052a90: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00052aa0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00052ab0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00052ac0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00052ad0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00052ae0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00052af0: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00052b00: 6162 6c65 2073 7973 6c6f 672d 6e67 2053  able syslog-ng S
│ │ │ +00052b10: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +00052b20: 5365 7276 6963 6520 7379 736c 6f67 2d6e  Service syslog-n
│ │ │ +00052b30: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ +00052b40: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00052b50: 2020 2020 206e 616d 653a 2073 7973 6c6f       name: syslo
│ │ │ +00052b60: 672d 6e67 0a20 2020 2020 2065 6e61 626c  g-ng.      enabl
│ │ │ +00052b70: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +00052b80: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +00052b90: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +00052ba0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +00052bb0: 2d20 2722 7379 736c 6f67 2d6e 6722 2069  - '"syslog-ng" i
│ │ │ +00052bc0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00052bd0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +00052be0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00052bf0: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +00052c00: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00052c10: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00052c20: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00052c30: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00052c40: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00052c50: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00052c60: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00052c70: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00052c80: 5f73 7973 6c6f 676e 675f 656e 6162 6c65  _syslogng_enable
│ │ │ +00052c90: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00052ca0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00052cb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00052cc0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00052cd0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00052cf0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00052d90: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00052da0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00052e50: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00052e70: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00052ea0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00052e30: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00052e40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00052e60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00052e80: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00052e90: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00052ee0: 2065 6e61 626c 655f 7379 736c 6f67 2d6e enable_syslog-n │ │ │ +00052ef0: 670a 0a63 6c61 7373 2065 6e61 626c 655f g..class enable_ │ │ │ +00052f00: 7379 736c 6f67 2d6e 6720 7b0a 2020 7365 syslog-ng {. se │ │ │ +00052f10: 7276 6963 6520 7b27 7379 736c 6f67 2d6e rvice {'syslog-n │ │ │ +00052f20: 6727 3a0a 2020 2020 656e 6162 6c65 203d g':. enable = │ │ │ +00052f30: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ +00052f40: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ +00052f50: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.

│ │ │ +00052f70: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +00053010: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00053020: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00053030: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[customi
│ │ │ +00053080: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00053090: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ +000530a0: 736c 6f67 2d6e 6722 5d0a 3c2f 636f 6465  slog-ng"].
Remed │ │ │ -00054250: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00054260: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00054270: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
│ │ │ -000542b0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000542c0: 735d 5d0a 6e61 6d65 203d 2022 7273 7973  s]].name = "rsys
│ │ │ -000542d0: 6c6f 6722 0a76 6572 7369 6f6e 203d 2022  log".version = "
│ │ │ -000542e0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ -000542f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation Pu │ │ │ -000543a0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -000543b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00054480: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00054490: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000544e0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f72  nclude install_r
│ │ │ -000544f0: 7379 736c 6f67 0a0a 636c 6173 7320 696e  syslog..class in
│ │ │ -00054500: 7374 616c 6c5f 7273 7973 6c6f 6720 7b0a  stall_rsyslog {.
│ │ │ -00054510: 2020 7061 636b 6167 6520 7b20 2772 7379    package { 'rsy
│ │ │ -00054520: 736c 6f67 273a 0a20 2020 2065 6e73 7572  slog':.    ensur
│ │ │ -00054530: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00054540: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -00054600: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00054610: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00054650: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -00054460: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00054470: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000544b0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000544c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -000546c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000546e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00054710: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00054730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000546a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000546b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000546f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00054700: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00054750: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00054760: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00054770: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00054780: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00054790: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -000547a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -000547b0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ -000547c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -000547d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -000547e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -000547f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00054800: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00054810: 202d 2070 6163 6b61 6765 5f72 7379 736c - package_rsysl │ │ │ -00054820: 6f67 5f69 6e73 7461 6c6c 6564 0a0a 2d20 og_installed..- │ │ │ -00054830: 6e61 6d65 3a20 456e 7375 7265 2072 7379 name: Ensure rsy │ │ │ -00054840: 736c 6f67 2069 7320 696e 7374 616c 6c65 slog is installe │ │ │ -00054850: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ -00054860: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ -00054870: 206e 616d 653a 2072 7379 736c 6f67 0a20 name: rsyslog. │ │ │ -00054880: 2020 2073 7461 7465 3a20 7072 6573 656e state: presen │ │ │ -00054890: 740a 2020 7768 656e 3a20 2722 6c69 6e75 t. when: '"linu │ │ │ -000548a0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -000548b0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -000548c0: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ -000548d0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -000548e0: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ -000548f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00054900: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00054910: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00054920: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00054930: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00054940: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00054950: 655f 7273 7973 6c6f 675f 696e 7374 616c e_rsyslog_instal │ │ │ -00054960: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
│ │ │ +00054310: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00054330: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00054360: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000542f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00054300: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00054320: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00054340: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00054350: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000543a0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000543b0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000543c0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000543d0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000543e0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000543f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00054400: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ +00054410: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +00054420: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +00054430: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +00054440: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +00054450: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00054460: 2020 2d20 7061 636b 6167 655f 7273 7973 - package_rsys │ │ │ +00054470: 6c6f 675f 696e 7374 616c 6c65 640a 0a2d log_installed..- │ │ │ +00054480: 206e 616d 653a 2045 6e73 7572 6520 7273 name: Ensure rs │ │ │ +00054490: 7973 6c6f 6720 6973 2069 6e73 7461 6c6c yslog is install │ │ │ +000544a0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ +000544b0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +000544c0: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a name: rsyslog. │ │ │ +000544d0: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ +000544e0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ +000544f0: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ +00054500: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ +00054510: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ +00054520: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +00054530: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ +00054540: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00054550: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00054560: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00054570: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00054580: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00054590: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +000545a0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461 ge_rsyslog_insta │ │ │ +000545b0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.

Remediation │ │ │ +00054670: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00054680: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
< │ │ │ +00054700: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00054720: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00054770: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +000547c0: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ +000547d0: 696e 7374 616c 6c5f 7273 7973 6c6f 6720  install_rsyslog 
│ │ │ +000547e0: 7b0a 2020 7061 636b 6167 6520 7b20 2772  {.  package { 'r
│ │ │ +000547f0: 7379 736c 6f67 273a 0a20 2020 2065 6e73  syslog':.    ens
│ │ │ +00054800: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00054810: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00054830: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ +000548d0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000548e0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000548f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ +00054940: 6573 5d5d 0a6e 616d 6520 3d20 2272 7379  es]].name = "rsy
│ │ │ +00054950: 736c 6f67 220a 7665 7273 696f 6e20 3d20  slog".version = 
│ │ │ +00054960: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation OS │ │ │ -00055be0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -00055bf0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00055c00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ -00055c40: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00055c50: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -00055c60: 3d20 5b22 7273 7973 6c6f 6722 5d0a 3c2f  = ["rsyslog"].
Rem │ │ │ -00055d20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00055d30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00055d40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +00054730: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00054740: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00054780: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00054790: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00055dc0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00055dd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00055df0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00055e10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00055e20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00055e60: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00055e70: 6520 656e 6162 6c65 5f72 7379 736c 6f67 e enable_rsyslog │ │ │ -00055e80: 0a0a 636c 6173 7320 656e 6162 6c65 5f72 ..class enable_r │ │ │ -00055e90: 7379 736c 6f67 207b 0a20 2073 6572 7669 syslog {. servi │ │ │ -00055ea0: 6365 207b 2772 7379 736c 6f67 273a 0a20 ce {'rsyslog':. │ │ │ -00055eb0: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ -00055ec0: 7472 7565 2c0a 2020 2020 656e 7375 7265 true,. ensure │ │ │ -00055ed0: 203d 2667 743b 2027 7275 6e6e 696e 6727 => 'running' │ │ │ -00055ee0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00055ef0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediati │ │ │ -00055fa0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00055fb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00056030: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00056040: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00056060: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00056070: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00056090: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000560b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000560e0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000560f0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00056100: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00056110: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00056120: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00056130: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00056140: 2d41 552d 3428 3129 0a20 202d 204e 4953  -AU-4(1).  - NIS
│ │ │ -00056150: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00056160: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00056170: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00056180: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00056190: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000561a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000561b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000561c0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -000561d0: 7273 7973 6c6f 675f 656e 6162 6c65 640a  rsyslog_enabled.
│ │ │ -000561e0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -000561f0: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -00056200: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00056210: 2072 7379 736c 6f67 0a20 2062 6c6f 636b   rsyslog.  block
│ │ │ -00056220: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -00056230: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00056240: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -00056250: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00056260: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00056270: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00056280: 2d20 6e61 6d65 3a20 456e 6162 6c65 2072  - name: Enable r
│ │ │ -00056290: 7379 736c 6f67 2053 6572 7669 6365 202d  syslog Service -
│ │ │ -000562a0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ -000562b0: 7273 7973 6c6f 670a 2020 2020 616e 7369  rsyslog.    ansi
│ │ │ -000562c0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -000562d0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -000562e0: 2072 7379 736c 6f67 0a20 2020 2020 2065   rsyslog.      e
│ │ │ -000562f0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00056300: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -00056310: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00056320: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00056330: 2020 2020 2d20 2722 7273 7973 6c6f 6722      - '"rsyslog"
│ │ │ -00056340: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00056350: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -00056360: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00056370: 2d35 332d 4155 2d34 2831 290a 2020 2d20  -53-AU-4(1).  - 
│ │ │ -00056380: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00056390: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -000563a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000563b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000563c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000563d0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000563e0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000563f0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00056400: 6365 5f72 7379 736c 6f67 5f65 6e61 626c  ce_rsyslog_enabl
│ │ │ -00056410: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00056420: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00056430: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00056440: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00056450: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation An
│ │ │ +00055be0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +00055bf0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
Complexity: │ │ │ +00055cc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00055cd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00055d20: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00055d30: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00055d40: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00055d50: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00055d60: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00055d70: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +00055d80: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +00055d90: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +00055da0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00055db0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00055dc0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00055dd0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00055de0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00055df0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00055e00: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +00055e10: 6f67 5f65 6e61 626c 6564 0a0a 2d20 6e61  og_enabled..- na
│ │ │ +00055e20: 6d65 3a20 456e 6162 6c65 2072 7379 736c  me: Enable rsysl
│ │ │ +00055e30: 6f67 2053 6572 7669 6365 202d 2045 6e61  og Service - Ena
│ │ │ +00055e40: 626c 6520 7365 7276 6963 6520 7273 7973  ble service rsys
│ │ │ +00055e50: 6c6f 670a 2020 626c 6f63 6b3a 0a0a 2020  log.  block:..  
│ │ │ +00055e60: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00055e70: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00055e80: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00055e90: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ +00055ea0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ +00055eb0: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ +00055ec0: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ +00055ed0: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ +00055ee0: 6c65 2053 6572 7669 6365 2072 7379 736c  le Service rsysl
│ │ │ +00055ef0: 6f67 0a20 2020 2061 6e73 6962 6c65 2e62  og.    ansible.b
│ │ │ +00055f00: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00055f10: 2020 2020 2020 6e61 6d65 3a20 7273 7973        name: rsys
│ │ │ +00055f20: 6c6f 670a 2020 2020 2020 656e 6162 6c65  log.      enable
│ │ │ +00055f30: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +00055f40: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +00055f50: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +00055f60: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +00055f70: 2027 2272 7379 736c 6f67 2220 696e 2061   '"rsyslog" in a
│ │ │ +00055f80: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00055f90: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00055fa0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ +00055fb0: 552d 3428 3129 0a20 202d 204e 4953 542d  U-4(1).  - NIST-
│ │ │ +00055fc0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00055fd0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00055fe0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00055ff0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00056000: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00056010: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00056020: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00056030: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ +00056040: 7973 6c6f 675f 656e 6162 6c65 640a 2020  yslog_enabled.  
│ │ │ +00056050: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +00056060: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +00056070: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +00056080: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00056090: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +000560a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediat │ │ │ +00056150: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00056160: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +000561e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ +00056220: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disru │ │ │ +00055ca0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00055cb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00055cf0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00055d00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +000561f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00056210: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00056240: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00056260: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00056290: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ +000562a0: 626c 655f 7273 7973 6c6f 670a 0a63 6c61  ble_rsyslog..cla
│ │ │ +000562b0: 7373 2065 6e61 626c 655f 7273 7973 6c6f  ss enable_rsyslo
│ │ │ +000562c0: 6720 7b0a 2020 7365 7276 6963 6520 7b27  g {.  service {'
│ │ │ +000562d0: 7273 7973 6c6f 6727 3a0a 2020 2020 656e  rsyslog':.    en
│ │ │ +000562e0: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +000562f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00056300: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +00056310: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00056320: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation OS │ │ │ +000563d0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000563e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000563f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[c
│ │ │ +00056430: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00056440: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ +00056450: 3d20 5b22 7273 7973 6c6f 6722 5d0a 3c2f  = ["rsyslog"].
Remediat │ │ │ -00078980: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00078990: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000789a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000789f0: 5d0a 6e61 6d65 203d 2022 6372 6f6e 220a  ].name = "cron".
│ │ │ -00078a00: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Re │ │ │ -00078ac0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00078ad0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00078ae0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00078b80: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00078bd0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00078b60: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00078b90: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00078bb0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00078bc0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00078be0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00078bf0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00078c10: 7564 6520 696e 7374 616c 6c5f 6372 6f6e  ude install_cron
│ │ │ -00078c20: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ -00078c30: 6372 6f6e 207b 0a20 2070 6163 6b61 6765  cron {.  package
│ │ │ -00078c40: 207b 2027 6372 6f6e 273a 0a20 2020 2065   { 'cron':.    e
│ │ │ -00078c50: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -00078c60: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -00078c70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00078d20: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00078d30: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -00078dd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00078e70: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00078e80: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00078e90: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00078ea0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00078eb0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00078ec0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00078ed0: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -00078ee0: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00078ef0: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ -00078f00: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00078f10: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00078f20: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00078f30: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00078f40: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00078f50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00078f60: 6163 6b61 6765 5f63 726f 6e5f 696e 7374  ackage_cron_inst
│ │ │ -00078f70: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -00078f80: 6e73 7572 6520 6372 6f6e 2069 7320 696e  nsure cron is in
│ │ │ -00078f90: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -00078fa0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00078fb0: 653a 0a20 2020 206e 616d 653a 2063 726f  e:.    name: cro
│ │ │ -00078fc0: 6e0a 2020 2020 7374 6174 653a 2070 7265  n.    state: pre
│ │ │ -00078fd0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -00078fe0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00078ff0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00079000: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -00079010: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00079020: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -00079030: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00079040: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -00079050: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00079060: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00079070: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00079080: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00079090: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000790a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000790b0: 202d 2070 6163 6b61 6765 5f63 726f 6e5f   - package_cron_
│ │ │ -000790c0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +000789a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000789b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000789c0: 7365 2220 6964 3d22 6964 3131 3122 3e3c se" id="id111">< │ │ │ +000789d0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000789e0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000789f0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00078a00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00078a10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00078aa0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00078ab0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -00078dc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00078df0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00078e00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00078e40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00078e50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +00078a20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00078a30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00078a70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00078a80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +00078ad0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00078ae0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00078af0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00078b00: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00078b10: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00078b20: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +00078b30: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ +00078b40: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ +00078b50: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00078b60: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00078b70: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00078b80: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00078b90: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00078ba0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00078bb0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00078bc0: 6372 6f6e 5f69 6e73 7461 6c6c 6564 0a0a  cron_installed..
│ │ │ +00078bd0: 2d20 6e61 6d65 3a20 456e 7375 7265 2063  - name: Ensure c
│ │ │ +00078be0: 726f 6e20 6973 2069 6e73 7461 6c6c 6564  ron is installed
│ │ │ +00078bf0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00078c00: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00078c10: 6e61 6d65 3a20 6372 6f6e 0a20 2020 2073  name: cron.    s
│ │ │ +00078c20: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00078c30: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00078c40: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00078c50: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00078c60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00078c70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00078c80: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00078c90: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00078ca0: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ +00078cb0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00078cc0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00078cd0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00078ce0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00078cf0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00078d00: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00078d10: 6167 655f 6372 6f6e 5f69 6e73 7461 6c6c  age_cron_install
│ │ │ +00078d20: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00078d30: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00078de0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00078df0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00078e70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00078e90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00078ee0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00078f30: 5f63 726f 6e0a 0a63 6c61 7373 2069 6e73  _cron..class ins
│ │ │ +00078f40: 7461 6c6c 5f63 726f 6e20 7b0a 2020 7061  tall_cron {.  pa
│ │ │ +00078f50: 636b 6167 6520 7b20 2763 726f 6e27 3a0a  ckage { 'cron':.
│ │ │ +00078f60: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00078f70: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +00078f80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00079040: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00079050: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000790a0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000790b0: 6d65 203d 2022 6372 6f6e 220a 7665 7273  me = "cron".vers
│ │ │ +000790c0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
R │ │ │ -0007a600: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0007a610: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00078ea0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00078eb0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00078ef0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00078f00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0007a6b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0007a6c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0007a710: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0007a750: 6e63 6c75 6465 2072 656d 6f76 655f 696e  nclude remove_in
│ │ │ -0007a760: 6574 7574 696c 732d 7465 6c6e 6574 640a  etutils-telnetd.
│ │ │ -0007a770: 0a63 6c61 7373 2072 656d 6f76 655f 696e  .class remove_in
│ │ │ -0007a780: 6574 7574 696c 732d 7465 6c6e 6574 6420  etutils-telnetd 
│ │ │ -0007a790: 7b0a 2020 7061 636b 6167 6520 7b20 2769  {.  package { 'i
│ │ │ -0007a7a0: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -0007a7b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -0007a7c0: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -0007a7d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -0007a890: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0007a8a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0007a970: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ -0007a6a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0007a6d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0007a6e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0007a720: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0007a730: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -0007a930: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0007a950: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0007a9a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0007a9b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0007a9e0: 6e73 7461 6c6c 2074 6865 2069 6e65 742d  nstall the inet-
│ │ │ -0007a9f0: 6261 7365 6420 7465 6c6e 6574 2073 6572  based telnet ser
│ │ │ -0007aa00: 7665 723a 2045 6e73 7572 6520 696e 6574  ver: Ensure inet
│ │ │ -0007aa10: 7574 696c 732d 7465 6c6e 6574 6420 6973  utils-telnetd is
│ │ │ -0007aa20: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0007aa30: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0007aa40: 6167 653a 0a20 2020 206e 616d 653a 2069  age:.    name: i
│ │ │ -0007aa50: 6e65 7475 7469 6c73 2d74 656c 6e65 7464  netutils-telnetd
│ │ │ -0007aa60: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -0007aa70: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -0007aa80: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0007aa90: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0007aaa0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0007aab0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0007aac0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -0007aad0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0007aae0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0007aaf0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0007ab00: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0007ab10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0007ab20: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0007ab30: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -0007ab40: 7464 5f72 656d 6f76 6564 0a3c 2f63 6f64  td_removed.
│ │ │ +0007a6b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0007a750: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0007a760: 6c20 7468 6520 696e 6574 2d62 6173 6564  l the inet-based
│ │ │ +0007a770: 2074 656c 6e65 7420 7365 7276 6572 3a20   telnet server: 
│ │ │ +0007a780: 456e 7375 7265 2069 6e65 7475 7469 6c73  Ensure inetutils
│ │ │ +0007a790: 2d74 656c 6e65 7464 2069 7320 7265 6d6f  -telnetd is remo
│ │ │ +0007a7a0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0007a7b0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0007a7c0: 2020 2020 6e61 6d65 3a20 696e 6574 7574      name: inetut
│ │ │ +0007a7d0: 696c 732d 7465 6c6e 6574 640a 2020 2020  ils-telnetd.    
│ │ │ +0007a7e0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0007a7f0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0007a800: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0007a810: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0007a820: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0007a830: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0007a840: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0007a850: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +0007a860: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +0007a870: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0007a880: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0007a890: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0007a8a0: 2020 2d20 7061 636b 6167 655f 696e 6574    - package_inet
│ │ │ +0007a8b0: 7574 696c 732d 7465 6c6e 6574 645f 7265  utils-telnetd_re
│ │ │ +0007a8c0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0007a980: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0007a990: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0007aa50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007aa60: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0007a6a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0007a6d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0007a6e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0007a720: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0007a730: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +0007aa20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0007aa40: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0007aa70: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0007aa90: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0007aac0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0007aad0: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ +0007aae0: 656c 6e65 7464 0a0a 636c 6173 7320 7265  elnetd..class re
│ │ │ +0007aaf0: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ +0007ab00: 656c 6e65 7464 207b 0a20 2070 6163 6b61  elnetd {.  packa
│ │ │ +0007ab10: 6765 207b 2027 696e 6574 7574 696c 732d  ge { 'inetutils-
│ │ │ +0007ab20: 7465 6c6e 6574 6427 3a0a 2020 2020 656e  telnetd':.    en
│ │ │ +0007ab30: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +0007ab40: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
│ │ │ -0007b660: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0007b670: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0007b710: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0007b7b0: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ -0007b7c0: 6973 0a0a 636c 6173 7320 7265 6d6f 7665  is..class remove
│ │ │ -0007b7d0: 5f6e 6973 207b 0a20 2070 6163 6b61 6765  _nis {.  package
│ │ │ -0007b7e0: 207b 2027 6e69 7327 3a0a 2020 2020 656e   { 'nis':.    en
│ │ │ -0007b7f0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0007b800: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -0007b8c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0007b8d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -0007b700: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0007b730: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0007b740: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0007b780: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0007b790: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -0007b960: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0007b970: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0007b990: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0007b9b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0007b9c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0007ba00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0007ba10: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ -0007ba20: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ -0007ba30: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ -0007ba40: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -0007ba50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0007ba60: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ -0007ba70: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0007ba80: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0007ba90: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0007baa0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0007bab0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0007bac0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0007bad0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0007bae0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0007baf0: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ -0007bb00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0007b660: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +0007b670: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +0007b680: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0007b750: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0007b760: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0007b7b0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0007b7c0: 6c6c 2074 6865 206e 6973 2070 6163 6b61  ll the nis packa
│ │ │ +0007b7d0: 6765 3a20 456e 7375 7265 206e 6973 2069  ge: Ensure nis i
│ │ │ +0007b7e0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0007b7f0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0007b800: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0007b810: 6e69 730a 2020 2020 7374 6174 653a 2061  nis.    state: a
│ │ │ +0007b820: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +0007b830: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0007b840: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0007b850: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0007b860: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +0007b870: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0007b880: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0007b890: 202d 2070 6163 6b61 6765 5f6e 6973 5f72   - package_nis_r
│ │ │ +0007b8a0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0007b960: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0007b970: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0007b9f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0007ba30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +0007b730: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007b740: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007b780: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007b790: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexit │ │ │ +0007ba00: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0007ba20: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0007ba50: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0007ba70: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0007baa0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0007bab0: 656d 6f76 655f 6e69 730a 0a63 6c61 7373  emove_nis..class
│ │ │ +0007bac0: 2072 656d 6f76 655f 6e69 7320 7b0a 2020   remove_nis {.  
│ │ │ +0007bad0: 7061 636b 6167 6520 7b20 276e 6973 273a  package { 'nis':
│ │ │ +0007bae0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0007baf0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0007bb00: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0007bb10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -0007c490: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -0007c4a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0007c570: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0007c580: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -0007c5e0: 5f6e 7470 6461 7465 0a0a 636c 6173 7320  _ntpdate..class 
│ │ │ -0007c5f0: 7265 6d6f 7665 5f6e 7470 6461 7465 207b  remove_ntpdate {
│ │ │ -0007c600: 0a20 2070 6163 6b61 6765 207b 2027 6e74  .  package { 'nt
│ │ │ -0007c610: 7064 6174 6527 3a0a 2020 2020 656e 7375  pdate':.    ensu
│ │ │ -0007c620: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0007c630: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0007c640: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0007c6f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0007c700: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0007c710: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0007c740: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -0007c550: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0007c560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0007c5a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0007c5b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0007c7b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0007c7d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0007c800: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0007c790: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0007c7a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0007c7e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0007c7f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0007c840: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ -0007c850: 6e74 7064 6174 6520 7061 636b 6167 653a ntpdate package: │ │ │ -0007c860: 2045 6e73 7572 6520 6e74 7064 6174 6520 Ensure ntpdate │ │ │ -0007c870: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -0007c880: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -0007c890: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -0007c8a0: 206e 7470 6461 7465 0a20 2020 2073 7461 ntpdate. sta │ │ │ -0007c8b0: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ -0007c8c0: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ -0007c8d0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -0007c8e0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -0007c8f0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -0007c900: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ -0007c910: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -0007c920: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ -0007c930: 6e74 7064 6174 655f 7265 6d6f 7665 640a ntpdate_removed. │ │ │ +0007c480: 223e 5265 6d65 6469 6174 696f 6e20 416e ">Remediation An │ │ │ +0007c490: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +0007c4a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

< │ │ │ +0007c520: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0007c540: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0007c590: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0007c5c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +0007c5e0: 7461 6c6c 2074 6865 206e 7470 6461 7465  tall the ntpdate
│ │ │ +0007c5f0: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ +0007c600: 206e 7470 6461 7465 2069 7320 7265 6d6f   ntpdate is remo
│ │ │ +0007c610: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0007c620: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0007c630: 2020 2020 6e61 6d65 3a20 6e74 7064 6174      name: ntpdat
│ │ │ +0007c640: 650a 2020 2020 7374 6174 653a 2061 6273  e.    state: abs
│ │ │ +0007c650: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +0007c660: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0007c670: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0007c680: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0007c690: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0007c6a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0007c6b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0007c6c0: 2070 6163 6b61 6765 5f6e 7470 6461 7465   package_ntpdate
│ │ │ +0007c6d0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +0007c6e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +0007c790: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0007c7a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0007c7b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0007c7c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0007c7d0: 7365 2220 6964 3d22 6964 3132 3522 3e3c se" id="id125">< │ │ │ +0007c7e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0007c7f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0007c800: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0007c810: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0007c820: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0007c8b0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0007c8c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +0007c550: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0007c560: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0007c5a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0007c5b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +0007c830: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0007c840: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0007c880: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0007c890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +0007c8e0: 2072 656d 6f76 655f 6e74 7064 6174 650a remove_ntpdate. │ │ │ +0007c8f0: 0a63 6c61 7373 2072 656d 6f76 655f 6e74 .class remove_nt │ │ │ +0007c900: 7064 6174 6520 7b0a 2020 7061 636b 6167 pdate {. packag │ │ │ +0007c910: 6520 7b20 276e 7470 6461 7465 273a 0a20 e { 'ntpdate':. │ │ │ +0007c920: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +0007c930: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 0007c940: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remedia │ │ │ -0007da10: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0007da20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0007da30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007da40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007da50: 7365 2220 6964 3d22 6964 3132 3822 3e3c se" id="id128">< │ │ │ -0007da60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007da70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007da80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007da90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007daa0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0007dab0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007dac0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0007db00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007db10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0007db30: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0007db40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -0007db60: 2072 656d 6f76 655f 7465 6c6e 6574 642d remove_telnetd- │ │ │ -0007db70: 7373 6c0a 0a63 6c61 7373 2072 656d 6f76 ssl..class remov │ │ │ -0007db80: 655f 7465 6c6e 6574 642d 7373 6c20 7b0a e_telnetd-ssl {. │ │ │ -0007db90: 2020 7061 636b 6167 6520 7b20 2774 656c package { 'tel │ │ │ -0007dba0: 6e65 7464 2d73 736c 273a 0a20 2020 2065 netd-ssl':. e │ │ │ -0007dbb0: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -0007dbc0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -0007dbe0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0007dbf0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0007dc00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0007dc10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0007dc20: 6431 3239 2220 7461 6269 6e64 6578 3d22 d129" tabindex=" │ │ │ -0007dc30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0007dc40: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0007dc50: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0007dc60: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0007dc70: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0007dc80: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0007dc90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0007dca0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0007dd20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0007dd50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0007dd70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0007dd80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0007dda0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0007ddb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0007ddd0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2074  me: 'Uninstall t
│ │ │ -0007dde0: 6865 2073 736c 2063 6f6d 706c 6961 6e74  he ssl compliant
│ │ │ -0007ddf0: 2074 656c 6e65 7420 7365 7276 6572 3a20   telnet server: 
│ │ │ -0007de00: 456e 7375 7265 2074 656c 6e65 7464 2d73  Ensure telnetd-s
│ │ │ -0007de10: 736c 2069 7320 7265 6d6f 7665 6427 0a20  sl is removed'. 
│ │ │ -0007de20: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0007de30: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0007de40: 6d65 3a20 7465 6c6e 6574 642d 7373 6c0a  me: telnetd-ssl.
│ │ │ -0007de50: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0007de60: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ -0007de70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0007de80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0007de90: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0007dea0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0007deb0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0007dec0: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ -0007ded0: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ -0007dee0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0007def0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0007df00: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0007df10: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0007df20: 7465 6c6e 6574 642d 7373 6c5f 7265 6d6f  telnetd-ssl_remo
│ │ │ -0007df30: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0007da30: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0007da60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0007dad0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0007daf0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0007db20: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0007dab0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0007dac0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0007db00: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0007db10: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0007db60: 2027 556e 696e 7374 616c 6c20 7468 6520 'Uninstall the │ │ │ +0007db70: 7373 6c20 636f 6d70 6c69 616e 7420 7465 ssl compliant te │ │ │ +0007db80: 6c6e 6574 2073 6572 7665 723a 2045 6e73 lnet server: Ens │ │ │ +0007db90: 7572 6520 7465 6c6e 6574 642d 7373 6c20 ure telnetd-ssl │ │ │ +0007dba0: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ +0007dbb0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +0007dbc0: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +0007dbd0: 2074 656c 6e65 7464 2d73 736c 0a20 2020 telnetd-ssl. │ │ │ +0007dbe0: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +0007dbf0: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +0007dc00: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +0007dc10: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0007dc20: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ +0007dc30: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ +0007dc40: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ +0007dc50: 6567 790a 2020 2d20 6869 6768 5f73 6576 egy. - high_sev │ │ │ +0007dc60: 6572 6974 790a 2020 2d20 6c6f 775f 636f erity. - low_co │ │ │ +0007dc70: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0007dc80: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0007dc90: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +0007dca0: 0a20 202d 2070 6163 6b61 6765 5f74 656c . - package_tel │ │ │ +0007dcb0: 6e65 7464 2d73 736c 5f72 656d 6f76 6564 netd-ssl_removed │ │ │ +0007dcc0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .Remediation Pup │ │ │ +0007dd80: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0007dd90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

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

│ │ │ +0007dec0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0007ded0: 7465 6c6e 6574 642d 7373 6c0a 0a63 6c61  telnetd-ssl..cla
│ │ │ +0007dee0: 7373 2072 656d 6f76 655f 7465 6c6e 6574  ss remove_telnet
│ │ │ +0007def0: 642d 7373 6c20 7b0a 2020 7061 636b 6167  d-ssl {.  packag
│ │ │ +0007df00: 6520 7b20 2774 656c 6e65 7464 2d73 736c  e { 'telnetd-ssl
│ │ │ +0007df10: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0007df20: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0007df30: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation Pup │ │ │ -0007f010: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0007f020: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +0007de40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0007de50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0007de90: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0007dea0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -0007f0f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0007f100: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0007f150: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0007f160: 7465 6c6e 6574 640a 0a63 6c61 7373 2072  telnetd..class r
│ │ │ -0007f170: 656d 6f76 655f 7465 6c6e 6574 6420 7b0a  emove_telnetd {.
│ │ │ -0007f180: 2020 7061 636b 6167 6520 7b20 2774 656c    package { 'tel
│ │ │ -0007f190: 6e65 7464 273a 0a20 2020 2065 6e73 7572  netd':.    ensur
│ │ │ -0007f1a0: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -0007f1b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0007f1c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -0007f270: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -0007f280: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0007f290: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0007f2a0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0007f2b0: 7365 2220 6964 3d22 6964 3133 3322 3e3c se" id="id133">< │ │ │ -0007f2c0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0007f2d0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0007f2e0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0007f2f0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0007f300: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0007f390: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0007f3a0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -0007f0d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0007f0e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0007f120: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0007f130: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0007f310: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0007f320: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0007f360: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0007f370: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -0007f3c0: 2755 6e69 6e73 7461 6c6c 2074 6865 2074 'Uninstall the t │ │ │ -0007f3d0: 656c 6e65 7420 7365 7276 6572 3a20 456e elnet server: En │ │ │ -0007f3e0: 7375 7265 2074 656c 6e65 7464 2069 7320 sure telnetd is │ │ │ -0007f3f0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ -0007f400: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -0007f410: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465 ge:. name: te │ │ │ -0007f420: 6c6e 6574 640a 2020 2020 7374 6174 653a lnetd. state: │ │ │ -0007f430: 2061 6273 656e 740a 2020 7461 6773 3a0a absent. tags:. │ │ │ -0007f440: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0007f450: 434d 2d36 2861 290a 2020 2d20 4e49 5354 CM-6(a). - NIST │ │ │ -0007f460: 2d38 3030 2d35 332d 434d 2d37 2861 290a -800-53-CM-7(a). │ │ │ -0007f470: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ -0007f480: 434d 2d37 2862 290a 2020 2d20 6469 7361 CM-7(b). - disa │ │ │ -0007f490: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -0007f4a0: 2068 6967 685f 7365 7665 7269 7479 0a20 high_severity. │ │ │ -0007f4b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -0007f4c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -0007f4d0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -0007f4e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -0007f4f0: 636b 6167 655f 7465 6c6e 6574 645f 7265 ckage_telnetd_re │ │ │ -0007f500: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

Remediation Ans │ │ │ +0007f010: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0007f020: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0007f0f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0007f100: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +0007f160: 616c 6c20 7468 6520 7465 6c6e 6574 2073  all the telnet s
│ │ │ +0007f170: 6572 7665 723a 2045 6e73 7572 6520 7465  erver: Ensure te
│ │ │ +0007f180: 6c6e 6574 6420 6973 2072 656d 6f76 6564  lnetd is removed
│ │ │ +0007f190: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0007f1a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0007f1b0: 206e 616d 653a 2074 656c 6e65 7464 0a20   name: telnetd. 
│ │ │ +0007f1c0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0007f1d0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0007f1e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0007f1f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0007f200: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0007f210: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0007f220: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0007f230: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0007f240: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0007f250: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0007f260: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0007f270: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0007f280: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ +0007f290: 656c 6e65 7464 5f72 656d 6f76 6564 0a3c  elnetd_removed.<
│ │ │ +0007f2a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0007f350: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0007f360: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ +0007f0d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0007f0e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0007f120: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0007f130: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +0007f400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0007f410: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0007f460: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0007f4a0: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ +0007f4b0: 6c6e 6574 640a 0a63 6c61 7373 2072 656d  lnetd..class rem
│ │ │ +0007f4c0: 6f76 655f 7465 6c6e 6574 6420 7b0a 2020  ove_telnetd {.  
│ │ │ +0007f4d0: 7061 636b 6167 6520 7b20 2774 656c 6e65  package { 'telne
│ │ │ +0007f4e0: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ +0007f4f0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +0007f500: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Re │ │ │ -00081430: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00081440: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00081450: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00081460: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00081470: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00081480: 7365 2220 6964 3d22 6964 3133 3622 3e3c se" id="id136">< │ │ │ -00081490: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000814a0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000814b0: 6e74 7022 0a76 6572 7369 6f6e 203d 2022 ntp".version = " │ │ │ -000814c0: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *".
│ │ │ -000814d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ -00081580: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00081590: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +0007f3f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0007f420: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0007f430: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0007f470: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0007f480: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00081610: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00081630: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00081680: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -000816d0: 5f6e 7470 0a0a 636c 6173 7320 696e 7374  _ntp..class inst
│ │ │ -000816e0: 616c 6c5f 6e74 7020 7b0a 2020 7061 636b  all_ntp {.  pack
│ │ │ -000816f0: 6167 6520 7b20 276e 7470 273a 0a20 2020  age { 'ntp':.   
│ │ │ -00081700: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -00081710: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -00081720: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000817e0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000817f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -00081640: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00081650: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00081690: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000816a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -000818c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000818d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00081920: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00081930: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00081940: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00081950: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00081960: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00081970: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00081980: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -00081990: 5265 712d 3130 2e34 0a20 202d 2065 6e61  Req-10.4.  - ena
│ │ │ -000819a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -000819b0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ -000819c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000819d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000819e0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -000819f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00081a00: 636b 6167 655f 6e74 705f 696e 7374 616c  ckage_ntp_instal
│ │ │ -00081a10: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ -00081a20: 7572 6520 6e74 7020 6973 2069 6e73 7461  ure ntp is insta
│ │ │ -00081a30: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -00081a40: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00081a50: 2020 2020 6e61 6d65 3a20 6e74 700a 2020      name: ntp.  
│ │ │ -00081a60: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -00081a70: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00081a80: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00081a90: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00081aa0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -00081ab0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00081ac0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00081ad0: 712d 3130 2e34 0a20 202d 2065 6e61 626c  q-10.4.  - enabl
│ │ │ -00081ae0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00081af0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00081b00: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00081b10: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00081b20: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00081b30: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00081b40: 6167 655f 6e74 705f 696e 7374 616c 6c65  age_ntp_installe
│ │ │ -00081b50: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00081430: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +00081440: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -000818a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000818b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000818f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00081900: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000814e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000814f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00081540: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00081580: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00081590: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000815a0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000815b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000815c0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000815d0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000815e0: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ +000815f0: 2d31 302e 340a 2020 2d20 656e 6162 6c65  -10.4.  - enable
│ │ │ +00081600: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +00081610: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +00081620: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00081630: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00081640: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00081650: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00081660: 6765 5f6e 7470 5f69 6e73 7461 6c6c 6564  ge_ntp_installed
│ │ │ +00081670: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +00081680: 206e 7470 2069 7320 696e 7374 616c 6c65   ntp is installe
│ │ │ +00081690: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +000816a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +000816b0: 206e 616d 653a 206e 7470 0a20 2020 2073   name: ntp.    s
│ │ │ +000816c0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000816d0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000816e0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000816f0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00081700: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00081710: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00081720: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ +00081730: 302e 340a 2020 2d20 656e 6162 6c65 5f73  0.4.  - enable_s
│ │ │ +00081740: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +00081750: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +00081760: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00081770: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00081780: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00081790: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +000817a0: 5f6e 7470 5f69 6e73 7461 6c6c 6564 0a3c  _ntp_installed.<
│ │ │ +000817b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00081860: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00081870: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +000814d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00081500: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00081510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00081550: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00081560: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00081910: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00081920: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00081970: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +000819b0: 6c75 6465 2069 6e73 7461 6c6c 5f6e 7470  lude install_ntp
│ │ │ +000819c0: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +000819d0: 6e74 7020 7b0a 2020 7061 636b 6167 6520  ntp {.  package 
│ │ │ +000819e0: 7b20 276e 7470 273a 0a20 2020 2065 6e73  { 'ntp':.    ens
│ │ │ +000819f0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +00081a00: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +00081a20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00081ac0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00081ad0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00081ae0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +00081b30: 6167 6573 5d5d 0a6e 616d 6520 3d20 226e ages]].name = "n │ │ │ +00081b40: 7470 220a 7665 7273 696f 6e20 3d20 222a tp".version = "* │ │ │ +00081b50: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 00081b60: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Reme │ │ │ -00082cf0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00082d00: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00082d10: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -00082d60: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00082d70: 735d 0a65 6e61 626c 6564 203d 205b 226e s].enabled = ["n │ │ │ -00082d80: 7470 225d 0a3c 2f63 6f64 653e 3c2f 7072 tp"].Remediation │ │ │ -00082e40: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00082e50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...

low< │ │ │ -00082f20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00082f70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
C │ │ │ +00081900: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00081930: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00081940: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00081980: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00081990: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -00082ee0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00082f00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00082f50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00082f60: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ -00082f90: 655f 6e74 700a 0a63 6c61 7373 2065 6e61  e_ntp..class ena
│ │ │ -00082fa0: 626c 655f 6e74 7020 7b0a 2020 7365 7276  ble_ntp {.  serv
│ │ │ -00082fb0: 6963 6520 7b27 6e74 7027 3a0a 2020 2020  ice {'ntp':.    
│ │ │ -00082fc0: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -00082fd0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00082fe0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -00082ff0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000830b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000830c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00083150: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00083170: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00083180: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00083190: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000831a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000831c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -00083200: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00083210: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00083220: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00083230: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00083240: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00083250: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ -00083260: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00083270: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -00083280: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ -00083290: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ -000832a0: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ -000832b0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000832c0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -000832d0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -000832e0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000832f0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00083300: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00083310: 0a20 202d 2073 6572 7669 6365 5f6e 7470  .  - service_ntp
│ │ │ -00083320: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -00083330: 3a20 456e 6162 6c65 2074 6865 204e 5450  : Enable the NTP
│ │ │ -00083340: 2044 6165 6d6f 6e20 2d20 456e 6162 6c65   Daemon - Enable
│ │ │ -00083350: 2073 6572 7669 6365 206e 7470 0a20 2062   service ntp.  b
│ │ │ -00083360: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00083370: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -00083380: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -00083390: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000833a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000833b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000833c0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -000833d0: 6c65 2074 6865 204e 5450 2044 6165 6d6f  le the NTP Daemo
│ │ │ -000833e0: 6e20 2d20 456e 6162 6c65 2053 6572 7669  n - Enable Servi
│ │ │ -000833f0: 6365 206e 7470 0a20 2020 2061 6e73 6962  ce ntp.    ansib
│ │ │ -00083400: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00083410: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00083420: 6e74 700a 2020 2020 2020 656e 6162 6c65  ntp.      enable
│ │ │ -00083430: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -00083440: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -00083450: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -00083460: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -00083470: 2027 226e 7470 2220 696e 2061 6e73 6962   '"ntp" in ansib
│ │ │ -00083480: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00083490: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -000834a0: 4953 542d 3830 302d 3533 2d41 552d 3828  IST-800-53-AU-8(
│ │ │ -000834b0: 3129 2861 290a 2020 2d20 4e49 5354 2d38  1)(a).  - NIST-8
│ │ │ -000834c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -000834d0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -000834e0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ -000834f0: 2d31 302e 360a 2020 2d20 5043 492d 4453  -10.6.  - PCI-DS
│ │ │ -00083500: 5376 342d 3130 2e36 2e31 0a20 202d 2065  Sv4-10.6.1.  - e
│ │ │ -00083510: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00083520: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -00083530: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00083540: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00083550: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00083560: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00083570: 7365 7276 6963 655f 6e74 705f 656e 6162  service_ntp_enab
│ │ │ -00083580: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00083590: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000835a0: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ -000835b0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -000835c0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -000835d0: 7327 0a20 202d 2027 226e 7470 2220 696e  s'.  - '"ntp" in
│ │ │ -000835e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000835f0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00082cf0: 6469 6174 696f 6e20 416e 7369 626c 6520  diation Ansible 
│ │ │ +00082d00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c  snippet ...<
│ │ │ +00082d10: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +00082d90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00082dc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00082de0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00082df0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00082e10: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00082e30: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00082e40: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00082e50: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00082e60: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00082e70: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00082e80: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00082e90: 3830 302d 3533 2d41 552d 3828 3129 2861  800-53-AU-8(1)(a
│ │ │ +00082ea0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00082eb0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00082ec0: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +00082ed0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00082ee0: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +00082ef0: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +00082f00: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +00082f10: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +00082f20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00082f30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00082f40: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00082f50: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00082f60: 6963 655f 6e74 705f 656e 6162 6c65 640a  ice_ntp_enabled.
│ │ │ +00082f70: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ +00082f80: 7468 6520 4e54 5020 4461 656d 6f6e 202d  the NTP Daemon -
│ │ │ +00082f90: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00082fa0: 6e74 700a 2020 626c 6f63 6b3a 0a0a 2020  ntp.  block:..  
│ │ │ +00082fb0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00082fc0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00082fd0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00082fe0: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ +00082ff0: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ +00083000: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ +00083010: 653a 2045 6e61 626c 6520 7468 6520 4e54  e: Enable the NT
│ │ │ +00083020: 5020 4461 656d 6f6e 202d 2045 6e61 626c  P Daemon - Enabl
│ │ │ +00083030: 6520 5365 7276 6963 6520 6e74 700a 2020  e Service ntp.  
│ │ │ +00083040: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00083050: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00083060: 206e 616d 653a 206e 7470 0a20 2020 2020   name: ntp.     
│ │ │ +00083070: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +00083080: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +00083090: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +000830a0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +000830b0: 3a0a 2020 2020 2d20 2722 6e74 7022 2069  :.    - '"ntp" i
│ │ │ +000830c0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000830d0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +000830e0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000830f0: 332d 4155 2d38 2831 2928 6129 0a20 202d  3-AU-8(1)(a).  -
│ │ │ +00083100: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00083110: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00083120: 2d52 6571 2d31 302e 340a 2020 2d20 5043  -Req-10.4.  - PC
│ │ │ +00083130: 492d 4453 5376 342d 3130 2e36 0a20 202d  I-DSSv4-10.6.  -
│ │ │ +00083140: 2050 4349 2d44 5353 7634 2d31 302e 362e   PCI-DSSv4-10.6.
│ │ │ +00083150: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00083160: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +00083170: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +00083180: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00083190: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000831a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +000831b0: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +000831c0: 7470 5f65 6e61 626c 6564 0a20 202d 2073  tp_enabled.  - s
│ │ │ +000831d0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +000831e0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ +000831f0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00083200: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00083210: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ +00083220: 6e74 7022 2069 6e20 616e 7369 626c 655f  ntp" in ansible_
│ │ │ +00083230: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00083240: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +000832f0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00083300: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000833a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00083440: 636c 7564 6520 656e 6162 6c65 5f6e 7470  clude enable_ntp
│ │ │ +00083450: 0a0a 636c 6173 7320 656e 6162 6c65 5f6e  ..class enable_n
│ │ │ +00083460: 7470 207b 0a20 2073 6572 7669 6365 207b  tp {.  service {
│ │ │ +00083470: 276e 7470 273a 0a20 2020 2065 6e61 626c  'ntp':.    enabl
│ │ │ +00083480: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00083490: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +000834a0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +000834b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00083560: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00083570: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00083580: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +000835d0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +000835e0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +000835f0: 205b 226e 7470 225d 0a3c 2f63 6f64 653e   ["ntp"].
│ │ │  00083600: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00091c90: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00091ca0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00091cb0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -00091cf0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -00091d00: 735d 5d0a 6e61 6d65 203d 2022 6175 6469  s]].name = "audi
│ │ │ -00091d10: 7464 220a 7665 7273 696f 6e20 3d20 222a  td".version = "*
│ │ │ -00091d20: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -00091d30: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -00091de0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00091df0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +00083390: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000833c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000833d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00083410: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00083420: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -00091ec0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00091ed0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00091f20: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -00091f30: 6175 6469 7464 0a0a 636c 6173 7320 696e  auditd..class in
│ │ │ -00091f40: 7374 616c 6c5f 6175 6469 7464 207b 0a20  stall_auditd {. 
│ │ │ -00091f50: 2070 6163 6b61 6765 207b 2027 6175 6469   package { 'audi
│ │ │ -00091f60: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ -00091f70: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -00091f80: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00091f90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00092040: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00092050: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00092060: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00092090: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ -00091ea0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00091eb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00091ef0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00091f00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00092100: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00092120: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00092150: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00092170: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000920e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000920f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00092130: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00092140: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00092190: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -000921a0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -000921b0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -000921c0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -000921d0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -000921e0: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ -000921f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ -00092200: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ -00092210: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ -00092220: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ -00092230: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00092240: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ -00092250: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ -00092260: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ -00092270: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ -00092280: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ -00092290: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ -000922a0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -000922b0: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ -000922c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ -000922d0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ -000922e0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ -000922f0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ -00092300: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ -00092310: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ -00092320: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ -00092330: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 talled..- name: │ │ │ -00092340: 456e 7375 7265 2061 7564 6974 6420 6973 Ensure auditd is │ │ │ -00092350: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ -00092360: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00092370: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -00092380: 6175 6469 7464 0a20 2020 2073 7461 7465 auditd. state │ │ │ -00092390: 3a20 7072 6573 656e 740a 2020 7768 656e : present. when │ │ │ -000923a0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -000923b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -000923c0: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ -000923d0: 733a 0a20 202d 204e 4953 542d 3830 302d s:. - NIST-800- │ │ │ -000923e0: 3533 2d41 432d 3728 6129 0a20 202d 204e 53-AC-7(a). - N │ │ │ -000923f0: 4953 542d 3830 302d 3533 2d41 552d 3132 IST-800-53-AU-12 │ │ │ -00092400: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ -00092410: 2d35 332d 4155 2d31 340a 2020 2d20 4e49 -53-AU-14. - NI │ │ │ -00092420: 5354 2d38 3030 2d35 332d 4155 2d32 2861 ST-800-53-AU-2(a │ │ │ -00092430: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00092440: 332d 4155 2d37 2831 290a 2020 2d20 4e49 3-AU-7(1). - NI │ │ │ -00092450: 5354 2d38 3030 2d35 332d 4155 2d37 2832 ST-800-53-AU-7(2 │ │ │ -00092460: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00092470: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ -00092480: 492d 4453 532d 5265 712d 3130 2e31 0a20 I-DSS-Req-10.1. │ │ │ -00092490: 202d 2050 4349 2d44 5353 7634 2d31 302e - PCI-DSSv4-10. │ │ │ -000924a0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ -000924b0: 3130 2e32 2e31 0a20 202d 2065 6e61 626c 10.2.1. - enabl │ │ │ -000924c0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -000924d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -000924e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -000924f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00092500: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00092510: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00092520: 636b 6167 655f 6175 6469 745f 696e 7374 ckage_audit_inst │ │ │ -00092530: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


│ │ │ +00091d50: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00091d70: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00091da0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00091d30: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00091d40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00091d60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00091d80: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00091d90: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +00091de0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00091df0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00091e00: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00091e10: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00091e20: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00091e30: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ +00091e40: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ +00091e50: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ +00091e60: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ +00091e70: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ +00091e80: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +00091e90: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ +00091ea0: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ +00091eb0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ +00091ec0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00091ed0: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ +00091ee0: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ +00091ef0: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ +00091f00: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ +00091f10: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +00091f20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +00091f30: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +00091f40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +00091f50: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +00091f60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +00091f70: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ +00091f80: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +00091f90: 2045 6e73 7572 6520 6175 6469 7464 2069 Ensure auditd i │ │ │ +00091fa0: 7320 696e 7374 616c 6c65 640a 2020 616e s installed. an │ │ │ +00091fb0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +00091fc0: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +00091fd0: 2061 7564 6974 640a 2020 2020 7374 6174 auditd. stat │ │ │ +00091fe0: 653a 2070 7265 7365 6e74 0a20 2077 6865 e: present. whe │ │ │ +00091ff0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +00092000: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +00092010: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +00092020: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00092030: 2d35 332d 4143 2d37 2861 290a 2020 2d20 -53-AC-7(a). - │ │ │ +00092040: 4e49 5354 2d38 3030 2d35 332d 4155 2d31 NIST-800-53-AU-1 │ │ │ +00092050: 3228 3229 0a20 202d 204e 4953 542d 3830 2(2). - NIST-80 │ │ │ +00092060: 302d 3533 2d41 552d 3134 0a20 202d 204e 0-53-AU-14. - N │ │ │ +00092070: 4953 542d 3830 302d 3533 2d41 552d 3228 IST-800-53-AU-2( │ │ │ +00092080: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +00092090: 3533 2d41 552d 3728 3129 0a20 202d 204e 53-AU-7(1). - N │ │ │ +000920a0: 4953 542d 3830 302d 3533 2d41 552d 3728 IST-800-53-AU-7( │ │ │ +000920b0: 3229 0a20 202d 204e 4953 542d 3830 302d 2). - NIST-800- │ │ │ +000920c0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050 53-CM-6(a). - P │ │ │ +000920d0: 4349 2d44 5353 2d52 6571 2d31 302e 310a CI-DSS-Req-10.1. │ │ │ +000920e0: 2020 2d20 5043 492d 4453 5376 342d 3130 - PCI-DSSv4-10 │ │ │ +000920f0: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ +00092100: 2d31 302e 322e 310a 2020 2d20 656e 6162 -10.2.1. - enab │ │ │ +00092110: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +00092120: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +00092130: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +00092140: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +00092150: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +00092160: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +00092170: 6163 6b61 6765 5f61 7564 6974 5f69 6e73 ackage_audit_ins │ │ │ +00092180: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +00092240: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00092250: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000922d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000922e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00092300: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00092310: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00092330: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00092350: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00092380: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +00092390: 7461 6c6c 5f61 7564 6974 640a 0a63 6c61  tall_auditd..cla
│ │ │ +000923a0: 7373 2069 6e73 7461 6c6c 5f61 7564 6974  ss install_audit
│ │ │ +000923b0: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +000923c0: 2761 7564 6974 6427 3a0a 2020 2020 656e  'auditd':.    en
│ │ │ +000923d0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000923e0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000924a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000924b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000924c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000924d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000924e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000924f0: 7365 2220 6964 3d22 6964 3136 3322 3e3c se" id="id163">< │ │ │ +00092500: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +00092510: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +00092520: 6175 6469 7464 220a 7665 7273 696f 6e20 auditd".version │ │ │ +00092530: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

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

.[custo │ │ │ -00094240: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00094250: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -00094260: 6175 6469 7464 225d 0a3c 2f63 6f64 653e auditd"]. │ │ │ -00094270: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -00094320: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00094330: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00094340: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00094350: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00094360: 7365 2220 6964 3d22 6964 3136 3722 3e3c se" id="id167">< │ │ │ -00094370: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00094380: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00094390: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000943a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000943b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000943c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000943d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00094410: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00094420: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00094440: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00094450: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -00094470: 6e61 626c 655f 6175 6469 7464 0a0a 636c  nable_auditd..cl
│ │ │ -00094480: 6173 7320 656e 6162 6c65 5f61 7564 6974  ass enable_audit
│ │ │ -00094490: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -000944a0: 6175 6469 7464 273a 0a20 2020 2065 6e61  auditd':.    ena
│ │ │ -000944b0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -000944c0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -000944d0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -000944e0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -000944f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -000945a0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -000945b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00094630: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00094650: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -000946a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -000946f0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00094700: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00094710: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00094720: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00094730: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ -00094740: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -00094750: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ -00094760: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ -00094770: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -00094780: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ -00094790: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ -000947a0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -000947b0: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ -000947c0: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ -000947d0: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ -000947e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -000947f0: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ -00094800: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ -00094810: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ -00094820: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ -00094830: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00094840: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00094850: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ -00094860: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -00094870: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -00094880: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00094890: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -000948a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000948b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000948c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000948d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000948e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000948f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00094900: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ -00094910: 6c65 640a 0a2d 206e 616d 653a 2045 6e61  led..- name: Ena
│ │ │ -00094920: 626c 6520 6175 6469 7464 2053 6572 7669  ble auditd Servi
│ │ │ -00094930: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ -00094940: 6963 6520 6175 6469 7464 0a20 2062 6c6f  ice auditd.  blo
│ │ │ -00094950: 636b 3a0a 0a20 202d 206e 616d 653a 2047  ck:..  - name: G
│ │ │ -00094960: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00094970: 6520 6661 6374 730a 2020 2020 616e 7369  e facts.    ansi
│ │ │ -00094980: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00094990: 6167 655f 6661 6374 733a 0a20 2020 2020  age_facts:.     
│ │ │ -000949a0: 206d 616e 6167 6572 3a20 6175 746f 0a0a   manager: auto..
│ │ │ -000949b0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65    - name: Enable
│ │ │ -000949c0: 2061 7564 6974 6420 5365 7276 6963 6520   auditd Service 
│ │ │ -000949d0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -000949e0: 2061 7564 6974 640a 2020 2020 616e 7369   auditd.    ansi
│ │ │ -000949f0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00094a00: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00094a10: 2061 7564 6974 640a 2020 2020 2020 656e   auditd.      en
│ │ │ -00094a20: 6162 6c65 643a 2074 7275 650a 2020 2020  abled: true.    
│ │ │ -00094a30: 2020 7374 6174 653a 2073 7461 7274 6564    state: started
│ │ │ -00094a40: 0a20 2020 2020 206d 6173 6b65 643a 2066  .      masked: f
│ │ │ -00094a50: 616c 7365 0a20 2020 2077 6865 6e3a 0a20  alse.    when:. 
│ │ │ -00094a60: 2020 202d 2027 2261 7564 6974 6422 2069     - '"auditd" i
│ │ │ -00094a70: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00094a80: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -00094a90: 3a0a 2020 2d20 434a 4953 2d35 2e34 2e31  :.  - CJIS-5.4.1
│ │ │ -00094aa0: 2e31 0a20 202d 204e 4953 542d 3830 302d  .1.  - NIST-800-
│ │ │ -00094ab0: 3137 312d 332e 332e 310a 2020 2d20 4e49  171-3.3.1.  - NI
│ │ │ -00094ac0: 5354 2d38 3030 2d31 3731 2d33 2e33 2e32  ST-800-171-3.3.2
│ │ │ -00094ad0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -00094ae0: 312d 332e 332e 360a 2020 2d20 4e49 5354  1-3.3.6.  - NIST
│ │ │ -00094af0: 2d38 3030 2d35 332d 4143 2d32 2867 290a  -800-53-AC-2(g).
│ │ │ -00094b00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00094b10: 4143 2d36 2839 290a 2020 2d20 4e49 5354  AC-6(9).  - NIST
│ │ │ -00094b20: 2d38 3030 2d35 332d 4155 2d31 300a 2020  -800-53-AU-10.  
│ │ │ -00094b30: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -00094b40: 2d31 3228 6329 0a20 202d 204e 4953 542d  -12(c).  - NIST-
│ │ │ -00094b50: 3830 302d 3533 2d41 552d 3134 2831 290a  800-53-AU-14(1).
│ │ │ -00094b60: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00094b70: 4155 2d32 2864 290a 2020 2d20 4e49 5354  AU-2(d).  - NIST
│ │ │ -00094b80: 2d38 3030 2d35 332d 4155 2d33 0a20 202d  -800-53-AU-3.  -
│ │ │ -00094b90: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00094ba0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00094bb0: 302d 3533 2d53 492d 3428 3233 290a 2020  0-53-SI-4(23).  
│ │ │ -00094bc0: 2d20 5043 492d 4453 532d 5265 712d 3130  - PCI-DSS-Req-10
│ │ │ -00094bd0: 2e31 0a20 202d 2050 4349 2d44 5353 7634  .1.  - PCI-DSSv4
│ │ │ -00094be0: 2d31 302e 320a 2020 2d20 5043 492d 4453  -10.2.  - PCI-DS
│ │ │ -00094bf0: 5376 342d 3130 2e32 2e31 0a20 202d 2065  Sv4-10.2.1.  - e
│ │ │ -00094c00: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -00094c10: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00094c20: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00094c30: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00094c40: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00094c50: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00094c60: 2d20 7365 7276 6963 655f 6175 6469 7464  - service_auditd
│ │ │ -00094c70: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -00094c80: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00094c90: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ -00094ca0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00094cb0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00094cc0: 636b 6167 6573 270a 2020 2d20 2722 6175  ckages'.  - '"au
│ │ │ -00094cd0: 6469 7464 2220 696e 2061 6e73 6962 6c65  ditd" in ansible
│ │ │ -00094ce0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000941d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +000941e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +000941f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disr │ │ │ -00094660: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00094670: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -000946b0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -000946c0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +00094290: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000942e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00094270: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000942a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000942c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000942d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000942f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00094300: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00094320: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00094330: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00094340: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00094350: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00094360: 2020 7461 6773 3a0a 2020 2d20 434a 4953    tags:.  - CJIS
│ │ │ +00094370: 2d35 2e34 2e31 2e31 0a20 202d 204e 4953  -5.4.1.1.  - NIS
│ │ │ +00094380: 542d 3830 302d 3137 312d 332e 332e 310a  T-800-171-3.3.1.
│ │ │ +00094390: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +000943a0: 2d33 2e33 2e32 0a20 202d 204e 4953 542d  -3.3.2.  - NIST-
│ │ │ +000943b0: 3830 302d 3137 312d 332e 332e 360a 2020  800-171-3.3.6.  
│ │ │ +000943c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +000943d0: 2d32 2867 290a 2020 2d20 4e49 5354 2d38  -2(g).  - NIST-8
│ │ │ +000943e0: 3030 2d35 332d 4143 2d36 2839 290a 2020  00-53-AC-6(9).  
│ │ │ +000943f0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00094400: 2d31 300a 2020 2d20 4e49 5354 2d38 3030  -10.  - NIST-800
│ │ │ +00094410: 2d35 332d 4155 2d31 3228 6329 0a20 202d  -53-AU-12(c).  -
│ │ │ +00094420: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +00094430: 3134 2831 290a 2020 2d20 4e49 5354 2d38  14(1).  - NIST-8
│ │ │ +00094440: 3030 2d35 332d 4155 2d32 2864 290a 2020  00-53-AU-2(d).  
│ │ │ +00094450: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ +00094460: 2d33 0a20 202d 204e 4953 542d 3830 302d  -3.  - NIST-800-
│ │ │ +00094470: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00094480: 4953 542d 3830 302d 3533 2d53 492d 3428  IST-800-53-SI-4(
│ │ │ +00094490: 3233 290a 2020 2d20 5043 492d 4453 532d  23).  - PCI-DSS-
│ │ │ +000944a0: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ +000944b0: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ +000944c0: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ +000944d0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000944e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000944f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00094500: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00094510: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00094520: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00094530: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00094540: 6175 6469 7464 5f65 6e61 626c 6564 0a0a  auditd_enabled..
│ │ │ +00094550: 2d20 6e61 6d65 3a20 456e 6162 6c65 2061  - name: Enable a
│ │ │ +00094560: 7564 6974 6420 5365 7276 6963 6520 2d20  uditd Service - 
│ │ │ +00094570: 456e 6162 6c65 2073 6572 7669 6365 2061  Enable service a
│ │ │ +00094580: 7564 6974 640a 2020 626c 6f63 6b3a 0a0a  uditd.  block:..
│ │ │ +00094590: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +000945a0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +000945b0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +000945c0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +000945d0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +000945e0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +000945f0: 616d 653a 2045 6e61 626c 6520 6175 6469  ame: Enable audi
│ │ │ +00094600: 7464 2053 6572 7669 6365 202d 2045 6e61  td Service - Ena
│ │ │ +00094610: 626c 6520 5365 7276 6963 6520 6175 6469  ble Service audi
│ │ │ +00094620: 7464 0a20 2020 2061 6e73 6962 6c65 2e62  td.    ansible.b
│ │ │ +00094630: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00094640: 2020 2020 2020 6e61 6d65 3a20 6175 6469        name: audi
│ │ │ +00094650: 7464 0a20 2020 2020 2065 6e61 626c 6564  td.      enabled
│ │ │ +00094660: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ +00094670: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ +00094680: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ +00094690: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ +000946a0: 2722 6175 6469 7464 2220 696e 2061 6e73  '"auditd" in ans
│ │ │ +000946b0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000946c0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +000946d0: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ +000946e0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +000946f0: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ +00094700: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ +00094710: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ +00094720: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ +00094730: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ +00094740: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ +00094750: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ +00094760: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ +00094770: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ +00094780: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00094790: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ +000947a0: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ +000947b0: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ +000947c0: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ +000947d0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +000947e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000947f0: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ +00094800: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +00094810: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +00094820: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +00094830: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +00094840: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00094850: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00094860: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00094870: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00094880: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00094890: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +000948a0: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ +000948b0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +000948c0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +000948d0: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +000948e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +000948f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00094900: 7327 0a20 202d 2027 2261 7564 6974 6422  s'.  - '"auditd"
│ │ │ +00094910: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00094920: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00094940: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00094950: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00094960: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00094970: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00094980: 6431 3637 2220 7461 6269 6e64 6578 3d22 d167" tabindex=" │ │ │ +00094990: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000949a0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000949b0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000949c0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000949d0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000949e0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000949f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00094a80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00094a90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00094ab0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00094ad0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00094ae0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00094b20: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00094b30: 6520 656e 6162 6c65 5f61 7564 6974 640a e enable_auditd. │ │ │ +00094b40: 0a63 6c61 7373 2065 6e61 626c 655f 6175 .class enable_au │ │ │ +00094b50: 6469 7464 207b 0a20 2073 6572 7669 6365 ditd {. service │ │ │ +00094b60: 207b 2761 7564 6974 6427 3a0a 2020 2020 {'auditd':. │ │ │ +00094b70: 656e 6162 6c65 203d 2667 743b 2074 7275 enable => tru │ │ │ +00094b80: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +00094b90: 6774 3b20 2772 756e 6e69 6e67 272c 0a20 gt; 'running',. │ │ │ +00094ba0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediation │ │ │ +00094c60: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00094c70: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ +00094cd0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +00094ce0: 6c65 6420 3d20 5b22 6175 6469 7464 225d  led = ["auditd"]
│ │ │  00094cf0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
'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: │ │ │ │ @@ -1912,14 +1895,31 @@ │ │ │ │ - NIST-800-53-CM-6(a) │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class install_syslog-ng { │ │ │ │ + package { 'syslog-ng': │ │ │ │ + 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 = "syslog-ng" │ │ │ │ +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/ │ │ │ │ @@ -1949,31 +1949,14 @@ │ │ │ │ References: 4.4.2.2, 4.4.2.4 │ │ │ │ _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, SR 6.1, │ │ │ │ SR 6.2, SR 7.1, SR 7.2 │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["syslog-ng"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_syslog-ng │ │ │ │ - │ │ │ │ -class enable_syslog-ng { │ │ │ │ - service {'syslog-ng': │ │ │ │ - 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: │ │ │ │ @@ -2010,14 +1993,31 @@ │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_syslogng_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_syslog-ng │ │ │ │ + │ │ │ │ +class enable_syslog-ng { │ │ │ │ + service {'syslog-ng': │ │ │ │ + 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 = ["syslog-ng"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -2050,31 +2050,14 @@ │ │ │ │ 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: │ │ │ │ @@ -2097,14 +2080,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/ │ │ │ │ @@ -2137,31 +2137,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, │ │ │ │ A.12.7.1, A.14.2.7, A.15.2.1, 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -2198,14 +2181,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/ │ │ │ │ @@ -4500,31 +4500,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: │ │ │ │ @@ -4551,14 +4534,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/ │ │ │ │ @@ -4597,27 +4597,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' │ │ │ │ @@ -4630,14 +4617,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 │ │ │ │ @@ -4653,27 +4653,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: │ │ │ │ @@ -4682,14 +4669,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 │ │ │ │ @@ -4705,27 +4705,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: │ │ │ │ @@ -4734,14 +4721,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 │ │ │ │ @@ -4774,27 +4774,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' │ │ │ │ @@ -4807,14 +4794,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 │ │ │ │ @@ -4848,27 +4848,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 │ │ │ │ - │ │ │ │ -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: │ │ │ │ @@ -4880,14 +4867,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 │ │ │ │ @@ -4963,31 +4963,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "ntp" │ │ │ │ -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_ntp │ │ │ │ - │ │ │ │ -class install_ntp { │ │ │ │ - package { 'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5012,14 +4995,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_ntp_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_ntp │ │ │ │ + │ │ │ │ +class install_ntp { │ │ │ │ + package { 'ntp': │ │ │ │ + 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 = "ntp" │ │ │ │ +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/ │ │ │ │ @@ -5053,31 +5053,14 @@ │ │ │ │ 4.4.2.4 │ │ │ │ References: _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 │ │ │ │ _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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["ntp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ntp │ │ │ │ - │ │ │ │ -class enable_ntp { │ │ │ │ - service {'ntp': │ │ │ │ - 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: │ │ │ │ @@ -5122,14 +5105,31 @@ │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - service_ntp_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"ntp" 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_ntp │ │ │ │ + │ │ │ │ +class enable_ntp { │ │ │ │ + service {'ntp': │ │ │ │ + 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 = ["ntp"] │ │ │ │ _R_e_m_e_d_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/ │ │ │ │ @@ -6035,31 +6035,14 @@ │ │ │ │ 000353-GPOS-00141, SRG-OS-000354-GPOS-00142, SRG-OS- │ │ │ │ 000358-GPOS-00145, SRG-OS-000365-GPOS-00152, SRG-OS- │ │ │ │ 000392-GPOS-00172, SRG-OS-000475-GPOS-00220 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.1 │ │ │ │ _i_s_m 0582, 0846 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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 = "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: │ │ │ │ @@ -6100,14 +6083,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/ │ │ │ │ @@ -6179,31 +6179,14 @@ │ │ │ │ SRG-APP-000095-CTR-000170, SRG-APP-000409-CTR- │ │ │ │ _a_p_p_-_s_r_g_-_c_t_r 000990, SRG-APP-000508-CTR-001300, SRG-APP-000510- │ │ │ │ CTR-001310 │ │ │ │ _a_n_s_s_i R33, R73 │ │ │ │ _c_i_s 6.2.1.2 │ │ │ │ _i_s_m 1409 │ │ │ │ _p_c_i_d_s_s_4 10.2.1, 10.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] │ │ │ │ -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: │ │ │ │ @@ -6270,14 +6253,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/ │ │ ├── ./usr/share/doc/ssg-debian/ssg-debian12-guide-cis_level1_server.html │ │ │ @@ -15069,134 +15069,134 @@ │ │ │ 0003adc0: 6461 7461 2d74 6172 6765 743d 2223 6964 data-target="#id │ │ │ 0003add0: 3135 2220 7461 6269 6e64 6578 3d22 3022 15" tabindex="0" │ │ │ 0003ade0: 2072 6f6c 653d 2262 7574 746f 6e22 2061 role="button" a │ │ │ 0003adf0: 7269 612d 6578 7061 6e64 6564 3d22 6661 ria-expanded="fa │ │ │ 0003ae00: 6c73 6522 2074 6974 6c65 3d22 4163 7469 lse" title="Acti │ │ │ 0003ae10: 7661 7465 2074 6f20 7265 7665 616c 2220 vate to reveal" │ │ │ 0003ae20: 6872 6566 3d22 2321 223e 5265 6d65 6469 href="#!">Remedi │ │ │ -0003ae30: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0003ae40: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0003ae50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
<
│ │ │ -0003ae90: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -0003aea0: 5d5d 0a6e 616d 6520 3d20 2261 6964 6522  ]].name = "aide"
│ │ │ -0003aeb0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0003aec0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ -0003af70: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0003af80: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003af90: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0003b010: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003b040: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003b060: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003b070: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003b090: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003b0b0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0003b0c0: 6465 2069 6e73 7461 6c6c 5f61 6964 650a  de install_aide.
│ │ │ -0003b0d0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ -0003b0e0: 6964 6520 7b0a 2020 7061 636b 6167 6520  ide {.  package 
│ │ │ -0003b0f0: 7b20 2761 6964 6527 3a0a 2020 2020 656e  { 'aide':.    en
│ │ │ -0003b100: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0003b110: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Rem │ │ │ -0003b1d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0003b1e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0003b1f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Com │ │ │ -0003b270: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0003b2a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0003b2c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0003b2d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0003b2f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0003b310: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0003b320: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0003b330: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0003b340: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0003b350: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0003b360: 2074 6167 733a 0a20 202d 2043 4a49 532d   tags:.  - CJIS-
│ │ │ -0003b370: 352e 3130 2e31 2e33 0a20 202d 204e 4953  5.10.1.3.  - NIS
│ │ │ -0003b380: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0003b390: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0003b3a0: 2d31 312e 350a 2020 2d20 5043 492d 4453  -11.5.  - PCI-DS
│ │ │ -0003b3b0: 5376 342d 3131 2e35 2e32 0a20 202d 2065  Sv4-11.5.2.  - e
│ │ │ -0003b3c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0003b3d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0003b3e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0003b3f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0003b400: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0003b410: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0003b420: 2d20 7061 636b 6167 655f 6169 6465 5f69  - package_aide_i
│ │ │ -0003b430: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -0003b440: 3a20 456e 7375 7265 2061 6964 6520 6973  : Ensure aide is
│ │ │ -0003b450: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -0003b460: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0003b470: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0003b480: 6169 6465 0a20 2020 2073 7461 7465 3a20  aide.    state: 
│ │ │ -0003b490: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -0003b4a0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -0003b4b0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -0003b4c0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -0003b4d0: 0a20 202d 2043 4a49 532d 352e 3130 2e31  .  - CJIS-5.10.1
│ │ │ -0003b4e0: 2e33 0a20 202d 204e 4953 542d 3830 302d  .3.  - NIST-800-
│ │ │ -0003b4f0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0003b500: 4349 2d44 5353 2d52 6571 2d31 312e 350a  CI-DSS-Req-11.5.
│ │ │ -0003b510: 2020 2d20 5043 492d 4453 5376 342d 3131    - PCI-DSSv4-11
│ │ │ -0003b520: 2e35 2e32 0a20 202d 2065 6e61 626c 655f  .5.2.  - enable_
│ │ │ -0003b530: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0003b540: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0003b550: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0003b560: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0003b570: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0003b580: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0003b590: 6167 655f 6169 6465 5f69 6e73 7461 6c6c  age_aide_install
│ │ │ -0003b5a0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0003ae30: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +0003ae40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0003ae80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0003aef0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0003af10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0003af40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0003af60: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0003aed0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0003aee0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0003af20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0003af30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +0003af80: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +0003af90: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +0003afa0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +0003afb0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +0003afc0: 6773 3a0a 2020 2d20 434a 4953 2d35 2e31 gs:. - CJIS-5.1 │ │ │ +0003afd0: 302e 312e 330a 2020 2d20 4e49 5354 2d38 0.1.3. - NIST-8 │ │ │ +0003afe0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0003aff0: 2d20 5043 492d 4453 532d 5265 712d 3131 - PCI-DSS-Req-11 │ │ │ +0003b000: 2e35 0a20 202d 2050 4349 2d44 5353 7634 .5. - PCI-DSSv4 │ │ │ +0003b010: 2d31 312e 352e 320a 2020 2d20 656e 6162 -11.5.2. - enab │ │ │ +0003b020: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0003b030: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0003b040: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0003b050: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +0003b060: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0003b070: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0003b080: 6163 6b61 6765 5f61 6964 655f 696e 7374 ackage_aide_inst │ │ │ +0003b090: 616c 6c65 640a 0a2d 206e 616d 653a 2045 alled..- name: E │ │ │ +0003b0a0: 6e73 7572 6520 6169 6465 2069 7320 696e nsure aide is in │ │ │ +0003b0b0: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ +0003b0c0: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +0003b0d0: 653a 0a20 2020 206e 616d 653a 2061 6964 e:. name: aid │ │ │ +0003b0e0: 650a 2020 2020 7374 6174 653a 2070 7265 e. state: pre │ │ │ +0003b0f0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c sent. when: '"l │ │ │ +0003b100: 696e 7578 2d62 6173 6522 2069 6e20 616e inux-base" in an │ │ │ +0003b110: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +0003b120: 6167 6573 270a 2020 7461 6773 3a0a 2020 ages'. tags:. │ │ │ +0003b130: 2d20 434a 4953 2d35 2e31 302e 312e 330a - CJIS-5.10.1.3. │ │ │ +0003b140: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0003b150: 434d 2d36 2861 290a 2020 2d20 5043 492d CM-6(a). - PCI- │ │ │ +0003b160: 4453 532d 5265 712d 3131 2e35 0a20 202d DSS-Req-11.5. - │ │ │ +0003b170: 2050 4349 2d44 5353 7634 2d31 312e 352e PCI-DSSv4-11.5. │ │ │ +0003b180: 320a 2020 2d20 656e 6162 6c65 5f73 7472 2. - enable_str │ │ │ +0003b190: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +0003b1a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +0003b1b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +0003b1c0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +0003b1d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0003b1e0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0003b1f0: 5f61 6964 655f 696e 7374 616c 6c65 640a _aide_installed. │ │ │ +0003b200: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 R │ │ │ +0003b2b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0003b2c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low< │ │ │ +0003b370: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0003b3c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0003b350: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0003b380: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0003b3a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0003b3b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0003b3d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0003b3e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +0003b400: 7564 6520 696e 7374 616c 6c5f 6169 6465  ude install_aide
│ │ │ +0003b410: 0a0a 636c 6173 7320 696e 7374 616c 6c5f  ..class install_
│ │ │ +0003b420: 6169 6465 207b 0a20 2070 6163 6b61 6765  aide {.  package
│ │ │ +0003b430: 207b 2027 6169 6465 273a 0a20 2020 2065   { 'aide':.    e
│ │ │ +0003b440: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0003b450: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0003b460: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Re │ │ │ +0003b510: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0003b520: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0003b530: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0003b540: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0003b550: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0003b560: 7365 2220 6964 3d22 6964 3137 223e 3c70 se" id="id17">

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

Remediat │ │ │ -00050ca0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00050cb0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00050cc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]]
│ │ │ -00050d10: 0a6e 616d 6520 3d20 2273 7564 6f22 0a76  .name = "sudo".v
│ │ │ -00050d20: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00050d40: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Reme │ │ │ -00050de0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00050df0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00050ea0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00050ec0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00050ef0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00050e80: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00050e90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00050eb0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00050ed0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00050ee0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00050f30: 2069 6e73 7461 6c6c 5f73 7564 6f0a 0a63 install_sudo..c │ │ │ -00050f40: 6c61 7373 2069 6e73 7461 6c6c 5f73 7564 lass install_sud │ │ │ -00050f50: 6f20 7b0a 2020 7061 636b 6167 6520 7b20 o {. package { │ │ │ -00050f60: 2773 7564 6f27 3a0a 2020 2020 656e 7375 'sudo':. ensu │ │ │ -00050f70: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ -00050f80: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ -00050fa0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00050fb0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00050fc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00050fd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00050fe0: 6434 3622 2074 6162 696e 6465 783d 2230 d46" tabindex="0 │ │ │ -00050ff0: 2220 726f 6c65 3d22 6275 7474 6f6e 2220 " role="button" │ │ │ -00051000: 6172 6961 2d65 7870 616e 6465 643d 2266 aria-expanded="f │ │ │ -00051010: 616c 7365 2220 7469 746c 653d 2241 6374 alse" title="Act │ │ │ -00051020: 6976 6174 6520 746f 2072 6576 6561 6c22 ivate to reveal" │ │ │ -00051030: 2068 7265 663d 2223 2122 3e52 656d 6564 href="#!">Remed │ │ │ -00051040: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00051050: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00051100: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00051120: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00051150: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000510e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000510f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00051110: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00051130: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00051140: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00051190: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -000511a0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -000511b0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -000511c0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -000511d0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -000511e0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -000511f0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ -00051200: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ -00051210: 2e36 0a20 202d 2065 6e61 626c 655f 7374 .6. - enable_st │ │ │ -00051220: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00051230: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00051240: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00051250: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00051260: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00051270: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -00051280: 655f 7375 646f 5f69 6e73 7461 6c6c 6564 e_sudo_installed │ │ │ -00051290: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265 ..- name: Ensure │ │ │ -000512a0: 2073 7564 6f20 6973 2069 6e73 7461 6c6c sudo is install │ │ │ -000512b0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -000512c0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -000512d0: 2020 6e61 6d65 3a20 7375 646f 0a20 2020 name: sudo. │ │ │ -000512e0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -000512f0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00051300: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00051310: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00051320: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -00051330: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -00051340: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ -00051350: 2e32 0a20 202d 2050 4349 2d44 5353 7634 .2. - PCI-DSSv4 │ │ │ -00051360: 2d32 2e32 2e36 0a20 202d 2065 6e61 626c -2.2.6. - enabl │ │ │ -00051370: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00051380: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00051390: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -000513a0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -000513b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -000513c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -000513d0: 636b 6167 655f 7375 646f 5f69 6e73 7461 ckage_sudo_insta │ │ │ -000513e0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.
< │ │ │ +00050cc0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00050cd0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00050ce0: 7365 2220 6964 3d22 6964 3434 223e 3c74 se" id="id44"> │ │ │ +00050d30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00050d40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00050d50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00050d90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00050da0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00050dc0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +00050de0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00050df0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00050e00: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00050e10: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00050e20: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00050e30: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00050e40: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +00050e50: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00050e60: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +00050e70: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00050e80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00050e90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00050ea0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00050eb0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00050ec0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00050ed0: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ +00050ee0: 7564 6f5f 696e 7374 616c 6c65 640a 0a2d  udo_installed..-
│ │ │ +00050ef0: 206e 616d 653a 2045 6e73 7572 6520 7375   name: Ensure su
│ │ │ +00050f00: 646f 2069 7320 696e 7374 616c 6c65 640a  do is installed.
│ │ │ +00050f10: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00050f20: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00050f30: 616d 653a 2073 7564 6f0a 2020 2020 7374  ame: sudo.    st
│ │ │ +00050f40: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00050f50: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00050f60: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00050f70: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00050f80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00050f90: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00050fa0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00050fb0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00050fc0: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ +00050fd0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00050fe0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00050ff0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00051000: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00051010: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00051020: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00051030: 6765 5f73 7564 6f5f 696e 7374 616c 6c65  ge_sudo_installe
│ │ │ +00051040: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00051050: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +00051100: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00051110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +000511a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00051240: 636c 7564 6520 696e 7374 616c 6c5f 7375  clude install_su
│ │ │ +00051250: 646f 0a0a 636c 6173 7320 696e 7374 616c  do..class instal
│ │ │ +00051260: 6c5f 7375 646f 207b 0a20 2070 6163 6b61  l_sudo {.  packa
│ │ │ +00051270: 6765 207b 2027 7375 646f 273a 0a20 2020  ge { 'sudo':.   
│ │ │ +00051280: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00051290: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +000512a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +00051350: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00051360: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00051370: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000513b0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +000513c0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +000513d0: 2273 7564 6f22 0a76 6572 7369 6f6e 203d  "sudo".version =
│ │ │ +000513e0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediati │ │ │ -00099210: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00099220: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00099230: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00099280: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -00099290: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -000992a0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00099360: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00099370: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000993f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ -00099430: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ +00051190: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000511c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000511d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00051210: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00051220: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -00099400: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00099420: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00099450: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00099470: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -000994a0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000994b0: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -000994c0: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -000994d0: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -000994e0: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -000994f0: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -00099500: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00099510: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00099520: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000995e0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000995f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00099670: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00099680: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000996a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000996b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000996d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000996f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00099720: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00099730: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00099740: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00099750: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00099760: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00099770: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00099780: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00099790: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000997a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000997b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000997c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000997d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000997e0: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -000997f0: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -00099800: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -00099810: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -00099820: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -00099830: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00099840: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -00099850: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -00099860: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00099870: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -00099880: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00099890: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000998a0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000998b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000998c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000998d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000998e0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000998f0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00099900: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -00099910: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -00099920: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000992a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +000992b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +000992c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00099300: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00099310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00099330: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00099350: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00099360: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00099370: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00099380: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00099390: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +000993a0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +000993b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000993c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000993d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000993e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000993f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00099400: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00099410: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +00099420: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00099430: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +00099440: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +00099450: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +00099460: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00099470: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +00099480: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +00099490: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +000994a0: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +000994b0: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +000994c0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000994d0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000994e0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000994f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00099500: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00099510: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00099520: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00099530: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00099540: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +00099550: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +00099570: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00099580: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00099590: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000995a0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000995b0: 6431 3536 2220 7461 6269 6e64 6578 3d22 d156" tabindex=" │ │ │ +000995c0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000995d0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000995e0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000995f0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00099600: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00099610: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00099620: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000996b0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000996c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000996e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00099700: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00099710: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00099750: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00099760: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +00099770: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +00099780: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +00099790: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +000997a0: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +000997b0: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +000997c0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000997d0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +00099890: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000998a0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000998b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +00099900: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +00099910: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +00099920: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediatio │ │ │ -0009a650: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0009a660: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0009a670: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -0009a6c0: 6e61 6d65 203d 2022 6c69 6270 616d 2d70  name = "libpam-p
│ │ │ -0009a6d0: 7771 7561 6c69 7479 220a 7665 7273 696f  wquality".versio
│ │ │ -0009a6e0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -0009a6f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0009a7a0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0009a7b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0009a830: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0009a840: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0009a850: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0009a890: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0009a8a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0009a8c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0009a8e0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0009a8f0: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -0009a900: 7561 6c69 7479 0a0a 636c 6173 7320 696e  uality..class in
│ │ │ -0009a910: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -0009a920: 7561 6c69 7479 207b 0a20 2070 6163 6b61  uality {.  packa
│ │ │ -0009a930: 6765 207b 2027 6c69 6270 616d 2d70 7771  ge { 'libpam-pwq
│ │ │ -0009a940: 7561 6c69 7479 273a 0a20 2020 2065 6e73  uality':.    ens
│ │ │ -0009a950: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -0009a960: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -0009a980: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0009aa20: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -0009aa30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0009aa40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0009aae0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0009ab30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0009aac0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0009aaf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0009ab10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0009ab20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0009ab40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0009ab50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0009ab70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0009ab80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0009ab90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0009aba0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0009abb0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -0009abc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0009abd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0009abe0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0009abf0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0009ac00: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0009ac10: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0009ac20: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -0009ac30: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -0009ac40: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -0009ac50: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -0009ac60: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0009ac70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0009ac80: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0009ac90: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -0009aca0: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -0009acb0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -0009acc0: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -0009acd0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0009ace0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0009acf0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -0009ad00: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0009ad10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0009ad20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0009ad30: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0009ad40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0009ad50: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0009ad60: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ -0009ad70: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +0009a6e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0009a6f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0009a710: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0009a720: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0009a740: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0009a760: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0009a790: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +0009a7a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +0009a7b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +0009a7c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +0009a7d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +0009a7e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0009a7f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0009a800: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0009a810: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0009a820: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0009a830: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0009a840: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +0009a850: 7061 6d5f 7077 7175 616c 6974 795f 696e  pam_pwquality_in
│ │ │ +0009a860: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +0009a870: 2045 6e73 7572 6520 6c69 6270 616d 2d70   Ensure libpam-p
│ │ │ +0009a880: 7771 7561 6c69 7479 2069 7320 696e 7374  wquality is inst
│ │ │ +0009a890: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +0009a8a0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0009a8b0: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ +0009a8c0: 6d2d 7077 7175 616c 6974 790a 2020 2020  m-pwquality.    
│ │ │ +0009a8d0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +0009a8e0: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +0009a8f0: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +0009a900: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0009a910: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +0009a920: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0009a930: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0009a940: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0009a950: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0009a960: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0009a970: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0009a980: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +0009a990: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +0009a9a0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0009a9b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0009aa60: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0009aa70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0009aaf0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0009ab10: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0009ab60: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0009abb0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +0009abc0: 790a 0a63 6c61 7373 2069 6e73 7461 6c6c  y..class install
│ │ │ +0009abd0: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +0009abe0: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ +0009abf0: 276c 6962 7061 6d2d 7077 7175 616c 6974  'libpam-pwqualit
│ │ │ +0009ac00: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ +0009ac10: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0009ac20: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0009ac30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0009ace0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +0009acf0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +0009ad00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[[packages]
│ │ │ +0009ad50: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ +0009ad60: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ +0009ad70: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -0009b8d0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0009b8e0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0009b8f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -0009b940: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ -0009b950: 6962 7061 6d2d 7275 6e74 696d 6522 0a76 ibpam-runtime".v │ │ │ -0009b960: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -0009b980: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0009ba20: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0009ba30: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0009ba40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +0009ab20: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0009ab30: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0009ab70: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0009ab80: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -0009bac0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0009baf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0009bb10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0009bb20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0009bb40: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0009bb60: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0009bb70: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ -0009bb80: 6d2d 7275 6e74 696d 650a 0a63 6c61 7373  m-runtime..class
│ │ │ -0009bb90: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -0009bba0: 7275 6e74 696d 6520 7b0a 2020 7061 636b  runtime {.  pack
│ │ │ -0009bbb0: 6167 6520 7b20 276c 6962 7061 6d2d 7275  age { 'libpam-ru
│ │ │ -0009bbc0: 6e74 696d 6527 3a0a 2020 2020 656e 7375  ntime':.    ensu
│ │ │ -0009bbd0: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -0009bbe0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -0009bc00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0009bc10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0009bc20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0009bc30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0009bc40: 6431 3637 2220 7461 6269 6e64 6578 3d22 d167" tabindex=" │ │ │ -0009bc50: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0009bc60: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0009bc70: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0009bc80: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0009bc90: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0009bca0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0009bcb0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0009bcc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0009bd40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0009bd70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0009bd90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0009bda0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0009bdc0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0009bde0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0009bdf0: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ -0009be00: 2d72 756e 7469 6d65 2069 7320 696e 7374  -runtime is inst
│ │ │ -0009be10: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -0009be20: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -0009be30: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ -0009be40: 6d2d 7275 6e74 696d 650a 2020 2020 7374  m-runtime.    st
│ │ │ -0009be50: 6174 653a 2070 7265 7365 6e74 0a20 2074  ate: present.  t
│ │ │ -0009be60: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -0009be70: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0009be80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0009be90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0009bea0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -0009beb0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -0009bec0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0009bed0: 6167 655f 7061 6d5f 7275 6e74 696d 655f  age_pam_runtime_
│ │ │ -0009bee0: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +0009b8f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0009b990: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0009b9e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +0009b970: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0009b9a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0009b9c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0009b9d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0009b9f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +0009ba00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0009ba20: 6d65 3a20 456e 7375 7265 206c 6962 7061  me: Ensure libpa
│ │ │ +0009ba30: 6d2d 7275 6e74 696d 6520 6973 2069 6e73  m-runtime is ins
│ │ │ +0009ba40: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +0009ba50: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0009ba60: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ +0009ba70: 616d 2d72 756e 7469 6d65 0a20 2020 2073  am-runtime.    s
│ │ │ +0009ba80: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +0009ba90: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +0009baa0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0009bab0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0009bac0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0009bad0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0009bae0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0009baf0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0009bb00: 6b61 6765 5f70 616d 5f72 756e 7469 6d65  kage_pam_runtime
│ │ │ +0009bb10: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +0009bbd0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0009bbe0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0009bc90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0009bcb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0009bce0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0009bc70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0009bc80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0009bca0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0009bcc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0009bcd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0009bd20: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +0009bd30: 7275 6e74 696d 650a 0a63 6c61 7373 2069 runtime..class i │ │ │ +0009bd40: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7275 nstall_libpam-ru │ │ │ +0009bd50: 6e74 696d 6520 7b0a 2020 7061 636b 6167 ntime {. packag │ │ │ +0009bd60: 6520 7b20 276c 6962 7061 6d2d 7275 6e74 e { 'libpam-runt │ │ │ +0009bd70: 696d 6527 3a0a 2020 2020 656e 7375 7265 ime':. ensure │ │ │ +0009bd80: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +0009bd90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +0009be50: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0009be60: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0009be70: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0009beb0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0009bec0: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +0009bed0: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ +0009bee0: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -000d1500: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000d1510: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000d1520: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

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

│ │ │ -000d15b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000d1650: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000d1660: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000d1670: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000d16f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000d1720: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000d1740: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000d1750: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000d1770: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000d1790: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000d17a0: 6465 2069 6e73 7461 6c6c 5f61 7070 6172  de install_appar
│ │ │ -000d17b0: 6d6f 722d 7574 696c 730a 0a63 6c61 7373  mor-utils..class
│ │ │ -000d17c0: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f   install_apparmo
│ │ │ -000d17d0: 722d 7574 696c 7320 7b0a 2020 7061 636b  r-utils {.  pack
│ │ │ -000d17e0: 6167 6520 7b20 2761 7070 6172 6d6f 722d  age { 'apparmor-
│ │ │ -000d17f0: 7574 696c 7327 3a0a 2020 2020 656e 7375  utils':.    ensu
│ │ │ -000d1800: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -000d1810: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -000d1830: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000d1840: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000d1850: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000d1860: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000d1870: 6432 3538 2220 7461 6269 6e64 6578 3d22 d258" tabindex=" │ │ │ -000d1880: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000d1890: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000d18a0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000d18b0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000d18c0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000d18d0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000d18e0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000d18f0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000d1970: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000d19a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000d19c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000d19d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000d19f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000d1a10: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000d1a20: 653a 2045 6e73 7572 6520 6170 7061 726d  e: Ensure apparm
│ │ │ -000d1a30: 6f72 2d75 7469 6c73 2069 7320 696e 7374  or-utils is inst
│ │ │ -000d1a40: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000d1a50: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000d1a60: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -000d1a70: 6d6f 722d 7574 696c 730a 2020 2020 7374  mor-utils.    st
│ │ │ -000d1a80: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000d1a90: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000d1aa0: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000d1ab0: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000d1ac0: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000d1ad0: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000d1ae0: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000d1af0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000d1b00: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000d1b10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000d1b20: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000d1b30: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000d1b40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000d1b50: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000d1b60: 655f 6170 7061 726d 6f72 2d75 7469 6c73  e_apparmor-utils
│ │ │ -000d1b70: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000d1520: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +000d15c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000d1610: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000d15a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000d15d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000d15f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000d1600: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000d1620: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000d1630: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000d1650: 6d65 3a20 456e 7375 7265 2061 7070 6172  me: Ensure appar
│ │ │ +000d1660: 6d6f 722d 7574 696c 7320 6973 2069 6e73  mor-utils is ins
│ │ │ +000d1670: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000d1680: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000d1690: 3a0a 2020 2020 6e61 6d65 3a20 6170 7061  :.    name: appa
│ │ │ +000d16a0: 726d 6f72 2d75 7469 6c73 0a20 2020 2073  rmor-utils.    s
│ │ │ +000d16b0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000d16c0: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ +000d16d0: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ +000d16e0: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ +000d16f0: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ +000d1700: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ +000d1710: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ +000d1720: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +000d1730: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000d1740: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000d1750: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000d1760: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000d1770: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000d1780: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000d1790: 6765 5f61 7070 6172 6d6f 722d 7574 696c  ge_apparmor-util
│ │ │ +000d17a0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000d17c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000d17d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000d17e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000d17f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000d1800: 6432 3537 2220 7461 6269 6e64 6578 3d22 d257" tabindex=" │ │ │ +000d1810: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000d1820: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000d1830: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000d1840: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000d1850: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000d1860: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000d1870: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000d1900: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000d1910: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000d1930: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000d1950: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000d1960: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000d19a0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000d19b0: 6520 696e 7374 616c 6c5f 6170 7061 726d e install_apparm │ │ │ +000d19c0: 6f72 2d75 7469 6c73 0a0a 636c 6173 7320 or-utils..class │ │ │ +000d19d0: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ +000d19e0: 2d75 7469 6c73 207b 0a20 2070 6163 6b61 -utils {. packa │ │ │ +000d19f0: 6765 207b 2027 6170 7061 726d 6f72 2d75 ge { 'apparmor-u │ │ │ +000d1a00: 7469 6c73 273a 0a20 2020 2065 6e73 7572 tils':. ensur │ │ │ +000d1a10: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000d1a20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000d1ae0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000d1af0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000d1b00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000d1b50: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ +000d1b60: 6172 6d6f 722d 7574 696c 7322 0a76 6572  armor-utils".ver
│ │ │ +000d1b70: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Re │ │ │ -000d27f0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000d2800: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000d2810: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000d2820: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000d2830: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000d2840: 7365 2220 6964 3d22 6964 3236 3122 3e3c se" id="id261">< │ │ │ -000d2850: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000d2860: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000d2870: 6170 7061 726d 6f72 220a 7665 7273 696f apparmor".versio │ │ │ -000d2880: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c n = "*".< │ │ │ -000d2890: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -000d2940: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000d2950: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000d29d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000d29e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000d29f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000d2a30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000d2a40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000d2a60: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000d2a80: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000d2a90: 7374 616c 6c5f 6170 7061 726d 6f72 0a0a  stall_apparmor..
│ │ │ -000d2aa0: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ -000d2ab0: 7061 726d 6f72 207b 0a20 2070 6163 6b61  parmor {.  packa
│ │ │ -000d2ac0: 6765 207b 2027 6170 7061 726d 6f72 273a  ge { 'apparmor':
│ │ │ -000d2ad0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000d2ae0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000d2af0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000d2bb0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000d2bc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000d2c50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000d2c70: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000d2c80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000d2c90: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000d2ca0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000d2cc0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ -000d2d00: 7265 2061 7070 6172 6d6f 7220 6973 2069  re apparmor is i
│ │ │ -000d2d10: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000d2d20: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000d2d30: 6765 3a0a 2020 2020 6e61 6d65 3a20 6170  ge:.    name: ap
│ │ │ -000d2d40: 7061 726d 6f72 0a20 2020 2073 7461 7465  parmor.    state
│ │ │ -000d2d50: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000d2d60: 3a20 616e 7369 626c 655f 7669 7274 7561  : ansible_virtua
│ │ │ -000d2d70: 6c69 7a61 7469 6f6e 5f74 7970 6520 6e6f  lization_type no
│ │ │ -000d2d80: 7420 696e 205b 2264 6f63 6b65 7222 2c20  t in ["docker", 
│ │ │ -000d2d90: 226c 7863 222c 2022 6f70 656e 767a 222c  "lxc", "openvz",
│ │ │ -000d2da0: 2022 706f 646d 616e 222c 2022 636f 6e74   "podman", "cont
│ │ │ -000d2db0: 6169 6e65 7222 5d0a 2020 7461 6773 3a0a  ainer"].  tags:.
│ │ │ -000d2dc0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000d2dd0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000d2de0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000d2df0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000d2e00: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000d2e10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000d2e20: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -000d2e30: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ -000d2e40: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000d27f0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +000d2800: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ +000d28a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000d28b0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000d2900: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000d2940: 616d 653a 2045 6e73 7572 6520 6170 7061  ame: Ensure appa
│ │ │ +000d2950: 726d 6f72 2069 7320 696e 7374 616c 6c65  rmor is installe
│ │ │ +000d2960: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +000d2970: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +000d2980: 206e 616d 653a 2061 7070 6172 6d6f 720a   name: apparmor.
│ │ │ +000d2990: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000d29a0: 6e74 0a20 2077 6865 6e3a 2061 6e73 6962  nt.  when: ansib
│ │ │ +000d29b0: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ +000d29c0: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ +000d29d0: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ +000d29e0: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ +000d29f0: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ +000d2a00: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000d2a10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000d2a20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000d2a30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000d2a40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000d2a50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000d2a60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000d2a70: 7061 636b 6167 655f 6170 7061 726d 6f72  package_apparmor
│ │ │ +000d2a80: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000d2b40: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000d2b50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +000d2890: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000d28c0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000d28d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000d2910: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000d2920: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000d2c00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000d2c20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000d2c50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000d2be0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000d2bf0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000d2c10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000d2c30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000d2c40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000d2c90: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f install_apparmo │ │ │ +000d2ca0: 720a 0a63 6c61 7373 2069 6e73 7461 6c6c r..class install │ │ │ +000d2cb0: 5f61 7070 6172 6d6f 7220 7b0a 2020 7061 _apparmor {. pa │ │ │ +000d2cc0: 636b 6167 6520 7b20 2761 7070 6172 6d6f ckage { 'apparmo │ │ │ +000d2cd0: 7227 3a0a 2020 2020 656e 7375 7265 203d r':. ensure = │ │ │ +000d2ce0: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ +000d2cf0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +000d2d00: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +000d2db0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +000d2dc0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +000d2dd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +000d2e20: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ +000d2e30: 6f72 220a 7665 7273 696f 6e20 3d20 222a  or".version = "*
│ │ │ +000d2e40: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000d2e50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -000dd0b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000dd0c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000dd0d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000dd120: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000dd130: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ -000dd140: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ -000dd150: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000dd160: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000dd210: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000dd220: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000dd2a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000dd2b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000dd2c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000dd300: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000dd310: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000dd330: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000dd350: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000dd360: 7374 616c 6c5f 7379 7374 656d 642d 6a6f  stall_systemd-jo
│ │ │ -000dd370: 7572 6e61 6c2d 7265 6d6f 7465 0a0a 636c  urnal-remote..cl
│ │ │ -000dd380: 6173 7320 696e 7374 616c 6c5f 7379 7374  ass install_syst
│ │ │ -000dd390: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000dd3a0: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ -000dd3b0: 2027 7379 7374 656d 642d 6a6f 7572 6e61   'systemd-journa
│ │ │ -000dd3c0: 6c2d 7265 6d6f 7465 273a 0a20 2020 2065  l-remote':.    e
│ │ │ -000dd3d0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000dd3e0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000dd3f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000dd4a0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000dd4b0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000dd550: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000dd5f0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000dd600: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000dd610: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000dd620: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000dd630: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000dd640: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000dd650: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000dd660: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000dd670: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000dd680: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000dd690: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000dd6a0: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ -000dd6b0: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ -000dd6c0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -000dd6d0: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ -000dd6e0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ -000dd6f0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000dd700: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000dd710: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000dd720: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000dd730: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ -000dd740: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000dd750: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000dd760: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000dd770: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000dd780: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000dd790: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000dd7a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000dd7b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000dd7c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000dd7d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000dd7e0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000dd7f0: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ -000dd800: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ -000dd810: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


│ │ │ -000dd540: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000dd570: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000dd580: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000dd5c0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000dd5d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000dd1a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000dd1b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000dd200: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000dd210: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000dd220: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000dd230: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000dd240: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +000dd250: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000dd260: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000dd270: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000dd280: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000dd290: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000dd2a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000dd2b0: 2d20 7061 636b 6167 655f 7379 7374 656d  - package_system
│ │ │ +000dd2c0: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000dd2d0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +000dd2e0: 6d65 3a20 456e 7375 7265 2073 7973 7465  me: Ensure syste
│ │ │ +000dd2f0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000dd300: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000dd310: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000dd320: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000dd330: 6d65 3a20 7379 7374 656d 642d 6a6f 7572  me: systemd-jour
│ │ │ +000dd340: 6e61 6c2d 7265 6d6f 7465 0a20 2020 2073  nal-remote.    s
│ │ │ +000dd350: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000dd360: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000dd370: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000dd380: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000dd390: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000dd3a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000dd3b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000dd3c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000dd3d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000dd3e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000dd3f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000dd400: 636b 6167 655f 7379 7374 656d 642d 6a6f  ckage_systemd-jo
│ │ │ +000dd410: 7572 6e61 6c2d 7265 6d6f 7465 5f69 6e73  urnal-remote_ins
│ │ │ +000dd420: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +000dd4e0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +000dd4f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +000dd570: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000dd5b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000dd180: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000dd190: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000dd1d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000dd1e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +000dd580: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000dd5a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000dd5d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000dd5f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000dd620: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000dd630: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ +000dd640: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ +000dd650: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ +000dd660: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000dd670: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +000dd680: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ +000dd690: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ +000dd6a0: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000dd6b0: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000dd770: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000dd780: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000dd790: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000dd7a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000dd7b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000dd7c0: 7365 2220 6964 3d22 6964 3237 3922 3e3c se" id="id279">< │ │ │ +000dd7d0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000dd7e0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000dd7f0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000dd800: 7265 6d6f 7465 220a 7665 7273 696f 6e20 remote".version │ │ │ +000dd810: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediat │ │ │ -000de940: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000de950: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000de960: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000de9b0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000de9c0: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ -000de9d0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000de9e0: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -000deaa0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000deab0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000deb30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000deb50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000deba0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000debd0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -000debf0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000dec00: 2d75 706c 6f61 640a 0a63 6c61 7373 2065  -upload..class e
│ │ │ -000dec10: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ -000dec20: 7572 6e61 6c2d 7570 6c6f 6164 207b 0a20  urnal-upload {. 
│ │ │ -000dec30: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -000dec40: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000dec50: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -000dec60: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ -000dec70: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ -000dec80: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ -000deca0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000ded40: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000ded50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000ded60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:< │ │ │ -000deb40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000deb60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000debb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000debc0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -000dee00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000dee50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000dede0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000dee10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000dee30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000dee40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000dee60: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000dee70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000dee90: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000deea0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000deeb0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000deec0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000deed0: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000deee0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000deef0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000def00: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000def10: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000def20: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000def30: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -000def40: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ -000def50: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ -000def60: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -000def70: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ -000def80: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ -000def90: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -000defa0: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ -000defb0: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2062  urnal-upload.  b
│ │ │ -000defc0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -000defd0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -000defe0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -000deff0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000df000: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000df010: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000df020: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -000df030: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e  le systemd-journ
│ │ │ -000df040: 616c 2d75 706c 6f61 6420 5365 7276 6963  al-upload Servic
│ │ │ -000df050: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -000df060: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ -000df070: 616c 2d75 706c 6f61 640a 2020 2020 616e  al-upload.    an
│ │ │ -000df080: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -000df090: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -000df0a0: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000df0b0: 616c 2d75 706c 6f61 640a 2020 2020 2020  al-upload.      
│ │ │ -000df0c0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -000df0d0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -000df0e0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -000df0f0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -000df100: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ -000df110: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ -000df120: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000df130: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -000df140: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ -000df150: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000df160: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000df170: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000df180: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000df190: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000df1a0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -000df1b0: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ -000df1c0: 616c 2d75 706c 6f61 645f 656e 6162 6c65  al-upload_enable
│ │ │ -000df1d0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -000df1e0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -000df1f0: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ -000df200: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -000df210: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000df220: 0a20 202d 2028 2061 6e73 6962 6c65 5f76  .  - ( ansible_v
│ │ │ -000df230: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ -000df240: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ -000df250: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ -000df260: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ -000df270: 2263 6f6e 7461 696e 6572 225d 0a20 2020  "container"].   
│ │ │ -000df280: 2061 6e64 2022 7379 7374 656d 642d 6a6f   and "systemd-jo
│ │ │ -000df290: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e  urnal-remote" in
│ │ │ -000df2a0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000df2b0: 6163 6b61 6765 7320 290a 3c2f 636f 6465  ackages ).
< │ │ │ +000de960: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000de970: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000de980: 7365 2220 6964 3d22 6964 3238 3222 3e3c se" id="id282">< │ │ │ +000de990: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000de9a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000de9b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000de9c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000de9d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000de9e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000de9f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000dea30: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000dea40: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000dea60: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000dea70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000dea90: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000deaa0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000deab0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000deac0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000dead0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000deae0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000deaf0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000deb00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000deb10: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000deb20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000deb30: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +000deb40: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000deb50: 6c2d 7570 6c6f 6164 5f65 6e61 626c 6564  l-upload_enabled
│ │ │ +000deb60: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +000deb70: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000deb80: 2d75 706c 6f61 6420 5365 7276 6963 6520  -upload Service 
│ │ │ +000deb90: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +000deba0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000debb0: 2d75 706c 6f61 640a 2020 626c 6f63 6b3a  -upload.  block:
│ │ │ +000debc0: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +000debd0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000debe0: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +000debf0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000dec00: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +000dec10: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +000dec20: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ +000dec30: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000dec40: 6c6f 6164 2053 6572 7669 6365 202d 2045  load Service - E
│ │ │ +000dec50: 6e61 626c 6520 5365 7276 6963 6520 7379  nable Service sy
│ │ │ +000dec60: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000dec70: 6c6f 6164 0a20 2020 2061 6e73 6962 6c65  load.    ansible
│ │ │ +000dec80: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +000dec90: 3a0a 2020 2020 2020 6e61 6d65 3a20 7379  :.      name: sy
│ │ │ +000deca0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000decb0: 6c6f 6164 0a20 2020 2020 2065 6e61 626c  load.      enabl
│ │ │ +000decc0: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +000decd0: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +000dece0: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +000decf0: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +000ded00: 2d20 2722 7379 7374 656d 642d 6a6f 7572  - '"systemd-jour
│ │ │ +000ded10: 6e61 6c2d 7265 6d6f 7465 2220 696e 2061  nal-remote" in a
│ │ │ +000ded20: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000ded30: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +000ded40: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000ded50: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000ded60: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000ded70: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000ded80: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000ded90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000deda0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +000dedb0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000dedc0: 6c6f 6164 5f65 6e61 626c 6564 0a20 202d  load_enabled.  -
│ │ │ +000dedd0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +000dede0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +000dedf0: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ +000dee00: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +000dee10: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ +000dee20: 2820 616e 7369 626c 655f 7669 7274 7561  ( ansible_virtua
│ │ │ +000dee30: 6c69 7a61 7469 6f6e 5f74 7970 6520 6e6f  lization_type no
│ │ │ +000dee40: 7420 696e 205b 2264 6f63 6b65 7222 2c20  t in ["docker", 
│ │ │ +000dee50: 226c 7863 222c 2022 6f70 656e 767a 222c  "lxc", "openvz",
│ │ │ +000dee60: 2022 706f 646d 616e 222c 2022 636f 6e74   "podman", "cont
│ │ │ +000dee70: 6169 6e65 7222 5d0a 2020 2020 616e 6420  ainer"].    and 
│ │ │ +000dee80: 2273 7973 7465 6d64 2d6a 6f75 726e 616c  "systemd-journal
│ │ │ +000dee90: 2d72 656d 6f74 6522 2069 6e20 616e 7369  -remote" in ansi
│ │ │ +000deea0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000deeb0: 6573 2029 0a3c 2f63 6f64 653e 3c2f 7072  es ).
Remediation │ │ │ +000def70: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000def80: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000df010: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000df030: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000df050: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000df080: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000df090: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000df0a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ +000df0c0: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000df0d0: 6c2d 7570 6c6f 6164 0a0a 636c 6173 7320  l-upload..class 
│ │ │ +000df0e0: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a  enable_systemd-j
│ │ │ +000df0f0: 6f75 726e 616c 2d75 706c 6f61 6420 7b0a  ournal-upload {.
│ │ │ +000df100: 2020 7365 7276 6963 6520 7b27 7379 7374    service {'syst
│ │ │ +000df110: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ +000df120: 6164 273a 0a20 2020 2065 6e61 626c 6520  ad':.    enable 
│ │ │ +000df130: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000df140: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000df150: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000df210: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000df220: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000df230: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000df240: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000df250: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000df260: 7365 2220 6964 3d22 6964 3238 3422 3e3c se" id="id284">< │ │ │ +000df270: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000df280: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000df290: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000df2a0: 2273 7973 7465 6d64 2d6a 6f75 726e 616c "systemd-journal │ │ │ +000df2b0: 2d75 706c 6f61 6422 5d0a 3c2f 636f 6465 -upload"].
Remediat │ │ │ -000e01a0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000e01b0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000e01c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000e0210: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000e0220: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ -000e0230: 6d64 2d6a 6f75 726e 616c 6422 5d0a 3c2f  md-journald"].
Re │ │ │ -000e02f0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000e0300: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000e0310: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000e03b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000e0400: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000e0390: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000e03c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000e03e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000e03f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000e0410: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000e0420: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000e0440: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ -000e0450: 6d64 2d6a 6f75 726e 616c 640a 0a63 6c61  md-journald..cla
│ │ │ -000e0460: 7373 2065 6e61 626c 655f 7379 7374 656d  ss enable_system
│ │ │ -000e0470: 642d 6a6f 7572 6e61 6c64 207b 0a20 2073  d-journald {.  s
│ │ │ -000e0480: 6572 7669 6365 207b 2773 7973 7465 6d64  ervice {'systemd
│ │ │ -000e0490: 2d6a 6f75 726e 616c 6427 3a0a 2020 2020  -journald':.    
│ │ │ -000e04a0: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -000e04b0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -000e04c0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -000e04d0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000e0590: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000e05a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000e0630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000e0650: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000e0660: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000e0670: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000e0680: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000e06a0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -000e06e0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000e06f0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -000e0700: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000e0710: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000e0720: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000e0730: 5343 2d32 340a 2020 2d20 656e 6162 6c65  SC-24.  - enable
│ │ │ -000e0740: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000e0750: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000e0760: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000e0770: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000e0780: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000e0790: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000e07a0: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75  vice_systemd-jou
│ │ │ -000e07b0: 726e 616c 645f 656e 6162 6c65 640a 0a2d  rnald_enabled..-
│ │ │ -000e07c0: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ -000e07d0: 7374 656d 642d 6a6f 7572 6e61 6c64 2053  stemd-journald S
│ │ │ -000e07e0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000e07f0: 7365 7276 6963 6520 7379 7374 656d 642d  service systemd-
│ │ │ -000e0800: 6a6f 7572 6e61 6c64 0a20 2062 6c6f 636b  journald.  block
│ │ │ -000e0810: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -000e0820: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000e0830: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -000e0840: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000e0850: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -000e0860: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -000e0870: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -000e0880: 7973 7465 6d64 2d6a 6f75 726e 616c 6420  ystemd-journald 
│ │ │ -000e0890: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000e08a0: 2053 6572 7669 6365 2073 7973 7465 6d64   Service systemd
│ │ │ -000e08b0: 2d6a 6f75 726e 616c 640a 2020 2020 616e  -journald.    an
│ │ │ -000e08c0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -000e08d0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -000e08e0: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000e08f0: 616c 640a 2020 2020 2020 656e 6162 6c65  ald.      enable
│ │ │ -000e0900: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -000e0910: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -000e0920: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -000e0930: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -000e0940: 2027 2273 7973 7465 6d64 2220 696e 2061   '"systemd" in a
│ │ │ -000e0950: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000e0960: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000e0970: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -000e0980: 432d 3234 0a20 202d 2065 6e61 626c 655f  C-24.  - enable_
│ │ │ -000e0990: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000e09a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000e09b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000e09c0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000e09d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000e09e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -000e09f0: 6963 655f 7379 7374 656d 642d 6a6f 7572  ice_systemd-jour
│ │ │ -000e0a00: 6e61 6c64 5f65 6e61 626c 6564 0a20 202d  nald_enabled.  -
│ │ │ -000e0a10: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -000e0a20: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -000e0a30: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000e0a40: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000e0a50: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +000e01a0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000e01b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000e01c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000e01d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000e01e0: 7365 2220 6964 3d22 6964 3238 3722 3e3c se" id="id287">< │ │ │ +000e01f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000e0200: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000e0210: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000e0220: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000e0230: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000e0240: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000e0250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000e0290: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000e02a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000e02c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000e02d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000e02f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000e0300: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000e0310: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000e0320: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000e0330: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000e0340: 3533 2d53 432d 3234 0a20 202d 2065 6e61  53-SC-24.  - ena
│ │ │ +000e0350: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000e0360: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000e0370: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000e0380: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000e0390: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000e03a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000e03b0: 7365 7276 6963 655f 7379 7374 656d 642d  service_systemd-
│ │ │ +000e03c0: 6a6f 7572 6e61 6c64 5f65 6e61 626c 6564  journald_enabled
│ │ │ +000e03d0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +000e03e0: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000e03f0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +000e0400: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ +000e0410: 6d64 2d6a 6f75 726e 616c 640a 2020 626c  md-journald.  bl
│ │ │ +000e0420: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +000e0430: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +000e0440: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +000e0450: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000e0460: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +000e0470: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000e0480: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +000e0490: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ +000e04a0: 6c64 2053 6572 7669 6365 202d 2045 6e61  ld Service - Ena
│ │ │ +000e04b0: 626c 6520 5365 7276 6963 6520 7379 7374  ble Service syst
│ │ │ +000e04c0: 656d 642d 6a6f 7572 6e61 6c64 0a20 2020  emd-journald.   
│ │ │ +000e04d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000e04e0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +000e04f0: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ +000e0500: 7572 6e61 6c64 0a20 2020 2020 2065 6e61  urnald.      ena
│ │ │ +000e0510: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +000e0520: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +000e0530: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +000e0540: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +000e0550: 2020 2d20 2722 7379 7374 656d 6422 2069    - '"systemd" i
│ │ │ +000e0560: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000e0570: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +000e0580: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000e0590: 332d 5343 2d32 340a 2020 2d20 656e 6162  3-SC-24.  - enab
│ │ │ +000e05a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000e05b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000e05c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000e05d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000e05e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000e05f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000e0600: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000e0610: 6f75 726e 616c 645f 656e 6162 6c65 640a  ournald_enabled.
│ │ │ +000e0620: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +000e0630: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +000e0640: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +000e0650: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000e0660: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +000e0720: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000e0730: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000e07e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000e0800: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000e0830: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000e07c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000e07d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000e07f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000e0810: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000e0820: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000e0870: 2065 6e61 626c 655f 7379 7374 656d 642d enable_systemd- │ │ │ +000e0880: 6a6f 7572 6e61 6c64 0a0a 636c 6173 7320 journald..class │ │ │ +000e0890: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ +000e08a0: 6f75 726e 616c 6420 7b0a 2020 7365 7276 ournald {. serv │ │ │ +000e08b0: 6963 6520 7b27 7379 7374 656d 642d 6a6f ice {'systemd-jo │ │ │ +000e08c0: 7572 6e61 6c64 273a 0a20 2020 2065 6e61 urnald':. ena │ │ │ +000e08d0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a ble => true,. │ │ │ +000e08e0: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +000e08f0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a 'running',. }. │ │ │ +000e0900: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ +000e0910: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000e09c0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000e09d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000e09e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

.[
│ │ │ +000e0a20: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +000e0a30: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +000e0a40: 203d 205b 2273 7973 7465 6d64 2d6a 6f75   = ["systemd-jou
│ │ │ +000e0a50: 726e 616c 6422 5d0a 3c2f 636f 6465 3e3c  rnald"].<
│ │ │  000e0a60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Re │ │ │ -000ee490: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000ee4a0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000ee4b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000ee4c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000ee4d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000ee4e0: 7365 2220 6964 3d22 6964 3331 3322 3e3c se" id="id313">< │ │ │ -000ee4f0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000ee500: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000ee510: 7273 7973 6c6f 6722 0a76 6572 7369 6f6e rsyslog".version │ │ │ -000ee520: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediati │ │ │ -000ee5e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000ee5f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000ee670: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000ee680: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000ee6a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000ee6b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000ee6d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000ee6f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000ee720: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000ee730: 7461 6c6c 5f72 7379 736c 6f67 0a0a 636c  tall_rsyslog..cl
│ │ │ -000ee740: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ -000ee750: 6c6f 6720 7b0a 2020 7061 636b 6167 6520  log {.  package 
│ │ │ -000ee760: 7b20 2772 7379 736c 6f67 273a 0a20 2020  { 'rsyslog':.   
│ │ │ -000ee770: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000ee780: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000ee790: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000ee850: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000ee860: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000ee930: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000ee940: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000ee990: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000ee9a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000ee9b0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000ee9c0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000ee9d0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000ee9e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000ee9f0: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -000eea00: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000eea10: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000eea20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000eea30: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000eea40: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000eea50: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000eea60: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ -000eea70: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -000eea80: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ -000eea90: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000eeaa0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000eeab0: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -000eeac0: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ -000eead0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000eeae0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -000eeaf0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000eeb00: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000eeb10: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000eeb20: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000eeb30: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000eeb40: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000eeb50: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000eeb60: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000eeb70: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000eeb80: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000eeb90: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -000eeba0: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.
low
Disru │ │ │ -000ee910: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000ee920: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000ee960: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000ee970: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000ee540: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000ee550: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000ee5a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000ee5e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000ee5f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000ee600: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000ee610: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000ee620: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000ee630: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000ee640: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000ee650: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000ee660: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000ee670: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000ee680: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000ee690: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000ee6a0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000ee6b0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +000ee6c0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +000ee6d0: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ +000ee6e0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000ee6f0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000ee700: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ +000ee710: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ +000ee720: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000ee730: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000ee740: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000ee750: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000ee760: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000ee770: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +000ee780: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000ee790: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000ee7a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000ee7b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000ee7c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000ee7d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000ee7e0: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +000ee7f0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000ee800: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000ee8b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000ee8c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000ee8d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000ee8e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000ee8f0: 7365 2220 6964 3d22 6964 3331 3422 3e3c se" id="id314">< │ │ │ +000ee900: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000ee910: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000ee920: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000ee930: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000ee940: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000ee9d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000ee9e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +000ee530: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000ee560: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000ee570: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000ee5b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000ee5c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +000ee950: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000ee960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000ee9a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000ee9b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000eea00: 6e73 7461 6c6c 5f72 7379 736c 6f67 0a0a  nstall_rsyslog..
│ │ │ +000eea10: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ +000eea20: 7973 6c6f 6720 7b0a 2020 7061 636b 6167  yslog {.  packag
│ │ │ +000eea30: 6520 7b20 2772 7379 736c 6f67 273a 0a20  e { 'rsyslog':. 
│ │ │ +000eea40: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000eea50: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +000eea60: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000eea70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000eeb20: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000eeb30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000eeb40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000eeb80: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +000eeb90: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ +000eeba0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 000eebc0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000eebd0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000eebe0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000eebf0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000eec00: 6433 3136 2220 7461 6269 6e64 6578 3d22 d316" tabindex=" │ │ │ 000eec10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -61404,151 +61404,151 @@ │ │ │ 000efdb0: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 000efdc0: 2369 6433 3138 2220 7461 6269 6e64 6578 #id318" tabindex │ │ │ 000efdd0: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 000efde0: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 000efdf0: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 000efe00: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 000efe10: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -000efe20: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000efe30: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000efe40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000efe50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000efe60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000efe70: 7365 2220 6964 3d22 6964 3331 3822 3e3c se" id="id318">< │ │ │ -000efe80: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -000efe90: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -000efea0: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -000efeb0: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].
Remed │ │ │ -000eff70: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000eff80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000f0030: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000f0050: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000f0080: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000f0010: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000f0020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000f0040: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000f0060: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000f0070: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediati │ │ │ -000f01f0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000f0200: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000f0280: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000f0290: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000f02a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000f02e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000f02f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000f0310: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000f0330: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000f0340: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000f0350: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000f0360: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000f0370: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000f0380: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000f0390: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -000f03a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000f03b0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000f03c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000f03d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000f03e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000f03f0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000f0400: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000f0410: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -000f0420: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -000f0430: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -000f0440: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -000f0450: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -000f0460: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ -000f0470: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -000f0480: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000f0490: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -000f04a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000f04b0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -000f04c0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -000f04d0: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -000f04e0: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -000f04f0: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -000f0500: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ -000f0510: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000f0520: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000f0530: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ -000f0540: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -000f0550: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -000f0560: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -000f0570: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -000f0580: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ -000f0590: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000f05a0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000f05b0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -000f05c0: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ -000f05d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000f05e0: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000f05f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000f0600: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000f0610: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000f0620: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000f0630: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000f0640: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -000f0650: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ -000f0660: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -000f0670: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000f0680: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -000f0690: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -000f06a0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +000efe20: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +000efe30: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +000efed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000efee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000eff30: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000eff70: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000eff80: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000eff90: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000effa0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000effb0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000effc0: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ +000effd0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000effe0: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +000efff0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000f0000: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000f0010: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000f0020: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000f0030: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000f0040: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000f0050: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ +000f0060: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +000f0070: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +000f0080: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +000f0090: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ +000f00a0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +000f00b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000f00c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000f00d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f00e0: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +000f00f0: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +000f0100: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +000f0110: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ +000f0120: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +000f0130: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ +000f0140: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +000f0150: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +000f0160: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ +000f0170: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +000f0180: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +000f0190: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +000f01a0: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +000f01b0: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +000f01c0: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ +000f01d0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000f01e0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000f01f0: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +000f0200: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +000f0210: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000f0220: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000f0230: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000f0240: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000f0250: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000f0260: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000f0270: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000f0280: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +000f0290: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ +000f02a0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +000f02b0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +000f02c0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +000f02d0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000f02e0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +000f03a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000f03b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000f0470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f0480: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +000efec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000efef0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000eff00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000eff40: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000eff50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +000f0440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000f0460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000f0490: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000f04b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +000f04f0: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ +000f0500: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ +000f0510: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +000f0520: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ +000f0530: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +000f0540: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000f0550: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +000f0560: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000f0570: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000f0620: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000f0630: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000f0640: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000f0680: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +000f0690: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +000f06a0: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │  000f06b0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OS │ │ │ -000f9f50: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000f9f60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f9f70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000f9fb0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000f9fc0: 203d 2022 6970 7461 626c 6573 2d70 6572   = "iptables-per
│ │ │ -000f9fd0: 7369 7374 656e 7422 0a76 6572 7369 6f6e  sistent".version
│ │ │ -000f9fe0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000fa0a0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000fa0b0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000fa130: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000fa140: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000fa160: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000fa170: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000fa190: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000fa1b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000fa1e0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000fa1f0: 7461 6c6c 5f69 7074 6162 6c65 732d 7065  tall_iptables-pe
│ │ │ -000fa200: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ -000fa210: 696e 7374 616c 6c5f 6970 7461 626c 6573  install_iptables
│ │ │ -000fa220: 2d70 6572 7369 7374 656e 7420 7b0a 2020  -persistent {.  
│ │ │ -000fa230: 7061 636b 6167 6520 7b20 2769 7074 6162  package { 'iptab
│ │ │ -000fa240: 6c65 732d 7065 7273 6973 7465 6e74 273a  les-persistent':
│ │ │ -000fa250: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000fa260: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000fa270: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000fa330: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000fa340: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000fa3d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000fa3f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000fa400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000fa410: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000fa420: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000fa440: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -000fa480: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000fa490: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -000fa4a0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000fa4b0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000fa4c0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000fa4d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000fa4e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000fa4f0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000fa500: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000fa510: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000fa520: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -000fa530: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -000fa540: 6e74 5f69 6e73 7461 6c6c 6564 0a0a 2d20  nt_installed..- 
│ │ │ -000fa550: 6e61 6d65 3a20 456e 7375 7265 2069 7074  name: Ensure ipt
│ │ │ -000fa560: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -000fa570: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000fa580: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000fa590: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000fa5a0: 653a 2069 7074 6162 6c65 732d 7065 7273  e: iptables-pers
│ │ │ -000fa5b0: 6973 7465 6e74 0a20 2020 2073 7461 7465  istent.    state
│ │ │ -000fa5c0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000fa5d0: 3a20 2722 6970 7461 626c 6573 2220 696e  : '"iptables" in
│ │ │ -000fa5e0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000fa5f0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -000fa600: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000fa610: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000fa620: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000fa630: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000fa640: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000fa650: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000fa660: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000fa670: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -000fa680: 656e 745f 696e 7374 616c 6c65 640a 3c2f  ent_installed.Remediation An
│ │ │ +000f9f50: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000f9f60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +000f9fe0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000fa000: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000fa050: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000fa0a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000fa0b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000fa0c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000fa0d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000fa0e0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000fa0f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000fa100: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000fa110: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000fa120: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000fa130: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000fa140: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +000fa150: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +000fa160: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +000fa170: 653a 2045 6e73 7572 6520 6970 7461 626c  e: Ensure iptabl
│ │ │ +000fa180: 6573 2d70 6572 7369 7374 656e 7420 6973  es-persistent is
│ │ │ +000fa190: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000fa1a0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000fa1b0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +000fa1c0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +000fa1d0: 656e 740a 2020 2020 7374 6174 653a 2070  ent.    state: p
│ │ │ +000fa1e0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000fa1f0: 2269 7074 6162 6c65 7322 2069 6e20 616e  "iptables" in an
│ │ │ +000fa200: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000fa210: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000fa220: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000fa230: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000fa240: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000fa250: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000fa260: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000fa270: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000fa280: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ +000fa290: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000fa2a0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000fa360: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000fa370: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +000fa010: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000fa020: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000fa060: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000fa070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +000fa420: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000fa440: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000fa470: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000fa400: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000fa410: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000fa430: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000fa450: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000fa460: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000fa4b0: 2069 6e73 7461 6c6c 5f69 7074 6162 6c65 install_iptable │ │ │ +000fa4c0: 732d 7065 7273 6973 7465 6e74 0a0a 636c s-persistent..cl │ │ │ +000fa4d0: 6173 7320 696e 7374 616c 6c5f 6970 7461 ass install_ipta │ │ │ +000fa4e0: 626c 6573 2d70 6572 7369 7374 656e 7420 bles-persistent │ │ │ +000fa4f0: 7b0a 2020 7061 636b 6167 6520 7b20 2769 {. package { 'i │ │ │ +000fa500: 7074 6162 6c65 732d 7065 7273 6973 7465 ptables-persiste │ │ │ +000fa510: 6e74 273a 0a20 2020 2065 6e73 7572 6520 nt':. ensure │ │ │ +000fa520: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +000fa530: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +000fa540: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ +000fa5f0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000fa600: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000fa610: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000fa650: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +000fa660: 5d5d 0a6e 616d 6520 3d20 2269 7074 6162  ]].name = "iptab
│ │ │ +000fa670: 6c65 732d 7065 7273 6973 7465 6e74 220a  les-persistent".
│ │ │ +000fa680: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remedi │ │ │ -000fb3b0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000fb3c0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000fb3d0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000fb410: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000fb420: 735d 5d0a 6e61 6d65 203d 2022 6970 7461  s]].name = "ipta
│ │ │ -000fb430: 626c 6573 220a 7665 7273 696f 6e20 3d20  bles".version = 
│ │ │ -000fb440: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000fb500: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000fb510: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000fb590: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000fb5b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000fb600: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000fb630: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000fb650: 6c5f 6970 7461 626c 6573 0a0a 636c 6173  l_iptables..clas
│ │ │ -000fb660: 7320 696e 7374 616c 6c5f 6970 7461 626c  s install_iptabl
│ │ │ -000fb670: 6573 207b 0a20 2070 6163 6b61 6765 207b  es {.  package {
│ │ │ -000fb680: 2027 6970 7461 626c 6573 273a 0a20 2020   'iptables':.   
│ │ │ -000fb690: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000fb6a0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000fb6b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000fb770: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000fb780: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -000fb5a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000fb5c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000fb610: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000fb620: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000fb850: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000fb860: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000fb8b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000fb8c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000fb8d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000fb8e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000fb8f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000fb900: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000fb910: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -000fb920: 5265 712d 312e 342e 310a 2020 2d20 656e  Req-1.4.1.  - en
│ │ │ -000fb930: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000fb940: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000fb950: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000fb960: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000fb970: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000fb980: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000fb990: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ -000fb9a0: 735f 696e 7374 616c 6c65 640a 0a2d 206e  s_installed..- n
│ │ │ -000fb9b0: 616d 653a 2045 6e73 7572 6520 6970 7461  ame: Ensure ipta
│ │ │ -000fb9c0: 626c 6573 2069 7320 696e 7374 616c 6c65  bles is installe
│ │ │ -000fb9d0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000fb9e0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000fb9f0: 206e 616d 653a 2069 7074 6162 6c65 730a   name: iptables.
│ │ │ -000fba00: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000fba10: 6e74 0a20 2077 6865 6e3a 2028 2022 6c69  nt.  when: ( "li
│ │ │ -000fba20: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -000fba30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000fba40: 6765 7320 290a 2020 7461 6773 3a0a 2020  ges ).  tags:.  
│ │ │ -000fba50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000fba60: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -000fba70: 532d 5265 712d 312e 342e 310a 2020 2d20  S-Req-1.4.1.  - 
│ │ │ -000fba80: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000fba90: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000fbaa0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000fbab0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000fbac0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000fbad0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000fbae0: 202d 2070 6163 6b61 6765 5f69 7074 6162   - package_iptab
│ │ │ -000fbaf0: 6c65 735f 696e 7374 616c 6c65 640a 3c2f  les_installed.
low
Disru │ │ │ -000fb830: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000fb840: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000fb880: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000fb890: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +000fb470: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000fb490: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000fb4c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000fb450: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000fb460: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000fb480: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000fb4a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000fb4b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000fb500: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000fb510: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000fb520: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000fb530: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000fb540: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000fb550: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +000fb560: 2050 4349 2d44 5353 2d52 6571 2d31 2e34 PCI-DSS-Req-1.4 │ │ │ +000fb570: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ +000fb580: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000fb590: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000fb5a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000fb5b0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +000fb5c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +000fb5d0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +000fb5e0: 655f 6970 7461 626c 6573 5f69 6e73 7461 e_iptables_insta │ │ │ +000fb5f0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ +000fb600: 7375 7265 2069 7074 6162 6c65 7320 6973 sure iptables is │ │ │ +000fb610: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +000fb620: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +000fb630: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +000fb640: 6970 7461 626c 6573 0a20 2020 2073 7461 iptables. sta │ │ │ +000fb650: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ +000fb660: 656e 3a20 2820 226c 696e 7578 2d62 6173 en: ( "linux-bas │ │ │ +000fb670: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +000fb680: 6374 732e 7061 636b 6167 6573 2029 0a20 cts.packages ). │ │ │ +000fb690: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +000fb6a0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +000fb6b0: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ +000fb6c0: 2e34 2e31 0a20 202d 2065 6e61 626c 655f .4.1. - enable_ │ │ │ +000fb6d0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000fb6e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000fb6f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000fb700: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000fb710: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000fb720: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +000fb730: 6167 655f 6970 7461 626c 6573 5f69 6e73 age_iptables_ins │ │ │ +000fb740: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +000fb800: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000fb810: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000fb890: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000fb8a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000fb8c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000fb8d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000fb8f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000fb910: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000fb940: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000fb950: 7461 6c6c 5f69 7074 6162 6c65 730a 0a63  tall_iptables..c
│ │ │ +000fb960: 6c61 7373 2069 6e73 7461 6c6c 5f69 7074  lass install_ipt
│ │ │ +000fb970: 6162 6c65 7320 7b0a 2020 7061 636b 6167  ables {.  packag
│ │ │ +000fb980: 6520 7b20 2769 7074 6162 6c65 7327 3a0a  e { 'iptables':.
│ │ │ +000fb990: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000fb9a0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000fb9b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000fba70: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000fba80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000fbad0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000fbae0: 6d65 203d 2022 6970 7461 626c 6573 220a  me = "iptables".
│ │ │ +000fbaf0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
│ │ │ -000fc710: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000fc720: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000fc7c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -000fc860: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ -000fc870: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -000fc880: 6e74 0a0a 636c 6173 7320 7265 6d6f 7665  nt..class remove
│ │ │ -000fc890: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -000fc8a0: 7465 6e74 207b 0a20 2070 6163 6b61 6765  tent {.  package
│ │ │ -000fc8b0: 207b 2027 6970 7461 626c 6573 2d70 6572   { 'iptables-per
│ │ │ -000fc8c0: 7369 7374 656e 7427 3a0a 2020 2020 656e  sistent':.    en
│ │ │ -000fc8d0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -000fc8e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000fc9a0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000fc9b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -000fc7b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000fc7e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000fc7f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000fc830: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -000fc840: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -000fca40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000fca50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000fca70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000fca90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000fcaa0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -000fcae0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000fcaf0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000fcb00: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -000fcb10: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000fcb20: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -000fcb30: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -000fcb40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000fcb50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000fcb60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000fcb70: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000fcb80: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000fcb90: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000fcba0: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ -000fcbb0: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ -000fcbc0: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ -000fcbd0: 6f76 6520 6970 7461 626c 6573 2d70 6572  ove iptables-per
│ │ │ -000fcbe0: 7369 7374 656e 7420 5061 636b 6167 653a  sistent Package:
│ │ │ -000fcbf0: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ -000fcc00: 2d70 6572 7369 7374 656e 7420 6973 2072  -persistent is r
│ │ │ -000fcc10: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -000fcc20: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000fcc30: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ -000fcc40: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -000fcc50: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -000fcc60: 6e74 0a20 2077 6865 6e3a 2027 2275 6677  nt.  when: '"ufw
│ │ │ -000fcc70: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000fcc80: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000fcc90: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -000fcca0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000fccb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000fccc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000fccd0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000fcce0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000fccf0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000fcd00: 6b61 6765 5f69 7074 6162 6c65 732d 7065  kage_iptables-pe
│ │ │ -000fcd10: 7273 6973 7465 6e74 5f72 656d 6f76 6564  rsistent_removed
│ │ │ +000fc710: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +000fc720: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +000fc730: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +000fc800: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000fc810: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +000fc860: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000fc870: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000fc880: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000fc890: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000fc8a0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000fc8b0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +000fc8c0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000fc8d0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000fc8e0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000fc8f0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000fc900: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000fc910: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +000fc920: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +000fc930: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +000fc940: 2027 5265 6d6f 7665 2069 7074 6162 6c65   'Remove iptable
│ │ │ +000fc950: 732d 7065 7273 6973 7465 6e74 2050 6163  s-persistent Pac
│ │ │ +000fc960: 6b61 6765 3a20 456e 7375 7265 2069 7074  kage: Ensure ipt
│ │ │ +000fc970: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000fc980: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +000fc990: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000fc9a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000fc9b0: 3a20 6970 7461 626c 6573 2d70 6572 7369  : iptables-persi
│ │ │ +000fc9c0: 7374 656e 740a 2020 2020 7374 6174 653a  stent.    state:
│ │ │ +000fc9d0: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +000fc9e0: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ +000fc9f0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +000fca00: 270a 2020 7461 6773 3a0a 2020 2d20 6469  '.  tags:.  - di
│ │ │ +000fca10: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +000fca20: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000fca30: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000fca40: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000fca50: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000fca60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000fca70: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ +000fca80: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ +000fca90: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +000fcb50: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000fcb60: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000fcc20: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000fcc30: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +000fc7e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000fc7f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000fc830: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +000fc840: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +000fcbf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000fcc10: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000fcc40: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000fcc60: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +000fcc90: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +000fcca0: 6d6f 7665 5f69 7074 6162 6c65 732d 7065  move_iptables-pe
│ │ │ +000fccb0: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ +000fccc0: 7265 6d6f 7665 5f69 7074 6162 6c65 732d  remove_iptables-
│ │ │ +000fccd0: 7065 7273 6973 7465 6e74 207b 0a20 2070  persistent {.  p
│ │ │ +000fcce0: 6163 6b61 6765 207b 2027 6970 7461 626c  ackage { 'iptabl
│ │ │ +000fccf0: 6573 2d70 6572 7369 7374 656e 7427 3a0a  es-persistent':.
│ │ │ +000fcd00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000fcd10: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  000fcd20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -00148270: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00148280: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -001482e0: 616d 6520 3d20 226e 6674 6162 6c65 7322  ame = "nftables"
│ │ │ -001482f0: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -00148300: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -001483b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -001483c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00148460: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00148470: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001484c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00148500: 6c75 6465 2069 6e73 7461 6c6c 5f6e 6674  lude install_nft
│ │ │ -00148510: 6162 6c65 730a 0a63 6c61 7373 2069 6e73  ables..class ins
│ │ │ -00148520: 7461 6c6c 5f6e 6674 6162 6c65 7320 7b0a  tall_nftables {.
│ │ │ -00148530: 2020 7061 636b 6167 6520 7b20 276e 6674    package { 'nft
│ │ │ -00148540: 6162 6c65 7327 3a0a 2020 2020 656e 7375  ables':.    ensu
│ │ │ -00148550: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -00148560: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -00148580: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00148590: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001485a0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001485b0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001485c0: 6434 3230 2220 7461 6269 6e64 6578 3d22 d420" tabindex=" │ │ │ -001485d0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001485e0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001485f0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00148600: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00148610: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00148620: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00148630: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00148640: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00148450: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00148480: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00148490: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001484d0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001484e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ -001486c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001486f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00148710: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00148720: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00148740: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00148760: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00148770: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00148780: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00148790: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -001487a0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -001487b0: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -001487c0: 5353 7634 2d31 2e32 0a20 202d 2050 4349  SSv4-1.2.  - PCI
│ │ │ -001487d0: 2d44 5353 7634 2d31 2e32 2e31 0a20 202d  -DSSv4-1.2.1.  -
│ │ │ -001487e0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -001487f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00148800: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00148810: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00148820: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00148830: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00148840: 2020 2d20 7061 636b 6167 655f 6e66 7461    - package_nfta
│ │ │ -00148850: 626c 6573 5f69 6e73 7461 6c6c 6564 0a0a  bles_installed..
│ │ │ -00148860: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ -00148870: 6674 6162 6c65 7320 6973 2069 6e73 7461  ftables is insta
│ │ │ -00148880: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -00148890: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -001488a0: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ -001488b0: 6573 0a20 2020 2073 7461 7465 3a20 7072  es.    state: pr
│ │ │ -001488c0: 6573 656e 740a 2020 7768 656e 3a20 2820  esent.  when: ( 
│ │ │ -001488d0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -001488e0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -001488f0: 636b 6167 6573 2029 0a20 2074 6167 733a  ckages ).  tags:
│ │ │ -00148900: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00148910: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -00148920: 2d31 2e32 2e31 0a20 202d 2065 6e61 626c  -1.2.1.  - enabl
│ │ │ -00148930: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00148940: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00148950: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00148960: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00148970: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00148980: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00148990: 636b 6167 655f 6e66 7461 626c 6573 5f69  ckage_nftables_i
│ │ │ -001489a0: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00148270: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00148280: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +00148310: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00148330: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00148340: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00148350: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00148360: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00148380: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +001483c0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +001483d0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +001483e0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +001483f0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00148400: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ +00148410: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00148420: 312e 322e 310a 2020 2d20 656e 6162 6c65  1.2.1.  - enable
│ │ │ +00148430: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00148440: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00148450: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00148460: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00148470: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00148480: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00148490: 6b61 6765 5f6e 6674 6162 6c65 735f 696e  kage_nftables_in
│ │ │ +001484a0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +001484b0: 2045 6e73 7572 6520 6e66 7461 626c 6573   Ensure nftables
│ │ │ +001484c0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +001484d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001484e0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +001484f0: 653a 206e 6674 6162 6c65 730a 2020 2020  e: nftables.    
│ │ │ +00148500: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +00148510: 2077 6865 6e3a 2028 2022 6c69 6e75 782d   when: ( "linux-
│ │ │ +00148520: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00148530: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00148540: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ +00148550: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +00148560: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +00148570: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00148580: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00148590: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001485a0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +001485b0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001485c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001485d0: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +001485e0: 6674 6162 6c65 735f 696e 7374 616c 6c65  ftables_installe
│ │ │ +001485f0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00148600: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +001486b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +001486c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00148790: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001487a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +001487f0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00148800: 6e66 7461 626c 6573 0a0a 636c 6173 7320  nftables..class 
│ │ │ +00148810: 696e 7374 616c 6c5f 6e66 7461 626c 6573  install_nftables
│ │ │ +00148820: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00148830: 6e66 7461 626c 6573 273a 0a20 2020 2065  nftables':.    e
│ │ │ +00148840: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +00148850: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +00148860: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00148910: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00148920: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00148930: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00148940: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00148970: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00148980: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +00148990: 226e 6674 6162 6c65 7322 0a76 6572 7369  "nftables".versi
│ │ │ +001489a0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  001489b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Reme │ │ │ -00149630: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -00149640: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00149650: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -001496a0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -001496b0: 735d 0a65 6e61 626c 6564 203d 205b 226e s].enabled = ["n │ │ │ -001496c0: 6674 6162 6c65 7322 5d0a 3c2f 636f 6465 ftables"].Remedi │ │ │ -00149780: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00149790: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001497a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001497d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00148770: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00148780: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001487c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +001487d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00149840: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00149860: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00149890: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -001498b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00149820: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00149830: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00149870: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00149880: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -001498d0: 656e 6162 6c65 5f6e 6674 6162 6c65 730a enable_nftables. │ │ │ -001498e0: 0a63 6c61 7373 2065 6e61 626c 655f 6e66 .class enable_nf │ │ │ -001498f0: 7461 626c 6573 207b 0a20 2073 6572 7669 tables {. servi │ │ │ -00149900: 6365 207b 276e 6674 6162 6c65 7327 3a0a ce {'nftables':. │ │ │ -00149910: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ -00149920: 2074 7275 652c 0a20 2020 2065 6e73 7572 true,. ensur │ │ │ -00149930: 6520 3d26 6774 3b20 2772 756e 6e69 6e67 e => 'running │ │ │ -00149940: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00149950: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -00149a00: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00149a10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00149a20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00149a50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00149ac0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00149ae0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00149b10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00149b30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00149aa0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00149ab0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00149af0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00149b00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -00149b50: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00149b60: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00149b70: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00149b80: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00149b90: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00149ba0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00149bb0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00149bc0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00149bd0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00149be0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00149bf0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00149c00: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ -00149c10: 6c65 640a 0a2d 206e 616d 653a 2056 6572 led..- name: Ver │ │ │ -00149c20: 6966 7920 6e66 7461 626c 6573 2053 6572 ify nftables Ser │ │ │ -00149c30: 7669 6365 2069 7320 456e 6162 6c65 6420 vice is Enabled │ │ │ -00149c40: 2d20 456e 6162 6c65 2073 6572 7669 6365 - Enable service │ │ │ -00149c50: 206e 6674 6162 6c65 730a 2020 626c 6f63 nftables. bloc │ │ │ -00149c60: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ -00149c70: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ -00149c80: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ -00149c90: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00149ca0: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ -00149cb0: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ -00149cc0: 202d 206e 616d 653a 2056 6572 6966 7920 - name: Verify │ │ │ -00149cd0: 6e66 7461 626c 6573 2053 6572 7669 6365 nftables Service │ │ │ -00149ce0: 2069 7320 456e 6162 6c65 6420 2d20 456e is Enabled - En │ │ │ -00149cf0: 6162 6c65 2053 6572 7669 6365 206e 6674 able Service nft │ │ │ -00149d00: 6162 6c65 730a 2020 2020 616e 7369 626c ables. ansibl │ │ │ -00149d10: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -00149d20: 643a 0a20 2020 2020 206e 616d 653a 206e d:. name: n │ │ │ -00149d30: 6674 6162 6c65 730a 2020 2020 2020 656e ftables. en │ │ │ -00149d40: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ -00149d50: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ -00149d60: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ -00149d70: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ -00149d80: 2020 202d 2027 226e 6674 6162 6c65 7322 - '"nftables" │ │ │ -00149d90: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00149da0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00149db0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00149dc0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00149dd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00149de0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00149df0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00149e00: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00149e10: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00149e20: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ -00149e30: 6c65 640a 2020 2d20 7370 6563 6961 6c5f led. - special_ │ │ │ -00149e40: 7365 7276 6963 655f 626c 6f63 6b0a 2020 service_block. │ │ │ -00149e50: 7768 656e 3a20 2820 226e 6674 6162 6c65 when: ( "nftable │ │ │ -00149e60: 7322 2069 6e20 616e 7369 626c 655f 6661 s" in ansible_fa │ │ │ -00149e70: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ -00149e80: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ -00149e90: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00149ea0: 6163 6b61 6765 730a 2020 2020 290a 3c2f ackages. ).< │ │ │ +00149650: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001496d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00149700: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00149720: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00149730: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00149750: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00149770: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00149780: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00149790: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +001497a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +001497b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +001497c0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +001497d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001497e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001497f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00149800: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00149810: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00149820: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00149830: 7276 6963 655f 6e66 7461 626c 6573 5f65  rvice_nftables_e
│ │ │ +00149840: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +00149850: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ +00149860: 5365 7276 6963 6520 6973 2045 6e61 626c  Service is Enabl
│ │ │ +00149870: 6564 202d 2045 6e61 626c 6520 7365 7276  ed - Enable serv
│ │ │ +00149880: 6963 6520 6e66 7461 626c 6573 0a20 2062  ice nftables.  b
│ │ │ +00149890: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +001498a0: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +001498b0: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +001498c0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +001498d0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +001498e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +001498f0: 0a0a 2020 2d20 6e61 6d65 3a20 5665 7269  ..  - name: Veri
│ │ │ +00149900: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ +00149910: 6963 6520 6973 2045 6e61 626c 6564 202d  ice is Enabled -
│ │ │ +00149920: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +00149930: 6e66 7461 626c 6573 0a20 2020 2061 6e73  nftables.    ans
│ │ │ +00149940: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00149950: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00149960: 3a20 6e66 7461 626c 6573 0a20 2020 2020  : nftables.     
│ │ │ +00149970: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +00149980: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +00149990: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +001499a0: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +001499b0: 3a0a 2020 2020 2d20 2722 6e66 7461 626c  :.    - '"nftabl
│ │ │ +001499c0: 6573 2220 696e 2061 6e73 6962 6c65 5f66  es" in ansible_f
│ │ │ +001499d0: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +001499e0: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +001499f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00149a00: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00149a10: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00149a20: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00149a30: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00149a40: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00149a50: 7276 6963 655f 6e66 7461 626c 6573 5f65  rvice_nftables_e
│ │ │ +00149a60: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +00149a70: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00149a80: 0a20 2077 6865 6e3a 2028 2022 6e66 7461  .  when: ( "nfta
│ │ │ +00149a90: 626c 6573 2220 696e 2061 6e73 6962 6c65  bles" in ansible
│ │ │ +00149aa0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00149ab0: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +00149ac0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00149ad0: 732e 7061 636b 6167 6573 0a20 2020 2029  s.packages.    )
│ │ │ +00149ae0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00149ba0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00149bb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00149c80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00149c90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00149ce0: 6e63 6c75 6465 2065 6e61 626c 655f 6e66  nclude enable_nf
│ │ │ +00149cf0: 7461 626c 6573 0a0a 636c 6173 7320 656e  tables..class en
│ │ │ +00149d00: 6162 6c65 5f6e 6674 6162 6c65 7320 7b0a  able_nftables {.
│ │ │ +00149d10: 2020 7365 7276 6963 6520 7b27 6e66 7461    service {'nfta
│ │ │ +00149d20: 626c 6573 273a 0a20 2020 2065 6e61 626c  bles':.    enabl
│ │ │ +00149d30: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00149d40: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00149d50: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +00149d60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00149e10: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00149e20: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00149e30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00149e80: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00149e90: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +00149ea0: 205b 226e 6674 6162 6c65 7322 5d0a 3c2f   ["nftables"].
Remediati │ │ │ -0014acb0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0014acc0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0014acd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -0014ad20: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -0014ad30: 736b 6564 203d 205b 226e 6674 6162 6c65  sked = ["nftable
│ │ │ -0014ad40: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -0014ae00: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0014ae10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ +00149c60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00149c70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00149cb0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00149cc0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -0014ae90: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0014aeb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0014af00: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0014af30: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -0014af50: 655f 6e66 7461 626c 6573 0a0a 636c 6173  e_nftables..clas
│ │ │ -0014af60: 7320 6469 7361 626c 655f 6e66 7461 626c  s disable_nftabl
│ │ │ -0014af70: 6573 207b 0a20 2073 6572 7669 6365 207b  es {.  service {
│ │ │ -0014af80: 276e 6674 6162 6c65 7327 3a0a 2020 2020  'nftables':.    
│ │ │ -0014af90: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0014afa0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0014afb0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0014afc0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0014b080: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0014b090: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0014b110: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0014b150: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:< │ │ │ -0014aea0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0014aec0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0014af10: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0014af20: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -0014b120: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0014b140: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0014b170: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0014b190: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0014b1c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0014b1d0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0014b1e0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0014b1f0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0014b200: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0014b210: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -0014b220: 312e 320a 2020 2d20 5043 492d 4453 5376  1.2.  - PCI-DSSv
│ │ │ -0014b230: 342d 312e 322e 310a 2020 2d20 6469 7361  4-1.2.1.  - disa
│ │ │ -0014b240: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0014b250: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0014b260: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0014b270: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0014b280: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0014b290: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0014b2a0: 7365 7276 6963 655f 6e66 7461 626c 6573  service_nftables
│ │ │ -0014b2b0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -0014b2c0: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ -0014b2d0: 6573 2053 6572 7669 6365 2069 7320 4469  es Service is Di
│ │ │ -0014b2e0: 7361 626c 6564 202d 2044 6973 6162 6c65  sabled - Disable
│ │ │ -0014b2f0: 2073 6572 7669 6365 206e 6674 6162 6c65   service nftable
│ │ │ -0014b300: 730a 2020 626c 6f63 6b3a 0a0a 2020 2d20  s.  block:..  - 
│ │ │ -0014b310: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ -0014b320: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ -0014b330: 2044 6973 6162 6c65 6420 2d20 436f 6c6c   Disabled - Coll
│ │ │ -0014b340: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0014b350: 6963 6573 2050 7265 7365 6e74 2069 6e0a  ices Present in.
│ │ │ -0014b360: 2020 2020 2020 7468 6520 5379 7374 656d        the System
│ │ │ -0014b370: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0014b380: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0014b390: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0014b3a0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -0014b3b0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -0014b3c0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -0014b3d0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -0014b3e0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0014b3f0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -0014b400: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -0014b410: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -0014b420: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -0014b430: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -0014b440: 2056 6572 6966 7920 6e66 7461 626c 6573   Verify nftables
│ │ │ -0014b450: 2053 6572 7669 6365 2069 7320 4469 7361   Service is Disa
│ │ │ -0014b460: 626c 6564 202d 2045 6e73 7572 6520 6e66  bled - Ensure nf
│ │ │ -0014b470: 7461 626c 6573 2e73 6572 7669 6365 2069  tables.service i
│ │ │ -0014b480: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -0014b490: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -0014b4a0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -0014b4b0: 3a20 6e66 7461 626c 6573 2e73 6572 7669  : nftables.servi
│ │ │ -0014b4c0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -0014b4d0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -0014b4e0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0014b4f0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -0014b500: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -0014b510: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0014b520: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0014b530: 226e 6674 6162 6c65 732e 7365 7276 6963  "nftables.servic
│ │ │ -0014b540: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -0014b550: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -0014b560: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -0014b570: 7320 2d20 6e66 7461 626c 6573 2e73 6f63  s - nftables.soc
│ │ │ -0014b580: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0014b590: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0014b5a0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0014b5b0: 7374 2d75 6e69 742d 6669 6c65 7320 6e66  st-unit-files nf
│ │ │ -0014b5c0: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ -0014b5d0: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -0014b5e0: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -0014b5f0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0014b600: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0014b610: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -0014b620: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -0014b630: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -0014b640: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -0014b650: 650a 0a20 202d 206e 616d 653a 2056 6572  e..  - name: Ver
│ │ │ -0014b660: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ -0014b670: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ -0014b680: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -0014b690: 7420 6e66 7461 626c 6573 0a20 2020 2061  t nftables.    a
│ │ │ -0014b6a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0014b6b0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0014b6c0: 6d65 3a20 6e66 7461 626c 6573 2e73 6f63  me: nftables.soc
│ │ │ -0014b6d0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -0014b6e0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -0014b6f0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0014b700: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -0014b710: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -0014b720: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -0014b730: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0014b740: 6172 6368 2822 6e66 7461 626c 6573 2e73  arch("nftables.s
│ │ │ -0014b750: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -0014b760: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -0014b770: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ -0014b780: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -0014b790: 312e 322e 310a 2020 2d20 6469 7361 626c  1.2.1.  - disabl
│ │ │ -0014b7a0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0014b7b0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0014b7c0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0014b7d0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0014b7e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0014b7f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0014b800: 7276 6963 655f 6e66 7461 626c 6573 5f64  rvice_nftables_d
│ │ │ -0014b810: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -0014b820: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -0014b830: 6b0a 2020 7768 656e 3a20 2820 2266 6972  k.  when: ( "fir
│ │ │ -0014b840: 6577 616c 6c64 2220 696e 2061 6e73 6962  ewalld" in ansib
│ │ │ -0014b850: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0014b860: 7320 616e 6420 226e 6674 6162 6c65 7322  s and "nftables"
│ │ │ -0014b870: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0014b880: 732e 7061 636b 6167 6573 0a20 2020 2061  s.packages.    a
│ │ │ -0014b890: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ -0014b8a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0014b8b0: 2e70 6163 6b61 6765 7320 290a 3c2f 636f  .packages ).
│ │ │ +0014ad40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0014ad50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0014ad60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0014ada0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0014adb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0014add0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0014ade0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0014ae00: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0014ae10: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0014ae20: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0014ae30: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0014ae40: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0014ae50: 2d31 2e32 0a20 202d 2050 4349 2d44 5353  -1.2.  - PCI-DSS
│ │ │ +0014ae60: 7634 2d31 2e32 2e31 0a20 202d 2064 6973  v4-1.2.1.  - dis
│ │ │ +0014ae70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0014ae80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0014ae90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0014aea0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +0014aeb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0014aec0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0014aed0: 2073 6572 7669 6365 5f6e 6674 6162 6c65   service_nftable
│ │ │ +0014aee0: 735f 6469 7361 626c 6564 0a0a 2d20 6e61  s_disabled..- na
│ │ │ +0014aef0: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ +0014af00: 6c65 7320 5365 7276 6963 6520 6973 2044  les Service is D
│ │ │ +0014af10: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ +0014af20: 6520 7365 7276 6963 6520 6e66 7461 626c  e service nftabl
│ │ │ +0014af30: 6573 0a20 2062 6c6f 636b 3a0a 0a20 202d  es.  block:..  -
│ │ │ +0014af40: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +0014af50: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +0014af60: 7320 4469 7361 626c 6564 202d 2043 6f6c  s Disabled - Col
│ │ │ +0014af70: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0014af80: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0014af90: 0a20 2020 2020 2074 6865 2053 7973 7465  .      the Syste
│ │ │ +0014afa0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +0014afb0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0014afc0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0014afd0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +0014afe0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +0014aff0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +0014b000: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0014b010: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0014b020: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0014b030: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +0014b040: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0014b050: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0014b060: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0014b070: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +0014b080: 7320 5365 7276 6963 6520 6973 2044 6973  s Service is Dis
│ │ │ +0014b090: 6162 6c65 6420 2d20 456e 7375 7265 206e  abled - Ensure n
│ │ │ +0014b0a0: 6674 6162 6c65 732e 7365 7276 6963 6520  ftables.service 
│ │ │ +0014b0b0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0014b0c0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0014b0d0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0014b0e0: 653a 206e 6674 6162 6c65 732e 7365 7276  e: nftables.serv
│ │ │ +0014b0f0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +0014b100: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +0014b110: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0014b120: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0014b130: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +0014b140: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +0014b150: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +0014b160: 2822 6e66 7461 626c 6573 2e73 6572 7669  ("nftables.servi
│ │ │ +0014b170: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +0014b180: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +0014b190: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +0014b1a0: 7473 202d 206e 6674 6162 6c65 732e 736f  ts - nftables.so
│ │ │ +0014b1b0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +0014b1c0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +0014b1d0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +0014b1e0: 6973 742d 756e 6974 2d66 696c 6573 206e  ist-unit-files n
│ │ │ +0014b1f0: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ +0014b200: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0014b210: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0014b220: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0014b230: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0014b240: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0014b250: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0014b260: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0014b270: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0014b280: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5665  se..  - name: Ve
│ │ │ +0014b290: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +0014b2a0: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +0014b2b0: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ +0014b2c0: 6574 206e 6674 6162 6c65 730a 2020 2020  et nftables.    
│ │ │ +0014b2d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0014b2e0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0014b2f0: 616d 653a 206e 6674 6162 6c65 732e 736f  ame: nftables.so
│ │ │ +0014b300: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0014b310: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0014b320: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0014b330: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0014b340: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0014b350: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0014b360: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0014b370: 6561 7263 6828 226e 6674 6162 6c65 732e  earch("nftables.
│ │ │ +0014b380: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0014b390: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0014b3a0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0014b3b0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0014b3c0: 2d31 2e32 2e31 0a20 202d 2064 6973 6162  -1.2.1.  - disab
│ │ │ +0014b3d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0014b3e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0014b3f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0014b400: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0014b410: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0014b420: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0014b430: 6572 7669 6365 5f6e 6674 6162 6c65 735f  ervice_nftables_
│ │ │ +0014b440: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +0014b450: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +0014b460: 636b 0a20 2077 6865 6e3a 2028 2022 6669  ck.  when: ( "fi
│ │ │ +0014b470: 7265 7761 6c6c 6422 2069 6e20 616e 7369  rewalld" in ansi
│ │ │ +0014b480: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0014b490: 6573 2061 6e64 2022 6e66 7461 626c 6573  es and "nftables
│ │ │ +0014b4a0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0014b4b0: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ +0014b4c0: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +0014b4d0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0014b4e0: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
│ │ │ +0014b500: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0014b5a0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0014b5b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0014b5c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0014b640: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0014b670: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0014b690: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0014b6a0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0014b6c0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0014b6e0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0014b6f0: 6465 2064 6973 6162 6c65 5f6e 6674 6162  de disable_nftab
│ │ │ +0014b700: 6c65 730a 0a63 6c61 7373 2064 6973 6162  les..class disab
│ │ │ +0014b710: 6c65 5f6e 6674 6162 6c65 7320 7b0a 2020  le_nftables {.  
│ │ │ +0014b720: 7365 7276 6963 6520 7b27 6e66 7461 626c  service {'nftabl
│ │ │ +0014b730: 6573 273a 0a20 2020 2065 6e61 626c 6520  es':.    enable 
│ │ │ +0014b740: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +0014b750: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +0014b760: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +0014b770: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0014b820: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0014b830: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0014b840: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0014b850: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0014b880: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0014b890: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0014b8a0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0014b8b0: 226e 6674 6162 6c65 7322 5d0a 3c2f 636f  "nftables"].
< │ │ │ 0014b8d0: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 0014b8e0: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>< │ │ │ 0014b8f0: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediat │ │ │ -00153950: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00153960: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00153970: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -001539c0: 5d0a 6e61 6d65 203d 2022 7566 7722 0a76  ].name = "ufw".v
│ │ │ -001539d0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -001539f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00153a90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00153aa0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00153ab0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00153b30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00153b60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00153b80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00153b90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00153bb0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00153bd0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00153be0: 6465 2069 6e73 7461 6c6c 5f75 6677 0a0a  de install_ufw..
│ │ │ -00153bf0: 636c 6173 7320 696e 7374 616c 6c5f 7566  class install_uf
│ │ │ -00153c00: 7720 7b0a 2020 7061 636b 6167 6520 7b20  w {.  package { 
│ │ │ -00153c10: 2775 6677 273a 0a20 2020 2065 6e73 7572  'ufw':.    ensur
│ │ │ -00153c20: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -00153c30: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00153cf0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00153d00: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00153d90: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00153da0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00153dc0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00153de0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00153df0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00153e30: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00153e40: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00153e50: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00153e60: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00153e70: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00153e80: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -00153e90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00153ea0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00153eb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00153ec0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -00153ed0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00153ee0: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00153ef0: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c kage_ufw_install │ │ │ -00153f00: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ -00153f10: 7265 2075 6677 2069 7320 696e 7374 616c re ufw is instal │ │ │ -00153f20: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -00153f30: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00153f40: 2020 206e 616d 653a 2075 6677 0a20 2020 name: ufw. │ │ │ -00153f50: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -00153f60: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00153f70: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00153f80: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00153f90: 0a20 2074 6167 733a 0a20 202d 2065 6e61 . tags:. - ena │ │ │ -00153fa0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00153fb0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00153fc0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00153fd0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00153fe0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00153ff0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00154000: 7061 636b 6167 655f 7566 775f 696e 7374 package_ufw_inst │ │ │ -00154010: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +00153970: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00153980: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00153990: 7365 2220 6964 3d22 6964 3434 3322 3e3c se" id="id443">< │ │ │ +001539a0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001539b0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +001539c0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +001539d0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +001539e0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +001539f0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00153a00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00153a40: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00153a50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00153a70: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00153a80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00153aa0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00153ab0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00153ac0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00153ad0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00153ae0: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +00153af0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00153b00: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00153b10: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00153b20: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00153b30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00153b40: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00153b50: 655f 7566 775f 696e 7374 616c 6c65 640a  e_ufw_installed.
│ │ │ +00153b60: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00153b70: 7566 7720 6973 2069 6e73 7461 6c6c 6564  ufw is installed
│ │ │ +00153b80: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00153b90: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00153ba0: 6e61 6d65 3a20 7566 770a 2020 2020 7374  name: ufw.    st
│ │ │ +00153bb0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00153bc0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00153bd0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00153be0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00153bf0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +00153c00: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00153c10: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00153c20: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00153c30: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00153c40: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00153c50: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00153c60: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c  kage_ufw_install
│ │ │ +00153c70: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00153c80: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00153d30: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00153d40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00153dc0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00153de0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00153e30: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00153e80: 5f75 6677 0a0a 636c 6173 7320 696e 7374  _ufw..class inst
│ │ │ +00153e90: 616c 6c5f 7566 7720 7b0a 2020 7061 636b  all_ufw {.  pack
│ │ │ +00153ea0: 6167 6520 7b20 2775 6677 273a 0a20 2020  age { 'ufw':.   
│ │ │ +00153eb0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00153ec0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00153ed0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00153f90: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00153fa0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +00153ff0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00154000: 3d20 2275 6677 220a 7665 7273 696f 6e20  = "ufw".version 
│ │ │ +00154010: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Reme │ │ │ -00154b20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00154b30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00153df0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00153e00: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00153e40: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00153e50: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00154bc0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00154bd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00154bf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00154c10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00154c20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00154c60: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00154c70: 7564 6520 7265 6d6f 7665 5f75 6677 0a0a  ude remove_ufw..
│ │ │ -00154c80: 636c 6173 7320 7265 6d6f 7665 5f75 6677  class remove_ufw
│ │ │ -00154c90: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00154ca0: 7566 7727 3a0a 2020 2020 656e 7375 7265  ufw':.    ensure
│ │ │ -00154cb0: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00154cc0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00154d80: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00154d90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00154e10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00154e20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00154e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00154e70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00154e80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00154ea0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00154eb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00154ed0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00154ee0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00154ef0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00154f00: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00154f10: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00154f20: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00154f30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00154f40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00154f50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00154f60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00154f70: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00154f80: 6765 5f75 6677 5f72 656d 6f76 6564 0a0a  ge_ufw_removed..
│ │ │ -00154f90: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -00154fa0: 7566 7720 5061 636b 6167 653a 2045 6e73  ufw Package: Ens
│ │ │ -00154fb0: 7572 6520 7566 7720 6973 2072 656d 6f76  ure ufw is remov
│ │ │ -00154fc0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00154fd0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00154fe0: 2020 206e 616d 653a 2075 6677 0a20 2020     name: ufw.   
│ │ │ -00154ff0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00155000: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00155010: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00155020: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00155030: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00155040: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00155050: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00155060: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00155070: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00155080: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00155090: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001550a0: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ -001550b0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
< │ │ │ +00154b40: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00154bc0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00154bf0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00154c10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00154c20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00154c40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00154c50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00154c70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00154c80: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00154c90: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00154ca0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00154cb0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00154cc0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00154cd0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00154ce0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00154cf0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00154d00: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00154d10: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00154d20: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ +00154d30: 7665 640a 0a2d 206e 616d 653a 2027 5265  ved..- name: 'Re
│ │ │ +00154d40: 6d6f 7665 2075 6677 2050 6163 6b61 6765  move ufw Package
│ │ │ +00154d50: 3a20 456e 7375 7265 2075 6677 2069 7320  : Ensure ufw is 
│ │ │ +00154d60: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00154d70: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00154d80: 6765 3a0a 2020 2020 6e61 6d65 3a20 7566  ge:.    name: uf
│ │ │ +00154d90: 770a 2020 2020 7374 6174 653a 2061 6273  w.    state: abs
│ │ │ +00154da0: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00154db0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00154dc0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00154dd0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00154de0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00154df0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00154e00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00154e10: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00154e20: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00154e30: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00154e40: 0a20 202d 2070 6163 6b61 6765 5f75 6677  .  - package_ufw
│ │ │ +00154e50: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00154e60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00154f10: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00154f20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00154f30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00154f40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00154f50: 7365 2220 6964 3d22 6964 3434 3922 3e3c se" id="id449">< │ │ │ +00154f60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00154f70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00154f80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00154f90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00154fa0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00154fb0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00154fc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00155000: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00155010: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00155030: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00155040: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00155060: 2072 656d 6f76 655f 7566 770a 0a63 6c61 remove_ufw..cla │ │ │ +00155070: 7373 2072 656d 6f76 655f 7566 7720 7b0a ss remove_ufw {. │ │ │ +00155080: 2020 7061 636b 6167 6520 7b20 2775 6677 package { 'ufw │ │ │ +00155090: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +001550a0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +001550b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -00155d10: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00155d20: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00155d80: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00155d90: 6c65 6420 3d20 5b22 7566 7722 5d0a 3c2f  led = ["ufw"].
Re │ │ │ -00155e50: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00155e60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00155e70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00155f10: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00155f60: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00155ef0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00155f20: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00155f40: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00155f50: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00155f70: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00155f80: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00155fa0: 7564 6520 656e 6162 6c65 5f75 6677 0a0a  ude enable_ufw..
│ │ │ -00155fb0: 636c 6173 7320 656e 6162 6c65 5f75 6677  class enable_ufw
│ │ │ -00155fc0: 207b 0a20 2073 6572 7669 6365 207b 2775   {.  service {'u
│ │ │ -00155fd0: 6677 273a 0a20 2020 2065 6e61 626c 6520  fw':.    enable 
│ │ │ -00155fe0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -00155ff0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -00156000: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -001560c0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -001560d0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00156170: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00156180: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -001561d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00156210: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00156220: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00156230: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00156240: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00156250: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00156260: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00156270: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00156280: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00156290: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -001562a0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -001562b0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001562c0: 7365 7276 6963 655f 7566 775f 656e 6162  service_ufw_enab
│ │ │ -001562d0: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ -001562e0: 6966 7920 7566 7720 456e 6162 6c65 6420  ify ufw Enabled 
│ │ │ -001562f0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00156300: 2075 6677 0a20 2062 6c6f 636b 3a0a 0a20   ufw.  block:.. 
│ │ │ -00156310: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -00156320: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00156330: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -00156340: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -00156350: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -00156360: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -00156370: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ -00156380: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -00156390: 5365 7276 6963 6520 7566 770a 2020 2020  Service ufw.    
│ │ │ -001563a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -001563b0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -001563c0: 616d 653a 2075 6677 0a20 2020 2020 2065  ame: ufw.      e
│ │ │ -001563d0: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -001563e0: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -001563f0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00156400: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00156410: 2020 2020 2d20 2722 7566 7722 2069 6e20      - '"ufw" in 
│ │ │ -00156420: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00156430: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00156440: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00156450: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00156460: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00156470: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00156480: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00156490: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -001564a0: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ -001564b0: 6677 5f65 6e61 626c 6564 0a20 202d 2073  fw_enabled.  - s
│ │ │ -001564c0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -001564d0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -001564e0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -001564f0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00156500: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -00156510: 2275 6677 2220 696e 2061 6e73 6962 6c65  "ufw" in ansible
│ │ │ -00156520: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ -00156530: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ -00156540: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00156550: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
< │ │ │ +00155de0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00155df0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00156160: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00156190: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -001561a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -001561e0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -001561f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00155db0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00155dd0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00155e00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00155e20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00155e60: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00155e70: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00155e80: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00155e90: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00155ea0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00155eb0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00155ec0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00155ed0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00155ee0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00155ef0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00155f00: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ +00155f10: 6677 5f65 6e61 626c 6564 0a0a 2d20 6e61  fw_enabled..- na
│ │ │ +00155f20: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ +00155f30: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ +00155f40: 7365 7276 6963 6520 7566 770a 2020 626c  service ufw.  bl
│ │ │ +00155f50: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00155f60: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00155f70: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00155f80: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00155f90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00155fa0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00155fb0: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ +00155fc0: 7920 7566 7720 456e 6162 6c65 6420 2d20  y ufw Enabled - 
│ │ │ +00155fd0: 456e 6162 6c65 2053 6572 7669 6365 2075  Enable Service u
│ │ │ +00155fe0: 6677 0a20 2020 2061 6e73 6962 6c65 2e62  fw.    ansible.b
│ │ │ +00155ff0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00156000: 2020 2020 2020 6e61 6d65 3a20 7566 770a        name: ufw.
│ │ │ +00156010: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +00156020: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +00156030: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +00156040: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +00156050: 2077 6865 6e3a 0a20 2020 202d 2027 2275   when:.    - '"u
│ │ │ +00156060: 6677 2220 696e 2061 6e73 6962 6c65 5f66  fw" in ansible_f
│ │ │ +00156070: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00156080: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00156090: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001560a0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001560b0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001560c0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001560d0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001560e0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001560f0: 7276 6963 655f 7566 775f 656e 6162 6c65  rvice_ufw_enable
│ │ │ +00156100: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00156110: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00156120: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ +00156130: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00156140: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00156150: 0a20 202d 2028 2022 7566 7722 2069 6e20  .  - ( "ufw" in 
│ │ │ +00156160: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00156170: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +00156180: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00156190: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +001561a0: 7320 290a 3c2f 636f 6465 3e3c 2f70 7265  s ).
Remediation │ │ │ +00156260: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00156270: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +001562f0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00156310: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00156360: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00156390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +001563b0: 5f75 6677 0a0a 636c 6173 7320 656e 6162  _ufw..class enab
│ │ │ +001563c0: 6c65 5f75 6677 207b 0a20 2073 6572 7669  le_ufw {.  servi
│ │ │ +001563d0: 6365 207b 2775 6677 273a 0a20 2020 2065  ce {'ufw':.    e
│ │ │ +001563e0: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +001563f0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00156400: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +00156410: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +001564d0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +001564e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00156530: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00156540: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00156550: 6564 203d 205b 2275 6677 225d 0a3c 2f63  ed = ["ufw"].
│ │ │ 00156570: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remedia │ │ │ -0015a880: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -0015a890: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -0015a8a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -0015a8e0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -0015a8f0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -0015a900: 6d61 736b 6564 203d 205b 2262 6c75 6574  masked = ["bluet
│ │ │ -0015a910: 6f6f 7468 225d 0a3c 2f63 6f64 653e 3c2f  ooth"].
Remediati │ │ │ -0015a9d0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0015a9e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0015aa60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ -0015aaa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:< │ │ │ +00156300: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00156320: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00156370: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00156380: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -0015aa70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0015aa90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0015aac0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0015aae0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -0015ab10: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -0015ab20: 6162 6c65 5f62 6c75 6574 6f6f 7468 0a0a  able_bluetooth..
│ │ │ -0015ab30: 636c 6173 7320 6469 7361 626c 655f 626c  class disable_bl
│ │ │ -0015ab40: 7565 746f 6f74 6820 7b0a 2020 7365 7276  uetooth {.  serv
│ │ │ -0015ab50: 6963 6520 7b27 626c 7565 746f 6f74 6827  ice {'bluetooth'
│ │ │ -0015ab60: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -0015ab70: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -0015ab80: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -0015ab90: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -0015abb0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0015abc0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0015abd0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0015abe0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0015abf0: 6434 3633 2220 7461 6269 6e64 6578 3d22 d463" tabindex=" │ │ │ -0015ac00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0015ac10: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0015ac20: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0015ac30: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0015ac40: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0015ac50: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0015ac60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0015ac70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0015acf0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0015ad20: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0015ad40: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0015ad50: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0015ad70: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0015ad80: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0015ada0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0015adb0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0015adc0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0015add0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0015ade0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0015adf0: 2d38 3030 2d31 3731 2d33 2e31 2e31 360a  -800-171-3.1.16.
│ │ │ -0015ae00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0015ae10: 4143 2d31 3828 3329 0a20 202d 204e 4953  AC-18(3).  - NIS
│ │ │ -0015ae20: 542d 3830 302d 3533 2d41 432d 3138 2861  T-800-53-AC-18(a
│ │ │ -0015ae30: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0015ae40: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0015ae50: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0015ae60: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0015ae70: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ -0015ae80: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ -0015ae90: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0015aea0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0015aeb0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0015aec0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0015aed0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0015aee0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0015aef0: 6564 0a20 202d 2073 6572 7669 6365 5f62  ed.  - service_b
│ │ │ -0015af00: 6c75 6574 6f6f 7468 5f64 6973 6162 6c65  luetooth_disable
│ │ │ -0015af10: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0015af20: 6c65 2042 6c75 6574 6f6f 7468 2053 6572  le Bluetooth Ser
│ │ │ -0015af30: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -0015af40: 6572 7669 6365 2062 6c75 6574 6f6f 7468  ervice bluetooth
│ │ │ -0015af50: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0015af60: 616d 653a 2044 6973 6162 6c65 2042 6c75  ame: Disable Blu
│ │ │ -0015af70: 6574 6f6f 7468 2053 6572 7669 6365 202d  etooth Service -
│ │ │ -0015af80: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -0015af90: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -0015afa0: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -0015afb0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0015afc0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -0015afd0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -0015afe0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -0015aff0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -0015b000: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -0015b010: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -0015b020: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -0015b030: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -0015b040: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -0015b050: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -0015b060: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -0015b070: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -0015b080: 4469 7361 626c 6520 426c 7565 746f 6f74  Disable Bluetoot
│ │ │ -0015b090: 6820 5365 7276 6963 6520 2d20 456e 7375  h Service - Ensu
│ │ │ -0015b0a0: 7265 2062 6c75 6574 6f6f 7468 2e73 6572  re bluetooth.ser
│ │ │ -0015b0b0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0015b0c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0015b0d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0015b0e0: 2020 6e61 6d65 3a20 626c 7565 746f 6f74    name: bluetoot
│ │ │ -0015b0f0: 682e 7365 7276 6963 650a 2020 2020 2020  h.service.      
│ │ │ -0015b100: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0015b110: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0015b120: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0015b130: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0015b140: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0015b150: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0015b160: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ -0015b170: 682e 7365 7276 6963 6522 2c20 6d75 6c74  h.service", mult
│ │ │ -0015b180: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -0015b190: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -0015b1a0: 6574 2045 7869 7374 7320 2d20 626c 7565  et Exists - blue
│ │ │ -0015b1b0: 746f 6f74 682e 736f 636b 6574 0a20 2020  tooth.socket.   
│ │ │ -0015b1c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0015b1d0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0015b1e0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0015b1f0: 2d66 696c 6573 2062 6c75 6574 6f6f 7468  -files bluetooth
│ │ │ -0015b200: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0015b210: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0015b220: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0015b230: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0015b240: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0015b250: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0015b260: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0015b270: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0015b280: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0015b290: 206e 616d 653a 2044 6973 6162 6c65 2042   name: Disable B
│ │ │ -0015b2a0: 6c75 6574 6f6f 7468 2053 6572 7669 6365  luetooth Service
│ │ │ -0015b2b0: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -0015b2c0: 7420 626c 7565 746f 6f74 680a 2020 2020  t bluetooth.    
│ │ │ -0015b2d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0015b2e0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -0015b2f0: 616d 653a 2062 6c75 6574 6f6f 7468 2e73  ame: bluetooth.s
│ │ │ -0015b300: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -0015b310: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0015b320: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0015b330: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -0015b340: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -0015b350: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0015b360: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0015b370: 7365 6172 6368 2822 626c 7565 746f 6f74  search("bluetoot
│ │ │ -0015b380: 682e 736f 636b 6574 222c 206d 756c 7469  h.socket", multi
│ │ │ -0015b390: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -0015b3a0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0015b3b0: 3137 312d 332e 312e 3136 0a20 202d 204e  171-3.1.16.  - N
│ │ │ -0015b3c0: 4953 542d 3830 302d 3533 2d41 432d 3138  IST-800-53-AC-18
│ │ │ -0015b3d0: 2833 290a 2020 2d20 4e49 5354 2d38 3030  (3).  - NIST-800
│ │ │ -0015b3e0: 2d35 332d 4143 2d31 3828 6129 0a20 202d  -53-AC-18(a).  -
│ │ │ -0015b3f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0015b400: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0015b410: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0015b420: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0015b430: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ -0015b440: 302d 3533 2d4d 502d 370a 2020 2d20 6469  0-53-MP-7.  - di
│ │ │ -0015b450: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0015b460: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0015b470: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0015b480: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0015b490: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0015b4a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0015b4b0: 2d20 7365 7276 6963 655f 626c 7565 746f  - service_blueto
│ │ │ -0015b4c0: 6f74 685f 6469 7361 626c 6564 0a20 202d  oth_disabled.  -
│ │ │ -0015b4d0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0015b4e0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -0015b4f0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0015b500: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0015b510: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0015a880: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +0015a890: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +0015a8a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0015a8d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0015a940: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0015a960: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0015a990: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0015a920: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0015a930: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0015a970: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0015a980: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0015a9d0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0015a9e0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0015a9f0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0015aa00: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0015aa10: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0015aa20: 302d 3137 312d 332e 312e 3136 0a20 202d 0-171-3.1.16. - │ │ │ +0015aa30: 204e 4953 542d 3830 302d 3533 2d41 432d NIST-800-53-AC- │ │ │ +0015aa40: 3138 2833 290a 2020 2d20 4e49 5354 2d38 18(3). - NIST-8 │ │ │ +0015aa50: 3030 2d35 332d 4143 2d31 3828 6129 0a20 00-53-AC-18(a). │ │ │ +0015aa60: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0015aa70: 4d2d 3628 6129 0a20 202d 204e 4953 542d M-6(a). - NIST- │ │ │ +0015aa80: 3830 302d 3533 2d43 4d2d 3728 6129 0a20 800-53-CM-7(a). │ │ │ +0015aa90: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0015aaa0: 4d2d 3728 6229 0a20 202d 204e 4953 542d M-7(b). - NIST- │ │ │ +0015aab0: 3830 302d 3533 2d4d 502d 370a 2020 2d20 800-53-MP-7. - │ │ │ +0015aac0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0015aad0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0015aae0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0015aaf0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0015ab00: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0015ab10: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0015ab20: 2020 2d20 7365 7276 6963 655f 626c 7565 - service_blue │ │ │ +0015ab30: 746f 6f74 685f 6469 7361 626c 6564 0a0a tooth_disabled.. │ │ │ +0015ab40: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +0015ab50: 426c 7565 746f 6f74 6820 5365 7276 6963 Bluetooth Servic │ │ │ +0015ab60: 6520 2d20 4469 7361 626c 6520 7365 7276 e - Disable serv │ │ │ +0015ab70: 6963 6520 626c 7565 746f 6f74 680a 2020 ice bluetooth. │ │ │ +0015ab80: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ +0015ab90: 3a20 4469 7361 626c 6520 426c 7565 746f : Disable Blueto │ │ │ +0015aba0: 6f74 6820 5365 7276 6963 6520 2d20 436f oth Service - Co │ │ │ +0015abb0: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ +0015abc0: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ +0015abd0: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ +0015abe0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +0015abf0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ +0015ac00: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ +0015ac10: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ +0015ac20: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ +0015ac30: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ +0015ac40: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +0015ac50: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +0015ac60: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ +0015ac70: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ +0015ac80: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +0015ac90: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +0015aca0: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ +0015acb0: 6162 6c65 2042 6c75 6574 6f6f 7468 2053 able Bluetooth S │ │ │ +0015acc0: 6572 7669 6365 202d 2045 6e73 7572 6520 ervice - Ensure │ │ │ +0015acd0: 626c 7565 746f 6f74 682e 7365 7276 6963 bluetooth.servic │ │ │ +0015ace0: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ +0015acf0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0015ad00: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +0015ad10: 616d 653a 2062 6c75 6574 6f6f 7468 2e73 ame: bluetooth.s │ │ │ +0015ad20: 6572 7669 6365 0a20 2020 2020 2073 7461 ervice. sta │ │ │ +0015ad30: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ +0015ad40: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ +0015ad50: 0a20 2020 2020 206d 6173 6b65 643a 2074 . masked: t │ │ │ +0015ad60: 7275 650a 2020 2020 7768 656e 3a20 7365 rue. when: se │ │ │ +0015ad70: 7276 6963 655f 6578 6973 7473 2e73 7464 rvice_exists.std │ │ │ +0015ad80: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ +0015ad90: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ +0015ada0: 6572 7669 6365 222c 206d 756c 7469 6c69 ervice", multili │ │ │ +0015adb0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61 ne=True).. - na │ │ │ +0015adc0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420 me: Unit Socket │ │ │ +0015add0: 4578 6973 7473 202d 2062 6c75 6574 6f6f Exists - bluetoo │ │ │ +0015ade0: 7468 2e73 6f63 6b65 740a 2020 2020 616e th.socket. an │ │ │ +0015adf0: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ +0015ae00: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ +0015ae10: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ +0015ae20: 6c65 7320 626c 7565 746f 6f74 682e 736f les bluetooth.so │ │ │ +0015ae30: 636b 6574 0a20 2020 2072 6567 6973 7465 cket. registe │ │ │ +0015ae40: 723a 2073 6f63 6b65 745f 6669 6c65 5f65 r: socket_file_e │ │ │ +0015ae50: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +0015ae60: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +0015ae70: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +0015ae80: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +0015ae90: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ +0015aea0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ +0015aeb0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ +0015aec0: 6d65 3a20 4469 7361 626c 6520 426c 7565 me: Disable Blue │ │ │ +0015aed0: 746f 6f74 6820 5365 7276 6963 6520 2d20 tooth Service - │ │ │ +0015aee0: 4469 7361 626c 6520 536f 636b 6574 2062 Disable Socket b │ │ │ +0015aef0: 6c75 6574 6f6f 7468 0a20 2020 2061 6e73 luetooth. ans │ │ │ +0015af00: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ +0015af10: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ +0015af20: 3a20 626c 7565 746f 6f74 682e 736f 636b : bluetooth.sock │ │ │ +0015af30: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ +0015af40: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ +0015af50: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ +0015af60: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ +0015af70: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ +0015af80: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ +0015af90: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ +0015afa0: 7263 6828 2262 6c75 6574 6f6f 7468 2e73 rch("bluetooth.s │ │ │ +0015afb0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ +0015afc0: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ +0015afd0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731 - NIST-800-171 │ │ │ +0015afe0: 2d33 2e31 2e31 360a 2020 2d20 4e49 5354 -3.1.16. - NIST │ │ │ +0015aff0: 2d38 3030 2d35 332d 4143 2d31 3828 3329 -800-53-AC-18(3) │ │ │ +0015b000: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ +0015b010: 2d41 432d 3138 2861 290a 2020 2d20 4e49 -AC-18(a). - NI │ │ │ +0015b020: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +0015b030: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +0015b040: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ +0015b050: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ +0015b060: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ +0015b070: 332d 4d50 2d37 0a20 202d 2064 6973 6162 3-MP-7. - disab │ │ │ +0015b080: 6c65 5f73 7472 6174 6567 790a 2020 2d20 le_strategy. - │ │ │ +0015b090: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20 low_complexity. │ │ │ +0015b0a0: 202d 206c 6f77 5f64 6973 7275 7074 696f - low_disruptio │ │ │ +0015b0b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576 n. - medium_sev │ │ │ +0015b0c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0015b0d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ +0015b0e0: 6572 7669 6365 5f62 6c75 6574 6f6f 7468 ervice_bluetooth │ │ │ +0015b0f0: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ +0015b100: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ +0015b110: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69 ock. when: '"li │ │ │ +0015b120: 6e75 782d 6261 7365 2220 696e 2061 6e73 nux-base" in ans │ │ │ +0015b130: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ +0015b140: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072 ges'.

Remediation │ │ │ +0015b200: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0015b210: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0015b2a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0015b2c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0015b2e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0015b310: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0015b320: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0015b330: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +0015b350: 6c65 5f62 6c75 6574 6f6f 7468 0a0a 636c  le_bluetooth..cl
│ │ │ +0015b360: 6173 7320 6469 7361 626c 655f 626c 7565  ass disable_blue
│ │ │ +0015b370: 746f 6f74 6820 7b0a 2020 7365 7276 6963  tooth {.  servic
│ │ │ +0015b380: 6520 7b27 626c 7565 746f 6f74 6827 3a0a  e {'bluetooth':.
│ │ │ +0015b390: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0015b3a0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0015b3b0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0015b3c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0015b480: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0015b490: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0015b4a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0015b4e0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0015b4f0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0015b500: 0a6d 6173 6b65 6420 3d20 5b22 626c 7565  .masked = ["blue
│ │ │ +0015b510: 746f 6f74 6822 5d0a 3c2f 636f 6465 3e3c  tooth"].<
│ │ │  0015b520: 2f70 7265 3e3c 2f64 6976 3e3c 2f64 6976  /pre>
│ │ │ 0015b550: 3c2f 7472 3e3c 7472 2064 6174 612d 7474 Reme │ │ │ -001c3a20: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001c3a30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001c3ac0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001c3ad0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001c3af0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001c3b10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001c3b20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001c3b60: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -001c3b70: 7564 6520 7265 6d6f 7665 5f61 7574 6f66  ude remove_autof
│ │ │ -001c3b80: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -001c3b90: 6175 746f 6673 207b 0a20 2070 6163 6b61  autofs {.  packa
│ │ │ -001c3ba0: 6765 207b 2027 6175 746f 6673 273a 0a20  ge { 'autofs':. 
│ │ │ -001c3bb0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -001c3bc0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -001c3bd0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001c3c80: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -001c3c90: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001c3ca0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001c3d70: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001c3d80: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001c3dd0: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -001c3de0: 6175 746f 6673 2050 6163 6b61 6765 3a20  autofs Package: 
│ │ │ -001c3df0: 456e 7375 7265 2061 7574 6f66 7320 6973  Ensure autofs is
│ │ │ -001c3e00: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -001c3e10: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -001c3e20: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -001c3e30: 7574 6f66 730a 2020 2020 7374 6174 653a  utofs.    state:
│ │ │ -001c3e40: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -001c3e50: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -001c3e60: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -001c3e70: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -001c3e80: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -001c3e90: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -001c3ea0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001c3eb0: 0a20 202d 2070 6163 6b61 6765 5f61 7574  .  - package_aut
│ │ │ -001c3ec0: 6f66 735f 7265 6d6f 7665 640a 3c2f 636f  ofs_removed.<
│ │ │ +001c3a40: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Complexity:low
Disrup │ │ │ -001c3d50: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001c3d60: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001c3da0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001c3db0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +001c3ac0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001c3af0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001c3b10: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001c3b20: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001c3b40: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001c3b50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +001c3b70: 6d65 3a20 2752 656d 6f76 6520 6175 746f  me: 'Remove auto
│ │ │ +001c3b80: 6673 2050 6163 6b61 6765 3a20 456e 7375  fs Package: Ensu
│ │ │ +001c3b90: 7265 2061 7574 6f66 7320 6973 2072 656d  re autofs is rem
│ │ │ +001c3ba0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +001c3bb0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +001c3bc0: 0a20 2020 206e 616d 653a 2061 7574 6f66  .    name: autof
│ │ │ +001c3bd0: 730a 2020 2020 7374 6174 653a 2061 6273  s.    state: abs
│ │ │ +001c3be0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +001c3bf0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +001c3c00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +001c3c10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +001c3c20: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +001c3c30: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001c3c40: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001c3c50: 2070 6163 6b61 6765 5f61 7574 6f66 735f   package_autofs_
│ │ │ +001c3c60: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +001c3c70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +001c3d20: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +001c3d30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +001c3db0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001c3dc0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001c3dd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +001c3e10: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001c3e20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +001c3e40: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +001c3e50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +001c3e70: 7265 6d6f 7665 5f61 7574 6f66 730a 0a63  remove_autofs..c
│ │ │ +001c3e80: 6c61 7373 2072 656d 6f76 655f 6175 746f  lass remove_auto
│ │ │ +001c3e90: 6673 207b 0a20 2070 6163 6b61 6765 207b  fs {.  package {
│ │ │ +001c3ea0: 2027 6175 746f 6673 273a 0a20 2020 2065   'autofs':.    e
│ │ │ +001c3eb0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +001c3ec0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 001c3ee0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 001c3ef0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 001c3f00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 001c3f10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 001c3f20: 6437 3038 2220 7461 6269 6e64 6578 3d22 d708" tabindex=" │ │ │ 001c3f30: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -116030,210 +116030,210 @@ │ │ │ 001c53d0: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 001c53e0: 743d 2223 6964 3731 3022 2074 6162 696e t="#id710" tabin │ │ │ 001c53f0: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 001c5400: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 001c5410: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 001c5420: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 001c5430: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -001c5440: 3e52 656d 6564 6961 7469 6f6e 204f 5342 >Remediation OSB │ │ │ -001c5450: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -001c5460: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -001c54b0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -001c54c0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -001c54d0: 205b 2261 7574 6f66 7322 5d0a 3c2f 636f   ["autofs"].
< │ │ │ -001c54f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -001c5500: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -001c5510: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -001c5520: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -001c5530: 6437 3131 2220 7461 6269 6e64 6578 3d22 d711" tabindex=" │ │ │ -001c5540: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -001c5550: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -001c5560: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -001c5570: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001c5580: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001c5590: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001c55a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -001c5630: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -001c5640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -001c5660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001c5680: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001c5690: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001c56d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -001c56e0: 6520 6469 7361 626c 655f 6175 746f 6673 e disable_autofs │ │ │ -001c56f0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -001c5700: 6175 746f 6673 207b 0a20 2073 6572 7669 autofs {. servi │ │ │ -001c5710: 6365 207b 2761 7574 6f66 7327 3a0a 2020 ce {'autofs':. │ │ │ -001c5720: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -001c5730: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -001c5740: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -001c5750: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -001c5760: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -001c5810: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -001c5820: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -001c5830: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -001c5840: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -001c5850: 7365 2220 6964 3d22 6964 3731 3222 3e3c se" id="id712">< │ │ │ -001c5860: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -001c5870: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -001c5880: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -001c5890: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -001c58a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -001c58b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -001c58c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -001c5900: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -001c5910: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -001c5930: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -001c5940: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -001c5960: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -001c5970: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -001c5980: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -001c5990: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -001c59a0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -001c59b0: 2d31 3731 2d33 2e34 2e36 0a20 202d 204e -171-3.4.6. - N │ │ │ -001c59c0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -001c59d0: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -001c59e0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -001c59f0: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -001c5a00: 6229 0a20 202d 204e 4953 542d 3830 302d b). - NIST-800- │ │ │ -001c5a10: 3533 2d4d 502d 370a 2020 2d20 6469 7361 53-MP-7. - disa │ │ │ -001c5a20: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -001c5a30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -001c5a40: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -001c5a50: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -001c5a60: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -001c5a70: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -001c5a80: 7365 7276 6963 655f 6175 746f 6673 5f64 service_autofs_d │ │ │ -001c5a90: 6973 6162 6c65 640a 0a2d 206e 616d 653a isabled..- name: │ │ │ -001c5aa0: 2044 6973 6162 6c65 2074 6865 2041 7574 Disable the Aut │ │ │ -001c5ab0: 6f6d 6f75 6e74 6572 202d 2044 6973 6162 omounter - Disab │ │ │ -001c5ac0: 6c65 2073 6572 7669 6365 2061 7574 6f66 le service autof │ │ │ -001c5ad0: 730a 2020 626c 6f63 6b3a 0a0a 2020 2d20 s. block:.. - │ │ │ -001c5ae0: 6e61 6d65 3a20 4469 7361 626c 6520 7468 name: Disable th │ │ │ -001c5af0: 6520 4175 746f 6d6f 756e 7465 7220 2d20 e Automounter - │ │ │ -001c5b00: 436f 6c6c 6563 7420 7379 7374 656d 6420 Collect systemd │ │ │ -001c5b10: 5365 7276 6963 6573 2050 7265 7365 6e74 Services Present │ │ │ -001c5b20: 2069 6e20 7468 6520 5379 7374 656d 0a20 in the System. │ │ │ -001c5b30: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -001c5b40: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -001c5b50: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -001c5b60: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -001c5b70: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -001c5b80: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -001c5b90: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -001c5ba0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -001c5bb0: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -001c5bc0: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -001c5bd0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -001c5be0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -001c5bf0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -001c5c00: 6973 6162 6c65 2074 6865 2041 7574 6f6d isable the Autom │ │ │ -001c5c10: 6f75 6e74 6572 202d 2045 6e73 7572 6520 ounter - Ensure │ │ │ -001c5c20: 6175 746f 6673 2e73 6572 7669 6365 2069 autofs.service i │ │ │ -001c5c30: 7320 4d61 736b 6564 0a20 2020 2061 6e73 s Masked. ans │ │ │ -001c5c40: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -001c5c50: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -001c5c60: 3a20 6175 746f 6673 2e73 6572 7669 6365 : autofs.service │ │ │ -001c5c70: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -001c5c80: 6f70 7065 640a 2020 2020 2020 656e 6162 opped. enab │ │ │ -001c5c90: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -001c5ca0: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ -001c5cb0: 2020 7768 656e 3a20 7365 7276 6963 655f when: service_ │ │ │ -001c5cc0: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ -001c5cd0: 6e65 7320 6973 2073 6561 7263 6828 2261 nes is search("a │ │ │ -001c5ce0: 7574 6f66 732e 7365 7276 6963 6522 2c20 utofs.service", │ │ │ -001c5cf0: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -001c5d00: 0a20 202d 206e 616d 653a 2055 6e69 7420 . - name: Unit │ │ │ -001c5d10: 536f 636b 6574 2045 7869 7374 7320 2d20 Socket Exists - │ │ │ -001c5d20: 6175 746f 6673 2e73 6f63 6b65 740a 2020 autofs.socket. │ │ │ -001c5d30: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -001c5d40: 6e2e 636f 6d6d 616e 643a 2073 7973 7465 n.command: syste │ │ │ -001c5d50: 6d63 746c 202d 7120 6c69 7374 2d75 6e69 mctl -q list-uni │ │ │ -001c5d60: 742d 6669 6c65 7320 6175 746f 6673 2e73 t-files autofs.s │ │ │ -001c5d70: 6f63 6b65 740a 2020 2020 7265 6769 7374 ocket. regist │ │ │ -001c5d80: 6572 3a20 736f 636b 6574 5f66 696c 655f er: socket_file_ │ │ │ -001c5d90: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ -001c5da0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ -001c5db0: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ -001c5dc0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -001c5dd0: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ -001c5de0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ -001c5df0: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ -001c5e00: 616d 653a 2044 6973 6162 6c65 2074 6865 ame: Disable the │ │ │ -001c5e10: 2041 7574 6f6d 6f75 6e74 6572 202d 2044 Automounter - D │ │ │ -001c5e20: 6973 6162 6c65 2053 6f63 6b65 7420 6175 isable Socket au │ │ │ -001c5e30: 746f 6673 0a20 2020 2061 6e73 6962 6c65 tofs. ansible │ │ │ -001c5e40: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -001c5e50: 3a0a 2020 2020 2020 6e61 6d65 3a20 6175 :. name: au │ │ │ -001c5e60: 746f 6673 2e73 6f63 6b65 740a 2020 2020 tofs.socket. │ │ │ -001c5e70: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -001c5e80: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -001c5e90: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -001c5ea0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -001c5eb0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -001c5ec0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -001c5ed0: 6573 2069 7320 7365 6172 6368 2822 6175 es is search("au │ │ │ -001c5ee0: 746f 6673 2e73 6f63 6b65 7422 2c20 6d75 tofs.socket", mu │ │ │ -001c5ef0: 6c74 696c 696e 653d 5472 7565 290a 2020 ltiline=True). │ │ │ -001c5f00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -001c5f10: 3030 2d31 3731 2d33 2e34 2e36 0a20 202d 00-171-3.4.6. - │ │ │ -001c5f20: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -001c5f30: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -001c5f40: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -001c5f50: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -001c5f60: 3728 6229 0a20 202d 204e 4953 542d 3830 7(b). - NIST-80 │ │ │ -001c5f70: 302d 3533 2d4d 502d 370a 2020 2d20 6469 0-53-MP-7. - di │ │ │ -001c5f80: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -001c5f90: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -001c5fa0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -001c5fb0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ -001c5fc0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -001c5fd0: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -001c5fe0: 2d20 7365 7276 6963 655f 6175 746f 6673 - service_autofs │ │ │ -001c5ff0: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ -001c6000: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ -001c6010: 6f63 6b0a 2020 7768 656e 3a20 2820 2261 ock. when: ( "a │ │ │ -001c6020: 7574 6f66 7322 2069 6e20 616e 7369 626c utofs" in ansibl │ │ │ -001c6030: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ -001c6040: 2061 6e64 2022 6c69 6e75 782d 6261 7365 and "linux-base │ │ │ -001c6050: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -001c6060: 7473 2e70 6163 6b61 6765 730a 2020 2020 ts.packages. │ │ │ -001c6070: 290a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ).
< │ │ │ +001c5440: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +001c5450: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +001c5460: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +001c5530: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001c5540: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +001c55a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +001c55b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +001c55c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +001c55d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +001c55e0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +001c55f0: 342e 360a 2020 2d20 4e49 5354 2d38 3030  4.6.  - NIST-800
│ │ │ +001c5600: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +001c5610: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +001c5620: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +001c5630: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +001c5640: 4e49 5354 2d38 3030 2d35 332d 4d50 2d37  NIST-800-53-MP-7
│ │ │ +001c5650: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +001c5660: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +001c5670: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001c5680: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001c5690: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +001c56a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +001c56b0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +001c56c0: 5f61 7574 6f66 735f 6469 7361 626c 6564  _autofs_disabled
│ │ │ +001c56d0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ +001c56e0: 6520 7468 6520 4175 746f 6d6f 756e 7465  e the Automounte
│ │ │ +001c56f0: 7220 2d20 4469 7361 626c 6520 7365 7276  r - Disable serv
│ │ │ +001c5700: 6963 6520 6175 746f 6673 0a20 2062 6c6f  ice autofs.  blo
│ │ │ +001c5710: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +001c5720: 6973 6162 6c65 2074 6865 2041 7574 6f6d  isable the Autom
│ │ │ +001c5730: 6f75 6e74 6572 202d 2043 6f6c 6c65 6374  ounter - Collect
│ │ │ +001c5740: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +001c5750: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +001c5760: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +001c5770: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +001c5780: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +001c5790: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +001c57a0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +001c57b0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +001c57c0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +001c57d0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +001c57e0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +001c57f0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +001c5800: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +001c5810: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +001c5820: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +001c5830: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +001c5840: 7468 6520 4175 746f 6d6f 756e 7465 7220  the Automounter 
│ │ │ +001c5850: 2d20 456e 7375 7265 2061 7574 6f66 732e  - Ensure autofs.
│ │ │ +001c5860: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +001c5870: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +001c5880: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +001c5890: 2020 2020 206e 616d 653a 2061 7574 6f66       name: autof
│ │ │ +001c58a0: 732e 7365 7276 6963 650a 2020 2020 2020  s.service.      
│ │ │ +001c58b0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +001c58c0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +001c58d0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +001c58e0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +001c58f0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +001c5900: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +001c5910: 7365 6172 6368 2822 6175 746f 6673 2e73  search("autofs.s
│ │ │ +001c5920: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +001c5930: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +001c5940: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +001c5950: 4578 6973 7473 202d 2061 7574 6f66 732e  Exists - autofs.
│ │ │ +001c5960: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +001c5970: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +001c5980: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +001c5990: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +001c59a0: 2061 7574 6f66 732e 736f 636b 6574 0a20   autofs.socket. 
│ │ │ +001c59b0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +001c59c0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +001c59d0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +001c59e0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +001c59f0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +001c5a00: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +001c5a10: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +001c5a20: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +001c5a30: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +001c5a40: 7361 626c 6520 7468 6520 4175 746f 6d6f  sable the Automo
│ │ │ +001c5a50: 756e 7465 7220 2d20 4469 7361 626c 6520  unter - Disable 
│ │ │ +001c5a60: 536f 636b 6574 2061 7574 6f66 730a 2020  Socket autofs.  
│ │ │ +001c5a70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +001c5a80: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +001c5a90: 206e 616d 653a 2061 7574 6f66 732e 736f   name: autofs.so
│ │ │ +001c5aa0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +001c5ab0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +001c5ac0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +001c5ad0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +001c5ae0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +001c5af0: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +001c5b00: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +001c5b10: 6561 7263 6828 2261 7574 6f66 732e 736f  earch("autofs.so
│ │ │ +001c5b20: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +001c5b30: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +001c5b40: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +001c5b50: 332e 342e 360a 2020 2d20 4e49 5354 2d38  3.4.6.  - NIST-8
│ │ │ +001c5b60: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +001c5b70: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001c5b80: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +001c5b90: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +001c5ba0: 2d20 4e49 5354 2d38 3030 2d35 332d 4d50  - NIST-800-53-MP
│ │ │ +001c5bb0: 2d37 0a20 202d 2064 6973 6162 6c65 5f73  -7.  - disable_s
│ │ │ +001c5bc0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +001c5bd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +001c5be0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +001c5bf0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +001c5c00: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +001c5c10: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +001c5c20: 6365 5f61 7574 6f66 735f 6469 7361 626c  ce_autofs_disabl
│ │ │ +001c5c30: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +001c5c40: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +001c5c50: 6865 6e3a 2028 2022 6175 746f 6673 2220  hen: ( "autofs" 
│ │ │ +001c5c60: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +001c5c70: 2e70 6163 6b61 6765 7320 616e 6420 226c  .packages and "l
│ │ │ +001c5c80: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +001c5c90: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +001c5ca0: 6167 6573 0a20 2020 2029 0a3c 2f63 6f64  ages.    ).
Remed │ │ │ +001c5d60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +001c5d70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ +001c5510: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001c5520: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001c5560: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001c5570: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +001c5e20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +001c5e40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +001c5e70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +001c5e00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +001c5e10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +001c5e30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +001c5e50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +001c5e60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +001c5eb0: 2064 6973 6162 6c65 5f61 7574 6f66 730a disable_autofs. │ │ │ +001c5ec0: 0a63 6c61 7373 2064 6973 6162 6c65 5f61 .class disable_a │ │ │ +001c5ed0: 7574 6f66 7320 7b0a 2020 7365 7276 6963 utofs {. servic │ │ │ +001c5ee0: 6520 7b27 6175 746f 6673 273a 0a20 2020 e {'autofs':. │ │ │ +001c5ef0: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +001c5f00: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +001c5f10: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +001c5f20: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ +001c5fe0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +001c5ff0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +001c6000: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +001c6050: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +001c6060: 736b 6564 203d 205b 2261 7574 6f66 7322  sked = ["autofs"
│ │ │ +001c6070: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 001c6080: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 001c6090: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74 < │ │ │ 001c60b0: 7472 2064 6174 612d 7474 2d69 643d 2278 tr data-tt-id="x │ │ │ 001c60c0: 6363 6466 5f6f 7267 2e73 7367 7072 6f6a ccdf_org.ssgproj │ │ │ 001c60d0: 6563 742e 636f 6e74 656e 745f 7275 6c65 ect.content_rule │ │ │ 001c60e0: 5f6b 6572 6e65 6c5f 6d6f 6475 6c65 5f63 _kernel_module_c │ │ │ @@ -136389,94 +136389,94 @@ │ │ │ 00214c40: 6c6c 6170 7365 2220 6461 7461 2d74 6172 llapse" data-tar │ │ │ 00214c50: 6765 743d 2223 6964 3739 3522 2074 6162 get="#id795" tab │ │ │ 00214c60: 696e 6465 783d 2230 2220 726f 6c65 3d22 index="0" role=" │ │ │ 00214c70: 6275 7474 6f6e 2220 6172 6961 2d65 7870 button" aria-exp │ │ │ 00214c80: 616e 6465 643d 2266 616c 7365 2220 7469 anded="false" ti │ │ │ 00214c90: 746c 653d 2241 6374 6976 6174 6520 746f tle="Activate to │ │ │ 00214ca0: 2072 6576 6561 6c22 2068 7265 663d 2223 reveal" href="# │ │ │ -00214cb0: 2122 3e52 656d 6564 6961 7469 6f6e 2050 !">Remediation P │ │ │ -00214cc0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00214cd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00214d50: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00214d70: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00214dc0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00214df0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00214e10: 655f 6176 6168 690a 0a63 6c61 7373 2072  e_avahi..class r
│ │ │ -00214e20: 656d 6f76 655f 6176 6168 6920 7b0a 2020  emove_avahi {.  
│ │ │ -00214e30: 7061 636b 6167 6520 7b20 2761 7661 6869  package { 'avahi
│ │ │ -00214e40: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -00214e50: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -00214e60: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00214f20: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00214f30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00215000: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
low
Disr │ │ │ -00214d80: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00214d90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00214dd0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00214de0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00214fc0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00214fe0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00215030: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00215040: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00215070: 6e73 7461 6c6c 2061 7661 6869 2053 6572  nstall avahi Ser
│ │ │ -00215080: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -00215090: 7572 6520 6176 6168 6920 6973 2072 656d  ure avahi is rem
│ │ │ -002150a0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002150b0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002150c0: 0a20 2020 206e 616d 653a 2061 7661 6869  .    name: avahi
│ │ │ -002150d0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002150e0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ -002150f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00215100: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00215110: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -00215120: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00215130: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ -00215140: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00215150: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00215160: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00215170: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00215180: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00215190: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002151a0: 6765 5f61 7661 6869 5f72 656d 6f76 6564  ge_avahi_removed
│ │ │ +00214cb0: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00214cc0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00214cd0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +00214d50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00214d70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00214dc0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00214df0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00214d60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00214d80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00214dd0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00214de0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +00214e10: 7374 616c 6c20 6176 6168 6920 5365 7276  stall avahi Serv
│ │ │ +00214e20: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ +00214e30: 7265 2061 7661 6869 2069 7320 7265 6d6f  re avahi is remo
│ │ │ +00214e40: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00214e50: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00214e60: 2020 2020 6e61 6d65 3a20 6176 6168 690a      name: avahi.
│ │ │ +00214e70: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +00214e80: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +00214e90: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00214ea0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00214eb0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00214ec0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00214ed0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +00214ee0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00214ef0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00214f00: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00214f10: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00214f20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00214f30: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00214f40: 655f 6176 6168 695f 7265 6d6f 7665 640a  e_avahi_removed.
│ │ │ +00214f50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00215000: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00215010: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +002150b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00215150: 696e 636c 7564 6520 7265 6d6f 7665 5f61  include remove_a
│ │ │ +00215160: 7661 6869 0a0a 636c 6173 7320 7265 6d6f  vahi..class remo
│ │ │ +00215170: 7665 5f61 7661 6869 207b 0a20 2070 6163  ve_avahi {.  pac
│ │ │ +00215180: 6b61 6765 207b 2027 6176 6168 6927 3a0a  kage { 'avahi':.
│ │ │ +00215190: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002151a0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002151b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Rem │ │ │ -00216390: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -002163a0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -002163b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00216400: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00216410: 6573 5d0a 6d61 736b 6564 203d 205b 2261 es].masked = ["a │ │ │ -00216420: 7661 6869 2d64 6165 6d6f 6e22 5d0a 3c2f vahi-daemon"].Re │ │ │ -002164e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002164f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00216500: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002150a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002150d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002150e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00215120: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00215130: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -002165a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002165f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00216580: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002165b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002165d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002165e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00216600: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00216610: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00216630: 7564 6520 6469 7361 626c 655f 6176 6168  ude disable_avah
│ │ │ -00216640: 692d 6461 656d 6f6e 0a0a 636c 6173 7320  i-daemon..class 
│ │ │ -00216650: 6469 7361 626c 655f 6176 6168 692d 6461  disable_avahi-da
│ │ │ -00216660: 656d 6f6e 207b 0a20 2073 6572 7669 6365  emon {.  service
│ │ │ -00216670: 207b 2761 7661 6869 2d64 6165 6d6f 6e27   {'avahi-daemon'
│ │ │ -00216680: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -00216690: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -002166a0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -002166b0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -002166d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002166e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002166f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00216700: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00216710: 6438 3031 2220 7461 6269 6e64 6578 3d22 d801" tabindex=" │ │ │ -00216720: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00216730: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00216740: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00216750: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00216760: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00216770: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00216780: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00216790: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00216810: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00216840: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00216860: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00216870: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00216890: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002168a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002168c0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002168d0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002168e0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002168f0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00216900: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00216910: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00216920: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00216930: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00216940: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00216950: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -00216960: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00216970: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ -00216980: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00216990: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002169a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002169b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -002169c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -002169d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002169e0: 7276 6963 655f 6176 6168 692d 6461 656d  rvice_avahi-daem
│ │ │ -002169f0: 6f6e 5f64 6973 6162 6c65 640a 0a2d 206e  on_disabled..- n
│ │ │ -00216a00: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ -00216a10: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ -00216a20: 7265 202d 2044 6973 6162 6c65 2073 6572  re - Disable ser
│ │ │ -00216a30: 7669 6365 2061 7661 6869 2d64 6165 6d6f  vice avahi-daemo
│ │ │ -00216a40: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ -00216a50: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ -00216a60: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ -00216a70: 6172 6520 2d20 436f 6c6c 6563 7420 7379  are - Collect sy
│ │ │ -00216a80: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00216a90: 7265 7365 6e74 2069 6e20 7468 650a 2020  resent in the.  
│ │ │ -00216aa0: 2020 2020 5379 7374 656d 0a20 2020 2061      System.    a
│ │ │ -00216ab0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00216ac0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00216ad0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00216ae0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -00216af0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00216b00: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00216b10: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00216b20: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00216b30: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00216b40: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00216b50: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00216b60: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00216b70: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00216b80: 6c65 2041 7661 6869 2053 6572 7665 7220  le Avahi Server 
│ │ │ -00216b90: 536f 6674 7761 7265 202d 2045 6e73 7572  Software - Ensur
│ │ │ -00216ba0: 6520 6176 6168 692d 6461 656d 6f6e 2e73  e avahi-daemon.s
│ │ │ -00216bb0: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -00216bc0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00216bd0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00216be0: 2020 2020 6e61 6d65 3a20 6176 6168 692d      name: avahi-
│ │ │ -00216bf0: 6461 656d 6f6e 2e73 6572 7669 6365 0a20  daemon.service. 
│ │ │ -00216c00: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00216c10: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00216c20: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00216c30: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00216c40: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00216c50: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00216c60: 7320 6973 2073 6561 7263 6828 2261 7661  s is search("ava
│ │ │ -00216c70: 6869 2d64 6165 6d6f 6e2e 7365 7276 6963  hi-daemon.servic
│ │ │ -00216c80: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00216c90: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -00216ca0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -00216cb0: 7320 2d20 6176 6168 692d 6461 656d 6f6e  s - avahi-daemon
│ │ │ -00216cc0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -00216cd0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -00216ce0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -00216cf0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -00216d00: 7320 6176 6168 692d 6461 656d 6f6e 2e73  s avahi-daemon.s
│ │ │ -00216d10: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -00216d20: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -00216d30: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00216d40: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00216d50: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00216d60: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00216d70: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00216d80: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00216d90: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00216da0: 616d 653a 2044 6973 6162 6c65 2041 7661  ame: Disable Ava
│ │ │ -00216db0: 6869 2053 6572 7665 7220 536f 6674 7761  hi Server Softwa
│ │ │ -00216dc0: 7265 202d 2044 6973 6162 6c65 2053 6f63  re - Disable Soc
│ │ │ -00216dd0: 6b65 7420 6176 6168 692d 6461 656d 6f6e  ket avahi-daemon
│ │ │ -00216de0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00216df0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00216e00: 2020 2020 6e61 6d65 3a20 6176 6168 692d      name: avahi-
│ │ │ -00216e10: 6461 656d 6f6e 2e73 6f63 6b65 740a 2020  daemon.socket.  
│ │ │ -00216e20: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00216e30: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ -00216e40: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ -00216e50: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00216e60: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00216e70: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00216e80: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00216e90: 6176 6168 692d 6461 656d 6f6e 2e73 6f63  avahi-daemon.soc
│ │ │ -00216ea0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -00216eb0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -00216ec0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00216ed0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00216ee0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00216ef0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00216f00: 2d37 2862 290a 2020 2d20 5043 492d 4453  -7(b).  - PCI-DS
│ │ │ -00216f10: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00216f20: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ -00216f30: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00216f40: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00216f50: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00216f60: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00216f70: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00216f80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00216f90: 2020 2d20 7365 7276 6963 655f 6176 6168    - service_avah
│ │ │ -00216fa0: 692d 6461 656d 6f6e 5f64 6973 6162 6c65  i-daemon_disable
│ │ │ -00216fb0: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00216fc0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -00216fd0: 656e 3a20 2820 2261 7661 6869 2220 696e  en: ( "avahi" in
│ │ │ -00216fe0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00216ff0: 6163 6b61 6765 7320 616e 6420 226c 696e  ackages and "lin
│ │ │ -00217000: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00217010: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00217020: 6573 0a20 2020 2029 0a3c 2f63 6f64 653e  es.    ).
│ │ │ +00216390: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +002163a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +002163b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00216450: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002164a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002164e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +002164f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00216500: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00216510: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00216520: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00216530: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00216540: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00216550: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00216560: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00216570: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00216580: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00216590: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +002165a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002165b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002165c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002165d0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002165e0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002165f0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00216600: 6572 7669 6365 5f61 7661 6869 2d64 6165  ervice_avahi-dae
│ │ │ +00216610: 6d6f 6e5f 6469 7361 626c 6564 0a0a 2d20  mon_disabled..- 
│ │ │ +00216620: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ +00216630: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ +00216640: 6172 6520 2d20 4469 7361 626c 6520 7365  are - Disable se
│ │ │ +00216650: 7276 6963 6520 6176 6168 692d 6461 656d  rvice avahi-daem
│ │ │ +00216660: 6f6e 0a20 2062 6c6f 636b 3a0a 0a20 202d  on.  block:..  -
│ │ │ +00216670: 206e 616d 653a 2044 6973 6162 6c65 2041   name: Disable A
│ │ │ +00216680: 7661 6869 2053 6572 7665 7220 536f 6674  vahi Server Soft
│ │ │ +00216690: 7761 7265 202d 2043 6f6c 6c65 6374 2073  ware - Collect s
│ │ │ +002166a0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +002166b0: 5072 6573 656e 7420 696e 2074 6865 0a20  Present in the. 
│ │ │ +002166c0: 2020 2020 2053 7973 7465 6d0a 2020 2020       System.    
│ │ │ +002166d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002166e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002166f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +00216700: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +00216710: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +00216720: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +00216730: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00216740: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00216750: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +00216760: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +00216770: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00216780: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00216790: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002167a0: 626c 6520 4176 6168 6920 5365 7276 6572  ble Avahi Server
│ │ │ +002167b0: 2053 6f66 7477 6172 6520 2d20 456e 7375   Software - Ensu
│ │ │ +002167c0: 7265 2061 7661 6869 2d64 6165 6d6f 6e2e  re avahi-daemon.
│ │ │ +002167d0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +002167e0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +002167f0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00216800: 2020 2020 206e 616d 653a 2061 7661 6869       name: avahi
│ │ │ +00216810: 2d64 6165 6d6f 6e2e 7365 7276 6963 650a  -daemon.service.
│ │ │ +00216820: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +00216830: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +00216840: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00216850: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00216860: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +00216870: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +00216880: 6573 2069 7320 7365 6172 6368 2822 6176  es is search("av
│ │ │ +00216890: 6168 692d 6461 656d 6f6e 2e73 6572 7669  ahi-daemon.servi
│ │ │ +002168a0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002168b0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002168c0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002168d0: 7473 202d 2061 7661 6869 2d64 6165 6d6f  ts - avahi-daemo
│ │ │ +002168e0: 6e2e 736f 636b 6574 0a20 2020 2061 6e73  n.socket.    ans
│ │ │ +002168f0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00216900: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00216910: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00216920: 6573 2061 7661 6869 2d64 6165 6d6f 6e2e  es avahi-daemon.
│ │ │ +00216930: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +00216940: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +00216950: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00216960: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00216970: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00216980: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00216990: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002169a0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002169b0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002169c0: 6e61 6d65 3a20 4469 7361 626c 6520 4176  name: Disable Av
│ │ │ +002169d0: 6168 6920 5365 7276 6572 2053 6f66 7477  ahi Server Softw
│ │ │ +002169e0: 6172 6520 2d20 4469 7361 626c 6520 536f  are - Disable So
│ │ │ +002169f0: 636b 6574 2061 7661 6869 2d64 6165 6d6f  cket avahi-daemo
│ │ │ +00216a00: 6e0a 2020 2020 616e 7369 626c 652e 6275  n.    ansible.bu
│ │ │ +00216a10: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00216a20: 2020 2020 206e 616d 653a 2061 7661 6869       name: avahi
│ │ │ +00216a30: 2d64 6165 6d6f 6e2e 736f 636b 6574 0a20  -daemon.socket. 
│ │ │ +00216a40: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00216a50: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +00216a60: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +00216a70: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00216a80: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00216a90: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00216aa0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00216ab0: 2261 7661 6869 2d64 6165 6d6f 6e2e 736f  "avahi-daemon.so
│ │ │ +00216ac0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00216ad0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00216ae0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00216af0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00216b00: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00216b10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00216b20: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +00216b30: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00216b40: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00216b50: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00216b60: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00216b70: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00216b80: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00216b90: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00216ba0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00216bb0: 0a20 202d 2073 6572 7669 6365 5f61 7661  .  - service_ava
│ │ │ +00216bc0: 6869 2d64 6165 6d6f 6e5f 6469 7361 626c  hi-daemon_disabl
│ │ │ +00216bd0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +00216be0: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +00216bf0: 6865 6e3a 2028 2022 6176 6168 6922 2069  hen: ( "avahi" i
│ │ │ +00216c00: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00216c10: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +00216c20: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00216c30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00216c40: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +00216d00: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00216d10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00216d20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00216d50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Co │ │ │ +00216430: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00216460: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00216480: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00216490: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002164b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002164c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00216dc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00216de0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00216e10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00216e30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00216da0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00216db0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00216df0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00216e00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00216e50: 6469 7361 626c 655f 6176 6168 692d 6461 disable_avahi-da │ │ │ +00216e60: 656d 6f6e 0a0a 636c 6173 7320 6469 7361 emon..class disa │ │ │ +00216e70: 626c 655f 6176 6168 692d 6461 656d 6f6e ble_avahi-daemon │ │ │ +00216e80: 207b 0a20 2073 6572 7669 6365 207b 2761 {. service {'a │ │ │ +00216e90: 7661 6869 2d64 6165 6d6f 6e27 3a0a 2020 vahi-daemon':. │ │ │ +00216ea0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00216eb0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00216ec0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00216ed0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00216ee0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +00216f90: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +00216fa0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +00216fb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +00217000: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00217010: 6173 6b65 6420 3d20 5b22 6176 6168 692d  asked = ["avahi-
│ │ │ +00217020: 6461 656d 6f6e 225d 0a3c 2f63 6f64 653e  daemon"].
│ │ │  00217030: 3c2f 7072 653e 3c2f 6469 763e 3c2f 6469  
Rem │ │ │ -00226ef0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00226f00: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00226f10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -00226f60: 6167 6573 5d5d 0a6e 616d 6520 3d20 2263 ages]].name = "c │ │ │ -00226f70: 726f 6e22 0a76 6572 7369 6f6e 203d 2022 ron".version = " │ │ │ -00226f80: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e *".

│ │ │ -00226f90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -00227040: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00227050: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -002270d0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002270f0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00227140: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ -00227190: 5f63 726f 6e0a 0a63 6c61 7373 2069 6e73  _cron..class ins
│ │ │ -002271a0: 7461 6c6c 5f63 726f 6e20 7b0a 2020 7061  tall_cron {.  pa
│ │ │ -002271b0: 636b 6167 6520 7b20 2763 726f 6e27 3a0a  ckage { 'cron':.
│ │ │ -002271c0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002271d0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -002271e0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002272a0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -002272b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00227380: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -002273d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ -00227100: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00227110: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00227150: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00227160: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ -00227340: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00227360: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002273b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002273c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ -002273f0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00227400: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00227410: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00227420: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00227430: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00227440: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00227450: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -00227460: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -00227470: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00227480: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00227490: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002274a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002274b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002274c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002274d0: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ -002274e0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -002274f0: 6d65 3a20 456e 7375 7265 2063 726f 6e20  me: Ensure cron 
│ │ │ -00227500: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00227510: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00227520: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00227530: 3a20 6372 6f6e 0a20 2020 2073 7461 7465  : cron.    state
│ │ │ -00227540: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -00227550: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00227560: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00227570: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00227580: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -00227590: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002275a0: 4349 2d44 5353 7634 2d32 2e32 0a20 202d  CI-DSSv4-2.2.  -
│ │ │ -002275b0: 2050 4349 2d44 5353 7634 2d32 2e32 2e36   PCI-DSSv4-2.2.6
│ │ │ -002275c0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -002275d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002275e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002275f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00227600: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00227610: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00227620: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00227630: 6372 6f6e 5f69 6e73 7461 6c6c 6564 0a3c  cron_installed.<
│ │ │ +00226ef0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00226f00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00226f10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00226fb0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00227000: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00226f90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00226fc0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00226fe0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00226ff0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00227010: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00227020: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00227040: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00227050: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00227060: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00227070: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00227080: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00227090: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002270a0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +002270b0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +002270c0: 322e 322e 360a 2020 2d20 656e 6162 6c65  2.2.6.  - enable
│ │ │ +002270d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002270e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002270f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00227100: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00227110: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00227120: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00227130: 6b61 6765 5f63 726f 6e5f 696e 7374 616c  kage_cron_instal
│ │ │ +00227140: 6c65 640a 0a2d 206e 616d 653a 2045 6e73  led..- name: Ens
│ │ │ +00227150: 7572 6520 6372 6f6e 2069 7320 696e 7374  ure cron is inst
│ │ │ +00227160: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +00227170: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00227180: 0a20 2020 206e 616d 653a 2063 726f 6e0a  .    name: cron.
│ │ │ +00227190: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +002271a0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +002271b0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002271c0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002271d0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +002271e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002271f0: 2861 290a 2020 2d20 5043 492d 4453 5376  (a).  - PCI-DSSv
│ │ │ +00227200: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ +00227210: 5376 342d 322e 322e 360a 2020 2d20 656e  Sv4-2.2.6.  - en
│ │ │ +00227220: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00227230: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00227240: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00227250: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00227260: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00227270: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00227280: 2070 6163 6b61 6765 5f63 726f 6e5f 696e   package_cron_in
│ │ │ +00227290: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +002272a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00227350: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00227360: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +002273e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002273f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00227400: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00227440: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00227450: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00227470: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00227490: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +002274a0: 7374 616c 6c5f 6372 6f6e 0a0a 636c 6173  stall_cron..clas
│ │ │ +002274b0: 7320 696e 7374 616c 6c5f 6372 6f6e 207b  s install_cron {
│ │ │ +002274c0: 0a20 2070 6163 6b61 6765 207b 2027 6372  .  package { 'cr
│ │ │ +002274d0: 6f6e 273a 0a20 2020 2065 6e73 7572 6520  on':.    ensure 
│ │ │ +002274e0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +002274f0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00227500: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002275b0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +002275c0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +002275d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +00227610: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +00227620: 5d5d 0a6e 616d 6520 3d20 2263 726f 6e22  ]].name = "cron"
│ │ │ +00227630: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00227640: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Rem │ │ │ -00228860: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00228870: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00228880: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -002288d0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -002288e0: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -002288f0: 6372 6f6e 225d 0a3c 2f63 6f64 653e 3c2f cron"].

Remediati │ │ │ -002289b0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002289c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00228a40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00228a50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00228a70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00228a80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00228aa0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00228ac0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00228af0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -00228b00: 626c 655f 6372 6f6e 0a0a 636c 6173 7320  ble_cron..class 
│ │ │ -00228b10: 656e 6162 6c65 5f63 726f 6e20 7b0a 2020  enable_cron {.  
│ │ │ -00228b20: 7365 7276 6963 6520 7b27 6372 6f6e 273a  service {'cron':
│ │ │ -00228b30: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00228b40: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00228b50: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -00228b60: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remedi │ │ │ -00228c20: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00228c30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00228ce0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00228d00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00228d30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00228cc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00228cd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00228cf0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00228d10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00228d20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00228d70: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00228d80: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00228d90: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00228da0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00228db0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00228dc0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00228dd0: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -00228de0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00228df0: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00228e00: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00228e10: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00228e20: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00228e30: 2020 2d20 7365 7276 6963 655f 6372 6f6e - service_cron │ │ │ -00228e40: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65 _enabled..- name │ │ │ -00228e50: 3a20 456e 6162 6c65 2063 726f 6e20 5365 : Enable cron Se │ │ │ -00228e60: 7276 6963 6520 2d20 456e 6162 6c65 2073 rvice - Enable s │ │ │ -00228e70: 6572 7669 6365 2063 726f 6e0a 2020 626c ervice cron. bl │ │ │ -00228e80: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -00228e90: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00228ea0: 6765 2066 6163 7473 0a20 2020 2061 6e73 ge facts. ans │ │ │ -00228eb0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -00228ec0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00228ed0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a manager: auto. │ │ │ -00228ee0: 0a20 202d 206e 616d 653a 2045 6e61 626c . - name: Enabl │ │ │ -00228ef0: 6520 6372 6f6e 2053 6572 7669 6365 202d e cron Service - │ │ │ -00228f00: 2045 6e61 626c 6520 5365 7276 6963 6520 Enable Service │ │ │ -00228f10: 6372 6f6e 0a20 2020 2061 6e73 6962 6c65 cron. ansible │ │ │ -00228f20: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -00228f30: 3a0a 2020 2020 2020 6e61 6d65 3a20 6372 :. name: cr │ │ │ -00228f40: 6f6e 0a20 2020 2020 2065 6e61 626c 6564 on. enabled │ │ │ -00228f50: 3a20 7472 7565 0a20 2020 2020 2073 7461 : true. sta │ │ │ -00228f60: 7465 3a20 7374 6172 7465 640a 2020 2020 te: started. │ │ │ -00228f70: 2020 6d61 736b 6564 3a20 6661 6c73 650a masked: false. │ │ │ -00228f80: 2020 2020 7768 656e 3a0a 2020 2020 2d20 when:. - │ │ │ -00228f90: 2722 6372 6f6e 2220 696e 2061 6e73 6962 '"cron" in ansib │ │ │ -00228fa0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -00228fb0: 7327 0a20 2074 6167 733a 0a20 202d 204e s'. tags:. - N │ │ │ -00228fc0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00228fd0: 6129 0a20 202d 2065 6e61 626c 655f 7374 a). - enable_st │ │ │ -00228fe0: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00228ff0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00229000: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00229010: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00229020: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00229030: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00229040: 655f 6372 6f6e 5f65 6e61 626c 6564 0a20 e_cron_enabled. │ │ │ -00229050: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00229060: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00229070: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -00229080: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -00229090: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'. │ │ │ +00228880: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

low< │ │ │ +00228920: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00228970: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00228900: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00228930: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00228950: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00228960: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00228980: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00228990: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002289b0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +002289c0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +002289d0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +002289e0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +002289f0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00228a00: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00228a10: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00228a20: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00228a30: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00228a40: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00228a50: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00228a60: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00228a70: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ +00228a80: 726f 6e5f 656e 6162 6c65 640a 0a2d 206e  ron_enabled..- n
│ │ │ +00228a90: 616d 653a 2045 6e61 626c 6520 6372 6f6e  ame: Enable cron
│ │ │ +00228aa0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +00228ab0: 6520 7365 7276 6963 6520 6372 6f6e 0a20  e service cron. 
│ │ │ +00228ac0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00228ad0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00228ae0: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +00228af0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00228b00: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00228b10: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +00228b20: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +00228b30: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ +00228b40: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +00228b50: 6365 2063 726f 6e0a 2020 2020 616e 7369  ce cron.    ansi
│ │ │ +00228b60: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00228b70: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00228b80: 2063 726f 6e0a 2020 2020 2020 656e 6162   cron.      enab
│ │ │ +00228b90: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +00228ba0: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +00228bb0: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +00228bc0: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00228bd0: 202d 2027 2263 726f 6e22 2069 6e20 616e   - '"cron" in an
│ │ │ +00228be0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +00228bf0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +00228c00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00228c10: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ +00228c20: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00228c30: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00228c40: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00228c50: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00228c60: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00228c70: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00228c80: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ +00228c90: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00228ca0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00228cb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00228cc0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00228cd0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00228cf0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00228d90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00228da0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00228db0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00228e30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00228e60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00228e80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00228e90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00228eb0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00228ed0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00228ee0: 6465 2065 6e61 626c 655f 6372 6f6e 0a0a  de enable_cron..
│ │ │ +00228ef0: 636c 6173 7320 656e 6162 6c65 5f63 726f  class enable_cro
│ │ │ +00228f00: 6e20 7b0a 2020 7365 7276 6963 6520 7b27  n {.  service {'
│ │ │ +00228f10: 6372 6f6e 273a 0a20 2020 2065 6e61 626c  cron':.    enabl
│ │ │ +00228f20: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00228f30: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00228f40: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +00228f50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00229000: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00229010: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00229020: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00229070: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00229080: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +00229090: 205b 2263 726f 6e22 5d0a 3c2f 636f 6465   ["cron"].
R │ │ │ -00245310: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00245320: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -002453c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002453d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00245420: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00245460: 6e63 6c75 6465 2072 656d 6f76 655f 6e69  nclude remove_ni
│ │ │ -00245470: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ -00245480: 6e69 7320 7b0a 2020 7061 636b 6167 6520  nis {.  package 
│ │ │ -00245490: 7b20 276e 6973 273a 0a20 2020 2065 6e73  { 'nis':.    ens
│ │ │ -002454a0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -002454b0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00245570: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00245580: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -002453b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002453e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002453f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00245430: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00245440: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00245630: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00245650: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00245680: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00245610: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00245620: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00245640: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00245660: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00245670: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002456b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002456c0: 3a20 2755 6e69 6e73 7461 6c6c 2074 6865 : 'Uninstall the │ │ │ -002456d0: 206e 6973 2070 6163 6b61 6765 3a20 456e nis package: En │ │ │ -002456e0: 7375 7265 206e 6973 2069 7320 7265 6d6f sure nis is remo │ │ │ -002456f0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -00245700: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00245710: 2020 2020 6e61 6d65 3a20 6e69 730a 2020 name: nis. │ │ │ -00245720: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ -00245730: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ -00245740: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00245750: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00245760: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00245770: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572 on. - low_sever │ │ │ -00245780: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00245790: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -002457a0: 6b61 6765 5f6e 6973 5f72 656d 6f76 6564 kage_nis_removed │ │ │ +00245310: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +00245320: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +002453c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00245460: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +00245470: 6c20 7468 6520 6e69 7320 7061 636b 6167  l the nis packag
│ │ │ +00245480: 653a 2045 6e73 7572 6520 6e69 7320 6973  e: Ensure nis is
│ │ │ +00245490: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002454a0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002454b0: 6167 653a 0a20 2020 206e 616d 653a 206e  age:.    name: n
│ │ │ +002454c0: 6973 0a20 2020 2073 7461 7465 3a20 6162  is.    state: ab
│ │ │ +002454d0: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ +002454e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002454f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00245500: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00245510: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00245520: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00245530: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00245540: 2d20 7061 636b 6167 655f 6e69 735f 7265  - package_nis_re
│ │ │ +00245550: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00245610: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00245620: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002456e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002456f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +002453b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002453e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002453f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00245430: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00245440: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +002456b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002456d0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00245700: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00245720: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00245750: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00245760: 6d6f 7665 5f6e 6973 0a0a 636c 6173 7320  move_nis..class 
│ │ │ +00245770: 7265 6d6f 7665 5f6e 6973 207b 0a20 2070  remove_nis {.  p
│ │ │ +00245780: 6163 6b61 6765 207b 2027 6e69 7327 3a0a  ackage { 'nis':.
│ │ │ +00245790: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002457a0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002457b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remed │ │ │ -00247290: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002472a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00247350: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00247370: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002473a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00247330: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00247340: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00247360: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00247380: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00247390: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002473d0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002473e0: 6465 2072 656d 6f76 655f 6468 6370 0a0a de remove_dhcp.. │ │ │ -002473f0: 636c 6173 7320 7265 6d6f 7665 5f64 6863 class remove_dhc │ │ │ -00247400: 7020 7b0a 2020 7061 636b 6167 6520 7b20 p {. package { │ │ │ -00247410: 2764 6863 7027 3a0a 2020 2020 656e 7375 'dhcp':. ensu │ │ │ -00247420: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -00247430: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -00247440: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -002474f0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00247500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00247510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00247540: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002475b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002475d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00247600: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00247590: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002475a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002475e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -002475f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00247640: 2027 556e 696e 7374 616c 6c20 4448 4350 'Uninstall DHCP │ │ │ -00247650: 2053 6572 7665 7220 5061 636b 6167 653a Server Package: │ │ │ -00247660: 2045 6e73 7572 6520 6468 6370 2069 7320 Ensure dhcp is │ │ │ -00247670: 7265 6d6f 7665 6427 0a20 2061 6e73 6962 removed'. ansib │ │ │ -00247680: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00247690: 6765 3a0a 2020 2020 6e61 6d65 3a20 6468 ge:. name: dh │ │ │ -002476a0: 6370 0a20 2020 2073 7461 7465 3a20 6162 cp. state: ab │ │ │ -002476b0: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -002476c0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -002476d0: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ -002476e0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ -002476f0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -00247700: 3728 6229 0a20 202d 2050 4349 2d44 5353 7(b). - PCI-DSS │ │ │ -00247710: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -00247720: 5353 7634 2d32 2e32 2e34 0a20 202d 2064 SSv4-2.2.4. - d │ │ │ -00247730: 6973 6162 6c65 5f73 7472 6174 6567 790a isable_strategy. │ │ │ -00247740: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ -00247750: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ -00247760: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ -00247770: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00247780: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00247790: 202d 2070 6163 6b61 6765 5f64 6863 705f - package_dhcp_ │ │ │ -002477a0: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c removed.< │ │ │ +00247290: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +002472a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...

Comp │ │ │ +00247330: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00247340: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00247360: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00247380: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00247390: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002473d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002473e0: 653a 2027 556e 696e 7374 616c 6c20 4448  e: 'Uninstall DH
│ │ │ +002473f0: 4350 2053 6572 7665 7220 5061 636b 6167  CP Server Packag
│ │ │ +00247400: 653a 2045 6e73 7572 6520 6468 6370 2069  e: Ensure dhcp i
│ │ │ +00247410: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +00247420: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00247430: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00247440: 6468 6370 0a20 2020 2073 7461 7465 3a20  dhcp.    state: 
│ │ │ +00247450: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00247460: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00247470: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00247480: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00247490: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002474a0: 4d2d 3728 6229 0a20 202d 2050 4349 2d44  M-7(b).  - PCI-D
│ │ │ +002474b0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002474c0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002474d0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002474e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002474f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00247500: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00247510: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00247520: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00247530: 0a20 202d 2070 6163 6b61 6765 5f64 6863  .  - package_dhc
│ │ │ +00247540: 705f 7265 6d6f 7665 640a 3c2f 636f 6465  p_removed.
Remedi │ │ │ +00247600: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00247610: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00247620: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00247650: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002476c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002476e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00247710: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002476a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002476b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002476f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00247700: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ +00247750: 6520 7265 6d6f 7665 5f64 6863 700a 0a63 e remove_dhcp..c │ │ │ +00247760: 6c61 7373 2072 656d 6f76 655f 6468 6370 lass remove_dhcp │ │ │ +00247770: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +00247780: 6468 6370 273a 0a20 2020 2065 6e73 7572 dhcp':. ensur │ │ │ +00247790: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ +002477a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ 002477b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediati │ │ │ -00248360: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00248370: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00248380: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -002483d0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -002483e0: 736b 6564 203d 205b 2264 6863 7064 3622  sked = ["dhcpd6"
│ │ │ -002483f0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00248400: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ -002484b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002484c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00248590: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002485a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -002485f0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00248600: 6468 6370 6436 0a0a 636c 6173 7320 6469  dhcpd6..class di
│ │ │ -00248610: 7361 626c 655f 6468 6370 6436 207b 0a20  sable_dhcpd6 {. 
│ │ │ -00248620: 2073 6572 7669 6365 207b 2764 6863 7064   service {'dhcpd
│ │ │ -00248630: 3627 3a0a 2020 2020 656e 6162 6c65 203d  6':.    enable =
│ │ │ -00248640: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00248650: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -00248660: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00248720: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00248730: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disru │ │ │ -00248570: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00248580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002485c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -002485d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -002487d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002487e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00248830: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00248870: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00248880: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00248890: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002488a0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002488b0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ -002488c0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002488d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002488e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002488f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00248900: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00248910: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00248920: 2d20 7365 7276 6963 655f 6468 6370 6436  - service_dhcpd6
│ │ │ -00248930: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -00248940: 653a 2044 6973 6162 6c65 2044 4843 5044  e: Disable DHCPD
│ │ │ -00248950: 3620 5365 7276 6963 6520 2d20 4469 7361  6 Service - Disa
│ │ │ -00248960: 626c 6520 7365 7276 6963 6520 6468 6370  ble service dhcp
│ │ │ -00248970: 6436 0a20 2062 6c6f 636b 3a0a 0a20 202d  d6.  block:..  -
│ │ │ -00248980: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -00248990: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -002489a0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -002489b0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -002489c0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -002489d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002489e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002489f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00248a00: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -00248a10: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -00248a20: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -00248a30: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00248a40: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00248a50: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -00248a60: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -00248a70: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00248a80: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00248a90: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -00248aa0: 6973 6162 6c65 2044 4843 5044 3620 5365  isable DHCPD6 Se
│ │ │ -00248ab0: 7276 6963 6520 2d20 456e 7375 7265 2064  rvice - Ensure d
│ │ │ -00248ac0: 6863 7064 362e 7365 7276 6963 6520 6973  hcpd6.service is
│ │ │ -00248ad0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ -00248ae0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00248af0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00248b00: 2064 6863 7064 362e 7365 7276 6963 650a   dhcpd6.service.
│ │ │ -00248b10: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00248b20: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -00248b30: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00248b40: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00248b50: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -00248b60: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -00248b70: 6573 2069 7320 7365 6172 6368 2822 6468  es is search("dh
│ │ │ -00248b80: 6370 6436 2e73 6572 7669 6365 222c 206d  cpd6.service", m
│ │ │ -00248b90: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00248ba0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00248bb0: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -00248bc0: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ -00248bd0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00248be0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00248bf0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00248c00: 2d66 696c 6573 2064 6863 7064 362e 736f  -files dhcpd6.so
│ │ │ -00248c10: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00248c20: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00248c30: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00248c40: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00248c50: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00248c60: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00248c70: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00248c80: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00248c90: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00248ca0: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ -00248cb0: 4436 2053 6572 7669 6365 202d 2044 6973  D6 Service - Dis
│ │ │ -00248cc0: 6162 6c65 2053 6f63 6b65 7420 6468 6370  able Socket dhcp
│ │ │ -00248cd0: 6436 0a20 2020 2061 6e73 6962 6c65 2e62  d6.    ansible.b
│ │ │ -00248ce0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00248cf0: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ -00248d00: 6436 2e73 6f63 6b65 740a 2020 2020 2020  d6.socket.      
│ │ │ -00248d10: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00248d20: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00248d30: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00248d40: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00248d50: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00248d60: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00248d70: 2069 7320 7365 6172 6368 2822 6468 6370   is search("dhcp
│ │ │ -00248d80: 6436 2e73 6f63 6b65 7422 2c20 6d75 6c74  d6.socket", mult
│ │ │ -00248d90: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00248da0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00248db0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00248dc0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00248dd0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00248de0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00248df0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00248e00: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00248e10: 6963 655f 6468 6370 6436 5f64 6973 6162  ice_dhcpd6_disab
│ │ │ -00248e20: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -00248e30: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -00248e40: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -00248e50: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -00248e60: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00248360: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +00248370: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +002483f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00248480: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00248490: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -002487c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002487f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00248800: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00248840: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00248850: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +00248400: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00248410: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00248450: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00248460: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +002484b0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +002484c0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +002484d0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002484e0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002484f0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00248500: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00248510: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00248520: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00248530: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00248540: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00248550: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00248560: 6365 5f64 6863 7064 365f 6469 7361 626c  ce_dhcpd6_disabl
│ │ │ +00248570: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00248580: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ +00248590: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ +002485a0: 7669 6365 2064 6863 7064 360a 2020 626c  vice dhcpd6.  bl
│ │ │ +002485b0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +002485c0: 4469 7361 626c 6520 4448 4350 4436 2053  Disable DHCPD6 S
│ │ │ +002485d0: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +002485e0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +002485f0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00248600: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00248610: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00248620: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00248630: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00248640: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00248650: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00248660: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00248670: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00248680: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00248690: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +002486a0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002486b0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002486c0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002486d0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002486e0: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +002486f0: 2045 6e73 7572 6520 6468 6370 6436 2e73   Ensure dhcpd6.s
│ │ │ +00248700: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +00248710: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00248720: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00248730: 2020 2020 6e61 6d65 3a20 6468 6370 6436      name: dhcpd6
│ │ │ +00248740: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +00248750: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00248760: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00248770: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +00248780: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +00248790: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +002487a0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002487b0: 6561 7263 6828 2264 6863 7064 362e 7365  earch("dhcpd6.se
│ │ │ +002487c0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +002487d0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +002487e0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +002487f0: 7869 7374 7320 2d20 6468 6370 6436 2e73  xists - dhcpd6.s
│ │ │ +00248800: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00248810: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00248820: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00248830: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00248840: 6468 6370 6436 2e73 6f63 6b65 740a 2020  dhcpd6.socket.  
│ │ │ +00248850: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ +00248860: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ +00248870: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00248880: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00248890: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ +002488a0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ +002488b0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002488c0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002488d0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002488e0: 6162 6c65 2044 4843 5044 3620 5365 7276  able DHCPD6 Serv
│ │ │ +002488f0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +00248900: 636b 6574 2064 6863 7064 360a 2020 2020  cket dhcpd6.    
│ │ │ +00248910: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00248920: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00248930: 616d 653a 2064 6863 7064 362e 736f 636b  ame: dhcpd6.sock
│ │ │ +00248940: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00248950: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00248960: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00248970: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00248980: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00248990: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +002489a0: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002489b0: 7263 6828 2264 6863 7064 362e 736f 636b  rch("dhcpd6.sock
│ │ │ +002489c0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +002489d0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +002489e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002489f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00248a00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00248a10: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00248a20: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00248a30: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00248a40: 0a20 202d 2073 6572 7669 6365 5f64 6863  .  - service_dhc
│ │ │ +00248a50: 7064 365f 6469 7361 626c 6564 0a20 202d  pd6_disabled.  -
│ │ │ +00248a60: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00248a70: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00248a80: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00248a90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00248aa0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00248ab0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +00248b60: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00248b70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +00248bf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00248c00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00248c10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00248c50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00248c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00248c80: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00248ca0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +00248cb0: 7361 626c 655f 6468 6370 6436 0a0a 636c  sable_dhcpd6..cl
│ │ │ +00248cc0: 6173 7320 6469 7361 626c 655f 6468 6370  ass disable_dhcp
│ │ │ +00248cd0: 6436 207b 0a20 2073 6572 7669 6365 207b  d6 {.  service {
│ │ │ +00248ce0: 2764 6863 7064 3627 3a0a 2020 2020 656e  'dhcpd6':.    en
│ │ │ +00248cf0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +00248d00: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00248d10: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +00248d20: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00248de0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00248df0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00248e40: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00248e50: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00248e60: 6420 3d20 5b22 6468 6370 6436 225d 0a3c  d = ["dhcpd6"].<
│ │ │  00248e70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation O │ │ │ -00249c80: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00249c90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00249ca0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00249ce0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00249cf0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00249d00: 203d 205b 2264 6863 7064 225d 0a3c 2f63   = ["dhcpd"].
│ │ │ -00249d20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00249dc0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00249dd0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00249de0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00249e60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00249e90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00249eb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00249ec0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00249ee0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00249f00: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00249f10: 6465 2064 6973 6162 6c65 5f64 6863 7064  de disable_dhcpd
│ │ │ -00249f20: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -00249f30: 6468 6370 6420 7b0a 2020 7365 7276 6963  dhcpd {.  servic
│ │ │ -00249f40: 6520 7b27 6468 6370 6427 3a0a 2020 2020  e {'dhcpd':.    
│ │ │ -00249f50: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -00249f60: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -00249f70: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -00249f80: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0024a040: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0024a050: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024a0d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0024a0e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0024a100: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0024a110: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0024a130: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0024a150: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0024a180: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0024a190: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0024a1a0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0024a1b0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0024a1c0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0024a1d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0024a1e0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0024a1f0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0024a200: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0024a210: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0024a220: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0024a230: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0024a240: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0024a250: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0024a260: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0024a270: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024a280: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ -0024a290: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -0024a2a0: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ -0024a2b0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0024a2c0: 2073 6572 7669 6365 2064 6863 7064 0a20   service dhcpd. 
│ │ │ -0024a2d0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0024a2e0: 653a 2044 6973 6162 6c65 2044 4843 5020  e: Disable DHCP 
│ │ │ -0024a2f0: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ -0024a300: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -0024a310: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -0024a320: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -0024a330: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -0024a340: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -0024a350: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -0024a360: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -0024a370: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -0024a380: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -0024a390: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -0024a3a0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -0024a3b0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -0024a3c0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0024a3d0: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0024a3e0: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0024a3f0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0024a400: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ -0024a410: 456e 7375 7265 2064 6863 7064 2e73 6572  Ensure dhcpd.ser
│ │ │ -0024a420: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -0024a430: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0024a440: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0024a450: 2020 6e61 6d65 3a20 6468 6370 642e 7365    name: dhcpd.se
│ │ │ -0024a460: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -0024a470: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0024a480: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0024a490: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -0024a4a0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -0024a4b0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -0024a4c0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0024a4d0: 6368 2822 6468 6370 642e 7365 7276 6963  ch("dhcpd.servic
│ │ │ -0024a4e0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -0024a4f0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -0024a500: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -0024a510: 7320 2d20 6468 6370 642e 736f 636b 6574  s - dhcpd.socket
│ │ │ -0024a520: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0024a530: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0024a540: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0024a550: 756e 6974 2d66 696c 6573 2064 6863 7064  unit-files dhcpd
│ │ │ -0024a560: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -0024a570: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -0024a580: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -0024a590: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -0024a5a0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -0024a5b0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0024a5c0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0024a5d0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0024a5e0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0024a5f0: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -0024a600: 4843 5020 5365 7276 6963 6520 2d20 4469  HCP Service - Di
│ │ │ -0024a610: 7361 626c 6520 536f 636b 6574 2064 6863  sable Socket dhc
│ │ │ -0024a620: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -0024a630: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0024a640: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ -0024a650: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -0024a660: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -0024a670: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -0024a680: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -0024a690: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0024a6a0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0024a6b0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0024a6c0: 6973 2073 6561 7263 6828 2264 6863 7064  is search("dhcpd
│ │ │ -0024a6d0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0024a6e0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0024a6f0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0024a700: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0024a710: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0024a720: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0024a730: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0024a740: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0024a750: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0024a760: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0024a770: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0024a780: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0024a790: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024a7a0: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ -0024a7b0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -0024a7c0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0024a7d0: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -0024a7e0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0024a7f0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0024a800: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation A │ │ │ +00249c80: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00249c90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00249d10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00249d30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00249d80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00249db0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00249d20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00249d40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00249d90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00249da0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00249dd0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00249de0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00249df0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00249e00: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00249e10: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00249e20: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00249e30: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00249e40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00249e50: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00249e60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00249e70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00249e80: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00249e90: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00249ea0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00249eb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00249ec0: 6572 7669 6365 5f64 6863 7064 5f64 6973  ervice_dhcpd_dis
│ │ │ +00249ed0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +00249ee0: 6973 6162 6c65 2044 4843 5020 5365 7276  isable DHCP Serv
│ │ │ +00249ef0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ +00249f00: 7276 6963 6520 6468 6370 640a 2020 626c  rvice dhcpd.  bl
│ │ │ +00249f10: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00249f20: 4469 7361 626c 6520 4448 4350 2053 6572  Disable DHCP Ser
│ │ │ +00249f30: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +00249f40: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00249f50: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00249f60: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +00249f70: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00249f80: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00249f90: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00249fa0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +00249fb0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +00249fc0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00249fd0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00249fe0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00249ff0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +0024a000: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0024a010: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0024a020: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0024a030: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ +0024a040: 4350 2053 6572 7669 6365 202d 2045 6e73  CP Service - Ens
│ │ │ +0024a050: 7572 6520 6468 6370 642e 7365 7276 6963  ure dhcpd.servic
│ │ │ +0024a060: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0024a070: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0024a080: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0024a090: 616d 653a 2064 6863 7064 2e73 6572 7669  ame: dhcpd.servi
│ │ │ +0024a0a0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +0024a0b0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +0024a0c0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0024a0d0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0024a0e0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +0024a0f0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0024a100: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0024a110: 2264 6863 7064 2e73 6572 7669 6365 222c  "dhcpd.service",
│ │ │ +0024a120: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0024a130: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0024a140: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0024a150: 2064 6863 7064 2e73 6f63 6b65 740a 2020   dhcpd.socket.  
│ │ │ +0024a160: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0024a170: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0024a180: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0024a190: 742d 6669 6c65 7320 6468 6370 642e 736f  t-files dhcpd.so
│ │ │ +0024a1a0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +0024a1b0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +0024a1c0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +0024a1d0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +0024a1e0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +0024a1f0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0024a200: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0024a210: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0024a220: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0024a230: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +0024a240: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +0024a250: 6c65 2053 6f63 6b65 7420 6468 6370 640a  le Socket dhcpd.
│ │ │ +0024a260: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0024a270: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0024a280: 2020 206e 616d 653a 2064 6863 7064 2e73     name: dhcpd.s
│ │ │ +0024a290: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0024a2a0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0024a2b0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0024a2c0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0024a2d0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0024a2e0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0024a2f0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0024a300: 7365 6172 6368 2822 6468 6370 642e 736f  search("dhcpd.so
│ │ │ +0024a310: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0024a320: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0024a330: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0024a340: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0024a350: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0024a360: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0024a370: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0024a380: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0024a390: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0024a3a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0024a3b0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0024a3c0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0024a3d0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0024a3e0: 6572 7669 6365 5f64 6863 7064 5f64 6973  ervice_dhcpd_dis
│ │ │ +0024a3f0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0024a400: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0024a410: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0024a420: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0024a430: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0024a440: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +0024a500: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0024a510: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +0024a5e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0024a5f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0024a640: 6e63 6c75 6465 2064 6973 6162 6c65 5f64  nclude disable_d
│ │ │ +0024a650: 6863 7064 0a0a 636c 6173 7320 6469 7361  hcpd..class disa
│ │ │ +0024a660: 626c 655f 6468 6370 6420 7b0a 2020 7365  ble_dhcpd {.  se
│ │ │ +0024a670: 7276 6963 6520 7b27 6468 6370 6427 3a0a  rvice {'dhcpd':.
│ │ │ +0024a680: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +0024a690: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +0024a6a0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +0024a6b0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +0024a770: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0024a780: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0024a790: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +0024a7d0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +0024a7e0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +0024a7f0: 0a6d 6173 6b65 6420 3d20 5b22 6468 6370  .masked = ["dhcp
│ │ │ +0024a800: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
< │ │ │ 0024a830: 2f74 6162 6c65 3e3c 2f74 643e 3c2f 7472 /table>Remediati │ │ │ -0024bdb0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0024bdc0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024be40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr> │ │ │ -0024be80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +0024a5c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0024a5d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0024a610: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0024a620: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -0024be50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0024be70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0024bea0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0024bec0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0024bef0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0024bf00: 656d 6f76 655f 6269 6e64 0a0a 636c 6173  emove_bind..clas
│ │ │ -0024bf10: 7320 7265 6d6f 7665 5f62 696e 6420 7b0a  s remove_bind {.
│ │ │ -0024bf20: 2020 7061 636b 6167 6520 7b20 2762 696e    package { 'bin
│ │ │ -0024bf30: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ -0024bf40: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0024bf50: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0024c010: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0024c020: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0024c0b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0024c0d0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0024c0e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0024c0f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0024c100: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0024c120: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0024c150: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -0024c160: 696e 7374 616c 6c20 6269 6e64 2050 6163  install bind Pac
│ │ │ -0024c170: 6b61 6765 3a20 456e 7375 7265 2062 696e  kage: Ensure bin
│ │ │ -0024c180: 6420 6973 2072 656d 6f76 6564 270a 2020  d is removed'.  
│ │ │ -0024c190: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0024c1a0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0024c1b0: 653a 2062 696e 640a 2020 2020 7374 6174  e: bind.    stat
│ │ │ -0024c1c0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0024c1d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0024c1e0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0024c1f0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0024c200: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0024c210: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0024c220: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0024c230: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0024c240: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0024c250: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0024c260: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0024c270: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0024c280: 6163 6b61 6765 5f62 696e 645f 7265 6d6f  ackage_bind_remo
│ │ │ -0024c290: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +0024be40: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0024be50: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0024be60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0024bea0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0024beb0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0024bed0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0024bee0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +0024bf00: 556e 696e 7374 616c 6c20 6269 6e64 2050  Uninstall bind P
│ │ │ +0024bf10: 6163 6b61 6765 3a20 456e 7375 7265 2062  ackage: Ensure b
│ │ │ +0024bf20: 696e 6420 6973 2072 656d 6f76 6564 270a  ind is removed'.
│ │ │ +0024bf30: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0024bf40: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0024bf50: 616d 653a 2062 696e 640a 2020 2020 7374  ame: bind.    st
│ │ │ +0024bf60: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ +0024bf70: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +0024bf80: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +0024bf90: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0024bfa0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0024bfb0: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ +0024bfc0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0024bfd0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0024bfe0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0024bff0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +0024c000: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +0024c010: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0024c020: 2070 6163 6b61 6765 5f62 696e 645f 7265   package_bind_re
│ │ │ +0024c030: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +0024c0f0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0024c100: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +0024c190: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024c1b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024c1c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024c1d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024c1e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024c200: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024c230: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0024c240: 6d6f 7665 5f62 696e 640a 0a63 6c61 7373  move_bind..class
│ │ │ +0024c250: 2072 656d 6f76 655f 6269 6e64 207b 0a20   remove_bind {. 
│ │ │ +0024c260: 2070 6163 6b61 6765 207b 2027 6269 6e64   package { 'bind
│ │ │ +0024c270: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0024c280: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0024c290: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ -0024d310: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0024d320: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0024d330: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -0024d370: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0024d380: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -0024d390: 203d 205b 226e 616d 6564 225d 0a3c 2f63   = ["named"].
│ │ │ -0024d3b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0024d450: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0024d460: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0024d470: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0024d4f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0024d520: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0024d540: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0024d550: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0024d570: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0024d590: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0024d5a0: 6465 2064 6973 6162 6c65 5f6e 616d 6564  de disable_named
│ │ │ -0024d5b0: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -0024d5c0: 6e61 6d65 6420 7b0a 2020 7365 7276 6963  named {.  servic
│ │ │ -0024d5d0: 6520 7b27 6e61 6d65 6427 3a0a 2020 2020  e {'named':.    
│ │ │ -0024d5e0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0024d5f0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0024d600: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0024d610: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0024d6d0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0024d6e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024d760: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0024d770: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0024d790: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0024d7a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0024d7c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0024d7e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0024d810: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0024d820: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0024d830: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0024d840: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0024d850: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0024d860: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0024d870: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0024d880: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0024d890: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0024d8a0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0024d8b0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0024d8c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0024d8d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0024d8e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0024d8f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0024d900: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0024d910: 2d20 7365 7276 6963 655f 6e61 6d65 645f  - service_named_
│ │ │ -0024d920: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -0024d930: 3a20 4469 7361 626c 6520 6e61 6d65 6420  : Disable named 
│ │ │ -0024d940: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0024d950: 6520 7365 7276 6963 6520 6e61 6d65 640a  e service named.
│ │ │ -0024d960: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0024d970: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ -0024d980: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -0024d990: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0024d9a0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0024d9b0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0024d9c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0024d9d0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0024d9e0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0024d9f0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0024da00: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0024da10: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0024da20: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0024da30: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0024da40: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0024da50: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0024da60: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0024da70: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0024da80: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0024da90: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ -0024daa0: 202d 2045 6e73 7572 6520 6e61 6d65 642e   - Ensure named.
│ │ │ -0024dab0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0024dac0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0024dad0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0024dae0: 2020 2020 206e 616d 653a 206e 616d 6564       name: named
│ │ │ -0024daf0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -0024db00: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -0024db10: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -0024db20: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -0024db30: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -0024db40: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -0024db50: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0024db60: 6561 7263 6828 226e 616d 6564 2e73 6572  earch("named.ser
│ │ │ -0024db70: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0024db80: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0024db90: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0024dba0: 6973 7473 202d 206e 616d 6564 2e73 6f63  ists - named.soc
│ │ │ -0024dbb0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0024dbc0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0024dbd0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0024dbe0: 7374 2d75 6e69 742d 6669 6c65 7320 6e61  st-unit-files na
│ │ │ -0024dbf0: 6d65 642e 736f 636b 6574 0a20 2020 2072  med.socket.    r
│ │ │ -0024dc00: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0024dc10: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0024dc20: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0024dc30: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0024dc40: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0024dc50: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0024dc60: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0024dc70: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0024dc80: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0024dc90: 6520 6e61 6d65 6420 5365 7276 6963 6520  e named Service 
│ │ │ -0024dca0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0024dcb0: 206e 616d 6564 0a20 2020 2061 6e73 6962   named.    ansib
│ │ │ -0024dcc0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0024dcd0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0024dce0: 6e61 6d65 642e 736f 636b 6574 0a20 2020  named.socket.   
│ │ │ -0024dcf0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0024dd00: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0024dd10: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -0024dd20: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0024dd30: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0024dd40: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0024dd50: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ -0024dd60: 616d 6564 2e73 6f63 6b65 7422 2c20 6d75  amed.socket", mu
│ │ │ -0024dd70: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -0024dd80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0024dd90: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0024dda0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0024ddb0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -0024ddc0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -0024ddd0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0024dde0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0024ddf0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0024de00: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0024de10: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0024de20: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0024de30: 640a 2020 2d20 7365 7276 6963 655f 6e61  d.  - service_na
│ │ │ -0024de40: 6d65 645f 6469 7361 626c 6564 0a20 202d  med_disabled.  -
│ │ │ -0024de50: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0024de60: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -0024de70: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0024de80: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0024de90: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0024d300: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +0024d310: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0024d320: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0024d3a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0024d3c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0024d410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0024d440: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0024d3b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0024d3d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0024d420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0024d430: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +0024d460: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0024d470: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0024d480: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0024d490: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0024d4a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0024d4b0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0024d4c0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0024d4d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0024d4e0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0024d4f0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0024d500: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0024d510: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0024d520: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0024d530: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0024d540: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0024d550: 6572 7669 6365 5f6e 616d 6564 5f64 6973  ervice_named_dis
│ │ │ +0024d560: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +0024d570: 6973 6162 6c65 206e 616d 6564 2053 6572  isable named Ser
│ │ │ +0024d580: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +0024d590: 6572 7669 6365 206e 616d 6564 0a20 2062  ervice named.  b
│ │ │ +0024d5a0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +0024d5b0: 2044 6973 6162 6c65 206e 616d 6564 2053   Disable named S
│ │ │ +0024d5c0: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +0024d5d0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +0024d5e0: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +0024d5f0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +0024d600: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +0024d610: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +0024d620: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +0024d630: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +0024d640: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0024d650: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +0024d660: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0024d670: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0024d680: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +0024d690: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0024d6a0: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0024d6b0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0024d6c0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0024d6d0: 6e61 6d65 6420 5365 7276 6963 6520 2d20  named Service - 
│ │ │ +0024d6e0: 456e 7375 7265 206e 616d 6564 2e73 6572  Ensure named.ser
│ │ │ +0024d6f0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0024d700: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0024d710: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0024d720: 2020 6e61 6d65 3a20 6e61 6d65 642e 7365    name: named.se
│ │ │ +0024d730: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +0024d740: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0024d750: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0024d760: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0024d770: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +0024d780: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +0024d790: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0024d7a0: 6368 2822 6e61 6d65 642e 7365 7276 6963  ch("named.servic
│ │ │ +0024d7b0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0024d7c0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0024d7d0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0024d7e0: 7320 2d20 6e61 6d65 642e 736f 636b 6574  s - named.socket
│ │ │ +0024d7f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0024d800: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0024d810: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0024d820: 756e 6974 2d66 696c 6573 206e 616d 6564  unit-files named
│ │ │ +0024d830: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0024d840: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0024d850: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0024d860: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0024d870: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0024d880: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0024d890: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0024d8a0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0024d8b0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0024d8c0: 206e 616d 653a 2044 6973 6162 6c65 206e   name: Disable n
│ │ │ +0024d8d0: 616d 6564 2053 6572 7669 6365 202d 2044  amed Service - D
│ │ │ +0024d8e0: 6973 6162 6c65 2053 6f63 6b65 7420 6e61  isable Socket na
│ │ │ +0024d8f0: 6d65 640a 2020 2020 616e 7369 626c 652e  med.    ansible.
│ │ │ +0024d900: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +0024d910: 0a20 2020 2020 206e 616d 653a 206e 616d  .      name: nam
│ │ │ +0024d920: 6564 2e73 6f63 6b65 740a 2020 2020 2020  ed.socket.      
│ │ │ +0024d930: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0024d940: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0024d950: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +0024d960: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +0024d970: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0024d980: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +0024d990: 2069 7320 7365 6172 6368 2822 6e61 6d65   is search("name
│ │ │ +0024d9a0: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +0024d9b0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +0024d9c0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0024d9d0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +0024d9e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0024d9f0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0024da00: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +0024da10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0024da20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0024da30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0024da40: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0024da50: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0024da60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0024da70: 202d 2073 6572 7669 6365 5f6e 616d 6564   - service_named
│ │ │ +0024da80: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +0024da90: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +0024daa0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ +0024dab0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0024dac0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0024dad0: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
Remediation │ │ │ +0024db90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0024dba0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +0024dc30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0024dc50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0024dc70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0024dca0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0024dcb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0024dcc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +0024dce0: 6c65 5f6e 616d 6564 0a0a 636c 6173 7320  le_named..class 
│ │ │ +0024dcf0: 6469 7361 626c 655f 6e61 6d65 6420 7b0a  disable_named {.
│ │ │ +0024dd00: 2020 7365 7276 6963 6520 7b27 6e61 6d65    service {'name
│ │ │ +0024dd10: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +0024dd20: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +0024dd30: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +0024dd40: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +0024de00: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0024de10: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0024de20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0024de30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0024de40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0024de50: 7365 2220 6964 3d22 6964 3932 3522 3e3c se" id="id925">< │ │ │ +0024de60: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +0024de70: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +0024de80: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +0024de90: 6e61 6d65 6422 5d0a 3c2f 636f 6465 3e3c named"].< │ │ │ 0024dea0: 2f70 7265 3e3c 2f64 6976 3e3c 2f64 6976 /pre>
│ │ │ 0024ded0: 3c2f 7472 3e3c 7472 2064 6174 612d 7474 Remediation │ │ │ -0024e740: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0024e750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0024e7e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0024e800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0024e820: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0024e850: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0024e860: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0024e890: 6f76 655f 646e 736d 6173 710a 0a63 6c61  ove_dnsmasq..cla
│ │ │ -0024e8a0: 7373 2072 656d 6f76 655f 646e 736d 6173  ss remove_dnsmas
│ │ │ -0024e8b0: 7120 7b0a 2020 7061 636b 6167 6520 7b20  q {.  package { 
│ │ │ -0024e8c0: 2764 6e73 6d61 7371 273a 0a20 2020 2065  'dnsmasq':.    e
│ │ │ -0024e8d0: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0024e8e0: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0024e900: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0024e910: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0024e920: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0024e930: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0024e940: 6439 3238 2220 7461 6269 6e64 6578 3d22 d928" tabindex=" │ │ │ -0024e950: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0024e960: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0024e970: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0024e980: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0024e990: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0024e9a0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0024e9b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0024e9c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0024ea40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0024ea70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0024ea90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0024eaa0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0024eac0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0024ead0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0024eaf0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2064  me: 'Uninstall d
│ │ │ -0024eb00: 6e73 6d61 7371 2050 6163 6b61 6765 3a20  nsmasq Package: 
│ │ │ -0024eb10: 456e 7375 7265 2064 6e73 6d61 7371 2069  Ensure dnsmasq i
│ │ │ -0024eb20: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -0024eb30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0024eb40: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0024eb50: 646e 736d 6173 710a 2020 2020 7374 6174  dnsmasq.    stat
│ │ │ -0024eb60: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0024eb70: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0024eb80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0024eb90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0024eba0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0024ebb0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -0024ebc0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0024ebd0: 6564 0a20 202d 2070 6163 6b61 6765 5f64  ed.  - package_d
│ │ │ -0024ebe0: 6e73 6d61 7371 5f72 656d 6f76 6564 0a3c  nsmasq_removed.<
│ │ │ +0024e740: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +0024e750: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +0024e7e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0024e800: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0024e810: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024e820: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0024e830: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0024e850: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024e880: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0024e890: 696e 7374 616c 6c20 646e 736d 6173 7120  install dnsmasq 
│ │ │ +0024e8a0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +0024e8b0: 646e 736d 6173 7120 6973 2072 656d 6f76  dnsmasq is remov
│ │ │ +0024e8c0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0024e8d0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0024e8e0: 2020 206e 616d 653a 2064 6e73 6d61 7371     name: dnsmasq
│ │ │ +0024e8f0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +0024e900: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ +0024e910: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0024e920: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0024e930: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0024e940: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +0024e950: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0024e960: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0024e970: 7061 636b 6167 655f 646e 736d 6173 715f  package_dnsmasq_
│ │ │ +0024e980: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +0024e990: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0024ea40: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0024ea50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0024ead0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0024eae0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0024eaf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0024eb30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0024eb40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0024eb60: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0024eb70: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +0024eb90: 7265 6d6f 7665 5f64 6e73 6d61 7371 0a0a  remove_dnsmasq..
│ │ │ +0024eba0: 636c 6173 7320 7265 6d6f 7665 5f64 6e73  class remove_dns
│ │ │ +0024ebb0: 6d61 7371 207b 0a20 2070 6163 6b61 6765  masq {.  package
│ │ │ +0024ebc0: 207b 2027 646e 736d 6173 7127 3a0a 2020   { 'dnsmasq':.  
│ │ │ +0024ebd0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0024ebe0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │  0024ebf0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Reme │ │ │ -0024f740: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0024f750: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0024f760: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -0024f7b0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -0024f7c0: 735d 0a6d 6173 6b65 6420 3d20 5b22 646e s].masked = ["dn │ │ │ -0024f7d0: 736d 6173 7122 5d0a 3c2f 636f 6465 3e3c smasq"].< │ │ │ -0024f7e0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -0024f890: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0024f8a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0024f920: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0024f930: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0024f940: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0024f980: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0024f990: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0024f9b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0024f9d0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -0024f9e0: 7361 626c 655f 646e 736d 6173 710a 0a63  sable_dnsmasq..c
│ │ │ -0024f9f0: 6c61 7373 2064 6973 6162 6c65 5f64 6e73  lass disable_dns
│ │ │ -0024fa00: 6d61 7371 207b 0a20 2073 6572 7669 6365  masq {.  service
│ │ │ -0024fa10: 207b 2764 6e73 6d61 7371 273a 0a20 2020   {'dnsmasq':.   
│ │ │ -0024fa20: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ -0024fa30: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ -0024fa40: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ -0024fa50: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -0024fb10: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -0024fb20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0024fba0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0024fbb0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0024fbc0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0024fc00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0024fc10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0024fc30: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0024fc40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0024fc60: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0024fc70: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0024fc80: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0024fc90: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0024fca0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0024fcb0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0024fcc0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0024fcd0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0024fce0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0024fcf0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0024fd00: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0024fd10: 6365 5f64 6e73 6d61 7371 5f64 6973 6162  ce_dnsmasq_disab
│ │ │ -0024fd20: 6c65 640a 0a2d 206e 616d 653a 2044 6973  led..- name: Dis
│ │ │ -0024fd30: 6162 6c65 2064 6e73 6d61 7371 2053 6572  able dnsmasq Ser
│ │ │ -0024fd40: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -0024fd50: 6572 7669 6365 2064 6e73 6d61 7371 0a20  ervice dnsmasq. 
│ │ │ -0024fd60: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -0024fd70: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ -0024fd80: 7371 2053 6572 7669 6365 202d 2043 6f6c  sq Service - Col
│ │ │ -0024fd90: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0024fda0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0024fdb0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -0024fdc0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0024fdd0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0024fde0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0024fdf0: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -0024fe00: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -0024fe10: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -0024fe20: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0024fe30: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0024fe40: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -0024fe50: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -0024fe60: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0024fe70: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0024fe80: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0024fe90: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ -0024fea0: 6963 6520 2d20 456e 7375 7265 2064 6e73  ice - Ensure dns
│ │ │ -0024feb0: 6d61 7371 2e73 6572 7669 6365 2069 7320  masq.service is 
│ │ │ -0024fec0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -0024fed0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0024fee0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0024fef0: 646e 736d 6173 712e 7365 7276 6963 650a  dnsmasq.service.
│ │ │ -0024ff00: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0024ff10: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -0024ff20: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0024ff30: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -0024ff40: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -0024ff50: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0024ff60: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ -0024ff70: 736d 6173 712e 7365 7276 6963 6522 2c20  smasq.service", 
│ │ │ -0024ff80: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0024ff90: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -0024ffa0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -0024ffb0: 646e 736d 6173 712e 736f 636b 6574 0a20  dnsmasq.socket. 
│ │ │ -0024ffc0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0024ffd0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -0024ffe0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -0024fff0: 6974 2d66 696c 6573 2064 6e73 6d61 7371  it-files dnsmasq
│ │ │ -00250000: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -00250010: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -00250020: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00250030: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00250040: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00250050: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00250060: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00250070: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00250080: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00250090: 206e 616d 653a 2044 6973 6162 6c65 2064   name: Disable d
│ │ │ -002500a0: 6e73 6d61 7371 2053 6572 7669 6365 202d  nsmasq Service -
│ │ │ -002500b0: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -002500c0: 646e 736d 6173 710a 2020 2020 616e 7369  dnsmasq.    ansi
│ │ │ -002500d0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -002500e0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -002500f0: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a   dnsmasq.socket.
│ │ │ -00250100: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00250110: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -00250120: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00250130: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -00250140: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -00250150: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -00250160: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -00250170: 2822 646e 736d 6173 712e 736f 636b 6574  ("dnsmasq.socket
│ │ │ -00250180: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00250190: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -002501a0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002501b0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002501c0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002501d0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002501e0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002501f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00250200: 202d 2073 6572 7669 6365 5f64 6e73 6d61   - service_dnsma
│ │ │ -00250210: 7371 5f64 6973 6162 6c65 640a 2020 2d20  sq_disabled.  - 
│ │ │ -00250220: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -00250230: 626c 6f63 6b0a 2020 7768 656e 3a20 2722  block.  when: '"
│ │ │ -00250240: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00250250: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00250260: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.<
│ │ │ +0024f760: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0024f7e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0024f810: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0024f830: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0024f840: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0024f860: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0024f870: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0024f890: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0024f8a0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0024f8b0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0024f8c0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0024f8d0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0024f8e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0024f8f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0024f900: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0024f910: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0024f920: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0024f930: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0024f940: 7365 7276 6963 655f 646e 736d 6173 715f  service_dnsmasq_
│ │ │ +0024f950: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +0024f960: 3a20 4469 7361 626c 6520 646e 736d 6173  : Disable dnsmas
│ │ │ +0024f970: 7120 5365 7276 6963 6520 2d20 4469 7361  q Service - Disa
│ │ │ +0024f980: 626c 6520 7365 7276 6963 6520 646e 736d  ble service dnsm
│ │ │ +0024f990: 6173 710a 2020 626c 6f63 6b3a 0a0a 2020  asq.  block:..  
│ │ │ +0024f9a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0024f9b0: 646e 736d 6173 7120 5365 7276 6963 6520  dnsmasq Service 
│ │ │ +0024f9c0: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0024f9d0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0024f9e0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0024f9f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0024fa00: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0024fa10: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0024fa20: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0024fa30: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0024fa40: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0024fa50: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0024fa60: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0024fa70: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0024fa80: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0024fa90: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0024faa0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0024fab0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0024fac0: 2044 6973 6162 6c65 2064 6e73 6d61 7371   Disable dnsmasq
│ │ │ +0024fad0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +0024fae0: 6520 646e 736d 6173 712e 7365 7276 6963  e dnsmasq.servic
│ │ │ +0024faf0: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0024fb00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0024fb10: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0024fb20: 616d 653a 2064 6e73 6d61 7371 2e73 6572  ame: dnsmasq.ser
│ │ │ +0024fb30: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +0024fb40: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +0024fb50: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +0024fb60: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0024fb70: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +0024fb80: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +0024fb90: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0024fba0: 6828 2264 6e73 6d61 7371 2e73 6572 7669  h("dnsmasq.servi
│ │ │ +0024fbb0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +0024fbc0: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +0024fbd0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +0024fbe0: 7473 202d 2064 6e73 6d61 7371 2e73 6f63  ts - dnsmasq.soc
│ │ │ +0024fbf0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +0024fc00: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0024fc10: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0024fc20: 7374 2d75 6e69 742d 6669 6c65 7320 646e  st-unit-files dn
│ │ │ +0024fc30: 736d 6173 712e 736f 636b 6574 0a20 2020  smasq.socket.   
│ │ │ +0024fc40: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +0024fc50: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +0024fc60: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +0024fc70: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +0024fc80: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +0024fc90: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +0024fca0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0024fcb0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0024fcc0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0024fcd0: 626c 6520 646e 736d 6173 7120 5365 7276  ble dnsmasq Serv
│ │ │ +0024fce0: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +0024fcf0: 636b 6574 2064 6e73 6d61 7371 0a20 2020  cket dnsmasq.   
│ │ │ +0024fd00: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024fd10: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0024fd20: 6e61 6d65 3a20 646e 736d 6173 712e 736f  name: dnsmasq.so
│ │ │ +0024fd30: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +0024fd40: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +0024fd50: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +0024fd60: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +0024fd70: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +0024fd80: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +0024fd90: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0024fda0: 6561 7263 6828 2264 6e73 6d61 7371 2e73  earch("dnsmasq.s
│ │ │ +0024fdb0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +0024fdc0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +0024fdd0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0024fde0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0024fdf0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0024fe00: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0024fe10: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0024fe20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0024fe30: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0024fe40: 646e 736d 6173 715f 6469 7361 626c 6564  dnsmasq_disabled
│ │ │ +0024fe50: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +0024fe60: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +0024fe70: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +0024fe80: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +0024fe90: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +0024feb0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0024fec0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0024fed0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0024fee0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0024fef0: 6439 3332 2220 7461 6269 6e64 6578 3d22 d932" tabindex=" │ │ │ +0024ff00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0024ff10: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0024ff20: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0024ff30: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0024ff40: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0024ff50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0024ff60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0024fff0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00250000: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00250020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00250040: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00250050: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00250090: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002500a0: 6520 6469 7361 626c 655f 646e 736d 6173 e disable_dnsmas │ │ │ +002500b0: 710a 0a63 6c61 7373 2064 6973 6162 6c65 q..class disable │ │ │ +002500c0: 5f64 6e73 6d61 7371 207b 0a20 2073 6572 _dnsmasq {. ser │ │ │ +002500d0: 7669 6365 207b 2764 6e73 6d61 7371 273a vice {'dnsmasq': │ │ │ +002500e0: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +002500f0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ +00250100: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ +00250110: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +002501d0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +002501e0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002501f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00250240: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00250250: 5d0a 6d61 736b 6564 203d 205b 2264 6e73  ].masked = ["dns
│ │ │ +00250260: 6d61 7371 225d 0a3c 2f63 6f64 653e 3c2f  masq"].
│ │ │ 00250280: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64 < │ │ │ 002502a0: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>Remediation Pu │ │ │ -00251920: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00251930: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00251a00: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00251a10: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00251a70: 5f76 7366 7470 640a 0a63 6c61 7373 2072  _vsftpd..class r
│ │ │ -00251a80: 656d 6f76 655f 7673 6674 7064 207b 0a20  emove_vsftpd {. 
│ │ │ -00251a90: 2070 6163 6b61 6765 207b 2027 7673 6674   package { 'vsft
│ │ │ -00251aa0: 7064 273a 0a20 2020 2065 6e73 7572 6520  pd':.    ensure 
│ │ │ -00251ab0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00251ac0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00251b80: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00251b90: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00251c10: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00251c50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ -002519e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002519f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00251a30: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00251a40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -00251c20: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00251c40: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00251c70: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00251c90: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00251cc0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00251cd0: 6e69 6e73 7461 6c6c 2076 7366 7470 6420  ninstall vsftpd 
│ │ │ -00251ce0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -00251cf0: 7673 6674 7064 2069 7320 7265 6d6f 7665  vsftpd is remove
│ │ │ -00251d00: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00251d10: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00251d20: 2020 6e61 6d65 3a20 7673 6674 7064 0a20    name: vsftpd. 
│ │ │ -00251d30: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00251d40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00251d50: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00251d60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00251d70: 2d43 4d2d 370a 2020 2d20 4e49 5354 2d38  -CM-7.  - NIST-8
│ │ │ -00251d80: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00251d90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00251da0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ -00251db0: 3030 2d35 332d 434d 2d37 2e31 2869 6929  00-53-CM-7.1(ii)
│ │ │ -00251dc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00251dd0: 2d49 412d 3528 3129 2863 290a 2020 2d20  -IA-5(1)(c).  - 
│ │ │ -00251de0: 4e49 5354 2d38 3030 2d35 332d 4941 2d35  NIST-800-53-IA-5
│ │ │ -00251df0: 2831 292e 3128 7629 0a20 202d 2064 6973  (1).1(v).  - dis
│ │ │ -00251e00: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00251e10: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ -00251e20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00251e30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00251e40: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00251e50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00251e60: 6163 6b61 6765 5f76 7366 7470 645f 7265  ackage_vsftpd_re
│ │ │ -00251e70: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediation An │ │ │ +00251920: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00251930: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +002519b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002519d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00251a20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00251a50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00251a70: 7461 6c6c 2076 7366 7470 6420 5061 636b  tall vsftpd Pack
│ │ │ +00251a80: 6167 653a 2045 6e73 7572 6520 7673 6674  age: Ensure vsft
│ │ │ +00251a90: 7064 2069 7320 7265 6d6f 7665 6427 0a20  pd is removed'. 
│ │ │ +00251aa0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00251ab0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00251ac0: 6d65 3a20 7673 6674 7064 0a20 2020 2073  me: vsftpd.    s
│ │ │ +00251ad0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +00251ae0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00251af0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +00251b00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00251b10: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ +00251b20: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00251b30: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00251b40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00251b50: 332d 434d 2d37 2e31 2869 6929 0a20 202d  3-CM-7.1(ii).  -
│ │ │ +00251b60: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ +00251b70: 3528 3129 2863 290a 2020 2d20 4e49 5354  5(1)(c).  - NIST
│ │ │ +00251b80: 2d38 3030 2d35 332d 4941 2d35 2831 292e  -800-53-IA-5(1).
│ │ │ +00251b90: 3128 7629 0a20 202d 2064 6973 6162 6c65  1(v).  - disable
│ │ │ +00251ba0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ +00251bb0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ +00251bc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00251bd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00251be0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00251bf0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00251c00: 6765 5f76 7366 7470 645f 7265 6d6f 7665  ge_vsftpd_remove
│ │ │ +00251c10: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00251c20: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00251cd0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00251ce0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ +002519e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002519f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00251a30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00251a40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ +00251db0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00251dc0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00251e20: 5f76 7366 7470 640a 0a63 6c61 7373 2072  _vsftpd..class r
│ │ │ +00251e30: 656d 6f76 655f 7673 6674 7064 207b 0a20  emove_vsftpd {. 
│ │ │ +00251e40: 2070 6163 6b61 6765 207b 2027 7673 6674   package { 'vsft
│ │ │ +00251e50: 7064 273a 0a20 2020 2065 6e73 7572 6520  pd':.    ensure 
│ │ │ +00251e60: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00251e70: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Re │ │ │ -00252f50: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00252f60: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00252f70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00252f80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00252f90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00252fa0: 7365 2220 6964 3d22 6964 3933 3922 3e3c se" id="id939">< │ │ │ -00252fb0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00252fc0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00252fd0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00252fe0: 7673 6674 7064 225d 0a3c 2f63 6f64 653e vsftpd"]. │ │ │ -00252ff0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -002530a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -002530b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002530c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002530d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002530e0: 7365 2220 6964 3d22 6964 3934 3022 3e3c se" id="id940">< │ │ │ -002530f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00253100: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00253110: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00253120: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00253130: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -002531c0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -002531d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00251d90: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00251da0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00251de0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00251df0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -00253140: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00253150: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00253190: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002531a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -002531f0: 6973 6162 6c65 5f76 7366 7470 640a 0a63  isable_vsftpd..c
│ │ │ -00253200: 6c61 7373 2064 6973 6162 6c65 5f76 7366  lass disable_vsf
│ │ │ -00253210: 7470 6420 7b0a 2020 7365 7276 6963 6520  tpd {.  service 
│ │ │ -00253220: 7b27 7673 6674 7064 273a 0a20 2020 2065  {'vsftpd':.    e
│ │ │ -00253230: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -00253240: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -00253250: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -00253260: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00253320: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00253330: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -002533c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002533e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002533f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00253400: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00253410: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00253430: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00253460: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00253470: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00253480: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00253490: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002534a0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002534b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002534c0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002534d0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002534e0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002534f0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -00253500: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00253510: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00253520: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00253530: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00253540: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00253550: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00253560: 2073 6572 7669 6365 5f76 7366 7470 645f   service_vsftpd_
│ │ │ -00253570: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -00253580: 3a20 4469 7361 626c 6520 7673 6674 7064  : Disable vsftpd
│ │ │ -00253590: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -002535a0: 6c65 2073 6572 7669 6365 2076 7366 7470  le service vsftp
│ │ │ -002535b0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -002535c0: 6e61 6d65 3a20 4469 7361 626c 6520 7673  name: Disable vs
│ │ │ -002535d0: 6674 7064 2053 6572 7669 6365 202d 2043  ftpd Service - C
│ │ │ -002535e0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -002535f0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -00253600: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -00253610: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00253620: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00253630: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00253640: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -00253650: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -00253660: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -00253670: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -00253680: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -00253690: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -002536a0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -002536b0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002536c0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002536d0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002536e0: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ -002536f0: 7669 6365 202d 2045 6e73 7572 6520 7673  vice - Ensure vs
│ │ │ -00253700: 6674 7064 2e73 6572 7669 6365 2069 7320  ftpd.service is 
│ │ │ -00253710: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -00253720: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00253730: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00253740: 7673 6674 7064 2e73 6572 7669 6365 0a20  vsftpd.service. 
│ │ │ -00253750: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00253760: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00253770: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00253780: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00253790: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002537a0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002537b0: 7320 6973 2073 6561 7263 6828 2276 7366  s is search("vsf
│ │ │ -002537c0: 7470 642e 7365 7276 6963 6522 2c20 6d75  tpd.service", mu
│ │ │ -002537d0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ -002537e0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ -002537f0: 636b 6574 2045 7869 7374 7320 2d20 7673  cket Exists - vs
│ │ │ -00253800: 6674 7064 2e73 6f63 6b65 740a 2020 2020  ftpd.socket.    
│ │ │ -00253810: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00253820: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00253830: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00253840: 6669 6c65 7320 7673 6674 7064 2e73 6f63  files vsftpd.soc
│ │ │ -00253850: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -00253860: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00253870: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00253880: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00253890: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -002538a0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002538b0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -002538c0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -002538d0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -002538e0: 653a 2044 6973 6162 6c65 2076 7366 7470  e: Disable vsftp
│ │ │ -002538f0: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ -00253900: 626c 6520 536f 636b 6574 2076 7366 7470  ble Socket vsftp
│ │ │ -00253910: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -00253920: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00253930: 2020 2020 206e 616d 653a 2076 7366 7470       name: vsftp
│ │ │ -00253940: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -00253950: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00253960: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00253970: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00253980: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00253990: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002539a0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002539b0: 6973 2073 6561 7263 6828 2276 7366 7470  is search("vsftp
│ │ │ -002539c0: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ -002539d0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -002539e0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002539f0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -00253a00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -00253a10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -00253a20: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -00253a30: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00253a40: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00253a50: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00253a60: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00253a70: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00253a80: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00253a90: 202d 2073 6572 7669 6365 5f76 7366 7470   - service_vsftp
│ │ │ -00253aa0: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -00253ab0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00253ac0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00253ad0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00253ae0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00253af0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


< │ │ │ +00253000: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00253010: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00253060: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002530a0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002530b0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002530c0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002530d0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002530e0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +002530f0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00253100: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00253110: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00253120: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00253130: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +00253140: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00253150: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00253160: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00253170: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00253180: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00253190: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002531a0: 655f 7673 6674 7064 5f64 6973 6162 6c65  e_vsftpd_disable
│ │ │ +002531b0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +002531c0: 6c65 2076 7366 7470 6420 5365 7276 6963  le vsftpd Servic
│ │ │ +002531d0: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ +002531e0: 6963 6520 7673 6674 7064 0a20 2062 6c6f  ice vsftpd.  blo
│ │ │ +002531f0: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00253200: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ +00253210: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ +00253220: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00253230: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +00253240: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00253250: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00253260: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00253270: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00253280: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00253290: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +002532a0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +002532b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +002532c0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +002532d0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +002532e0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +002532f0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00253300: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00253310: 206e 616d 653a 2044 6973 6162 6c65 2076   name: Disable v
│ │ │ +00253320: 7366 7470 6420 5365 7276 6963 6520 2d20  sftpd Service - 
│ │ │ +00253330: 456e 7375 7265 2076 7366 7470 642e 7365  Ensure vsftpd.se
│ │ │ +00253340: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +00253350: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00253360: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00253370: 2020 206e 616d 653a 2076 7366 7470 642e     name: vsftpd.
│ │ │ +00253380: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +00253390: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +002533a0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +002533b0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +002533c0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002533d0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +002533e0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +002533f0: 6172 6368 2822 7673 6674 7064 2e73 6572  arch("vsftpd.ser
│ │ │ +00253400: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +00253410: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +00253420: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +00253430: 6973 7473 202d 2076 7366 7470 642e 736f  ists - vsftpd.so
│ │ │ +00253440: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +00253450: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00253460: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00253470: 6973 742d 756e 6974 2d66 696c 6573 2076  ist-unit-files v
│ │ │ +00253480: 7366 7470 642e 736f 636b 6574 0a20 2020  sftpd.socket.   
│ │ │ +00253490: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +002534a0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +002534b0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002534c0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002534d0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +002534e0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +002534f0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00253500: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00253510: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00253520: 626c 6520 7673 6674 7064 2053 6572 7669  ble vsftpd Servi
│ │ │ +00253530: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ +00253540: 6b65 7420 7673 6674 7064 0a20 2020 2061  ket vsftpd.    a
│ │ │ +00253550: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00253560: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00253570: 6d65 3a20 7673 6674 7064 2e73 6f63 6b65  me: vsftpd.socke
│ │ │ +00253580: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00253590: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +002535a0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002535b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +002535c0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +002535d0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +002535e0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002535f0: 6368 2822 7673 6674 7064 2e73 6f63 6b65  ch("vsftpd.socke
│ │ │ +00253600: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +00253610: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +00253620: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00253630: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00253640: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00253650: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00253660: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00253670: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00253680: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00253690: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002536a0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +002536b0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002536c0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +002536d0: 6963 655f 7673 6674 7064 5f64 6973 6162  ice_vsftpd_disab
│ │ │ +002536e0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002536f0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00253700: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00253710: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00253720: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +00253730: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +002537e0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002537f0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +00252ff0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00253020: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00253030: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00253070: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00253080: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00253890: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002538a0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002538f0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00253930: 6c75 6465 2064 6973 6162 6c65 5f76 7366  lude disable_vsf
│ │ │ +00253940: 7470 640a 0a63 6c61 7373 2064 6973 6162  tpd..class disab
│ │ │ +00253950: 6c65 5f76 7366 7470 6420 7b0a 2020 7365  le_vsftpd {.  se
│ │ │ +00253960: 7276 6963 6520 7b27 7673 6674 7064 273a  rvice {'vsftpd':
│ │ │ +00253970: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +00253980: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +00253990: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +002539a0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +00253a60: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00253a70: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00253a80: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00253ad0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00253ae0: 5d0a 6d61 736b 6564 203d 205b 2276 7366  ].masked = ["vsf
│ │ │ +00253af0: 7470 6422 5d0a 3c2f 636f 6465 3e3c 2f70  tpd"].

< │ │ │ 00253b10: 2f74 643e 3c2f 7472 3e3c 2f74 626f 6479 /td>
C │ │ │ +00253880: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002538b0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002538c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00253900: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00253910: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Remediation │ │ │ -00254500: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00254510: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002545a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002545c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002545e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00254610: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00254620: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00254650: 6f76 655f 6674 700a 0a63 6c61 7373 2072  ove_ftp..class r
│ │ │ -00254660: 656d 6f76 655f 6674 7020 7b0a 2020 7061  emove_ftp {.  pa
│ │ │ -00254670: 636b 6167 6520 7b20 2766 7470 273a 0a20  ckage { 'ftp':. 
│ │ │ -00254680: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00254690: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002546a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00254750: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00254760: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00254770: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00254840: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00254850: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

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


< │ │ │ +002545d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002545e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00254820: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00254830: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00254870: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00254880: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +002545a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002545c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002545f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00254610: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00254640: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ +00254650: 6d6f 7665 2066 7470 2050 6163 6b61 6765  move ftp Package
│ │ │ +00254660: 3a20 456e 7375 7265 2066 7470 2069 7320  : Ensure ftp is 
│ │ │ +00254670: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00254680: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00254690: 6765 3a0a 2020 2020 6e61 6d65 3a20 6674  ge:.    name: ft
│ │ │ +002546a0: 700a 2020 2020 7374 6174 653a 2061 6273  p.    state: abs
│ │ │ +002546b0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +002546c0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +002546d0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +002546e0: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +002546f0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00254700: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00254710: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00254720: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00254730: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00254740: 6564 0a20 202d 2070 6163 6b61 6765 5f66  ed.  - package_f
│ │ │ +00254750: 7470 5f72 656d 6f76 6564 0a3c 2f63 6f64  tp_removed.
Remed │ │ │ +00254810: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00254820: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002548d0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002548f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00254920: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002548b0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002548c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002548e0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00254900: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00254910: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00254950: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00254960: 6465 2072 656d 6f76 655f 6674 700a 0a63 de remove_ftp..c │ │ │ +00254970: 6c61 7373 2072 656d 6f76 655f 6674 7020 lass remove_ftp │ │ │ +00254980: 7b0a 2020 7061 636b 6167 6520 7b20 2766 {. package { 'f │ │ │ +00254990: 7470 273a 0a20 2020 2065 6e73 7572 6520 tp':. ensure │ │ │ +002549a0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ +002549b0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediat │ │ │ -002555a0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002555b0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00255630: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00255640: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00255650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00255690: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002556a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002556c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002556d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -002556f0: 7265 6d6f 7665 5f74 6e66 7470 0a0a 636c  remove_tnftp..cl
│ │ │ -00255700: 6173 7320 7265 6d6f 7665 5f74 6e66 7470  ass remove_tnftp
│ │ │ -00255710: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00255720: 746e 6674 7027 3a0a 2020 2020 656e 7375  tnftp':.    ensu
│ │ │ -00255730: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00255740: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00255750: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00255800: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00255810: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00255820: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00255850: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -002558c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -002558e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00255910: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002558a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002558b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -002558f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00255900: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00255950: 2027 5265 6d6f 7665 2074 6e66 7470 2050 'Remove tnftp P │ │ │ -00255960: 6163 6b61 6765 3a20 456e 7375 7265 2074 ackage: Ensure t │ │ │ -00255970: 6e66 7470 2069 7320 7265 6d6f 7665 6427 nftp is removed' │ │ │ -00255980: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -00255990: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -002559a0: 6e61 6d65 3a20 746e 6674 700a 2020 2020 name: tnftp. │ │ │ -002559b0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ -002559c0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -002559d0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -002559e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -002559f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00255a00: 0a20 202d 206c 6f77 5f73 6576 6572 6974 . - low_severit │ │ │ -00255a10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00255a20: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00255a30: 6765 5f74 6e66 7470 5f72 656d 6f76 6564 ge_tnftp_removed │ │ │ +002555a0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +002555b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002555c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002555d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002555e0: 7365 2220 6964 3d22 6964 3934 3722 3e3c se" id="id947">< │ │ │ +002555f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00255600: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00255610: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00255620: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00255630: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00255640: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00255650: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00255690: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002556a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002556c0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002556d0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002556f0: 2752 656d 6f76 6520 746e 6674 7020 5061 'Remove tnftp Pa │ │ │ +00255700: 636b 6167 653a 2045 6e73 7572 6520 746e ckage: Ensure tn │ │ │ +00255710: 6674 7020 6973 2072 656d 6f76 6564 270a ftp is removed'. │ │ │ +00255720: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00255730: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ +00255740: 616d 653a 2074 6e66 7470 0a20 2020 2073 ame: tnftp. s │ │ │ +00255750: 7461 7465 3a20 6162 7365 6e74 0a20 2074 tate: absent. t │ │ │ +00255760: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ +00255770: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00255780: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00255790: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +002557a0: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ +002557b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002557c0: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +002557d0: 655f 746e 6674 705f 7265 6d6f 7665 640a e_tnftp_removed. │ │ │ +002557e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64

│ │ │ +00255890: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002558a0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +00255940: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002559e0: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ +002559f0: 6e66 7470 0a0a 636c 6173 7320 7265 6d6f  nftp..class remo
│ │ │ +00255a00: 7665 5f74 6e66 7470 207b 0a20 2070 6163  ve_tnftp {.  pac
│ │ │ +00255a10: 6b61 6765 207b 2027 746e 6674 7027 3a0a  kage { 'tnftp':.
│ │ │ +00255a20: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00255a30: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00255a40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -00257370: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -00257380: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +00255930: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00255960: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00255970: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002559b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002559c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -00257410: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00257420: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00257440: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00257460: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00257470: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002574b0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002574c0: 7564 6520 7265 6d6f 7665 5f68 7474 7064  ude remove_httpd
│ │ │ -002574d0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f68  ..class remove_h
│ │ │ -002574e0: 7474 7064 207b 0a20 2070 6163 6b61 6765  ttpd {.  package
│ │ │ -002574f0: 207b 2027 6874 7470 6427 3a0a 2020 2020   { 'httpd':.    
│ │ │ -00257500: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -00257510: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -00257530: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -002575d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002575e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002575f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00257690: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002576e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00257720: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -00257730: 6874 7470 6420 5061 636b 6167 653a 2045  httpd Package: E
│ │ │ -00257740: 6e73 7572 6520 6874 7470 6420 6973 2072  nsure httpd is r
│ │ │ -00257750: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00257760: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00257770: 653a 0a20 2020 206e 616d 653a 2068 7474  e:.    name: htt
│ │ │ -00257780: 7064 0a20 2020 2073 7461 7465 3a20 6162  pd.    state: ab
│ │ │ -00257790: 7365 6e74 0a20 2074 6167 733a 0a20 202d  sent.  tags:.  -
│ │ │ -002577a0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002577b0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -002577c0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -002577d0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -002577e0: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -002577f0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00257800: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00257810: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00257820: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00257830: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00257840: 5f68 7474 7064 5f72 656d 6f76 6564 0a20  _httpd_removed. 
│ │ │ -00257850: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -00257860: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
< │ │ │ +00257390: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ -00257670: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002576a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002576c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002576d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002576f0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00257700: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00257410: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00257440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00257460: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00257470: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00257490: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002574a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002574c0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2068  me: 'Uninstall h
│ │ │ +002574d0: 7474 7064 2050 6163 6b61 6765 3a20 456e  ttpd Package: En
│ │ │ +002574e0: 7375 7265 2068 7474 7064 2069 7320 7265  sure httpd is re
│ │ │ +002574f0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00257500: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00257510: 3a0a 2020 2020 6e61 6d65 3a20 6874 7470  :.    name: http
│ │ │ +00257520: 640a 2020 2020 7374 6174 653a 2061 6273  d.    state: abs
│ │ │ +00257530: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +00257540: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00257550: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00257560: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00257570: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00257580: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00257590: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002575a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002575b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002575c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002575d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002575e0: 6874 7470 645f 7265 6d6f 7665 640a 2020  httpd_removed.  
│ │ │ +002575f0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00257600: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00257610: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +002576c0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002576d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00257750: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00257770: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002577c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002577f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00257810: 655f 6874 7470 640a 0a63 6c61 7373 2072  e_httpd..class r
│ │ │ +00257820: 656d 6f76 655f 6874 7470 6420 7b0a 2020  emove_httpd {.  
│ │ │ +00257830: 7061 636b 6167 6520 7b20 2768 7474 7064  package { 'httpd
│ │ │ +00257840: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00257850: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00257860: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remed │ │ │ -002588d0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002588e0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002588f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -00258940: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00258950: 5d0a 6d61 736b 6564 203d 205b 2268 7474  ].masked = ["htt
│ │ │ -00258960: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remediation │ │ │ -00258a20: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00258a30: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -00258b00: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -00258b50: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
low
Disr │ │ │ +00257780: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00257790: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002577d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002577e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00258ac0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00258ae0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00258b30: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00258b40: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -00258b70: 6c65 5f68 7474 7064 0a0a 636c 6173 7320  le_httpd..class 
│ │ │ -00258b80: 6469 7361 626c 655f 6874 7470 6420 7b0a  disable_httpd {.
│ │ │ -00258b90: 2020 7365 7276 6963 6520 7b27 6874 7470    service {'http
│ │ │ -00258ba0: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -00258bb0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ -00258bc0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ -00258bd0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ -00258c90: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00258ca0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00258d40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00258d50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00258da0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -00258de0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00258df0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00258e00: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00258e10: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00258e20: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -00258e30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -00258e40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00258e50: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -00258e60: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -00258e70: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -00258e80: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00258e90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00258ea0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00258eb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00258ec0: 640a 2020 2d20 7365 7276 6963 655f 6874  d.  - service_ht
│ │ │ -00258ed0: 7470 645f 6469 7361 626c 6564 0a20 202d  tpd_disabled.  -
│ │ │ -00258ee0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -00258ef0: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ -00258f00: 6c65 2068 7474 7064 2053 6572 7669 6365  le httpd Service
│ │ │ -00258f10: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -00258f20: 6365 2068 7474 7064 0a20 2062 6c6f 636b  ce httpd.  block
│ │ │ -00258f30: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -00258f40: 6162 6c65 2068 7474 7064 2053 6572 7669  able httpd Servi
│ │ │ -00258f50: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -00258f60: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -00258f70: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -00258f80: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -00258f90: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00258fa0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00258fb0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -00258fc0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00258fd0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -00258fe0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -00258ff0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -00259000: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -00259010: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -00259020: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00259030: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00259040: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00259050: 6d65 3a20 4469 7361 626c 6520 6874 7470  me: Disable http
│ │ │ -00259060: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ -00259070: 7265 2068 7474 7064 2e73 6572 7669 6365  re httpd.service
│ │ │ -00259080: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00259090: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -002590a0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -002590b0: 6d65 3a20 6874 7470 642e 7365 7276 6963  me: httpd.servic
│ │ │ -002590c0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -002590d0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -002590e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -002590f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00259100: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00259110: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00259120: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00259130: 6874 7470 642e 7365 7276 6963 6522 2c20  httpd.service", 
│ │ │ -00259140: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00259150: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -00259160: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -00259170: 6874 7470 642e 736f 636b 6574 0a20 2020  httpd.socket.   
│ │ │ -00259180: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00259190: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002591a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002591b0: 2d66 696c 6573 2068 7474 7064 2e73 6f63  -files httpd.soc
│ │ │ -002591c0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -002591d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002591e0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -002591f0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00259200: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -00259210: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00259220: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00259230: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00259240: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00259250: 653a 2044 6973 6162 6c65 2068 7474 7064  e: Disable httpd
│ │ │ -00259260: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -00259270: 6c65 2053 6f63 6b65 7420 6874 7470 640a  le Socket httpd.
│ │ │ -00259280: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00259290: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002592a0: 2020 206e 616d 653a 2068 7474 7064 2e73     name: httpd.s
│ │ │ -002592b0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002592c0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002592d0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002592e0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002592f0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00259300: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00259310: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00259320: 7365 6172 6368 2822 6874 7470 642e 736f  search("httpd.so
│ │ │ -00259330: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -00259340: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -00259350: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00259360: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00259370: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00259380: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00259390: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -002593a0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002593b0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002593c0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002593d0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -002593e0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -002593f0: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ -00259400: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00259410: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -00259420: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -00259430: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00259440: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00259450: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00259460: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002588d0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +002588e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -00258d30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00258d60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00258d70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00258db0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00258dc0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +00258970: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00258980: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002589a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002589c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002589d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00258a10: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00258a20: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00258a30: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00258a40: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00258a50: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00258a60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00258a70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00258a80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00258a90: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00258aa0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00258ab0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00258ac0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00258ad0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00258ae0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00258af0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00258b00: 202d 2073 6572 7669 6365 5f68 7474 7064   - service_httpd
│ │ │ +00258b10: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +00258b20: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +00258b30: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00258b40: 6874 7470 6420 5365 7276 6963 6520 2d20  httpd Service - 
│ │ │ +00258b50: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +00258b60: 6874 7470 640a 2020 626c 6f63 6b3a 0a0a  httpd.  block:..
│ │ │ +00258b70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00258b80: 6520 6874 7470 6420 5365 7276 6963 6520  e httpd Service 
│ │ │ +00258b90: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +00258ba0: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +00258bb0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +00258bc0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00258bd0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00258be0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00258bf0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +00258c00: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +00258c10: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +00258c20: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00258c30: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00258c40: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00258c50: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +00258c60: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00258c70: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00258c80: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00258c90: 2044 6973 6162 6c65 2068 7474 7064 2053   Disable httpd S
│ │ │ +00258ca0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00258cb0: 6874 7470 642e 7365 7276 6963 6520 6973  httpd.service is
│ │ │ +00258cc0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00258cd0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00258ce0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00258cf0: 2068 7474 7064 2e73 6572 7669 6365 0a20   httpd.service. 
│ │ │ +00258d00: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00258d10: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00258d20: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00258d30: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00258d40: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00258d50: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00258d60: 7320 6973 2073 6561 7263 6828 2268 7474  s is search("htt
│ │ │ +00258d70: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ +00258d80: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +00258d90: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +00258da0: 6b65 7420 4578 6973 7473 202d 2068 7474  ket Exists - htt
│ │ │ +00258db0: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ +00258dc0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00258dd0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00258de0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00258df0: 6c65 7320 6874 7470 642e 736f 636b 6574  les httpd.socket
│ │ │ +00258e00: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00258e10: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00258e20: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00258e30: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00258e40: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +00258e50: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +00258e60: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00258e70: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00258e80: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00258e90: 4469 7361 626c 6520 6874 7470 6420 5365  Disable httpd Se
│ │ │ +00258ea0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00258eb0: 536f 636b 6574 2068 7474 7064 0a20 2020  Socket httpd.   
│ │ │ +00258ec0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00258ed0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00258ee0: 6e61 6d65 3a20 6874 7470 642e 736f 636b  name: httpd.sock
│ │ │ +00258ef0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +00258f00: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +00258f10: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +00258f20: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +00258f30: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +00258f40: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +00258f50: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00258f60: 7263 6828 2268 7474 7064 2e73 6f63 6b65  rch("httpd.socke
│ │ │ +00258f70: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +00258f80: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +00258f90: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +00258fa0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +00258fb0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +00258fc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +00258fd0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +00258fe0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00258ff0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00259000: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00259010: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00259020: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00259030: 6874 7470 645f 6469 7361 626c 6564 0a20  httpd_disabled. 
│ │ │ +00259040: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00259050: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ +00259060: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ +00259070: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +00259080: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +00259090: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002590a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +00259150: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00259160: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00259200: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00259210: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00259260: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +002592a0: 6c75 6465 2064 6973 6162 6c65 5f68 7474  lude disable_htt
│ │ │ +002592b0: 7064 0a0a 636c 6173 7320 6469 7361 626c  pd..class disabl
│ │ │ +002592c0: 655f 6874 7470 6420 7b0a 2020 7365 7276  e_httpd {.  serv
│ │ │ +002592d0: 6963 6520 7b27 6874 7470 6427 3a0a 2020  ice {'httpd':.  
│ │ │ +002592e0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +002592f0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +00259300: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +00259310: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +00259320: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +002593d0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +002593e0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +002593f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +00259440: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +00259450: 6173 6b65 6420 3d20 5b22 6874 7470 6422  asked = ["httpd"
│ │ │ +00259460: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00259470: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 00259480: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74
< │ │ │ 002594a0: 7472 2064 6174 612d 7474 2d69 643d 2263 tr data-tt-id="c │ │ │ 002594b0: 6869 6c64 7265 6e2d 7863 6364 665f 6f72 hildren-xccdf_or │ │ │ 002594c0: 672e 7373 6770 726f 6a65 6374 2e63 6f6e g.ssgproject.con │ │ │ 002594d0: 7465 6e74 5f67 726f 7570 5f64 6973 6162 tent_group_disab │ │ │ @@ -154186,93 +154186,93 @@ │ │ │ 0025a490: 6172 6765 743d 2223 6964 3935 3922 2074 arget="#id959" t │ │ │ 0025a4a0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 0025a4b0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 0025a4c0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 0025a4d0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 0025a4e0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 0025a4f0: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -0025a500: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0025a510: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0025a5e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +002591f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00259220: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00259230: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00259270: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00259280: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -0025a5a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0025a5c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0025a610: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0025a620: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -0025a650: 6f76 655f 6e67 696e 780a 0a63 6c61 7373  ove_nginx..class
│ │ │ -0025a660: 2072 656d 6f76 655f 6e67 696e 7820 7b0a   remove_nginx {.
│ │ │ -0025a670: 2020 7061 636b 6167 6520 7b20 276e 6769    package { 'ngi
│ │ │ -0025a680: 6e78 273a 0a20 2020 2065 6e73 7572 6520  nx':.    ensure 
│ │ │ -0025a690: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0025a6a0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0025a760: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0025a770: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025a7f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0025a800: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0025a820: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0025a830: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0025a850: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0025a870: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0025a8a0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0025a8b0: 6e69 6e73 7461 6c6c 206e 6769 6e78 2050  ninstall nginx P
│ │ │ -0025a8c0: 6163 6b61 6765 3a20 456e 7375 7265 206e  ackage: Ensure n
│ │ │ -0025a8d0: 6769 6e78 2069 7320 7265 6d6f 7665 6427  ginx is removed'
│ │ │ -0025a8e0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0025a8f0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0025a900: 6e61 6d65 3a20 6e67 696e 780a 2020 2020  name: nginx.    
│ │ │ -0025a910: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -0025a920: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0025a930: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0025a940: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0025a950: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -0025a960: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -0025a970: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0025a980: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0025a990: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0025a9a0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0025a9b0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0025a9c0: 2d20 7061 636b 6167 655f 6e67 696e 785f  - package_nginx_
│ │ │ -0025a9d0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ -0025a9e0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
Complexity │ │ │ +0025a5a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +0025a5c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +0025a5d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025a5e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +0025a5f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +0025a610: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0025a640: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +0025a650: 696e 7374 616c 6c20 6e67 696e 7820 5061  install nginx Pa
│ │ │ +0025a660: 636b 6167 653a 2045 6e73 7572 6520 6e67  ckage: Ensure ng
│ │ │ +0025a670: 696e 7820 6973 2072 656d 6f76 6564 270a  inx is removed'.
│ │ │ +0025a680: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0025a690: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +0025a6a0: 616d 653a 206e 6769 6e78 0a20 2020 2073  ame: nginx.    s
│ │ │ +0025a6b0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0025a6c0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +0025a6d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0025a6e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +0025a6f0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +0025a700: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +0025a710: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +0025a720: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0025a730: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0025a740: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0025a750: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0025a760: 2070 6163 6b61 6765 5f6e 6769 6e78 5f72   package_nginx_r
│ │ │ +0025a770: 656d 6f76 6564 0a20 202d 2075 6e6b 6e6f  emoved.  - unkno
│ │ │ +0025a780: 776e 5f73 6576 6572 6974 790a 3c2f 636f  wn_severity.
< │ │ │ +0025a7a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0025a7b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0025a7c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0025a7d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0025a7e0: 6439 3630 2220 7461 6269 6e64 6578 3d22 d960" tabindex=" │ │ │ +0025a7f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0025a800: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0025a810: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0025a820: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0025a830: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0025a840: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0025a850: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0025a8e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0025a8f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0025a910: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0025a930: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0025a940: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0025a980: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0025a990: 7564 6520 7265 6d6f 7665 5f6e 6769 6e78  ude remove_nginx
│ │ │ +0025a9a0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6e  ..class remove_n
│ │ │ +0025a9b0: 6769 6e78 207b 0a20 2070 6163 6b61 6765  ginx {.  package
│ │ │ +0025a9c0: 207b 2027 6e67 696e 7827 3a0a 2020 2020   { 'nginx':.    
│ │ │ +0025a9d0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0025a9e0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0025aa00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation O │ │ │ -0025b4f0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0025b500: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0025b510: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -0025b550: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -0025b560: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -0025b570: 203d 205b 226e 6769 6e78 225d 0a3c 2f63   = ["nginx"].
│ │ │ -0025b590: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0025b630: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0025b640: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0025b650: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0025b6d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0025b700: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0025b720: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0025b730: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0025b750: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0025b770: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0025b780: 6465 2064 6973 6162 6c65 5f6e 6769 6e78  de disable_nginx
│ │ │ -0025b790: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -0025b7a0: 6e67 696e 7820 7b0a 2020 7365 7276 6963  nginx {.  servic
│ │ │ -0025b7b0: 6520 7b27 6e67 696e 7827 3a0a 2020 2020  e {'nginx':.    
│ │ │ -0025b7c0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -0025b7d0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -0025b7e0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -0025b7f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0025b8b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0025b8c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025b940: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0025b950: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0025b970: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0025b980: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0025b9a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0025b9c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0025b9f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -0025ba00: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0025ba10: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -0025ba20: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -0025ba30: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -0025ba40: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0025ba50: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0025ba60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0025ba70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0025ba80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0025ba90: 640a 2020 2d20 7365 7276 6963 655f 6e67  d.  - service_ng
│ │ │ -0025baa0: 696e 785f 6469 7361 626c 6564 0a20 202d  inx_disabled.  -
│ │ │ -0025bab0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -0025bac0: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ -0025bad0: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ -0025bae0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0025baf0: 6365 206e 6769 6e78 0a20 2062 6c6f 636b  ce nginx.  block
│ │ │ -0025bb00: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -0025bb10: 6162 6c65 206e 6769 6e78 2053 6572 7669  able nginx Servi
│ │ │ -0025bb20: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -0025bb30: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0025bb40: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -0025bb50: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -0025bb60: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0025bb70: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0025bb80: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -0025bb90: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -0025bba0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -0025bbb0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -0025bbc0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0025bbd0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0025bbe0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0025bbf0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0025bc00: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0025bc10: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0025bc20: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ -0025bc30: 7820 5365 7276 6963 6520 2d20 456e 7375  x Service - Ensu
│ │ │ -0025bc40: 7265 206e 6769 6e78 2e73 6572 7669 6365  re nginx.service
│ │ │ -0025bc50: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -0025bc60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0025bc70: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0025bc80: 6d65 3a20 6e67 696e 782e 7365 7276 6963  me: nginx.servic
│ │ │ -0025bc90: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0025bca0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -0025bcb0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0025bcc0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0025bcd0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -0025bce0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0025bcf0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0025bd00: 6e67 696e 782e 7365 7276 6963 6522 2c20  nginx.service", 
│ │ │ -0025bd10: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -0025bd20: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -0025bd30: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -0025bd40: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ -0025bd50: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0025bd60: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0025bd70: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0025bd80: 2d66 696c 6573 206e 6769 6e78 2e73 6f63  -files nginx.soc
│ │ │ -0025bd90: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -0025bda0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0025bdb0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0025bdc0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0025bdd0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -0025bde0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0025bdf0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -0025be00: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -0025be10: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -0025be20: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ -0025be30: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -0025be40: 6c65 2053 6f63 6b65 7420 6e67 696e 780a  le Socket nginx.
│ │ │ -0025be50: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0025be60: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0025be70: 2020 206e 616d 653a 206e 6769 6e78 2e73     name: nginx.s
│ │ │ -0025be80: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -0025be90: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -0025bea0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0025beb0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -0025bec0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -0025bed0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0025bee0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0025bef0: 7365 6172 6368 2822 6e67 696e 782e 736f  search("nginx.so
│ │ │ -0025bf00: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -0025bf10: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -0025bf20: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0025bf30: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0025bf40: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0025bf50: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -0025bf60: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0025bf70: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ -0025bf80: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -0025bf90: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0025bfa0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ -0025bfb0: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ -0025bfc0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0025bfd0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0025bfe0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.Remediation A
│ │ │ +0025b4f0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0025b500: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0025b580: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0025b5a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0025b5f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0025b620: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0025b590: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0025b5b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0025b600: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0025b610: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +0025b640: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0025b650: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0025b660: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0025b670: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0025b680: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0025b690: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0025b6a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0025b6b0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0025b6c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0025b6d0: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ +0025b6e0: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +0025b6f0: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +0025b700: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0025b710: 6e67 696e 7820 5365 7276 6963 6520 2d20  nginx Service - 
│ │ │ +0025b720: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +0025b730: 6e67 696e 780a 2020 626c 6f63 6b3a 0a0a  nginx.  block:..
│ │ │ +0025b740: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0025b750: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ +0025b760: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0025b770: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0025b780: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0025b790: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0025b7a0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0025b7b0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0025b7c0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0025b7d0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0025b7e0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0025b7f0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0025b800: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0025b810: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0025b820: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0025b830: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0025b840: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0025b850: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0025b860: 2044 6973 6162 6c65 206e 6769 6e78 2053   Disable nginx S
│ │ │ +0025b870: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +0025b880: 6e67 696e 782e 7365 7276 6963 6520 6973  nginx.service is
│ │ │ +0025b890: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +0025b8a0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +0025b8b0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +0025b8c0: 206e 6769 6e78 2e73 6572 7669 6365 0a20   nginx.service. 
│ │ │ +0025b8d0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0025b8e0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0025b8f0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0025b900: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0025b910: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0025b920: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0025b930: 7320 6973 2073 6561 7263 6828 226e 6769  s is search("ngi
│ │ │ +0025b940: 6e78 2e73 6572 7669 6365 222c 206d 756c  nx.service", mul
│ │ │ +0025b950: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +0025b960: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +0025b970: 6b65 7420 4578 6973 7473 202d 206e 6769  ket Exists - ngi
│ │ │ +0025b980: 6e78 2e73 6f63 6b65 740a 2020 2020 616e  nx.socket.    an
│ │ │ +0025b990: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0025b9a0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0025b9b0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0025b9c0: 6c65 7320 6e67 696e 782e 736f 636b 6574  les nginx.socket
│ │ │ +0025b9d0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +0025b9e0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0025b9f0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0025ba00: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0025ba10: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +0025ba20: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +0025ba30: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +0025ba40: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +0025ba50: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +0025ba60: 4469 7361 626c 6520 6e67 696e 7820 5365  Disable nginx Se
│ │ │ +0025ba70: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0025ba80: 536f 636b 6574 206e 6769 6e78 0a20 2020  Socket nginx.   
│ │ │ +0025ba90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0025baa0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0025bab0: 6e61 6d65 3a20 6e67 696e 782e 736f 636b  name: nginx.sock
│ │ │ +0025bac0: 6574 0a20 2020 2020 2065 6e61 626c 6564  et.      enabled
│ │ │ +0025bad0: 3a20 6661 6c73 650a 2020 2020 2020 7374  : false.      st
│ │ │ +0025bae0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0025baf0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0025bb00: 2020 2020 7768 656e 3a20 736f 636b 6574      when: socket
│ │ │ +0025bb10: 5f66 696c 655f 6578 6973 7473 2e73 7464  _file_exists.std
│ │ │ +0025bb20: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0025bb30: 7263 6828 226e 6769 6e78 2e73 6f63 6b65  rch("nginx.socke
│ │ │ +0025bb40: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ +0025bb50: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ +0025bb60: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0025bb70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0025bb80: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0025bb90: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +0025bba0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0025bbb0: 7365 7276 6963 655f 6e67 696e 785f 6469  service_nginx_di
│ │ │ +0025bbc0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +0025bbd0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +0025bbe0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +0025bbf0: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ +0025bc00: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0025bc10: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0025bc20: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediati │ │ │ +0025bce0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0025bcf0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +0025bd70: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0025bd80: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0025bda0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0025bdb0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0025bdd0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0025bdf0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +0025be20: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +0025be30: 6162 6c65 5f6e 6769 6e78 0a0a 636c 6173  able_nginx..clas
│ │ │ +0025be40: 7320 6469 7361 626c 655f 6e67 696e 7820  s disable_nginx 
│ │ │ +0025be50: 7b0a 2020 7365 7276 6963 6520 7b27 6e67  {.  service {'ng
│ │ │ +0025be60: 696e 7827 3a0a 2020 2020 656e 6162 6c65  inx':.    enable
│ │ │ +0025be70: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +0025be80: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0025be90: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +0025bea0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0025bf50: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0025bf60: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0025bf70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +0025bfc0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +0025bfd0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +0025bfe0: 5b22 6e67 696e 7822 5d0a 3c2f 636f 6465  ["nginx"].
Reme │ │ │ -0025cf50: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0025cf60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0025cff0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0025d000: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0025d020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0025d040: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0025d050: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0025d090: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -0025d0a0: 7564 6520 7265 6d6f 7665 5f64 6f76 6563  ude remove_dovec
│ │ │ -0025d0b0: 6f74 0a0a 636c 6173 7320 7265 6d6f 7665  ot..class remove
│ │ │ -0025d0c0: 5f64 6f76 6563 6f74 207b 0a20 2070 6163  _dovecot {.  pac
│ │ │ -0025d0d0: 6b61 6765 207b 2027 646f 7665 636f 7427  kage { 'dovecot'
│ │ │ -0025d0e0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0025d0f0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -0025d100: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0025d110: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -0025d1c0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0025d1d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0025d250: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0025d270: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0025d2c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0025d2f0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0025d260: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0025d280: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0025d2d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0025d2e0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0025d310: 7374 616c 6c20 646f 7665 636f 7420 5061  stall dovecot Pa
│ │ │ -0025d320: 636b 6167 653a 2045 6e73 7572 6520 646f  ckage: Ensure do
│ │ │ -0025d330: 7665 636f 7420 6973 2072 656d 6f76 6564  vecot is removed
│ │ │ -0025d340: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0025d350: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0025d360: 206e 616d 653a 2064 6f76 6563 6f74 0a20   name: dovecot. 
│ │ │ -0025d370: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -0025d380: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -0025d390: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0025d3a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0025d3b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0025d3c0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0025d3d0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0025d3e0: 6b61 6765 5f64 6f76 6563 6f74 5f72 656d  kage_dovecot_rem
│ │ │ -0025d3f0: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -0025d400: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.<
│ │ │ +0025cf70: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
Com │ │ │ +0025cff0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0025d020: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0025d040: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0025d050: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0025d070: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0025d080: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0025d0a0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2064  me: 'Uninstall d
│ │ │ +0025d0b0: 6f76 6563 6f74 2050 6163 6b61 6765 3a20  ovecot Package: 
│ │ │ +0025d0c0: 456e 7375 7265 2064 6f76 6563 6f74 2069  Ensure dovecot i
│ │ │ +0025d0d0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0025d0e0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0025d0f0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0025d100: 646f 7665 636f 740a 2020 2020 7374 6174  dovecot.    stat
│ │ │ +0025d110: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0025d120: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0025d130: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0025d140: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0025d150: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0025d160: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0025d170: 640a 2020 2d20 7061 636b 6167 655f 646f  d.  - package_do
│ │ │ +0025d180: 7665 636f 745f 7265 6d6f 7665 640a 2020  vecot_removed.  
│ │ │ +0025d190: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +0025d1a0: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +0025d1b0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +0025d260: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0025d270: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +0025d2f0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0025d310: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0025d360: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +0025d390: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +0025d3b0: 655f 646f 7665 636f 740a 0a63 6c61 7373  e_dovecot..class
│ │ │ +0025d3c0: 2072 656d 6f76 655f 646f 7665 636f 7420   remove_dovecot 
│ │ │ +0025d3d0: 7b0a 2020 7061 636b 6167 6520 7b20 2764  {.  package { 'd
│ │ │ +0025d3e0: 6f76 6563 6f74 273a 0a20 2020 2065 6e73  ovecot':.    ens
│ │ │ +0025d3f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0025d400: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0025df20: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0025df30: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0025df40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0025df80: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0025df90: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0025dfa0: 0a6d 6173 6b65 6420 3d20 5b22 646f 7665  .masked = ["dove
│ │ │ -0025dfb0: 636f 7422 5d0a 3c2f 636f 6465 3e3c 2f70  cot"].

Remediatio │ │ │ -0025e070: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0025e080: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0025e140: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025e150: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ +0025d320: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0025d330: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0025d370: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +0025d380: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity │ │ │ -0025e110: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -0025e130: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -0025e160: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -0025e180: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -0025e1c0: 626c 655f 646f 7665 636f 740a 0a63 6c61  ble_dovecot..cla
│ │ │ -0025e1d0: 7373 2064 6973 6162 6c65 5f64 6f76 6563  ss disable_dovec
│ │ │ -0025e1e0: 6f74 207b 0a20 2073 6572 7669 6365 207b  ot {.  service {
│ │ │ -0025e1f0: 2764 6f76 6563 6f74 273a 0a20 2020 2065  'dovecot':.    e
│ │ │ -0025e200: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0025e210: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0025e220: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0025e230: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0025e2f0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0025e300: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0025e390: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0025e3b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0025e3c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025e3d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0025e3e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0025e400: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0025e430: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0025e440: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0025e450: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0025e460: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0025e470: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0025e480: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0025e490: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0025e4a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0025e4b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0025e4c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0025e4d0: 0a20 202d 2073 6572 7669 6365 5f64 6f76  .  - service_dov
│ │ │ -0025e4e0: 6563 6f74 5f64 6973 6162 6c65 640a 2020  ecot_disabled.  
│ │ │ -0025e4f0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -0025e500: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -0025e510: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ -0025e520: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -0025e530: 7276 6963 6520 646f 7665 636f 740a 2020  rvice dovecot.  
│ │ │ -0025e540: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -0025e550: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ -0025e560: 7420 5365 7276 6963 6520 2d20 436f 6c6c  t Service - Coll
│ │ │ -0025e570: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -0025e580: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -0025e590: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0025e5a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0025e5b0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0025e5c0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0025e5d0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0025e5e0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0025e5f0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0025e600: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0025e610: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0025e620: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0025e630: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0025e640: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0025e650: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0025e660: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0025e670: 6c65 2044 6f76 6563 6f74 2053 6572 7669  le Dovecot Servi
│ │ │ -0025e680: 6365 202d 2045 6e73 7572 6520 646f 7665  ce - Ensure dove
│ │ │ -0025e690: 636f 742e 7365 7276 6963 6520 6973 204d  cot.service is M
│ │ │ -0025e6a0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0025e6b0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0025e6c0: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ -0025e6d0: 6f76 6563 6f74 2e73 6572 7669 6365 0a20  ovecot.service. 
│ │ │ -0025e6e0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0025e6f0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -0025e700: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -0025e710: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0025e720: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0025e730: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0025e740: 7320 6973 2073 6561 7263 6828 2264 6f76  s is search("dov
│ │ │ -0025e750: 6563 6f74 2e73 6572 7669 6365 222c 206d  ecot.service", m
│ │ │ -0025e760: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -0025e770: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -0025e780: 6f63 6b65 7420 4578 6973 7473 202d 2064  ocket Exists - d
│ │ │ -0025e790: 6f76 6563 6f74 2e73 6f63 6b65 740a 2020  ovecot.socket.  
│ │ │ -0025e7a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0025e7b0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0025e7c0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0025e7d0: 742d 6669 6c65 7320 646f 7665 636f 742e  t-files dovecot.
│ │ │ -0025e7e0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -0025e7f0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -0025e800: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0025e810: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0025e820: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0025e830: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0025e840: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0025e850: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0025e860: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0025e870: 6e61 6d65 3a20 4469 7361 626c 6520 446f  name: Disable Do
│ │ │ -0025e880: 7665 636f 7420 5365 7276 6963 6520 2d20  vecot Service - 
│ │ │ -0025e890: 4469 7361 626c 6520 536f 636b 6574 2064  Disable Socket d
│ │ │ -0025e8a0: 6f76 6563 6f74 0a20 2020 2061 6e73 6962  ovecot.    ansib
│ │ │ -0025e8b0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0025e8c0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0025e8d0: 646f 7665 636f 742e 736f 636b 6574 0a20  dovecot.socket. 
│ │ │ -0025e8e0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0025e8f0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0025e900: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0025e910: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0025e920: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0025e930: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0025e940: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0025e950: 2264 6f76 6563 6f74 2e73 6f63 6b65 7422  "dovecot.socket"
│ │ │ -0025e960: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0025e970: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -0025e980: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0025e990: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0025e9a0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0025e9b0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -0025e9c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -0025e9d0: 7276 6963 655f 646f 7665 636f 745f 6469  rvice_dovecot_di
│ │ │ -0025e9e0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -0025e9f0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0025ea00: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -0025ea10: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ -0025ea20: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0025ea30: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0025ea40: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +0025dfe0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0025e000: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0025e030: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0025dfc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0025dfd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0025dff0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0025e010: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0025e020: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0025e060: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0025e070: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0025e080: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0025e090: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0025e0a0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0025e0b0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +0025e0c0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0025e0d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0025e0e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0025e0f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +0025e100: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +0025e110: 655f 646f 7665 636f 745f 6469 7361 626c e_dovecot_disabl │ │ │ +0025e120: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ +0025e130: 6576 6572 6974 790a 0a2d 206e 616d 653a everity..- name: │ │ │ +0025e140: 2044 6973 6162 6c65 2044 6f76 6563 6f74 Disable Dovecot │ │ │ +0025e150: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +0025e160: 6c65 2073 6572 7669 6365 2064 6f76 6563 le service dovec │ │ │ +0025e170: 6f74 0a20 2062 6c6f 636b 3a0a 0a20 202d ot. block:.. - │ │ │ +0025e180: 206e 616d 653a 2044 6973 6162 6c65 2044 name: Disable D │ │ │ +0025e190: 6f76 6563 6f74 2053 6572 7669 6365 202d ovecot Service - │ │ │ +0025e1a0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ +0025e1b0: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ +0025e1c0: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ +0025e1d0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +0025e1e0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +0025e1f0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +0025e200: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ +0025e210: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ +0025e220: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ +0025e230: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +0025e240: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +0025e250: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +0025e260: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ +0025e270: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +0025e280: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +0025e290: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +0025e2a0: 4469 7361 626c 6520 446f 7665 636f 7420 Disable Dovecot │ │ │ +0025e2b0: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ +0025e2c0: 2064 6f76 6563 6f74 2e73 6572 7669 6365 dovecot.service │ │ │ +0025e2d0: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ +0025e2e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +0025e2f0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +0025e300: 6d65 3a20 646f 7665 636f 742e 7365 7276 me: dovecot.serv │ │ │ +0025e310: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +0025e320: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +0025e330: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +0025e340: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0025e350: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +0025e360: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +0025e370: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +0025e380: 2822 646f 7665 636f 742e 7365 7276 6963 ("dovecot.servic │ │ │ +0025e390: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ +0025e3a0: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ +0025e3b0: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ +0025e3c0: 7320 2d20 646f 7665 636f 742e 736f 636b s - dovecot.sock │ │ │ +0025e3d0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ +0025e3e0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +0025e3f0: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +0025e400: 742d 756e 6974 2d66 696c 6573 2064 6f76 t-unit-files dov │ │ │ +0025e410: 6563 6f74 2e73 6f63 6b65 740a 2020 2020 ecot.socket. │ │ │ +0025e420: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ +0025e430: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ +0025e440: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ +0025e450: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ +0025e460: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ +0025e470: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +0025e480: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +0025e490: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +0025e4a0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +0025e4b0: 6c65 2044 6f76 6563 6f74 2053 6572 7669 le Dovecot Servi │ │ │ +0025e4c0: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ +0025e4d0: 6b65 7420 646f 7665 636f 740a 2020 2020 ket dovecot. │ │ │ +0025e4e0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0025e4f0: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +0025e500: 616d 653a 2064 6f76 6563 6f74 2e73 6f63 ame: dovecot.soc │ │ │ +0025e510: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +0025e520: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +0025e530: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +0025e540: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0025e550: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +0025e560: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +0025e570: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +0025e580: 6172 6368 2822 646f 7665 636f 742e 736f arch("dovecot.so │ │ │ +0025e590: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ +0025e5a0: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ +0025e5b0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ +0025e5c0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ +0025e5d0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ +0025e5e0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f isruption. - no │ │ │ +0025e5f0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0025e600: 202d 2073 6572 7669 6365 5f64 6f76 6563 - service_dovec │ │ │ +0025e610: 6f74 5f64 6973 6162 6c65 640a 2020 2d20 ot_disabled. - │ │ │ +0025e620: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +0025e630: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ +0025e640: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ +0025e650: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +0025e660: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +0025e670: 732e 7061 636b 6167 6573 270a 3c2f 636f s.packages'.
< │ │ │ +0025e690: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0025e6a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0025e6b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0025e6c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0025e6d0: 6439 3732 2220 7461 6269 6e64 6578 3d22 d972" tabindex=" │ │ │ +0025e6e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0025e6f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0025e700: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0025e710: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0025e720: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0025e730: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0025e740: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0025e7d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0025e7e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0025e800: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0025e820: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0025e830: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0025e870: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +0025e880: 6520 6469 7361 626c 655f 646f 7665 636f e disable_doveco │ │ │ +0025e890: 740a 0a63 6c61 7373 2064 6973 6162 6c65 t..class disable │ │ │ +0025e8a0: 5f64 6f76 6563 6f74 207b 0a20 2073 6572 _dovecot {. ser │ │ │ +0025e8b0: 7669 6365 207b 2764 6f76 6563 6f74 273a vice {'dovecot': │ │ │ +0025e8c0: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ +0025e8d0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ +0025e8e0: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ +0025e8f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +0025e9b0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0025e9c0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0025e9d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +0025ea20: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0025ea30: 5d0a 6d61 736b 6564 203d 205b 2264 6f76  ].masked = ["dov
│ │ │ +0025ea40: 6563 6f74 225d 0a3c 2f63 6f64 653e 3c2f  ecot"].
│ │ │ 0025ea60: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64 < │ │ │ 0025ea80: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr> │ │ │ -0025fda0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0025fdb0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0025fe50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0025fef0: 696e 636c 7564 6520 7265 6d6f 7665 5f6f  include remove_o
│ │ │ -0025ff00: 7065 6e6c 6461 702d 636c 6965 6e74 730a  penldap-clients.
│ │ │ -0025ff10: 0a63 6c61 7373 2072 656d 6f76 655f 6f70  .class remove_op
│ │ │ -0025ff20: 656e 6c64 6170 2d63 6c69 656e 7473 207b  enldap-clients {
│ │ │ -0025ff30: 0a20 2070 6163 6b61 6765 207b 2027 6f70  .  package { 'op
│ │ │ -0025ff40: 656e 6c64 6170 2d63 6c69 656e 7473 273a  enldap-clients':
│ │ │ -0025ff50: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0025ff60: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0025ff70: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0025ff80: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00260030: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00260040: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0025fe40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025fe70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025fe80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025fec0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0025fed0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -002600c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002600e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00260130: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00260160: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Ensur
│ │ │ -00260180: 6520 4c44 4150 2063 6c69 656e 7420 6973  e LDAP client is
│ │ │ -00260190: 206e 6f74 2069 6e73 7461 6c6c 6564 3a20   not installed: 
│ │ │ -002601a0: 456e 7375 7265 206f 7065 6e6c 6461 702d  Ensure openldap-
│ │ │ -002601b0: 636c 6965 6e74 7320 6973 2072 656d 6f76  clients is remov
│ │ │ -002601c0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002601d0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002601e0: 2020 206e 616d 653a 206f 7065 6e6c 6461     name: openlda
│ │ │ -002601f0: 702d 636c 6965 6e74 730a 2020 2020 7374  p-clients.    st
│ │ │ -00260200: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00260210: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00260220: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00260230: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00260240: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00260250: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -00260260: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00260270: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00260280: 5f6f 7065 6e6c 6461 702d 636c 6965 6e74  _openldap-client
│ │ │ -00260290: 735f 7265 6d6f 7665 640a 3c2f 636f 6465  s_removed.
low
Disr │ │ │ -002600f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00260100: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00260140: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00260150: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0025fe90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0025fea0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0025fef0: 2d20 6e61 6d65 3a20 2745 6e73 7572 6520  - name: 'Ensure 
│ │ │ +0025ff00: 4c44 4150 2063 6c69 656e 7420 6973 206e  LDAP client is n
│ │ │ +0025ff10: 6f74 2069 6e73 7461 6c6c 6564 3a20 456e  ot installed: En
│ │ │ +0025ff20: 7375 7265 206f 7065 6e6c 6461 702d 636c  sure openldap-cl
│ │ │ +0025ff30: 6965 6e74 7320 6973 2072 656d 6f76 6564  ients is removed
│ │ │ +0025ff40: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +0025ff50: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +0025ff60: 206e 616d 653a 206f 7065 6e6c 6461 702d   name: openldap-
│ │ │ +0025ff70: 636c 6965 6e74 730a 2020 2020 7374 6174  clients.    stat
│ │ │ +0025ff80: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +0025ff90: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0025ffa0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0025ffb0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0025ffc0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0025ffd0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +0025ffe0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0025fff0: 6564 0a20 202d 2070 6163 6b61 6765 5f6f  ed.  - package_o
│ │ │ +00260000: 7065 6e6c 6461 702d 636c 6965 6e74 735f  penldap-clients_
│ │ │ +00260010: 7265 6d6f 7665 640a 3c2f 636f 6465 3e3c  removed.<
│ │ │ +00260020: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +002600d0: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +002600e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +00260160: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002601f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00260200: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0025fe70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0025fe80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0025fec0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0025fed0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +00260170: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00260180: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +002601c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002601d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ +00260220: 7265 6d6f 7665 5f6f 7065 6e6c 6461 702d  remove_openldap-
│ │ │ +00260230: 636c 6965 6e74 730a 0a63 6c61 7373 2072  clients..class r
│ │ │ +00260240: 656d 6f76 655f 6f70 656e 6c64 6170 2d63  emove_openldap-c
│ │ │ +00260250: 6c69 656e 7473 207b 0a20 2070 6163 6b61  lients {.  packa
│ │ │ +00260260: 6765 207b 2027 6f70 656e 6c64 6170 2d63  ge { 'openldap-c
│ │ │ +00260270: 6c69 656e 7473 273a 0a20 2020 2065 6e73  lients':.    ens
│ │ │ +00260280: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00260290: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remediation Pup │ │ │ -002617c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002617d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -002618a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002618b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00261900: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00261910: 6f70 656e 6c64 6170 2d73 6572 7665 7273  openldap-servers
│ │ │ -00261920: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6f  ..class remove_o
│ │ │ -00261930: 7065 6e6c 6461 702d 7365 7276 6572 7320  penldap-servers 
│ │ │ -00261940: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ -00261950: 7065 6e6c 6461 702d 7365 7276 6572 7327  penldap-servers'
│ │ │ -00261960: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00261970: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00261980: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00261990: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -00261a40: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00261a50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ -00261880: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00261890: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002618d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002618e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00261ad0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00261af0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00261b40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00261b70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00261ae0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00261b00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00261b50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00261b60: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -00261b90: 7374 616c 6c20 6f70 656e 6c64 6170 2d73  stall openldap-s
│ │ │ -00261ba0: 6572 7665 7273 2050 6163 6b61 6765 3a20  ervers Package: 
│ │ │ -00261bb0: 456e 7375 7265 206f 7065 6e6c 6461 702d  Ensure openldap-
│ │ │ -00261bc0: 7365 7276 6572 7320 6973 2072 656d 6f76  servers is remov
│ │ │ -00261bd0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00261be0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00261bf0: 2020 206e 616d 653a 206f 7065 6e6c 6461     name: openlda
│ │ │ -00261c00: 702d 7365 7276 6572 730a 2020 2020 7374  p-servers.    st
│ │ │ -00261c10: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00261c20: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00261c30: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00261c40: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00261c50: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00261c60: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00261c70: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00261c80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00261c90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00261ca0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00261cb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00261cc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00261cd0: 2070 6163 6b61 6765 5f6f 7065 6e6c 6461   package_openlda
│ │ │ -00261ce0: 702d 7365 7276 6572 735f 7265 6d6f 7665  p-servers_remove
│ │ │ -00261cf0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002617b0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +002617c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +002617d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +002618a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002618b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00261910: 616c 6c20 6f70 656e 6c64 6170 2d73 6572  all openldap-ser
│ │ │ +00261920: 7665 7273 2050 6163 6b61 6765 3a20 456e  vers Package: En
│ │ │ +00261930: 7375 7265 206f 7065 6e6c 6461 702d 7365  sure openldap-se
│ │ │ +00261940: 7276 6572 7320 6973 2072 656d 6f76 6564  rvers is removed
│ │ │ +00261950: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00261960: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00261970: 206e 616d 653a 206f 7065 6e6c 6461 702d   name: openldap-
│ │ │ +00261980: 7365 7276 6572 730a 2020 2020 7374 6174  servers.    stat
│ │ │ +00261990: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +002619a0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +002619b0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +002619c0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +002619d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002619e0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +002619f0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00261a00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00261a10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00261a20: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00261a30: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00261a40: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00261a50: 6163 6b61 6765 5f6f 7065 6e6c 6461 702d  ackage_openldap-
│ │ │ +00261a60: 7365 7276 6572 735f 7265 6d6f 7665 640a  servers_removed.
│ │ │ +00261a70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00261b20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00261b30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
low
Disru │ │ │ +00261880: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00261890: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002618d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002618e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00261bd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00261c70: 696e 636c 7564 6520 7265 6d6f 7665 5f6f  include remove_o
│ │ │ +00261c80: 7065 6e6c 6461 702d 7365 7276 6572 730a  penldap-servers.
│ │ │ +00261c90: 0a63 6c61 7373 2072 656d 6f76 655f 6f70  .class remove_op
│ │ │ +00261ca0: 656e 6c64 6170 2d73 6572 7665 7273 207b  enldap-servers {
│ │ │ +00261cb0: 0a20 2070 6163 6b61 6765 207b 2027 6f70  .  package { 'op
│ │ │ +00261cc0: 656e 6c64 6170 2d73 6572 7665 7273 273a  enldap-servers':
│ │ │ +00261cd0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00261ce0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00261cf0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00261d00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Re │ │ │ -00262830: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00262840: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00262850: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00262860: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00262870: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00262880: 7365 2220 6964 3d22 6964 3938 3322 3e3c se" id="id983">< │ │ │ -00262890: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -002628a0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -002628b0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -002628c0: 736c 6170 6422 5d0a 3c2f 636f 6465 3e3c slapd"].< │ │ │ -002628d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remediat │ │ │ -00262980: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00262990: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00262a10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -00262aa0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00261bc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00261bf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00261c00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00261c40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00261c50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ -00262a20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00262a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -00262a70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00262a80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -00262ac0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00262ad0: 7361 626c 655f 736c 6170 640a 0a63 6c61  sable_slapd..cla
│ │ │ -00262ae0: 7373 2064 6973 6162 6c65 5f73 6c61 7064  ss disable_slapd
│ │ │ -00262af0: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ -00262b00: 6c61 7064 273a 0a20 2020 2065 6e61 626c  lapd':.    enabl
│ │ │ -00262b10: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00262b20: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00262b30: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00262b40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00262c00: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00262c10: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00262ce0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00262cf0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00262d50: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00262d60: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00262d70: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00262d80: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00262d90: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -00262da0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00262db0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00262dc0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00262dd0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00262de0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00262df0: 0a20 202d 2073 6572 7669 6365 5f73 6c61  .  - service_sla
│ │ │ -00262e00: 7064 5f64 6973 6162 6c65 640a 0a2d 206e  pd_disabled..- n
│ │ │ -00262e10: 616d 653a 2044 6973 6162 6c65 204c 4441  ame: Disable LDA
│ │ │ -00262e20: 5020 5365 7276 6572 2028 736c 6170 6429  P Server (slapd)
│ │ │ -00262e30: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -00262e40: 6365 2073 6c61 7064 0a20 2062 6c6f 636b  ce slapd.  block
│ │ │ -00262e50: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -00262e60: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ -00262e70: 2028 736c 6170 6429 202d 2043 6f6c 6c65   (slapd) - Colle
│ │ │ -00262e80: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -00262e90: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -00262ea0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -00262eb0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -00262ec0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -00262ed0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -00262ee0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -00262ef0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -00262f00: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -00262f10: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00262f20: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00262f30: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -00262f40: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -00262f50: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -00262f60: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -00262f70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00262f80: 6520 4c44 4150 2053 6572 7665 7220 2873  e LDAP Server (s
│ │ │ -00262f90: 6c61 7064 2920 2d20 456e 7375 7265 2073  lapd) - Ensure s
│ │ │ -00262fa0: 6c61 7064 2e73 6572 7669 6365 2069 7320  lapd.service is 
│ │ │ -00262fb0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -00262fc0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00262fd0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00262fe0: 736c 6170 642e 7365 7276 6963 650a 2020  slapd.service.  
│ │ │ -00262ff0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00263000: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -00263010: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -00263020: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -00263030: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -00263040: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00263050: 2069 7320 7365 6172 6368 2822 736c 6170   is search("slap
│ │ │ -00263060: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ -00263070: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -00263080: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -00263090: 6574 2045 7869 7374 7320 2d20 736c 6170  et Exists - slap
│ │ │ -002630a0: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -002630b0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002630c0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002630d0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002630e0: 6573 2073 6c61 7064 2e73 6f63 6b65 740a  es slapd.socket.
│ │ │ -002630f0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -00263100: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00263110: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00263120: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00263130: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -00263140: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -00263150: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00263160: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00263170: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -00263180: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ -00263190: 6572 2028 736c 6170 6429 202d 2044 6973  er (slapd) - Dis
│ │ │ -002631a0: 6162 6c65 2053 6f63 6b65 7420 736c 6170  able Socket slap
│ │ │ -002631b0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -002631c0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002631d0: 2020 2020 206e 616d 653a 2073 6c61 7064       name: slapd
│ │ │ -002631e0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -002631f0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00263200: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00263210: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00263220: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00263230: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00263240: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -00263250: 7320 7365 6172 6368 2822 736c 6170 642e  s search("slapd.
│ │ │ -00263260: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -00263270: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -00263280: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00263290: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002632a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002632b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002632c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -002632d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002632e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -002632f0: 5f73 6c61 7064 5f64 6973 6162 6c65 640a  _slapd_disabled.
│ │ │ -00263300: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -00263310: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -00263320: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -00263330: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00263340: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
low
Disru │ │ │ -00262cc0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00262cd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00262d10: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00262d20: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002628e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002628f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00262940: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00262980: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00262990: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002629a0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002629b0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002629c0: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +002629d0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002629e0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002629f0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00262a00: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00262a10: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00262a20: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00262a30: 2d20 7365 7276 6963 655f 736c 6170 645f  - service_slapd_
│ │ │ +00262a40: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +00262a50: 3a20 4469 7361 626c 6520 4c44 4150 2053  : Disable LDAP S
│ │ │ +00262a60: 6572 7665 7220 2873 6c61 7064 2920 2d20  erver (slapd) - 
│ │ │ +00262a70: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +00262a80: 736c 6170 640a 2020 626c 6f63 6b3a 0a0a  slapd.  block:..
│ │ │ +00262a90: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00262aa0: 6520 4c44 4150 2053 6572 7665 7220 2873  e LDAP Server (s
│ │ │ +00262ab0: 6c61 7064 2920 2d20 436f 6c6c 6563 7420  lapd) - Collect 
│ │ │ +00262ac0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ +00262ad0: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ +00262ae0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00262af0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00262b00: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00262b10: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00262b20: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00262b30: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00262b40: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00262b50: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00262b60: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00262b70: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00262b80: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00262b90: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00262ba0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00262bb0: 206e 616d 653a 2044 6973 6162 6c65 204c   name: Disable L
│ │ │ +00262bc0: 4441 5020 5365 7276 6572 2028 736c 6170  DAP Server (slap
│ │ │ +00262bd0: 6429 202d 2045 6e73 7572 6520 736c 6170  d) - Ensure slap
│ │ │ +00262be0: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ +00262bf0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +00262c00: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00262c10: 0a20 2020 2020 206e 616d 653a 2073 6c61  .      name: sla
│ │ │ +00262c20: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +00262c30: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00262c40: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00262c50: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00262c60: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00262c70: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00262c80: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00262c90: 2073 6561 7263 6828 2273 6c61 7064 2e73   search("slapd.s
│ │ │ +00262ca0: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +00262cb0: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +00262cc0: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +00262cd0: 4578 6973 7473 202d 2073 6c61 7064 2e73  Exists - slapd.s
│ │ │ +00262ce0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00262cf0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00262d00: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00262d10: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00262d20: 736c 6170 642e 736f 636b 6574 0a20 2020  slapd.socket.   
│ │ │ +00262d30: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00262d40: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00262d50: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00262d60: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00262d70: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00262d80: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00262d90: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00262da0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00262db0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00262dc0: 626c 6520 4c44 4150 2053 6572 7665 7220  ble LDAP Server 
│ │ │ +00262dd0: 2873 6c61 7064 2920 2d20 4469 7361 626c  (slapd) - Disabl
│ │ │ +00262de0: 6520 536f 636b 6574 2073 6c61 7064 0a20  e Socket slapd. 
│ │ │ +00262df0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00262e00: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00262e10: 2020 6e61 6d65 3a20 736c 6170 642e 736f    name: slapd.so
│ │ │ +00262e20: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00262e30: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00262e40: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00262e50: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00262e60: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +00262e70: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +00262e80: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00262e90: 6561 7263 6828 2273 6c61 7064 2e73 6f63  earch("slapd.soc
│ │ │ +00262ea0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00262eb0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00262ec0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00262ed0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00262ee0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00262ef0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00262f00: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00262f10: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00262f20: 640a 2020 2d20 7365 7276 6963 655f 736c  d.  - service_sl
│ │ │ +00262f30: 6170 645f 6469 7361 626c 6564 0a20 202d  apd_disabled.  -
│ │ │ +00262f40: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00262f50: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +00262f60: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00262f70: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00262f80: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00262f90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00263040: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +00263050: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +002630d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00263160: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +002628d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00262900: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00262910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00262950: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00262960: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +002630e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002630f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00263130: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00263140: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00263180: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +00263190: 7361 626c 655f 736c 6170 640a 0a63 6c61  sable_slapd..cla
│ │ │ +002631a0: 7373 2064 6973 6162 6c65 5f73 6c61 7064  ss disable_slapd
│ │ │ +002631b0: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ +002631c0: 6c61 7064 273a 0a20 2020 2065 6e61 626c  lapd':.    enabl
│ │ │ +002631d0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +002631e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002631f0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +00263200: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +002632c0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +002632d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +00263320: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00263330: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00263340: 205b 2273 6c61 7064 225d 0a3c 2f63 6f64   ["slapd"].
Remediat │ │ │ -00266ed0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00266ee0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00266f60: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00266f70: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00266f80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00266fc0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00266fd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00266ff0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00267000: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00267020: 7265 6d6f 7665 5f72 7063 6269 6e64 0a0a  remove_rpcbind..
│ │ │ -00267030: 636c 6173 7320 7265 6d6f 7665 5f72 7063  class remove_rpc
│ │ │ -00267040: 6269 6e64 207b 0a20 2070 6163 6b61 6765  bind {.  package
│ │ │ -00267050: 207b 2027 7270 6362 696e 6427 3a0a 2020   { 'rpcbind':.  
│ │ │ -00267060: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00267070: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00267080: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00267130: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00267140: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -002671e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00267280: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00267290: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -002672a0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -002672b0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -002672c0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -002672d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002672e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002672f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00267300: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00267310: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00267320: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00267330: 7061 636b 6167 655f 7270 6362 696e 645f  package_rpcbind_
│ │ │ -00267340: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -00267350: 2027 556e 696e 7374 616c 6c20 7270 6362   'Uninstall rpcb
│ │ │ -00267360: 696e 6420 5061 636b 6167 653a 2045 6e73  ind Package: Ens
│ │ │ -00267370: 7572 6520 7270 6362 696e 6420 6973 2072  ure rpcbind is r
│ │ │ -00267380: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -00267390: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -002673a0: 653a 0a20 2020 206e 616d 653a 2072 7063  e:.    name: rpc
│ │ │ -002673b0: 6269 6e64 0a20 2020 2073 7461 7465 3a20  bind.    state: 
│ │ │ -002673c0: 6162 7365 6e74 0a20 2077 6865 6e3a 2027  absent.  when: '
│ │ │ -002673d0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -002673e0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -002673f0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00267400: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00267410: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00267420: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00267430: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00267440: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00267450: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00267460: 0a20 202d 2070 6163 6b61 6765 5f72 7063  .  - package_rpc
│ │ │ -00267470: 6269 6e64 5f72 656d 6f76 6564 0a3c 2f63  bind_removed.
< │ │ │ +00266ef0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00266f00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00266f10: 7365 2220 6964 3d22 6964 3938 3922 3e3c se" id="id989">< │ │ │ +00266f20: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00266f30: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00266f40: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00266f50: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00266f60: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00266ff0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00267000: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -002671d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00267200: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00267210: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00267250: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00267260: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +00266f70: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00266f80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00266fc0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00266fd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +00267020: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00267030: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00267040: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00267050: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00267060: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00267070: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00267080: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00267090: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002670a0: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +002670b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002670c0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +002670d0: 5f72 7063 6269 6e64 5f72 656d 6f76 6564 _rpcbind_removed │ │ │ +002670e0: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73 ..- name: 'Unins │ │ │ +002670f0: 7461 6c6c 2072 7063 6269 6e64 2050 6163 tall rpcbind Pac │ │ │ +00267100: 6b61 6765 3a20 456e 7375 7265 2072 7063 kage: Ensure rpc │ │ │ +00267110: 6269 6e64 2069 7320 7265 6d6f 7665 6427 bind is removed' │ │ │ +00267120: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ +00267130: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ +00267140: 6e61 6d65 3a20 7270 6362 696e 640a 2020 name: rpcbind. │ │ │ +00267150: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +00267160: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ +00267170: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +00267180: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +00267190: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +002671a0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +002671b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +002671c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +002671d0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665 ion. - low_seve │ │ │ +002671e0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +002671f0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +00267200: 636b 6167 655f 7270 6362 696e 645f 7265 ckage_rpcbind_re │ │ │ +00267210: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70 moved.

Remediatio │ │ │ +002672d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002672e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00267370: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00267390: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002673a0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002673b0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002673c0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002673e0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00267410: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00267420: 6d6f 7665 5f72 7063 6269 6e64 0a0a 636c  move_rpcbind..cl
│ │ │ +00267430: 6173 7320 7265 6d6f 7665 5f72 7063 6269  ass remove_rpcbi
│ │ │ +00267440: 6e64 207b 0a20 2070 6163 6b61 6765 207b  nd {.  package {
│ │ │ +00267450: 2027 7270 6362 696e 6427 3a0a 2020 2020   'rpcbind':.    
│ │ │ +00267460: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00267470: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00267490: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -002682d0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -002682e0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -002682f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -00268340: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00268350: 6173 6b65 6420 3d20 5b22 7270 6362 696e  asked = ["rpcbin
│ │ │ -00268360: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -00268420: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00268430: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002684b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002684d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00268520: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00268550: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -00268570: 655f 7270 6362 696e 640a 0a63 6c61 7373  e_rpcbind..class
│ │ │ -00268580: 2064 6973 6162 6c65 5f72 7063 6269 6e64   disable_rpcbind
│ │ │ -00268590: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ -002685a0: 7063 6269 6e64 273a 0a20 2020 2065 6e61  pcbind':.    ena
│ │ │ -002685b0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -002685c0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002685d0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -002685e0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002685f0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -002686a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002686b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -002684c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002684e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00268530: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00268540: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00268730: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00268750: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002687a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002687d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00268740: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00268760: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002687b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002687c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -002687f0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00268800: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00268810: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00268820: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00268830: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00268840: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00268850: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ -00268860: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00268870: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00268880: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00268890: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -002688a0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002688b0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -002688c0: 655f 7270 6362 696e 645f 6469 7361 626c  e_rpcbind_disabl
│ │ │ -002688d0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -002688e0: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ -002688f0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00268900: 7276 6963 6520 7270 6362 696e 640a 2020  rvice rpcbind.  
│ │ │ -00268910: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00268920: 3a20 4469 7361 626c 6520 7270 6362 696e  : Disable rpcbin
│ │ │ -00268930: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -00268940: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00268950: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -00268960: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -00268970: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00268980: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00268990: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -002689a0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -002689b0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -002689c0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002689d0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002689e0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002689f0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00268a00: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00268a10: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00268a20: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00268a30: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00268a40: 6c65 2072 7063 6269 6e64 2053 6572 7669  le rpcbind Servi
│ │ │ -00268a50: 6365 202d 2045 6e73 7572 6520 7270 6362  ce - Ensure rpcb
│ │ │ -00268a60: 696e 642e 7365 7276 6963 6520 6973 204d  ind.service is M
│ │ │ -00268a70: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00268a80: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00268a90: 643a 0a20 2020 2020 206e 616d 653a 2072  d:.      name: r
│ │ │ -00268aa0: 7063 6269 6e64 2e73 6572 7669 6365 0a20  pcbind.service. 
│ │ │ -00268ab0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00268ac0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -00268ad0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -00268ae0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00268af0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00268b00: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00268b10: 7320 6973 2073 6561 7263 6828 2272 7063  s is search("rpc
│ │ │ -00268b20: 6269 6e64 2e73 6572 7669 6365 222c 206d  bind.service", m
│ │ │ -00268b30: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00268b40: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00268b50: 6f63 6b65 7420 4578 6973 7473 202d 2072  ocket Exists - r
│ │ │ -00268b60: 7063 6269 6e64 2e73 6f63 6b65 740a 2020  pcbind.socket.  
│ │ │ -00268b70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00268b80: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00268b90: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00268ba0: 742d 6669 6c65 7320 7270 6362 696e 642e  t-files rpcbind.
│ │ │ -00268bb0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -00268bc0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00268bd0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00268be0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00268bf0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00268c00: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00268c10: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00268c20: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00268c30: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00268c40: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ -00268c50: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ -00268c60: 4469 7361 626c 6520 536f 636b 6574 2072  Disable Socket r
│ │ │ -00268c70: 7063 6269 6e64 0a20 2020 2061 6e73 6962  pcbind.    ansib
│ │ │ -00268c80: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00268c90: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00268ca0: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ -00268cb0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00268cc0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00268cd0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00268ce0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00268cf0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00268d00: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00268d10: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00268d20: 2272 7063 6269 6e64 2e73 6f63 6b65 7422  "rpcbind.socket"
│ │ │ -00268d30: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00268d40: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ -00268d50: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00268d60: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -00268d70: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00268d80: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00268d90: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00268da0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00268db0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00268dc0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00268dd0: 0a20 202d 2073 6572 7669 6365 5f72 7063  .  - service_rpc
│ │ │ -00268de0: 6269 6e64 5f64 6973 6162 6c65 640a 2020  bind_disabled.  
│ │ │ -00268df0: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00268e00: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00268e10: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00268e20: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00268e30: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +002682d0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +002682e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +002682f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00268300: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00268310: 7365 2220 6964 3d22 6964 3939 3322 3e3c se" id="id993">< │ │ │ +00268320: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00268330: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00268340: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00268350: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00268360: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00268370: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00268380: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002683c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002683d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002683f0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00268400: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00268420: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00268430: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00268440: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00268450: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00268460: 6773 3a0a 2020 2d20 5043 492d 4453 5376 gs:. - PCI-DSSv │ │ │ +00268470: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +00268480: 5376 342d 322e 322e 340a 2020 2d20 6469 Sv4-2.2.4. - di │ │ │ +00268490: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +002684a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +002684b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +002684c0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ +002684d0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +002684e0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073 oot_needed. - s │ │ │ +002684f0: 6572 7669 6365 5f72 7063 6269 6e64 5f64 ervice_rpcbind_d │ │ │ +00268500: 6973 6162 6c65 640a 0a2d 206e 616d 653a isabled..- name: │ │ │ +00268510: 2044 6973 6162 6c65 2072 7063 6269 6e64 Disable rpcbind │ │ │ +00268520: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ +00268530: 6c65 2073 6572 7669 6365 2072 7063 6269 le service rpcbi │ │ │ +00268540: 6e64 0a20 2062 6c6f 636b 3a0a 0a20 202d nd. block:.. - │ │ │ +00268550: 206e 616d 653a 2044 6973 6162 6c65 2072 name: Disable r │ │ │ +00268560: 7063 6269 6e64 2053 6572 7669 6365 202d pcbind Service - │ │ │ +00268570: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ +00268580: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ +00268590: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ +002685a0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +002685b0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +002685c0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +002685d0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ +002685e0: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ +002685f0: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ +00268600: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ +00268610: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ +00268620: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ +00268630: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ +00268640: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +00268650: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +00268660: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +00268670: 4469 7361 626c 6520 7270 6362 696e 6420 Disable rpcbind │ │ │ +00268680: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ +00268690: 2072 7063 6269 6e64 2e73 6572 7669 6365 rpcbind.service │ │ │ +002686a0: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ +002686b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ +002686c0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ +002686d0: 6d65 3a20 7270 6362 696e 642e 7365 7276 me: rpcbind.serv │ │ │ +002686e0: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +002686f0: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +00268700: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +00268710: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +00268720: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +00268730: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +00268740: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +00268750: 2822 7270 6362 696e 642e 7365 7276 6963 ("rpcbind.servic │ │ │ +00268760: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ +00268770: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ +00268780: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ +00268790: 7320 2d20 7270 6362 696e 642e 736f 636b s - rpcbind.sock │ │ │ +002687a0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ +002687b0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +002687c0: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +002687d0: 742d 756e 6974 2d66 696c 6573 2072 7063 t-unit-files rpc │ │ │ +002687e0: 6269 6e64 2e73 6f63 6b65 740a 2020 2020 bind.socket. │ │ │ +002687f0: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ +00268800: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ +00268810: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ +00268820: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ +00268830: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ +00268840: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +00268850: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +00268860: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +00268870: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +00268880: 6c65 2072 7063 6269 6e64 2053 6572 7669 le rpcbind Servi │ │ │ +00268890: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ +002688a0: 6b65 7420 7270 6362 696e 640a 2020 2020 ket rpcbind. │ │ │ +002688b0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +002688c0: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +002688d0: 616d 653a 2072 7063 6269 6e64 2e73 6f63 ame: rpcbind.soc │ │ │ +002688e0: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ +002688f0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ +00268900: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ +00268910: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +00268920: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ +00268930: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ +00268940: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ +00268950: 6172 6368 2822 7270 6362 696e 642e 736f arch("rpcbind.so │ │ │ +00268960: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ +00268970: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ +00268980: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +00268990: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +002689a0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65 .2.4. - disable │ │ │ +002689b0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +002689c0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +002689d0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +002689e0: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ +002689f0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00268a00: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ +00268a10: 655f 7270 6362 696e 645f 6469 7361 626c e_rpcbind_disabl │ │ │ +00268a20: 6564 0a20 202d 2073 7065 6369 616c 5f73 ed. - special_s │ │ │ +00268a30: 6572 7669 6365 5f62 6c6f 636b 0a20 2077 ervice_block. w │ │ │ +00268a40: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ +00268a50: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +00268a60: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.
Re │ │ │ +00268b20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00268b30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00268b40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00268be0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00268c30: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00268bc0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00268bf0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00268c10: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00268c20: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00268c40: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00268c50: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00268c70: 7564 6520 6469 7361 626c 655f 7270 6362  ude disable_rpcb
│ │ │ +00268c80: 696e 640a 0a63 6c61 7373 2064 6973 6162  ind..class disab
│ │ │ +00268c90: 6c65 5f72 7063 6269 6e64 207b 0a20 2073  le_rpcbind {.  s
│ │ │ +00268ca0: 6572 7669 6365 207b 2772 7063 6269 6e64  ervice {'rpcbind
│ │ │ +00268cb0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +00268cc0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +00268cd0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +00268ce0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +00268d00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00268da0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +00268db0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +00268dc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +00268e10: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00268e20: 6573 5d0a 6d61 736b 6564 203d 205b 2272 es].masked = ["r │ │ │ +00268e30: 7063 6269 6e64 225d 0a3c 2f63 6f64 653e pcbind"]. │ │ │ 00268e40: 3c2f 7072 653e 3c2f 6469 763e 3c2f 6469

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

.[custo │ │ │ -0026a4b0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -0026a4c0: 6573 5d0a 6d61 736b 6564 203d 205b 226e es].masked = ["n │ │ │ -0026a4d0: 6673 2d73 6572 7665 7222 5d0a 3c2f 636f fs-server"].

< │ │ │ -0026a4f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0026a500: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0026a510: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0026a520: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0026a530: 6439 3938 2220 7461 6269 6e64 6578 3d22 d998" tabindex=" │ │ │ -0026a540: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0026a550: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0026a560: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0026a570: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0026a580: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0026a590: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0026a5a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -0026a630: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0026a640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0026a660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0026a680: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0026a690: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -0026a6d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -0026a6e0: 6520 6469 7361 626c 655f 6e66 732d 7365 e disable_nfs-se │ │ │ -0026a6f0: 7276 6572 0a0a 636c 6173 7320 6469 7361 rver..class disa │ │ │ -0026a700: 626c 655f 6e66 732d 7365 7276 6572 207b ble_nfs-server { │ │ │ -0026a710: 0a20 2073 6572 7669 6365 207b 276e 6673 . service {'nfs │ │ │ -0026a720: 2d73 6572 7665 7227 3a0a 2020 2020 656e -server':. en │ │ │ -0026a730: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ -0026a740: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -0026a750: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ -0026a760: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -0026a820: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0026a830: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0026a8c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0026a8e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0026a900: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0026a930: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0026a940: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -0026a970: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0026a980: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0026a990: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0026a9a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0026a9b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0026a9c0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -0026a9d0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -0026a9e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0026a9f0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -0026aa00: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0026aa10: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0026aa20: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0026aa30: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0026aa40: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0026aa50: 6963 655f 6e66 735f 6469 7361 626c 6564  ice_nfs_disabled
│ │ │ -0026aa60: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -0026aa70: 6572 6974 790a 0a2d 206e 616d 653a 2044  erity..- name: D
│ │ │ -0026aa80: 6973 6162 6c65 204e 6574 776f 726b 2046  isable Network F
│ │ │ -0026aa90: 696c 6520 5379 7374 656d 2028 6e66 7329  ile System (nfs)
│ │ │ -0026aaa0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0026aab0: 6365 206e 6673 2d73 6572 7665 720a 2020  ce nfs-server.  
│ │ │ -0026aac0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -0026aad0: 3a20 4469 7361 626c 6520 4e65 7477 6f72  : Disable Networ
│ │ │ -0026aae0: 6b20 4669 6c65 2053 7973 7465 6d20 286e  k File System (n
│ │ │ -0026aaf0: 6673 2920 2d20 436f 6c6c 6563 7420 7379  fs) - Collect sy
│ │ │ -0026ab00: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -0026ab10: 7265 7365 6e74 2069 6e0a 2020 2020 2020  resent in.      
│ │ │ -0026ab20: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -0026ab30: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0026ab40: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0026ab50: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0026ab60: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -0026ab70: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -0026ab80: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0026ab90: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0026aba0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0026abb0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -0026abc0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -0026abd0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -0026abe0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -0026abf0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0026ac00: 6c65 204e 6574 776f 726b 2046 696c 6520  le Network File 
│ │ │ -0026ac10: 5379 7374 656d 2028 6e66 7329 202d 2045  System (nfs) - E
│ │ │ -0026ac20: 6e73 7572 6520 6e66 732d 7365 7276 6572  nsure nfs-server
│ │ │ -0026ac30: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -0026ac40: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0026ac50: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026ac60: 2020 2020 2020 6e61 6d65 3a20 6e66 732d        name: nfs-
│ │ │ -0026ac70: 7365 7276 6572 2e73 6572 7669 6365 0a20  server.service. 
│ │ │ -0026ac80: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0026ac90: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ -0026aca0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ -0026acb0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0026acc0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0026acd0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0026ace0: 7320 6973 2073 6561 7263 6828 226e 6673  s is search("nfs
│ │ │ -0026acf0: 2d73 6572 7665 722e 7365 7276 6963 6522  -server.service"
│ │ │ -0026ad00: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0026ad10: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -0026ad20: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -0026ad30: 2d20 6e66 732d 7365 7276 6572 2e73 6f63  - nfs-server.soc
│ │ │ -0026ad40: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -0026ad50: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0026ad60: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0026ad70: 7374 2d75 6e69 742d 6669 6c65 7320 6e66  st-unit-files nf
│ │ │ -0026ad80: 732d 7365 7276 6572 2e73 6f63 6b65 740a  s-server.socket.
│ │ │ -0026ad90: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -0026ada0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0026adb0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0026adc0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0026add0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -0026ade0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -0026adf0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0026ae00: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0026ae10: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0026ae20: 6973 6162 6c65 204e 6574 776f 726b 2046  isable Network F
│ │ │ -0026ae30: 696c 6520 5379 7374 656d 2028 6e66 7329  ile System (nfs)
│ │ │ -0026ae40: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -0026ae50: 7420 6e66 732d 7365 7276 6572 0a20 2020  t nfs-server.   
│ │ │ -0026ae60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0026ae70: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ -0026ae80: 6e61 6d65 3a20 6e66 732d 7365 7276 6572  name: nfs-server
│ │ │ -0026ae90: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -0026aea0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -0026aeb0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0026aec0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -0026aed0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0026aee0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -0026aef0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0026af00: 7320 7365 6172 6368 2822 6e66 732d 7365  s search("nfs-se
│ │ │ -0026af10: 7276 6572 2e73 6f63 6b65 7422 2c20 6d75  rver.socket", mu
│ │ │ -0026af20: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -0026af30: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0026af40: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -0026af50: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026af60: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -0026af70: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -0026af80: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0026af90: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0026afa0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0026afb0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0026afc0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0026afd0: 2d20 7365 7276 6963 655f 6e66 735f 6469  - service_nfs_di
│ │ │ -0026afe0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -0026aff0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0026b000: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -0026b010: 6572 6974 790a 2020 7768 656e 3a20 2722  erity.  when: '"
│ │ │ -0026b020: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0026b030: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0026b040: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
│ │ │ +0026a460: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +0026a500: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0026a550: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0026a590: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0026a5a0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0026a5b0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0026a5c0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0026a5d0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0026a5e0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +0026a5f0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0026a600: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +0026a610: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +0026a620: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0026a630: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0026a640: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0026a650: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0026a660: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0026a670: 0a20 202d 2073 6572 7669 6365 5f6e 6673  .  - service_nfs
│ │ │ +0026a680: 5f64 6973 6162 6c65 640a 2020 2d20 756e  _disabled.  - un
│ │ │ +0026a690: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a0a  known_severity..
│ │ │ +0026a6a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0026a6b0: 4e65 7477 6f72 6b20 4669 6c65 2053 7973  Network File Sys
│ │ │ +0026a6c0: 7465 6d20 286e 6673 2920 2d20 4469 7361  tem (nfs) - Disa
│ │ │ +0026a6d0: 626c 6520 7365 7276 6963 6520 6e66 732d  ble service nfs-
│ │ │ +0026a6e0: 7365 7276 6572 0a20 2062 6c6f 636b 3a0a  server.  block:.
│ │ │ +0026a6f0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0026a700: 6c65 204e 6574 776f 726b 2046 696c 6520  le Network File 
│ │ │ +0026a710: 5379 7374 656d 2028 6e66 7329 202d 2043  System (nfs) - C
│ │ │ +0026a720: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +0026a730: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +0026a740: 696e 0a20 2020 2020 2074 6865 2053 7973  in.      the Sys
│ │ │ +0026a750: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0026a760: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0026a770: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0026a780: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0026a790: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0026a7a0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0026a7b0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0026a7c0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0026a7d0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0026a7e0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0026a7f0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0026a800: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0026a810: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0026a820: 6d65 3a20 4469 7361 626c 6520 4e65 7477  me: Disable Netw
│ │ │ +0026a830: 6f72 6b20 4669 6c65 2053 7973 7465 6d20  ork File System 
│ │ │ +0026a840: 286e 6673 2920 2d20 456e 7375 7265 206e  (nfs) - Ensure n
│ │ │ +0026a850: 6673 2d73 6572 7665 722e 7365 7276 6963  fs-server.servic
│ │ │ +0026a860: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +0026a870: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0026a880: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +0026a890: 616d 653a 206e 6673 2d73 6572 7665 722e  ame: nfs-server.
│ │ │ +0026a8a0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +0026a8b0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0026a8c0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0026a8d0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +0026a8e0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0026a8f0: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +0026a900: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0026a910: 6172 6368 2822 6e66 732d 7365 7276 6572  arch("nfs-server
│ │ │ +0026a920: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ +0026a930: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ +0026a940: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ +0026a950: 7420 4578 6973 7473 202d 206e 6673 2d73  t Exists - nfs-s
│ │ │ +0026a960: 6572 7665 722e 736f 636b 6574 0a20 2020  erver.socket.   
│ │ │ +0026a970: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0026a980: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0026a990: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0026a9a0: 2d66 696c 6573 206e 6673 2d73 6572 7665  -files nfs-serve
│ │ │ +0026a9b0: 722e 736f 636b 6574 0a20 2020 2072 6567  r.socket.    reg
│ │ │ +0026a9c0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +0026a9d0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +0026a9e0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0026a9f0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0026aa00: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0026aa10: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0026aa20: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0026aa30: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0026aa40: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0026aa50: 4e65 7477 6f72 6b20 4669 6c65 2053 7973  Network File Sys
│ │ │ +0026aa60: 7465 6d20 286e 6673 2920 2d20 4469 7361  tem (nfs) - Disa
│ │ │ +0026aa70: 626c 6520 536f 636b 6574 206e 6673 2d73  ble Socket nfs-s
│ │ │ +0026aa80: 6572 7665 720a 2020 2020 616e 7369 626c  erver.    ansibl
│ │ │ +0026aa90: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +0026aaa0: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ +0026aab0: 6673 2d73 6572 7665 722e 736f 636b 6574  fs-server.socket
│ │ │ +0026aac0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +0026aad0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +0026aae0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0026aaf0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0026ab00: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +0026ab10: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +0026ab20: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +0026ab30: 6828 226e 6673 2d73 6572 7665 722e 736f  h("nfs-server.so
│ │ │ +0026ab40: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0026ab50: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0026ab60: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026ab70: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0026ab80: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0026ab90: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026aba0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0026abb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0026abc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0026abd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0026abe0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0026abf0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0026ac00: 6365 5f6e 6673 5f64 6973 6162 6c65 640a  ce_nfs_disabled.
│ │ │ +0026ac10: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0026ac20: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +0026ac30: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +0026ac40: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +0026ac50: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +0026ac60: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0026ac70: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0026ad20: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0026ad30: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Co │ │ │ +0026a4e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0026a510: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0026a530: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0026a540: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0026a560: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0026a570: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0026add0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0026ae70: 636c 7564 6520 6469 7361 626c 655f 6e66  clude disable_nf
│ │ │ +0026ae80: 732d 7365 7276 6572 0a0a 636c 6173 7320  s-server..class 
│ │ │ +0026ae90: 6469 7361 626c 655f 6e66 732d 7365 7276  disable_nfs-serv
│ │ │ +0026aea0: 6572 207b 0a20 2073 6572 7669 6365 207b  er {.  service {
│ │ │ +0026aeb0: 276e 6673 2d73 6572 7665 7227 3a0a 2020  'nfs-server':.  
│ │ │ +0026aec0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +0026aed0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +0026aee0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +0026aef0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0026af00: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +0026afb0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +0026afc0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +0026afd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[customizat
│ │ │ +0026b020: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0026b030: 6173 6b65 6420 3d20 5b22 6e66 732d 7365  asked = ["nfs-se
│ │ │ +0026b040: 7276 6572 225d 0a3c 2f63 6f64 653e 3c2f  rver"].
│ │ │ 0026b060: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64
│ │ │ +0026adc0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0026adf0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0026ae00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0026ae40: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0026ae50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ 0026b080: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>Remediation P │ │ │ -0026b8a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0026b8b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0026b930: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0026b950: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026b9a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0026b9d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0026b940: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0026b960: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026b9b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0026b9c0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0026b9f0: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ -0026ba00: 7276 6572 0a0a 636c 6173 7320 7265 6d6f  rver..class remo
│ │ │ -0026ba10: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ -0026ba20: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ -0026ba30: 207b 2027 6e66 732d 6b65 726e 656c 2d73   { 'nfs-kernel-s
│ │ │ -0026ba40: 6572 7665 7227 3a0a 2020 2020 656e 7375  erver':.    ensu
│ │ │ -0026ba50: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0026ba60: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0026ba70: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0026bb20: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0026bb30: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0026bbc0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0026bbd0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0026bbf0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0026bc10: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0026bc20: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0026bc60: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0026bc70: 653a 2027 556e 696e 7374 616c 6c20 6e66  e: 'Uninstall nf
│ │ │ -0026bc80: 732d 6b65 726e 656c 2d73 6572 7665 7220  s-kernel-server 
│ │ │ -0026bc90: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -0026bca0: 6e66 732d 6b65 726e 656c 2d73 6572 7665  nfs-kernel-serve
│ │ │ -0026bcb0: 7220 6973 2072 656d 6f76 6564 270a 2020  r is removed'.  
│ │ │ -0026bcc0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0026bcd0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0026bce0: 653a 206e 6673 2d6b 6572 6e65 6c2d 7365  e: nfs-kernel-se
│ │ │ -0026bcf0: 7276 6572 0a20 2020 2073 7461 7465 3a20  rver.    state: 
│ │ │ -0026bd00: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -0026bd10: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0026bd20: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0026bd30: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0026bd40: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -0026bd50: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -0026bd60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0026bd70: 2020 2d20 7061 636b 6167 655f 6e66 732d    - package_nfs-
│ │ │ -0026bd80: 6b65 726e 656c 2d73 6572 7665 725f 7265  kernel-server_re
│ │ │ -0026bd90: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediation A │ │ │ +0026b8a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +0026b8b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +0026b940: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0026b960: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0026b980: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0026b9b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026b9c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0026b9f0: 6e73 7461 6c6c 206e 6673 2d6b 6572 6e65  nstall nfs-kerne
│ │ │ +0026ba00: 6c2d 7365 7276 6572 2050 6163 6b61 6765  l-server Package
│ │ │ +0026ba10: 3a20 456e 7375 7265 206e 6673 2d6b 6572  : Ensure nfs-ker
│ │ │ +0026ba20: 6e65 6c2d 7365 7276 6572 2069 7320 7265  nel-server is re
│ │ │ +0026ba30: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0026ba40: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0026ba50: 3a0a 2020 2020 6e61 6d65 3a20 6e66 732d  :.    name: nfs-
│ │ │ +0026ba60: 6b65 726e 656c 2d73 6572 7665 720a 2020  kernel-server.  
│ │ │ +0026ba70: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0026ba80: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0026ba90: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0026baa0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0026bab0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0026bac0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0026bad0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0026bae0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0026baf0: 6b61 6765 5f6e 6673 2d6b 6572 6e65 6c2d  kage_nfs-kernel-
│ │ │ +0026bb00: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +0026bb10: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0026bbc0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0026bbd0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +0026bcb0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026bcc0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

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

Rem │ │ │ -0026dcf0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0026dd00: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0026dd10: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0026dd50: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -0026dd60: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -0026dd70: 6368 726f 6e79 220a 7665 7273 696f 6e20 chrony".version │ │ │ -0026dd80: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediati │ │ │ -0026de40: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0026de50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0026ded0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0026df60: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ +0026bc90: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026bca0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026bce0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0026bcf0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -0026dee0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026def0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0026df30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0026df40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0026df80: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0026df90: 7374 616c 6c5f 6368 726f 6e79 0a0a 636c  stall_chrony..cl
│ │ │ -0026dfa0: 6173 7320 696e 7374 616c 6c5f 6368 726f  ass install_chro
│ │ │ -0026dfb0: 6e79 207b 0a20 2070 6163 6b61 6765 207b  ny {.  package {
│ │ │ -0026dfc0: 2027 6368 726f 6e79 273a 0a20 2020 2065   'chrony':.    e
│ │ │ -0026dfd0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -0026dfe0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -0026dff0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -0026e0a0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0026e0b0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0026e0c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -0026e190: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0026e1a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0026e1f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0026e200: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0026e210: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0026e220: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0026e230: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0026e240: 5043 492d 4453 532d 5265 712d 3130 2e34  PCI-DSS-Req-10.4
│ │ │ -0026e250: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -0026e260: 302e 360a 2020 2d20 5043 492d 4453 5376  0.6.  - PCI-DSSv
│ │ │ -0026e270: 342d 3130 2e36 2e31 0a20 202d 2065 6e61  4-10.6.1.  - ena
│ │ │ -0026e280: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0026e290: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0026e2a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0026e2b0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0026e2c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0026e2d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0026e2e0: 7061 636b 6167 655f 6368 726f 6e79 5f69  package_chrony_i
│ │ │ -0026e2f0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ -0026e300: 3a20 456e 7375 7265 2063 6872 6f6e 7920  : Ensure chrony 
│ │ │ -0026e310: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0026e320: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0026e330: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0026e340: 3a20 6368 726f 6e79 0a20 2020 2073 7461  : chrony.    sta
│ │ │ -0026e350: 7465 3a20 7072 6573 656e 740a 2020 7768  te: present.  wh
│ │ │ -0026e360: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -0026e370: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0026e380: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -0026e390: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ -0026e3a0: 2d52 6571 2d31 302e 340a 2020 2d20 5043  -Req-10.4.  - PC
│ │ │ -0026e3b0: 492d 4453 5376 342d 3130 2e36 0a20 202d  I-DSSv4-10.6.  -
│ │ │ -0026e3c0: 2050 4349 2d44 5353 7634 2d31 302e 362e   PCI-DSSv4-10.6.
│ │ │ -0026e3d0: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ -0026e3e0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0026e3f0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0026e400: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0026e410: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0026e420: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0026e430: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0026e440: 5f63 6872 6f6e 795f 696e 7374 616c 6c65  _chrony_installe
│ │ │ -0026e450: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0026dcf0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +0026dd00: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0026dd10: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -0026e170: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0026e180: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0026e1c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0026e1d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0026dda0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026ddb0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0026de00: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +0026de40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0026de50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0026de60: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0026de70: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0026de80: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ +0026de90: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ +0026dea0: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ +0026deb0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +0026dec0: 302e 362e 310a 2020 2d20 656e 6162 6c65  0.6.1.  - enable
│ │ │ +0026ded0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0026dee0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0026def0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0026df00: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +0026df10: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0026df20: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0026df30: 6b61 6765 5f63 6872 6f6e 795f 696e 7374  kage_chrony_inst
│ │ │ +0026df40: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +0026df50: 6e73 7572 6520 6368 726f 6e79 2069 7320  nsure chrony is 
│ │ │ +0026df60: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +0026df70: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0026df80: 6167 653a 0a20 2020 206e 616d 653a 2063  age:.    name: c
│ │ │ +0026df90: 6872 6f6e 790a 2020 2020 7374 6174 653a  hrony.    state:
│ │ │ +0026dfa0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +0026dfb0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0026dfc0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0026dfd0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +0026dfe0: 3a0a 2020 2d20 5043 492d 4453 532d 5265  :.  - PCI-DSS-Re
│ │ │ +0026dff0: 712d 3130 2e34 0a20 202d 2050 4349 2d44  q-10.4.  - PCI-D
│ │ │ +0026e000: 5353 7634 2d31 302e 360a 2020 2d20 5043  SSv4-10.6.  - PC
│ │ │ +0026e010: 492d 4453 5376 342d 3130 2e36 2e31 0a20  I-DSSv4-10.6.1. 
│ │ │ +0026e020: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0026e030: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0026e040: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0026e050: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0026e060: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0026e070: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0026e080: 640a 2020 2d20 7061 636b 6167 655f 6368  d.  - package_ch
│ │ │ +0026e090: 726f 6e79 5f69 6e73 7461 6c6c 6564 0a3c  rony_installed.<
│ │ │ +0026e0a0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0026e150: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0026e160: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +0026dd90: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0026ddc0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0026ddd0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0026de10: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0026de20: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0026e240: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026e250: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0026e2a0: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f63  nclude install_c
│ │ │ +0026e2b0: 6872 6f6e 790a 0a63 6c61 7373 2069 6e73  hrony..class ins
│ │ │ +0026e2c0: 7461 6c6c 5f63 6872 6f6e 7920 7b0a 2020  tall_chrony {.  
│ │ │ +0026e2d0: 7061 636b 6167 6520 7b20 2763 6872 6f6e  package { 'chron
│ │ │ +0026e2e0: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ +0026e2f0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0026e300: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0026e310: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +0026e3c0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75  tion OSBuild Blu
│ │ │ +0026e3d0: 6570 7269 6e74 2073 6e69 7070 6574 20e2  eprint snippet .
│ │ │ +0026e3e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0026e420: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0026e430: 735d 5d0a 6e61 6d65 203d 2022 6368 726f  s]].name = "chro
│ │ │ +0026e440: 6e79 220a 7665 7273 696f 6e20 3d20 222a  ny".version = "*
│ │ │ +0026e450: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 0026e460: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ -0026f440: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0026f450: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0026f460: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -0026f4a0: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -0026f4b0: 6d65 203d 2022 7379 7374 656d 642d 7469  me = "systemd-ti
│ │ │ -0026f4c0: 6d65 7379 6e63 6422 0a76 6572 7369 6f6e  mesyncd".version
│ │ │ -0026f4d0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediat │ │ │ -0026f590: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0026f5a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0026f5e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026f5f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026f600: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026f610: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026f620: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0026f6b0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -0026f6c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0026e220: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026e230: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026e270: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0026e280: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -0026f630: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026f640: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0026f680: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026f690: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ -0026f6e0: 6e73 7461 6c6c 5f73 7973 7465 6d64 2d74  nstall_systemd-t
│ │ │ -0026f6f0: 696d 6573 796e 6364 0a0a 636c 6173 7320  imesyncd..class 
│ │ │ -0026f700: 696e 7374 616c 6c5f 7379 7374 656d 642d  install_systemd-
│ │ │ -0026f710: 7469 6d65 7379 6e63 6420 7b0a 2020 7061  timesyncd {.  pa
│ │ │ -0026f720: 636b 6167 6520 7b20 2773 7973 7465 6d64  ckage { 'systemd
│ │ │ -0026f730: 2d74 696d 6573 796e 6364 273a 0a20 2020  -timesyncd':.   
│ │ │ -0026f740: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0026f750: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0026f760: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0026f820: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0026f830: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -0026f8b0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0026f8d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026f920: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0026f950: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0026f970: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0026f980: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0026f990: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0026f9a0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0026f9b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026f9c0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0026f9d0: 532d 5265 712d 3130 2e34 0a20 202d 2065  S-Req-10.4.  - e
│ │ │ -0026f9e0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0026f9f0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0026fa00: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0026fa10: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0026fa20: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0026fa30: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0026fa40: 7061 636b 6167 655f 7469 6d65 7379 6e63  package_timesync
│ │ │ -0026fa50: 645f 696e 7374 616c 6c65 640a 0a2d 206e  d_installed..- n
│ │ │ -0026fa60: 616d 653a 2045 6e73 7572 6520 7379 7374  ame: Ensure syst
│ │ │ -0026fa70: 656d 642d 7469 6d65 7379 6e63 6420 6973  emd-timesyncd is
│ │ │ -0026fa80: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ -0026fa90: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -0026faa0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -0026fab0: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ -0026fac0: 640a 2020 2020 7374 6174 653a 2070 7265  d.    state: pre
│ │ │ -0026fad0: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -0026fae0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0026faf0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0026fb00: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0026fb10: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0026fb20: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0026fb30: 532d 5265 712d 3130 2e34 0a20 202d 2065  S-Req-10.4.  - e
│ │ │ -0026fb40: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0026fb50: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0026fb60: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0026fb70: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0026fb80: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0026fb90: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0026fba0: 7061 636b 6167 655f 7469 6d65 7379 6e63  package_timesync
│ │ │ -0026fbb0: 645f 696e 7374 616c 6c65 640a 3c2f 636f  d_installed.Remediation A
│ │ │ +0026f440: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0026f450: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low< │ │ │ +0026f520: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +0026f570: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0026f8c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0026f8e0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026f930: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0026f940: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ +0026f4e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0026f500: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0026f550: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026f560: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +0026f590: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0026f5a0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0026f5b0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0026f5c0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0026f5d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026f5e0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0026f5f0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +0026f600: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0026f610: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0026f620: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0026f630: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0026f640: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0026f650: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0026f660: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ +0026f670: 6364 5f69 6e73 7461 6c6c 6564 0a0a 2d20  cd_installed..- 
│ │ │ +0026f680: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ +0026f690: 7465 6d64 2d74 696d 6573 796e 6364 2069  temd-timesyncd i
│ │ │ +0026f6a0: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +0026f6b0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0026f6c0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0026f6d0: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ +0026f6e0: 6364 0a20 2020 2073 7461 7465 3a20 7072  cd.    state: pr
│ │ │ +0026f6f0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +0026f700: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0026f710: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0026f720: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +0026f730: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026f740: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0026f750: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +0026f760: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0026f770: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0026f780: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0026f790: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0026f7a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0026f7b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0026f7c0: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ +0026f7d0: 6364 5f69 6e73 7461 6c6c 6564 0a3c 2f63  cd_installed.
│ │ │ +0026f7f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0026f890: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0026f8a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0026f8b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +0026f940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026f950: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0026f9a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0026f9e0: 6c75 6465 2069 6e73 7461 6c6c 5f73 7973  lude install_sys
│ │ │ +0026f9f0: 7465 6d64 2d74 696d 6573 796e 6364 0a0a  temd-timesyncd..
│ │ │ +0026fa00: 636c 6173 7320 696e 7374 616c 6c5f 7379  class install_sy
│ │ │ +0026fa10: 7374 656d 642d 7469 6d65 7379 6e63 6420  stemd-timesyncd 
│ │ │ +0026fa20: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +0026fa30: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ +0026fa40: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0026fa50: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +0026fa60: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +0026fb20: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +0026fb30: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +0026fb40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +0026fb80: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +0026fb90: 5d5d 0a6e 616d 6520 3d20 2273 7973 7465  ]].name = "syste
│ │ │ +0026fba0: 6d64 2d74 696d 6573 796e 6364 220a 7665  md-timesyncd".ve
│ │ │ +0026fbb0: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 0026fbd0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0026fbe0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0026fbf0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0026fc00: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0026fc10: 6431 3031 3322 2074 6162 696e 6465 783d d1013" tabindex= │ │ │ 0026fc20: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -159899,148 +159899,148 @@ │ │ │ 002709a0: 7267 6574 3d22 2369 6431 3031 3522 2074 rget="#id1015" t │ │ │ 002709b0: 6162 696e 6465 783d 2230 2220 726f 6c65 abindex="0" role │ │ │ 002709c0: 3d22 6275 7474 6f6e 2220 6172 6961 2d65 ="button" aria-e │ │ │ 002709d0: 7870 616e 6465 643d 2266 616c 7365 2220 xpanded="false" │ │ │ 002709e0: 7469 746c 653d 2241 6374 6976 6174 6520 title="Activate │ │ │ 002709f0: 746f 2072 6576 6561 6c22 2068 7265 663d to reveal" href= │ │ │ 00270a00: 2223 2122 3e52 656d 6564 6961 7469 6f6e "#!">Remediation │ │ │ -00270a10: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00270a20: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -00270a80: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ -00270a90: 626c 6564 203d 205b 2263 6872 6f6e 7922  bled = ["chrony"
│ │ │ -00270aa0: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00270ab0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -00270b60: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00270b70: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +0026f930: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0026f960: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0026f970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0026f9b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0026f9c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00270bf0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00270c10: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00270c60: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00270c90: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -00270cb0: 5f63 6872 6f6e 790a 0a63 6c61 7373 2065  _chrony..class e
│ │ │ -00270cc0: 6e61 626c 655f 6368 726f 6e79 207b 0a20  nable_chrony {. 
│ │ │ -00270cd0: 2073 6572 7669 6365 207b 2763 6872 6f6e   service {'chron
│ │ │ -00270ce0: 7927 3a0a 2020 2020 656e 6162 6c65 203d  y':.    enable =
│ │ │ -00270cf0: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ -00270d00: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ -00270d10: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ -00270d30: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00270dd0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00270de0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:< │ │ │ -00270c00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00270c20: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00270c70: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00270c80: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00270e80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -00270f20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -00270f30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -00270f40: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -00270f50: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00270f60: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -00270f70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00270f80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00270f90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00270fa0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -00270fb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00270fc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00270fd0: 2073 6572 7669 6365 5f63 6872 6f6e 7964   service_chronyd
│ │ │ -00270fe0: 5f65 6e61 626c 6564 0a0a 2d20 6e61 6d65  _enabled..- name
│ │ │ -00270ff0: 3a20 5468 6520 4368 726f 6e79 6420 7365  : The Chronyd se
│ │ │ -00271000: 7276 6963 6520 6973 2065 6e61 626c 6564  rvice is enabled
│ │ │ -00271010: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -00271020: 6520 6368 726f 6e79 0a20 2062 6c6f 636b  e chrony.  block
│ │ │ -00271030: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -00271040: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00271050: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -00271060: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00271070: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -00271080: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -00271090: 2d20 6e61 6d65 3a20 5468 6520 4368 726f  - name: The Chro
│ │ │ -002710a0: 6e79 6420 7365 7276 6963 6520 6973 2065  nyd service is e
│ │ │ -002710b0: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -002710c0: 5365 7276 6963 6520 6368 726f 6e79 0a20  Service chrony. 
│ │ │ -002710d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002710e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002710f0: 2020 6e61 6d65 3a20 6368 726f 6e79 0a20    name: chrony. 
│ │ │ -00271100: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -00271110: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -00271120: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -00271130: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -00271140: 7768 656e 3a0a 2020 2020 2d20 2722 6368  when:.    - '"ch
│ │ │ -00271150: 726f 6e79 2220 696e 2061 6e73 6962 6c65  rony" in ansible
│ │ │ -00271160: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00271170: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00271180: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00271190: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002711a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002711b0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002711c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002711d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002711e0: 7365 7276 6963 655f 6368 726f 6e79 645f  service_chronyd_
│ │ │ -002711f0: 656e 6162 6c65 640a 2020 2d20 7370 6563  enabled.  - spec
│ │ │ -00271200: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -00271210: 6b0a 2020 7768 656e 3a0a 2020 2d20 2722  k.  when:.  - '"
│ │ │ -00271220: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00271230: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00271240: 6b61 6765 7327 0a20 202d 2027 2263 6872  kages'.  - '"chr
│ │ │ -00271250: 6f6e 7922 2069 6e20 616e 7369 626c 655f  ony" in ansible_
│ │ │ -00271260: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00270a10: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00270a20: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +00270aa0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00270ae0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ -00270e70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00270ea0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00270eb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00270ef0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00270f00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ +00270ab0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00270ad0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00270b00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00270b20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00270b50: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00270b60: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00270b70: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00270b80: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00270b90: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00270ba0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00270bb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00270bc0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00270bd0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00270be0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00270bf0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00270c00: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00270c10: 6368 726f 6e79 645f 656e 6162 6c65 640a  chronyd_enabled.
│ │ │ +00270c20: 0a2d 206e 616d 653a 2054 6865 2043 6872  .- name: The Chr
│ │ │ +00270c30: 6f6e 7964 2073 6572 7669 6365 2069 7320  onyd service is 
│ │ │ +00270c40: 656e 6162 6c65 6420 2d20 456e 6162 6c65  enabled - Enable
│ │ │ +00270c50: 2073 6572 7669 6365 2063 6872 6f6e 790a   service chrony.
│ │ │ +00270c60: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +00270c70: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00270c80: 6163 6b61 6765 2066 6163 7473 0a20 2020  ackage facts.   
│ │ │ +00270c90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00270ca0: 2e70 6163 6b61 6765 5f66 6163 7473 3a0a  .package_facts:.
│ │ │ +00270cb0: 2020 2020 2020 6d61 6e61 6765 723a 2061        manager: a
│ │ │ +00270cc0: 7574 6f0a 0a20 202d 206e 616d 653a 2054  uto..  - name: T
│ │ │ +00270cd0: 6865 2043 6872 6f6e 7964 2073 6572 7669  he Chronyd servi
│ │ │ +00270ce0: 6365 2069 7320 656e 6162 6c65 6420 2d20  ce is enabled - 
│ │ │ +00270cf0: 456e 6162 6c65 2053 6572 7669 6365 2063  Enable Service c
│ │ │ +00270d00: 6872 6f6e 790a 2020 2020 616e 7369 626c  hrony.    ansibl
│ │ │ +00270d10: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00270d20: 643a 0a20 2020 2020 206e 616d 653a 2063  d:.      name: c
│ │ │ +00270d30: 6872 6f6e 790a 2020 2020 2020 656e 6162  hrony.      enab
│ │ │ +00270d40: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ +00270d50: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ +00270d60: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ +00270d70: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ +00270d80: 202d 2027 2263 6872 6f6e 7922 2069 6e20   - '"chrony" in 
│ │ │ +00270d90: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00270da0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00270db0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00270dc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00270dd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00270de0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00270df0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00270e00: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00270e10: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ +00270e20: 6872 6f6e 7964 5f65 6e61 626c 6564 0a20  hronyd_enabled. 
│ │ │ +00270e30: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00270e40: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00270e50: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ +00270e60: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00270e70: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00270e80: 2d20 2722 6368 726f 6e79 2220 696e 2061  - '"chrony" in a
│ │ │ +00270e90: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00270ea0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.
Remediat │ │ │ +00270f60: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +00270f70: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +00270fb0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00270fc0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00270fd0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00270fe0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00270ff0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00271000: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00271010: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00271050: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00271060: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00271080: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00271090: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ +002710b0: 6e61 626c 655f 6368 726f 6e79 0a0a 636c  nable_chrony..cl
│ │ │ +002710c0: 6173 7320 656e 6162 6c65 5f63 6872 6f6e  ass enable_chron
│ │ │ +002710d0: 7920 7b0a 2020 7365 7276 6963 6520 7b27  y {.  service {'
│ │ │ +002710e0: 6368 726f 6e79 273a 0a20 2020 2065 6e61  chrony':.    ena
│ │ │ +002710f0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +00271100: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00271110: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +00271120: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +00271130: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002711e0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002711f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00271200: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +00271240: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00271250: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00271260: 6564 203d 205b 2263 6872 6f6e 7922 5d0a  ed = ["chrony"].
│ │ │  00271270: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -00272570: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00272580: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00272590: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ -002725e0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -002725f0: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ -00272600: 642d 7469 6d65 7379 6e63 6422 5d0a 3c2f  d-timesyncd"].
R │ │ │ -002726c0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002726d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -00272770: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00272810: 636c 7564 6520 656e 6162 6c65 5f73 7973  clude enable_sys
│ │ │ -00272820: 7465 6d64 2d74 696d 6573 796e 6364 0a0a  temd-timesyncd..
│ │ │ -00272830: 636c 6173 7320 656e 6162 6c65 5f73 7973  class enable_sys
│ │ │ -00272840: 7465 6d64 2d74 696d 6573 796e 6364 207b  temd-timesyncd {
│ │ │ -00272850: 0a20 2073 6572 7669 6365 207b 2773 7973  .  service {'sys
│ │ │ -00272860: 7465 6d64 2d74 696d 6573 796e 6364 273a  temd-timesyncd':
│ │ │ -00272870: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00272880: 3b20 7472 7565 2c0a 2020 2020 656e 7375  ; true,.    ensu
│ │ │ -00272890: 7265 203d 2667 743b 2027 7275 6e6e 696e  re => 'runnin
│ │ │ -002728a0: 6727 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  g',.  }.}.
Remed │ │ │ -00272960: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00272970: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -00272760: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00272790: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002727a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002727e0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -002727f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -00272a00: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00272a30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00272a50: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00272a60: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00272a80: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00272aa0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00272ab0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00272ac0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00272ad0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00272ae0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00272af0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00272b00: 3830 302d 3533 2d41 552d 3828 3129 2861  800-53-AU-8(1)(a
│ │ │ -00272b10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00272b20: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00272b30: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ -00272b40: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -00272b50: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ -00272b60: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ -00272b70: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -00272b80: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -00272b90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00272ba0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00272bb0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00272bc0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00272bd0: 6963 655f 7469 6d65 7379 6e63 645f 656e  ice_timesyncd_en
│ │ │ -00272be0: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -00272bf0: 6e61 626c 6520 7379 7374 656d 645f 7469  nable systemd_ti
│ │ │ -00272c00: 6d65 7379 6e63 6420 5365 7276 6963 6520  mesyncd Service 
│ │ │ -00272c10: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00272c20: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ -00272c30: 6364 0a20 2062 6c6f 636b 3a0a 0a20 202d  cd.  block:..  -
│ │ │ -00272c40: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00272c50: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00272c60: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00272c70: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -00272c80: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -00272c90: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -00272ca0: 3a20 456e 6162 6c65 2073 7973 7465 6d64  : Enable systemd
│ │ │ -00272cb0: 5f74 696d 6573 796e 6364 2053 6572 7669  _timesyncd Servi
│ │ │ -00272cc0: 6365 202d 2045 6e61 626c 6520 5365 7276  ce - Enable Serv
│ │ │ -00272cd0: 6963 6520 7379 7374 656d 642d 7469 6d65  ice systemd-time
│ │ │ -00272ce0: 7379 6e63 640a 2020 2020 616e 7369 626c  syncd.    ansibl
│ │ │ -00272cf0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00272d00: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -00272d10: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ -00272d20: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -00272d30: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -00272d40: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -00272d50: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -00272d60: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -00272d70: 7379 7374 656d 6422 2069 6e20 616e 7369  systemd" in ansi
│ │ │ -00272d80: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00272d90: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00272da0: 4e49 5354 2d38 3030 2d35 332d 4155 2d38  NIST-800-53-AU-8
│ │ │ -00272db0: 2831 2928 6129 0a20 202d 204e 4953 542d  (1)(a).  - NIST-
│ │ │ -00272dc0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00272dd0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -00272de0: 302e 340a 2020 2d20 5043 492d 4453 5376  0.4.  - PCI-DSSv
│ │ │ -00272df0: 342d 3130 2e36 0a20 202d 2050 4349 2d44  4-10.6.  - PCI-D
│ │ │ -00272e00: 5353 7634 2d31 302e 362e 310a 2020 2d20  SSv4-10.6.1.  - 
│ │ │ -00272e10: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00272e20: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -00272e30: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00272e40: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00272e50: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -00272e60: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00272e70: 2073 6572 7669 6365 5f74 696d 6573 796e   service_timesyn
│ │ │ -00272e80: 6364 5f65 6e61 626c 6564 0a20 202d 2073  cd_enabled.  - s
│ │ │ -00272e90: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00272ea0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -00272eb0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00272ec0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00272ed0: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -00272ee0: 6e6f 7420 2820 2263 6872 6f6e 7922 2069  not ( "chrony" i
│ │ │ -00272ef0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00272f00: 7061 636b 6167 6573 2029 2061 6e64 206e  packages ) and n
│ │ │ -00272f10: 6f74 2028 2022 6e74 7022 2069 6e20 616e  ot ( "ntp" in an
│ │ │ -00272f20: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00272f30: 6167 6573 0a20 2020 2029 2029 0a3c 2f63  ages.    ) ).
│ │ │ +00272600: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00272610: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00272620: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00272660: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00272670: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00272690: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +002726b0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +002726c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +002726d0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +002726e0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +002726f0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00272700: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00272710: 332d 4155 2d38 2831 2928 6129 0a20 202d  3-AU-8(1)(a).  -
│ │ │ +00272720: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00272730: 3628 6129 0a20 202d 2050 4349 2d44 5353  6(a).  - PCI-DSS
│ │ │ +00272740: 2d52 6571 2d31 302e 340a 2020 2d20 5043  -Req-10.4.  - PC
│ │ │ +00272750: 492d 4453 5376 342d 3130 2e36 0a20 202d  I-DSSv4-10.6.  -
│ │ │ +00272760: 2050 4349 2d44 5353 7634 2d31 302e 362e   PCI-DSSv4-10.6.
│ │ │ +00272770: 310a 2020 2d20 656e 6162 6c65 5f73 7472  1.  - enable_str
│ │ │ +00272780: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +00272790: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +002727a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002727b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002727c0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002727d0: 6564 0a20 202d 2073 6572 7669 6365 5f74  ed.  - service_t
│ │ │ +002727e0: 696d 6573 796e 6364 5f65 6e61 626c 6564  imesyncd_enabled
│ │ │ +002727f0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00272800: 2073 7973 7465 6d64 5f74 696d 6573 796e   systemd_timesyn
│ │ │ +00272810: 6364 2053 6572 7669 6365 202d 2045 6e61  cd Service - Ena
│ │ │ +00272820: 626c 6520 7365 7276 6963 6520 7379 7374  ble service syst
│ │ │ +00272830: 656d 642d 7469 6d65 7379 6e63 640a 2020  emd-timesyncd.  
│ │ │ +00272840: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +00272850: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ +00272860: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ +00272870: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00272880: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00272890: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002728a0: 6f0a 0a20 202d 206e 616d 653a 2045 6e61  o..  - name: Ena
│ │ │ +002728b0: 626c 6520 7379 7374 656d 645f 7469 6d65  ble systemd_time
│ │ │ +002728c0: 7379 6e63 6420 5365 7276 6963 6520 2d20  syncd Service - 
│ │ │ +002728d0: 456e 6162 6c65 2053 6572 7669 6365 2073  Enable Service s
│ │ │ +002728e0: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ +002728f0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00272900: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00272910: 2020 2020 6e61 6d65 3a20 7379 7374 656d      name: system
│ │ │ +00272920: 642d 7469 6d65 7379 6e63 640a 2020 2020  d-timesyncd.    
│ │ │ +00272930: 2020 656e 6162 6c65 643a 2074 7275 650a    enabled: true.
│ │ │ +00272940: 2020 2020 2020 7374 6174 653a 2073 7461        state: sta
│ │ │ +00272950: 7274 6564 0a20 2020 2020 206d 6173 6b65  rted.      maske
│ │ │ +00272960: 643a 2066 616c 7365 0a20 2020 2077 6865  d: false.    whe
│ │ │ +00272970: 6e3a 0a20 2020 202d 2027 2273 7973 7465  n:.    - '"syste
│ │ │ +00272980: 6d64 2220 696e 2061 6e73 6962 6c65 5f66  md" in ansible_f
│ │ │ +00272990: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +002729a0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002729b0: 3830 302d 3533 2d41 552d 3828 3129 2861  800-53-AU-8(1)(a
│ │ │ +002729c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +002729d0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +002729e0: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +002729f0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00272a00: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +00272a10: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +00272a20: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ +00272a30: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ +00272a40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00272a50: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00272a60: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +00272a70: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00272a80: 6963 655f 7469 6d65 7379 6e63 645f 656e  ice_timesyncd_en
│ │ │ +00272a90: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00272aa0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00272ab0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00272ac0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00272ad0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00272ae0: 6765 7327 0a20 202d 2028 206e 6f74 2028  ges'.  - ( not (
│ │ │ +00272af0: 2022 6368 726f 6e79 2220 696e 2061 6e73   "chrony" in ans
│ │ │ +00272b00: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00272b10: 6765 7320 2920 616e 6420 6e6f 7420 2820  ges ) and not ( 
│ │ │ +00272b20: 226e 7470 2220 696e 2061 6e73 6962 6c65  "ntp" in ansible
│ │ │ +00272b30: 5f66 6163 7473 2e70 6163 6b61 6765 730a  _facts.packages.
│ │ │ +00272b40: 2020 2020 2920 290a 3c2f 636f 6465 3e3c      ) ).<
│ │ │ +00272b50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +00272c00: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00272c10: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00272c20: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00272c30: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00272c40: 7365 2220 6964 3d22 6964 3130 3231 223e se" id="id1021"> │ │ │ +00272c50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00272cc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00272ce0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00272d10: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00272d30: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00272ca0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00272cb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00272cf0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00272d00: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00272d50: 656e 6162 6c65 5f73 7973 7465 6d64 2d74 enable_systemd-t │ │ │ +00272d60: 696d 6573 796e 6364 0a0a 636c 6173 7320 imesyncd..class │ │ │ +00272d70: 656e 6162 6c65 5f73 7973 7465 6d64 2d74 enable_systemd-t │ │ │ +00272d80: 696d 6573 796e 6364 207b 0a20 2073 6572 imesyncd {. ser │ │ │ +00272d90: 7669 6365 207b 2773 7973 7465 6d64 2d74 vice {'systemd-t │ │ │ +00272da0: 696d 6573 796e 6364 273a 0a20 2020 2065 imesyncd':. e │ │ │ +00272db0: 6e61 626c 6520 3d26 6774 3b20 7472 7565 nable => true │ │ │ +00272dc0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +00272dd0: 743b 2027 7275 6e6e 696e 6727 2c0a 2020 t; 'running',. │ │ │ +00272de0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ +00272ea0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +00272eb0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ +00272f10: 6e73 2e73 6572 7669 6365 735d 0a65 6e61  ns.services].ena
│ │ │ +00272f20: 626c 6564 203d 205b 2273 7973 7465 6d64  bled = ["systemd
│ │ │ +00272f30: 2d74 696d 6573 796e 6364 225d 0a3c 2f63  -timesyncd"].
│ │ │ 00272f50: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Remediati │ │ │ -00273c20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00273c30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00273c40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -00273c90: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00273ca0: 6173 6b65 6420 3d20 5b22 6368 726f 6e79  asked = ["chrony
│ │ │ -00273cb0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00273cc0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00273d70: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00273d80: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00273e10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00273e30: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00273e50: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00273e80: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00273e90: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00273ea0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00273ec0: 6c65 5f63 6872 6f6e 790a 0a63 6c61 7373  le_chrony..class
│ │ │ -00273ed0: 2064 6973 6162 6c65 5f63 6872 6f6e 7920   disable_chrony 
│ │ │ -00273ee0: 7b0a 2020 7365 7276 6963 6520 7b27 6368  {.  service {'ch
│ │ │ -00273ef0: 726f 6e79 273a 0a20 2020 2065 6e61 626c  rony':.    enabl
│ │ │ -00273f00: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00273f10: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00273f20: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00273f30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00273ff0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00274000: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00274080: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002740a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002740f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00274120: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00274090: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002740b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00274100: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00274110: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00274140: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00274150: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00274160: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00274170: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00274180: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00274190: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -002741a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -002741b0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002741c0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002741d0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002741e0: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ -002741f0: 6872 6f6e 7964 5f64 6973 6162 6c65 640a  hronyd_disabled.
│ │ │ -00274200: 0a2d 206e 616d 653a 2054 6865 2043 6872  .- name: The Chr
│ │ │ -00274210: 6f6e 7964 2073 6572 7669 6365 2069 7320  onyd service is 
│ │ │ -00274220: 6469 7361 626c 6564 202d 2044 6973 6162  disabled - Disab
│ │ │ -00274230: 6c65 2073 6572 7669 6365 2063 6872 6f6e  le service chron
│ │ │ -00274240: 790a 2020 626c 6f63 6b3a 0a0a 2020 2d20  y.  block:..  - 
│ │ │ -00274250: 6e61 6d65 3a20 5468 6520 4368 726f 6e79  name: The Chrony
│ │ │ -00274260: 6420 7365 7276 6963 6520 6973 2064 6973  d service is dis
│ │ │ -00274270: 6162 6c65 6420 2d20 436f 6c6c 6563 7420  abled - Collect 
│ │ │ -00274280: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00274290: 2050 7265 7365 6e74 2069 6e20 7468 650a   Present in the.
│ │ │ -002742a0: 2020 2020 2020 5379 7374 656d 0a20 2020        System.   
│ │ │ -002742b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002742c0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -002742d0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002742e0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -002742f0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -00274300: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00274310: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00274320: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00274330: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -00274340: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00274350: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00274360: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00274370: 650a 0a20 202d 206e 616d 653a 2054 6865  e..  - name: The
│ │ │ -00274380: 2043 6872 6f6e 7964 2073 6572 7669 6365   Chronyd service
│ │ │ -00274390: 2069 7320 6469 7361 626c 6564 202d 2045   is disabled - E
│ │ │ -002743a0: 6e73 7572 6520 6368 726f 6e79 2e73 6572  nsure chrony.ser
│ │ │ -002743b0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -002743c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002743d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002743e0: 2020 6e61 6d65 3a20 6368 726f 6e79 2e73    name: chrony.s
│ │ │ -002743f0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -00274400: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00274410: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -00274420: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00274430: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -00274440: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -00274450: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -00274460: 7263 6828 2263 6872 6f6e 792e 7365 7276  rch("chrony.serv
│ │ │ -00274470: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -00274480: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -00274490: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -002744a0: 7374 7320 2d20 6368 726f 6e79 2e73 6f63  sts - chrony.soc
│ │ │ -002744b0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -002744c0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002744d0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -002744e0: 7374 2d75 6e69 742d 6669 6c65 7320 6368  st-unit-files ch
│ │ │ -002744f0: 726f 6e79 2e73 6f63 6b65 740a 2020 2020  rony.socket.    
│ │ │ -00274500: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -00274510: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -00274520: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00274530: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00274540: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00274550: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00274560: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00274570: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00274580: 0a20 202d 206e 616d 653a 2054 6865 2043  .  - name: The C
│ │ │ -00274590: 6872 6f6e 7964 2073 6572 7669 6365 2069  hronyd service i
│ │ │ -002745a0: 7320 6469 7361 626c 6564 202d 2044 6973  s disabled - Dis
│ │ │ -002745b0: 6162 6c65 2053 6f63 6b65 7420 6368 726f  able Socket chro
│ │ │ -002745c0: 6e79 0a20 2020 2061 6e73 6962 6c65 2e62  ny.    ansible.b
│ │ │ -002745d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002745e0: 2020 2020 2020 6e61 6d65 3a20 6368 726f        name: chro
│ │ │ -002745f0: 6e79 2e73 6f63 6b65 740a 2020 2020 2020  ny.socket.      
│ │ │ -00274600: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00274610: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -00274620: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -00274630: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -00274640: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00274650: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00274660: 2069 7320 7365 6172 6368 2822 6368 726f   is search("chro
│ │ │ -00274670: 6e79 2e73 6f63 6b65 7422 2c20 6d75 6c74  ny.socket", mult
│ │ │ -00274680: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00274690: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002746a0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002746b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002746c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002746d0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002746e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002746f0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00274700: 6963 655f 6368 726f 6e79 645f 6469 7361  ice_chronyd_disa
│ │ │ -00274710: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00274720: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00274730: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -00274740: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00274750: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00274760: 6573 270a 2020 2d20 2722 6368 726f 6e79  es'.  - '"chrony
│ │ │ -00274770: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00274780: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
< │ │ │ +00273c70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00273c80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00273c90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00273ca0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00273cb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00273cc0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00273cd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00273d10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00273d20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00273d40: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00273d50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00273d70: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00273d80: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00273d90: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00273da0: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00273db0: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00273dc0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00273dd0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00273de0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00273df0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00273e00: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00273e10: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +00273e20: 6963 655f 6368 726f 6e79 645f 6469 7361 ice_chronyd_disa │ │ │ +00273e30: 626c 6564 0a0a 2d20 6e61 6d65 3a20 5468 bled..- name: Th │ │ │ +00273e40: 6520 4368 726f 6e79 6420 7365 7276 6963 e Chronyd servic │ │ │ +00273e50: 6520 6973 2064 6973 6162 6c65 6420 2d20 e is disabled - │ │ │ +00273e60: 4469 7361 626c 6520 7365 7276 6963 6520 Disable service │ │ │ +00273e70: 6368 726f 6e79 0a20 2062 6c6f 636b 3a0a chrony. block:. │ │ │ +00273e80: 0a20 202d 206e 616d 653a 2054 6865 2043 . - name: The C │ │ │ +00273e90: 6872 6f6e 7964 2073 6572 7669 6365 2069 hronyd service i │ │ │ +00273ea0: 7320 6469 7361 626c 6564 202d 2043 6f6c s disabled - Col │ │ │ +00273eb0: 6c65 6374 2073 7973 7465 6d64 2053 6572 lect systemd Ser │ │ │ +00273ec0: 7669 6365 7320 5072 6573 656e 7420 696e vices Present in │ │ │ +00273ed0: 2074 6865 0a20 2020 2020 2053 7973 7465 the. Syste │ │ │ +00273ee0: 6d0a 2020 2020 616e 7369 626c 652e 6275 m. ansible.bu │ │ │ +00273ef0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ +00273f00: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ +00273f10: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479 -unit-files --ty │ │ │ +00273f20: 7065 2073 6572 7669 6365 0a20 2020 2072 pe service. r │ │ │ +00273f30: 6567 6973 7465 723a 2073 6572 7669 6365 egister: service │ │ │ +00273f40: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ +00273f50: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ +00273f60: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ +00273f70: 2073 6572 7669 6365 5f65 7869 7374 732e service_exists. │ │ │ +00273f80: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ +00273f90: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ +00273fa0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ +00273fb0: 3a20 5468 6520 4368 726f 6e79 6420 7365 : The Chronyd se │ │ │ +00273fc0: 7276 6963 6520 6973 2064 6973 6162 6c65 rvice is disable │ │ │ +00273fd0: 6420 2d20 456e 7375 7265 2063 6872 6f6e d - Ensure chron │ │ │ +00273fe0: 792e 7365 7276 6963 6520 6973 204d 6173 y.service is Mas │ │ │ +00273ff0: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ +00274000: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +00274010: 0a20 2020 2020 206e 616d 653a 2063 6872 . name: chr │ │ │ +00274020: 6f6e 792e 7365 7276 6963 650a 2020 2020 ony.service. │ │ │ +00274030: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ +00274040: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +00274050: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ +00274060: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +00274070: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ +00274080: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +00274090: 7320 7365 6172 6368 2822 6368 726f 6e79 s search("chrony │ │ │ +002740a0: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ +002740b0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ +002740c0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ +002740d0: 7420 4578 6973 7473 202d 2063 6872 6f6e t Exists - chron │ │ │ +002740e0: 792e 736f 636b 6574 0a20 2020 2061 6e73 y.socket. ans │ │ │ +002740f0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +00274100: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +00274110: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +00274120: 6573 2063 6872 6f6e 792e 736f 636b 6574 es chrony.socket │ │ │ +00274130: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +00274140: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +00274150: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00274160: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00274170: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ +00274180: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ +00274190: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +002741a0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +002741b0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +002741c0: 5468 6520 4368 726f 6e79 6420 7365 7276 The Chronyd serv │ │ │ +002741d0: 6963 6520 6973 2064 6973 6162 6c65 6420 ice is disabled │ │ │ +002741e0: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ +002741f0: 2063 6872 6f6e 790a 2020 2020 616e 7369 chrony. ansi │ │ │ +00274200: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ +00274210: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ +00274220: 2063 6872 6f6e 792e 736f 636b 6574 0a20 chrony.socket. │ │ │ +00274230: 2020 2020 2065 6e61 626c 6564 3a20 6661 enabled: fa │ │ │ +00274240: 6c73 650a 2020 2020 2020 7374 6174 653a lse. state: │ │ │ +00274250: 2073 746f 7070 6564 0a20 2020 2020 206d stopped. m │ │ │ +00274260: 6173 6b65 643a 2074 7275 650a 2020 2020 asked: true. │ │ │ +00274270: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ +00274280: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ +00274290: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ +002742a0: 2263 6872 6f6e 792e 736f 636b 6574 222c "chrony.socket", │ │ │ +002742b0: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ +002742c0: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ +002742d0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +002742e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +002742f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00274300: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00274310: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00274320: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00274330: 2073 6572 7669 6365 5f63 6872 6f6e 7964 service_chronyd │ │ │ +00274340: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ +00274350: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ +00274360: 6f63 6b0a 2020 7768 656e 3a0a 2020 2d20 ock. when:. - │ │ │ +00274370: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00274380: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00274390: 6163 6b61 6765 7327 0a20 202d 2027 2263 ackages'. - '"c │ │ │ +002743a0: 6872 6f6e 7922 2069 6e20 616e 7369 626c hrony" in ansibl │ │ │ +002743b0: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +002743c0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c '.
< │ │ │ +002743d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +00274480: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00274490: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +00274510: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00274530: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00274580: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +002745b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +002745d0: 655f 6368 726f 6e79 0a0a 636c 6173 7320  e_chrony..class 
│ │ │ +002745e0: 6469 7361 626c 655f 6368 726f 6e79 207b  disable_chrony {
│ │ │ +002745f0: 0a20 2073 6572 7669 6365 207b 2763 6872  .  service {'chr
│ │ │ +00274600: 6f6e 7927 3a0a 2020 2020 656e 6162 6c65  ony':.    enable
│ │ │ +00274610: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +00274620: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00274630: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +00274640: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation OSB │ │ │ +00274700: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00274710: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[
│ │ │ +00274760: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +00274770: 6572 7669 6365 735d 0a6d 6173 6b65 6420  ervices].masked 
│ │ │ +00274780: 3d20 5b22 6368 726f 6e79 225d 0a3c 2f63  = ["chrony"].
│ │ │ 002747a0: 3c2f 6469 763e 3c2f 7464 3e3c 2f74 723e │ │ │ 002747b0: 3c2f 7462 6f64 793e 3c2f 7461 626c 653e
Complexity:< │ │ │ +00274520: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00274540: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00274590: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +002745a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ 002747c0: 3c2f 7464 3e3c 2f74 723e 3c74 7220 6461 Re │ │ │ -00275080: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00275090: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002750a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002750b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002750c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002750d0: 7365 2220 6964 3d22 6964 3130 3239 223e se" id="id1029"> │ │ │ -002750e0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002750f0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00275100: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00275110: 2273 7973 7465 6d64 2d74 696d 6573 796e  "systemd-timesyn
│ │ │ -00275120: 6364 225d 0a3c 2f63 6f64 653e 3c2f 7072  cd"].
Remediatio │ │ │ -002751e0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002751f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00275270: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00275280: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002752a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002752b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002752d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002752f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00275320: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00275330: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ -00275340: 6573 796e 6364 0a0a 636c 6173 7320 6469  esyncd..class di
│ │ │ -00275350: 7361 626c 655f 7379 7374 656d 642d 7469  sable_systemd-ti
│ │ │ -00275360: 6d65 7379 6e63 6420 7b0a 2020 7365 7276  mesyncd {.  serv
│ │ │ -00275370: 6963 6520 7b27 7379 7374 656d 642d 7469  ice {'systemd-ti
│ │ │ -00275380: 6d65 7379 6e63 6427 3a0a 2020 2020 656e  mesyncd':.    en
│ │ │ -00275390: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -002753a0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -002753b0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -002753c0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00275480: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00275490: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00275510: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00275520: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00275540: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00275550: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00275570: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00275590: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002755c0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002755d0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002755e0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002755f0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00275600: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00275610: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00275620: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00275630: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00275640: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00275650: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00275660: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00275670: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00275680: 655f 7469 6d65 7379 6e63 645f 6469 7361  e_timesyncd_disa
│ │ │ -00275690: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -002756a0: 7361 626c 6520 7379 7374 656d 645f 7469  sable systemd_ti
│ │ │ -002756b0: 6d65 7379 6e63 6420 5365 7276 6963 6520  mesyncd Service 
│ │ │ -002756c0: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -002756d0: 6520 7379 7374 656d 642d 7469 6d65 7379  e systemd-timesy
│ │ │ -002756e0: 6e63 640a 2020 626c 6f63 6b3a 0a0a 2020  ncd.  block:..  
│ │ │ -002756f0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00275700: 7379 7374 656d 645f 7469 6d65 7379 6e63  systemd_timesync
│ │ │ -00275710: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -00275720: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00275730: 6963 6573 2050 7265 7365 6e74 2069 6e0a  ices Present in.
│ │ │ -00275740: 2020 2020 2020 7468 6520 5379 7374 656d        the System
│ │ │ -00275750: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00275760: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00275770: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00275780: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00275790: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -002757a0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -002757b0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002757c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002757d0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002757e0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002757f0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00275800: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00275810: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00275820: 2044 6973 6162 6c65 2073 7973 7465 6d64   Disable systemd
│ │ │ -00275830: 5f74 696d 6573 796e 6364 2053 6572 7669  _timesyncd Servi
│ │ │ -00275840: 6365 202d 2045 6e73 7572 6520 7379 7374  ce - Ensure syst
│ │ │ -00275850: 656d 642d 7469 6d65 7379 6e63 642e 7365  emd-timesyncd.se
│ │ │ -00275860: 7276 6963 6520 6973 0a20 2020 2020 204d  rvice is.      M
│ │ │ -00275870: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00275880: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00275890: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -002758a0: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ -002758b0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -002758c0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -002758d0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002758e0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -002758f0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00275900: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -00275910: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00275920: 6561 7263 6828 2273 7973 7465 6d64 2d74  earch("systemd-t
│ │ │ -00275930: 696d 6573 796e 6364 2e73 6572 7669 6365  imesyncd.service
│ │ │ -00275940: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00275950: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00275960: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00275970: 202d 2073 7973 7465 6d64 2d74 696d 6573   - systemd-times
│ │ │ -00275980: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ -00275990: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002759a0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002759b0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002759c0: 6669 6c65 7320 7379 7374 656d 642d 7469  files systemd-ti
│ │ │ -002759d0: 6d65 7379 6e63 642e 736f 636b 6574 0a20  mesyncd.socket. 
│ │ │ -002759e0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002759f0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00275a00: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00275a10: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -00275a20: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -00275a30: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00275a40: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00275a50: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00275a60: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00275a70: 7361 626c 6520 7379 7374 656d 645f 7469  sable systemd_ti
│ │ │ -00275a80: 6d65 7379 6e63 6420 5365 7276 6963 6520  mesyncd Service 
│ │ │ -00275a90: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -00275aa0: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ -00275ab0: 6364 0a20 2020 2061 6e73 6962 6c65 2e62  cd.    ansible.b
│ │ │ -00275ac0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00275ad0: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ -00275ae0: 656d 642d 7469 6d65 7379 6e63 642e 736f  emd-timesyncd.so
│ │ │ -00275af0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00275b00: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00275b10: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00275b20: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00275b30: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00275b40: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -00275b50: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00275b60: 6561 7263 6828 2273 7973 7465 6d64 2d74  earch("systemd-t
│ │ │ -00275b70: 696d 6573 796e 6364 2e73 6f63 6b65 7422  imesyncd.socket"
│ │ │ -00275b80: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00275b90: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -00275ba0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00275bb0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00275bc0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00275bd0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00275be0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00275bf0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00275c00: 2d20 7365 7276 6963 655f 7469 6d65 7379  - service_timesy
│ │ │ -00275c10: 6e63 645f 6469 7361 626c 6564 0a20 202d  ncd_disabled.  -
│ │ │ -00275c20: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00275c30: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ -00275c40: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ -00275c50: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00275c60: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ -00275c70: 2722 7379 7374 656d 642d 7469 6d65 7379  '"systemd-timesy
│ │ │ -00275c80: 6e63 6422 2069 6e20 616e 7369 626c 655f  ncd" in ansible_
│ │ │ -00275c90: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00275080: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +00275090: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ +00275130: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002751d0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002751e0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002751f0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00275200: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00275210: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00275220: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00275230: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00275240: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00275250: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00275260: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00275270: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00275280: 202d 2073 6572 7669 6365 5f74 696d 6573   - service_times
│ │ │ +00275290: 796e 6364 5f64 6973 6162 6c65 640a 0a2d  yncd_disabled..-
│ │ │ +002752a0: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +002752b0: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +002752c0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +002752d0: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ +002752e0: 6d64 2d74 696d 6573 796e 6364 0a20 2062  md-timesyncd.  b
│ │ │ +002752f0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +00275300: 2044 6973 6162 6c65 2073 7973 7465 6d64   Disable systemd
│ │ │ +00275310: 5f74 696d 6573 796e 6364 2053 6572 7669  _timesyncd Servi
│ │ │ +00275320: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00275330: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00275340: 6573 656e 7420 696e 0a20 2020 2020 2074  esent in.      t
│ │ │ +00275350: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00275360: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00275370: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00275380: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00275390: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +002753a0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +002753b0: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002753c0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002753d0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002753e0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002753f0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00275400: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00275410: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00275420: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00275430: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +00275440: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +00275450: 7375 7265 2073 7973 7465 6d64 2d74 696d  sure systemd-tim
│ │ │ +00275460: 6573 796e 6364 2e73 6572 7669 6365 2069  esyncd.service i
│ │ │ +00275470: 730a 2020 2020 2020 4d61 736b 6564 0a20  s.      Masked. 
│ │ │ +00275480: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00275490: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002754a0: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ +002754b0: 7469 6d65 7379 6e63 642e 7365 7276 6963  timesyncd.servic
│ │ │ +002754c0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +002754d0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +002754e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002754f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00275500: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00275510: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00275520: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00275530: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +00275540: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00275550: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00275560: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00275570: 6574 2045 7869 7374 7320 2d20 7379 7374  et Exists - syst
│ │ │ +00275580: 656d 642d 7469 6d65 7379 6e63 642e 736f  emd-timesyncd.so
│ │ │ +00275590: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +002755a0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +002755b0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +002755c0: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ +002755d0: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ +002755e0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +002755f0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00275600: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00275610: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00275620: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00275630: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00275640: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00275650: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00275660: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00275670: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +00275680: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +00275690: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +002756a0: 6c65 2053 6f63 6b65 7420 7379 7374 656d  le Socket system
│ │ │ +002756b0: 642d 7469 6d65 7379 6e63 640a 2020 2020  d-timesyncd.    
│ │ │ +002756c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002756d0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002756e0: 616d 653a 2073 7973 7465 6d64 2d74 696d  ame: systemd-tim
│ │ │ +002756f0: 6573 796e 6364 2e73 6f63 6b65 740a 2020  esyncd.socket.  
│ │ │ +00275700: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00275710: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +00275720: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +00275730: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00275740: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00275750: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00275760: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00275770: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +00275780: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +00275790: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +002757a0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +002757b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002757c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002757d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002757e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +002757f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00275800: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00275810: 6365 5f74 696d 6573 796e 6364 5f64 6973  ce_timesyncd_dis
│ │ │ +00275820: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00275830: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00275840: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00275850: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00275860: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00275870: 6765 7327 0a20 202d 2027 2273 7973 7465  ges'.  - '"syste
│ │ │ +00275880: 6d64 2d74 696d 6573 796e 6364 2220 696e  md-timesyncd" in
│ │ │ +00275890: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +002758a0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +002758b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00275960: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00275970: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00275980: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00275120: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00275150: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00275160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002751a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002751b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00275a20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00275a40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00275a70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00275a00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00275a10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00275a30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00275a50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00275a60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00275ab0: 2064 6973 6162 6c65 5f73 7973 7465 6d64 disable_systemd │ │ │ +00275ac0: 2d74 696d 6573 796e 6364 0a0a 636c 6173 -timesyncd..clas │ │ │ +00275ad0: 7320 6469 7361 626c 655f 7379 7374 656d s disable_system │ │ │ +00275ae0: 642d 7469 6d65 7379 6e63 6420 7b0a 2020 d-timesyncd {. │ │ │ +00275af0: 7365 7276 6963 6520 7b27 7379 7374 656d service {'system │ │ │ +00275b00: 642d 7469 6d65 7379 6e63 6427 3a0a 2020 d-timesyncd':. │ │ │ +00275b10: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00275b20: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00275b30: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00275b40: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00275b50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +00275c00: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00275c10: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00275c20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00275c60: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00275c70: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00275c80: 0a6d 6173 6b65 6420 3d20 5b22 7379 7374  .masked = ["syst
│ │ │ +00275c90: 656d 642d 7469 6d65 7379 6e63 6422 5d0a  emd-timesyncd"].
│ │ │  00275ca0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -0027d2f0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0027d300: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0027d310: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027d320: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027d330: 7365 2220 6964 3d22 6964 3130 3432 223e se" id="id1042"> │ │ │ -0027d340: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0027d3b0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0027d3d0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0027d400: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0027d390: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0027d3a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0027d3e0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0027d3f0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

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

│ │ │ -0027d6a0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0027d6b0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0027d6c0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0027d6d0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0027d6e0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0027d6f0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0027d700: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0027d710: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0027d720: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0027d730: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -0027d740: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -0027d750: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -0027d760: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0027d770: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0027d780: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0027d790: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0027d7a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0027d7b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0027d7c0: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ -0027d7d0: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -0027d7e0: 556e 696e 7374 616c 6c20 7869 6e65 7464  Uninstall xinetd
│ │ │ -0027d7f0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -0027d800: 2078 696e 6574 6420 6973 2072 656d 6f76   xinetd is remov
│ │ │ -0027d810: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0027d820: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0027d830: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ -0027d840: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0027d850: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -0027d860: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0027d870: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0027d880: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0027d890: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0027d8a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0027d8b0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0027d8c0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0027d8d0: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -0027d8e0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0027d8f0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0027d900: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0027d910: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0027d920: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0027d930: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0027d940: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0027d950: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0027d960: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ -0027d970: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +0027d310: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ -0027d620: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0027d630: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0027d670: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0027d680: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0027d3b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0027d3d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0027d400: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0027d390: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0027d3a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0027d3c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0027d3e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0027d3f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0027d430: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0027d440: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0027d450: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0027d460: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0027d470: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0027d480: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0027d490: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0027d4a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0027d4b0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +0027d4c0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +0027d4d0: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +0027d4e0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0027d4f0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +0027d500: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0027d510: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0027d520: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0027d530: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +0027d540: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0027d550: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0027d560: 5f78 696e 6574 645f 7265 6d6f 7665 640a _xinetd_removed. │ │ │ +0027d570: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +0027d580: 616c 6c20 7869 6e65 7464 2050 6163 6b61 all xinetd Packa │ │ │ +0027d590: 6765 3a20 456e 7375 7265 2078 696e 6574 ge: Ensure xinet │ │ │ +0027d5a0: 6420 6973 2072 656d 6f76 6564 270a 2020 d is removed'. │ │ │ +0027d5b0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0027d5c0: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +0027d5d0: 653a 2078 696e 6574 640a 2020 2020 7374 e: xinetd. st │ │ │ +0027d5e0: 6174 653a 2061 6273 656e 740a 2020 7768 ate: absent. wh │ │ │ +0027d5f0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +0027d600: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +0027d610: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +0027d620: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0027d630: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0027d640: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0027d650: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +0027d660: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +0027d670: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ +0027d680: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +0027d690: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ +0027d6a0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0027d6b0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0027d6c0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0027d6d0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ +0027d6e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +0027d6f0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +0027d700: 7869 6e65 7464 5f72 656d 6f76 6564 0a3c xinetd_removed.< │ │ │ +0027d710: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
│ │ │ +0027d7c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0027d7d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +0027d8b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027d8c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0027d910: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0027d920: 7869 6e65 7464 0a0a 636c 6173 7320 7265  xinetd..class re
│ │ │ +0027d930: 6d6f 7665 5f78 696e 6574 6420 7b0a 2020  move_xinetd {.  
│ │ │ +0027d940: 7061 636b 6167 6520 7b20 2778 696e 6574  package { 'xinet
│ │ │ +0027d950: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +0027d960: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0027d970: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remed
│ │ │ -0027ee00: 6961 7469 6f6e 204f 5342 7569 6c64 2042  iation OSBuild B
│ │ │ -0027ee10: 6c75 6570 7269 6e74 2073 6e69 7070 6574  lueprint snippet
│ │ │ -0027ee20: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
.[custom │ │ │ -0027ee70: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -0027ee80: 735d 0a6d 6173 6b65 6420 3d20 5b22 7869 s].masked = ["xi │ │ │ -0027ee90: 6e65 7464 225d 0a3c 2f63 6f64 653e 3c2f netd"].
Remediat │ │ │ -0027ef50: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0027ef60: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0027efa0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0027efb0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0027efc0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0027efd0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0027efe0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0027f070: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -0027f080: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0027d890: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0027d8a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0027d8e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0027d8f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0027eff0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0027f000: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0027f040: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0027f050: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -0027f0a0: 6973 6162 6c65 5f78 696e 6574 640a 0a63  isable_xinetd..c
│ │ │ -0027f0b0: 6c61 7373 2064 6973 6162 6c65 5f78 696e  lass disable_xin
│ │ │ -0027f0c0: 6574 6420 7b0a 2020 7365 7276 6963 6520  etd {.  service 
│ │ │ -0027f0d0: 7b27 7869 6e65 7464 273a 0a20 2020 2065  {'xinetd':.    e
│ │ │ -0027f0e0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0027f0f0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0027f100: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0027f110: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -0027f1d0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0027f1e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0027f260: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0027f270: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027f280: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0027f2c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027f2d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027f2f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027f300: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0027f320: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0027f330: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0027f340: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0027f350: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0027f360: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0027f370: 3137 312d 332e 342e 370a 2020 2d20 4e49  171-3.4.7.  - NI
│ │ │ -0027f380: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0027f390: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0027f3a0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0027f3b0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0027f3c0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0027f3d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0027f3e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0027f3f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0027f400: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0027f410: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0027f420: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0027f430: 655f 7869 6e65 7464 5f64 6973 6162 6c65  e_xinetd_disable
│ │ │ -0027f440: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0027f450: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ -0027f460: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0027f470: 6963 6520 7869 6e65 7464 0a20 2062 6c6f  ice xinetd.  blo
│ │ │ -0027f480: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -0027f490: 6973 6162 6c65 2078 696e 6574 6420 5365  isable xinetd Se
│ │ │ -0027f4a0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0027f4b0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0027f4c0: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0027f4d0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0027f4e0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0027f4f0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0027f500: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0027f510: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0027f520: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0027f530: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0027f540: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0027f550: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0027f560: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0027f570: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0027f580: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0027f590: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0027f5a0: 206e 616d 653a 2044 6973 6162 6c65 2078   name: Disable x
│ │ │ -0027f5b0: 696e 6574 6420 5365 7276 6963 6520 2d20  inetd Service - 
│ │ │ -0027f5c0: 456e 7375 7265 2078 696e 6574 642e 7365  Ensure xinetd.se
│ │ │ -0027f5d0: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0027f5e0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0027f5f0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0027f600: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ -0027f610: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0027f620: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027f630: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0027f640: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0027f650: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027f660: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0027f670: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027f680: 6172 6368 2822 7869 6e65 7464 2e73 6572  arch("xinetd.ser
│ │ │ -0027f690: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0027f6a0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0027f6b0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0027f6c0: 6973 7473 202d 2078 696e 6574 642e 736f  ists - xinetd.so
│ │ │ -0027f6d0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0027f6e0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0027f6f0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0027f700: 6973 742d 756e 6974 2d66 696c 6573 2078  ist-unit-files x
│ │ │ -0027f710: 696e 6574 642e 736f 636b 6574 0a20 2020  inetd.socket.   
│ │ │ -0027f720: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0027f730: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0027f740: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0027f750: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0027f760: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0027f770: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0027f780: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0027f790: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0027f7a0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0027f7b0: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ -0027f7c0: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0027f7d0: 6b65 7420 7869 6e65 7464 0a20 2020 2061  ket xinetd.    a
│ │ │ -0027f7e0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0027f7f0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0027f800: 6d65 3a20 7869 6e65 7464 2e73 6f63 6b65  me: xinetd.socke
│ │ │ -0027f810: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0027f820: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0027f830: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0027f840: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0027f850: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0027f860: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0027f870: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0027f880: 6368 2822 7869 6e65 7464 2e73 6f63 6b65  ch("xinetd.socke
│ │ │ -0027f890: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -0027f8a0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -0027f8b0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -0027f8c0: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -0027f8d0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0027f8e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0027f8f0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0027f900: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0027f910: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0027f920: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0027f930: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0027f940: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0027f950: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0027f960: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0027f970: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -0027f980: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -0027f990: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -0027f9a0: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -0027f9b0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0027f9c0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0027f9d0: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Com │ │ │ +0027eea0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027eed0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027eef0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027ef00: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027ef20: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0027ef30: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0027ef50: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0027ef60: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0027ef70: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0027ef80: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0027ef90: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0027efa0: 2d38 3030 2d31 3731 2d33 2e34 2e37 0a20  -800-171-3.4.7. 
│ │ │ +0027efb0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027efc0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0027efd0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0027efe0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027eff0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0027f000: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0027f010: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0027f020: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0027f030: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0027f040: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0027f050: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0027f060: 6572 7669 6365 5f78 696e 6574 645f 6469  ervice_xinetd_di
│ │ │ +0027f070: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +0027f080: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ +0027f090: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0027f0a0: 2073 6572 7669 6365 2078 696e 6574 640a   service xinetd.
│ │ │ +0027f0b0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0027f0c0: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ +0027f0d0: 7464 2053 6572 7669 6365 202d 2043 6f6c  td Service - Col
│ │ │ +0027f0e0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0027f0f0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0027f100: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0027f110: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027f120: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0027f130: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0027f140: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0027f150: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0027f160: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0027f170: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0027f180: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0027f190: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0027f1a0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0027f1b0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0027f1c0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0027f1d0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0027f1e0: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ +0027f1f0: 6365 202d 2045 6e73 7572 6520 7869 6e65  ce - Ensure xine
│ │ │ +0027f200: 7464 2e73 6572 7669 6365 2069 7320 4d61  td.service is Ma
│ │ │ +0027f210: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0027f220: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0027f230: 3a0a 2020 2020 2020 6e61 6d65 3a20 7869  :.      name: xi
│ │ │ +0027f240: 6e65 7464 2e73 6572 7669 6365 0a20 2020  netd.service.   
│ │ │ +0027f250: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0027f260: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +0027f270: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +0027f280: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0027f290: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0027f2a0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0027f2b0: 6973 2073 6561 7263 6828 2278 696e 6574  is search("xinet
│ │ │ +0027f2c0: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +0027f2d0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +0027f2e0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +0027f2f0: 6574 2045 7869 7374 7320 2d20 7869 6e65  et Exists - xine
│ │ │ +0027f300: 7464 2e73 6f63 6b65 740a 2020 2020 616e  td.socket.    an
│ │ │ +0027f310: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0027f320: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0027f330: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0027f340: 6c65 7320 7869 6e65 7464 2e73 6f63 6b65  les xinetd.socke
│ │ │ +0027f350: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0027f360: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0027f370: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0027f380: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0027f390: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0027f3a0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0027f3b0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0027f3c0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0027f3d0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0027f3e0: 2044 6973 6162 6c65 2078 696e 6574 6420   Disable xinetd 
│ │ │ +0027f3f0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +0027f400: 6520 536f 636b 6574 2078 696e 6574 640a  e Socket xinetd.
│ │ │ +0027f410: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0027f420: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0027f430: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ +0027f440: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027f450: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027f460: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027f470: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027f480: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027f490: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027f4a0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027f4b0: 2073 6561 7263 6828 2278 696e 6574 642e   search("xinetd.
│ │ │ +0027f4c0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0027f4d0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0027f4e0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +0027f4f0: 312d 332e 342e 370a 2020 2d20 4e49 5354  1-3.4.7.  - NIST
│ │ │ +0027f500: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0027f510: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0027f520: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0027f530: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0027f540: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0027f550: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0027f560: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027f570: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0027f580: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0027f590: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0027f5a0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0027f5b0: 7869 6e65 7464 5f64 6973 6162 6c65 640a  xinetd_disabled.
│ │ │ +0027f5c0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0027f5d0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0027f5e0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0027f5f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0027f600: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +0027f6c0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0027f6d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +0027f760: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0027f790: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0027f7b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0027f7c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0027f7e0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0027f800: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0027f810: 6465 2064 6973 6162 6c65 5f78 696e 6574  de disable_xinet
│ │ │ +0027f820: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +0027f830: 5f78 696e 6574 6420 7b0a 2020 7365 7276  _xinetd {.  serv
│ │ │ +0027f840: 6963 6520 7b27 7869 6e65 7464 273a 0a20  ice {'xinetd':. 
│ │ │ +0027f850: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0027f860: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +0027f870: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +0027f880: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0027f890: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0027f940: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0027f950: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0027f960: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0027f9b0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0027f9c0: 5d0a 6d61 736b 6564 203d 205b 2278 696e  ].masked = ["xin
│ │ │ +0027f9d0: 6574 6422 5d0a 3c2f 636f 6465 3e3c 2f70  etd"].

< │ │ │ 0027f9f0: 2f74 643e 3c2f 7472 3e3c 2f74 626f 6479 /td>Remediation │ │ │ -00280ff0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00281000: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00281090: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002810b0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002810c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002810d0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002810e0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00281100: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00281130: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00281140: 6d6f 7665 5f79 7073 6572 760a 0a63 6c61  move_ypserv..cla
│ │ │ -00281150: 7373 2072 656d 6f76 655f 7970 7365 7276  ss remove_ypserv
│ │ │ -00281160: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00281170: 7970 7365 7276 273a 0a20 2020 2065 6e73  ypserv':.    ens
│ │ │ -00281180: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00281190: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00281250: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00281260: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002812f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00281320: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00281340: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00281350: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00281370: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00281380: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002813a0: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2079  me: 'Uninstall y
│ │ │ -002813b0: 7073 6572 7620 5061 636b 6167 653a 2045  pserv Package: E
│ │ │ -002813c0: 6e73 7572 6520 7970 7365 7276 2069 7320  nsure ypserv is 
│ │ │ -002813d0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002813e0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002813f0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7970  ge:.    name: yp
│ │ │ -00281400: 7365 7276 0a20 2020 2073 7461 7465 3a20  serv.    state: 
│ │ │ -00281410: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -00281420: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00281430: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00281440: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00281450: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00281460: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ -00281470: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ -00281480: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00281490: 712d 322e 322e 320a 2020 2d20 5043 492d  q-2.2.2.  - PCI-
│ │ │ -002814a0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002814b0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -002814c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002814d0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -002814e0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -002814f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00281500: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00281510: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00281520: 2020 2d20 7061 636b 6167 655f 7970 7365    - package_ypse
│ │ │ -00281530: 7276 5f72 656d 6f76 6564 0a3c 2f63 6f64  rv_removed.
< │ │ │ +00281080: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00281090: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002810b0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002810c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002810e0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00281100: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00281130: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00281140: 6e69 6e73 7461 6c6c 2079 7073 6572 7620  ninstall ypserv 
│ │ │ +00281150: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00281160: 7970 7365 7276 2069 7320 7265 6d6f 7665  ypserv is remove
│ │ │ +00281170: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00281180: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00281190: 2020 6e61 6d65 3a20 7970 7365 7276 0a20    name: ypserv. 
│ │ │ +002811a0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +002811b0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +002811c0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +002811d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002811e0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002811f0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00281200: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00281210: 2d49 412d 3528 3129 2863 290a 2020 2d20  -IA-5(1)(c).  - 
│ │ │ +00281220: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +00281230: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00281240: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00281250: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +00281260: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00281270: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +00281280: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00281290: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002812a0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002812b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002812c0: 636b 6167 655f 7970 7365 7276 5f72 656d  ckage_ypserv_rem
│ │ │ +002812d0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +00281390: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002813a0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00281420: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00281430: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00281450: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00281460: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00281480: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002814a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002814d0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +002814e0: 656d 6f76 655f 7970 7365 7276 0a0a 636c  emove_ypserv..cl
│ │ │ +002814f0: 6173 7320 7265 6d6f 7665 5f79 7073 6572  ass remove_ypser
│ │ │ +00281500: 7620 7b0a 2020 7061 636b 6167 6520 7b20  v {.  package { 
│ │ │ +00281510: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ +00281520: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00281530: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Re │ │ │ -002820e0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002820f0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00282100: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00282110: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00282120: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00282130: 7365 2220 6964 3d22 6964 3130 3534 223e se" id="id1054"> │ │ │ -00282140: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00282150: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00282160: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00282170: 2279 7073 6572 7622 5d0a 3c2f 636f 6465  "ypserv"].
Remed │ │ │ -00282230: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00282240: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002822d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002822e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00282300: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00282320: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00282330: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00282370: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00282380: 6520 6469 7361 626c 655f 7970 7365 7276 e disable_ypserv │ │ │ -00282390: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -002823a0: 7970 7365 7276 207b 0a20 2073 6572 7669 ypserv {. servi │ │ │ -002823b0: 6365 207b 2779 7073 6572 7627 3a0a 2020 ce {'ypserv':. │ │ │ -002823c0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -002823d0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -002823e0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -002823f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00282400: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -002824b0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002824c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002824d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00282570: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00282590: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002825c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00282550: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00282560: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00282580: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002825a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002825b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002825f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00282600: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00282610: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00282620: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00282630: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00282640: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -00282650: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00282660: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00282670: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00282680: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00282690: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -002826a0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ -002826b0: 7276 6963 655f 7970 7365 7276 5f64 6973 rvice_ypserv_dis │ │ │ -002826c0: 6162 6c65 640a 0a2d 206e 616d 653a 2044 abled..- name: D │ │ │ -002826d0: 6973 6162 6c65 2079 7073 6572 7620 5365 isable ypserv Se │ │ │ -002826e0: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -002826f0: 7365 7276 6963 6520 7970 7365 7276 0a20 service ypserv. │ │ │ -00282700: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -00282710: 653a 2044 6973 6162 6c65 2079 7073 6572 e: Disable ypser │ │ │ -00282720: 7620 5365 7276 6963 6520 2d20 436f 6c6c v Service - Coll │ │ │ -00282730: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ -00282740: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ -00282750: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ -00282760: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -00282770: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -00282780: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -00282790: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ -002827a0: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ -002827b0: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -002827c0: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -002827d0: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -002827e0: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ -002827f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -00282800: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -00282810: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -00282820: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -00282830: 6c65 2079 7073 6572 7620 5365 7276 6963 le ypserv Servic │ │ │ -00282840: 6520 2d20 456e 7375 7265 2079 7073 6572 e - Ensure ypser │ │ │ -00282850: 762e 7365 7276 6963 6520 6973 204d 6173 v.service is Mas │ │ │ -00282860: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ -00282870: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -00282880: 0a20 2020 2020 206e 616d 653a 2079 7073 . name: yps │ │ │ -00282890: 6572 762e 7365 7276 6963 650a 2020 2020 erv.service. │ │ │ -002828a0: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -002828b0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -002828c0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -002828d0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002828e0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -002828f0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -00282900: 7320 7365 6172 6368 2822 7970 7365 7276 s search("ypserv │ │ │ -00282910: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ -00282920: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ -00282930: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ -00282940: 7420 4578 6973 7473 202d 2079 7073 6572 t Exists - ypser │ │ │ -00282950: 762e 736f 636b 6574 0a20 2020 2061 6e73 v.socket. ans │ │ │ -00282960: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00282970: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00282980: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -00282990: 6573 2079 7073 6572 762e 736f 636b 6574 es ypserv.socket │ │ │ -002829a0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -002829b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -002829c0: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -002829d0: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -002829e0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ -002829f0: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ -00282a00: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -00282a10: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -00282a20: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -00282a30: 4469 7361 626c 6520 7970 7365 7276 2053 Disable ypserv S │ │ │ -00282a40: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -00282a50: 2053 6f63 6b65 7420 7970 7365 7276 0a20 Socket ypserv. │ │ │ -00282a60: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00282a70: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -00282a80: 2020 6e61 6d65 3a20 7970 7365 7276 2e73 name: ypserv.s │ │ │ -00282a90: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ -00282aa0: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -00282ab0: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -00282ac0: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -00282ad0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ -00282ae0: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ -00282af0: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00282b00: 7365 6172 6368 2822 7970 7365 7276 2e73 search("ypserv.s │ │ │ -00282b10: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ -00282b20: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ -00282b30: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -00282b40: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00282b50: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00282b60: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00282b70: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00282b80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00282b90: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -00282ba0: 7970 7365 7276 5f64 6973 6162 6c65 640a ypserv_disabled. │ │ │ -00282bb0: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ -00282bc0: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ -00282bd0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -00282be0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00282bf0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
│ │ │ +00282190: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00282230: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00282240: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00282250: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00282260: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00282270: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00282280: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00282290: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002822a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002822b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002822c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002822d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002822e0: 202d 2073 6572 7669 6365 5f79 7073 6572   - service_ypser
│ │ │ +002822f0: 765f 6469 7361 626c 6564 0a0a 2d20 6e61  v_disabled..- na
│ │ │ +00282300: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +00282310: 7276 2053 6572 7669 6365 202d 2044 6973  rv Service - Dis
│ │ │ +00282320: 6162 6c65 2073 6572 7669 6365 2079 7073  able service yps
│ │ │ +00282330: 6572 760a 2020 626c 6f63 6b3a 0a0a 2020  erv.  block:..  
│ │ │ +00282340: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00282350: 7970 7365 7276 2053 6572 7669 6365 202d  ypserv Service -
│ │ │ +00282360: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +00282370: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +00282380: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00282390: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002823a0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002823b0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002823c0: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +002823d0: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002823e0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002823f0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +00282400: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +00282410: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +00282420: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +00282430: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00282440: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00282450: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00282460: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +00282470: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00282480: 7970 7365 7276 2e73 6572 7669 6365 2069  ypserv.service i
│ │ │ +00282490: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +002824a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +002824b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +002824c0: 3a20 7970 7365 7276 2e73 6572 7669 6365  : ypserv.service
│ │ │ +002824d0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002824e0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +002824f0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00282500: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00282510: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00282520: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00282530: 6e65 7320 6973 2073 6561 7263 6828 2279  nes is search("y
│ │ │ +00282540: 7073 6572 762e 7365 7276 6963 6522 2c20  pserv.service", 
│ │ │ +00282550: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00282560: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00282570: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00282580: 7970 7365 7276 2e73 6f63 6b65 740a 2020  ypserv.socket.  
│ │ │ +00282590: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002825a0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002825b0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002825c0: 742d 6669 6c65 7320 7970 7365 7276 2e73  t-files ypserv.s
│ │ │ +002825d0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002825e0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002825f0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00282600: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00282610: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00282620: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00282630: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00282640: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00282650: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00282660: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ +00282670: 6572 7620 5365 7276 6963 6520 2d20 4469  erv Service - Di
│ │ │ +00282680: 7361 626c 6520 536f 636b 6574 2079 7073  sable Socket yps
│ │ │ +00282690: 6572 760a 2020 2020 616e 7369 626c 652e  erv.    ansible.
│ │ │ +002826a0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002826b0: 0a20 2020 2020 206e 616d 653a 2079 7073  .      name: yps
│ │ │ +002826c0: 6572 762e 736f 636b 6574 0a20 2020 2020  erv.socket.     
│ │ │ +002826d0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002826e0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002826f0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +00282700: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00282710: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00282720: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +00282730: 7320 6973 2073 6561 7263 6828 2279 7073  s is search("yps
│ │ │ +00282740: 6572 762e 736f 636b 6574 222c 206d 756c  erv.socket", mul
│ │ │ +00282750: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00282760: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00282770: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00282780: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00282790: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002827a0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002827b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002827c0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002827d0: 7669 6365 5f79 7073 6572 765f 6469 7361  vice_ypserv_disa
│ │ │ +002827e0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002827f0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00282800: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +00282810: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00282820: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00282830: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002828f0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00282900: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00282180: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002821b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002821c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00282200: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00282210: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +002829d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002829e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00282a30: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00282a40: 7970 7365 7276 0a0a 636c 6173 7320 6469  ypserv..class di
│ │ │ +00282a50: 7361 626c 655f 7970 7365 7276 207b 0a20  sable_ypserv {. 
│ │ │ +00282a60: 2073 6572 7669 6365 207b 2779 7073 6572   service {'ypser
│ │ │ +00282a70: 7627 3a0a 2020 2020 656e 6162 6c65 203d  v':.    enable =
│ │ │ +00282a80: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00282a90: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00282aa0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +00282b60: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00282b70: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00282b80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00282b90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +00282bd0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00282be0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +00282bf0: 5b22 7970 7365 7276 225d 0a3c 2f63 6f64  ["ypserv"].
low
Disru │ │ │ +002829b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002829c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00282a00: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00282a10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Rem │ │ │ -00283b80: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00283b90: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00283ba0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00283c40: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00283c90: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00283cd0: 636c 7564 6520 7265 6d6f 7665 5f72 7368  clude remove_rsh
│ │ │ -00283ce0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ -00283cf0: 7368 207b 0a20 2070 6163 6b61 6765 207b  sh {.  package {
│ │ │ -00283d00: 2027 7273 6827 3a0a 2020 2020 656e 7375   'rsh':.    ensu
│ │ │ -00283d10: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00283d20: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00283d30: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00283de0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00283df0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Co │ │ │ -00283c20: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00283c50: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00283c70: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00283c80: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00283ca0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00283cb0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -00283e80: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00283e90: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00283eb0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00283ed0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00283ee0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00283f20: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00283f30: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ -00283f40: 6820 5061 636b 6167 653a 2045 6e73 7572  h Package: Ensur
│ │ │ -00283f50: 6520 7273 6820 6973 2072 656d 6f76 6564  e rsh is removed
│ │ │ -00283f60: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00283f70: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00283f80: 206e 616d 653a 2072 7368 0a20 2020 2073   name: rsh.    s
│ │ │ -00283f90: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00283fa0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00283fb0: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00283fc0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00283fd0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00283fe0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00283ff0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00284000: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00284010: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00284020: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00284030: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00284040: 7368 5f72 656d 6f76 6564 0a20 202d 2075  sh_removed.  - u
│ │ │ -00284050: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00283b80: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00283b90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00283ba0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +00283c30: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00283c40: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00283c90: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00283cd0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00283ce0: 2072 7368 2050 6163 6b61 6765 3a20 456e   rsh Package: En
│ │ │ +00283cf0: 7375 7265 2072 7368 2069 7320 7265 6d6f  sure rsh is remo
│ │ │ +00283d00: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00283d10: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00283d20: 2020 2020 6e61 6d65 3a20 7273 680a 2020      name: rsh.  
│ │ │ +00283d30: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00283d40: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00283d50: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +00283d60: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00283d70: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00283d80: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +00283d90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00283da0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00283db0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00283dc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00283dd0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00283de0: 655f 7273 685f 7265 6d6f 7665 640a 2020  e_rsh_removed.  
│ │ │ +00283df0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00283e00: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00283e10: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +00283ec0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00283ed0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ +00283fa0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +00283c20: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00283c50: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00283c60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00283ca0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00283cb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00283f60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00283f80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00283fd0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00283fe0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00284010: 6f76 655f 7273 680a 0a63 6c61 7373 2072  ove_rsh..class r
│ │ │ +00284020: 656d 6f76 655f 7273 6820 7b0a 2020 7061  emove_rsh {.  pa
│ │ │ +00284030: 636b 6167 6520 7b20 2772 7368 273a 0a20  ckage { 'rsh':. 
│ │ │ +00284040: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00284050: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00284060: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -00286180: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00286190: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002861a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002861b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002861c0: 7365 2220 6964 3d22 6964 3130 3633 223e se" id="id1063"> │ │ │ -002861d0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00286240: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00286260: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00286290: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00286220: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00286230: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00286270: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00286280: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

Remedia │ │ │ -002863e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002863f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00286400: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002864a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002864c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002864f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00286480: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00286490: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002864b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002864d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002864e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00286520: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00286530: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ -00286540: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ -00286550: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ -00286560: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00286570: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00286580: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ -00286590: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -002865a0: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ -002865b0: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ -002865c0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ -002865d0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -002865e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -002865f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -00286600: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -00286610: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -00286620: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00286630: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ -00286640: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
│ │ │ +002861a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00286240: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00286260: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00286290: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00286220: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00286230: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00286250: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00286270: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00286280: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +002862c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002862d0: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ +002862e0: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ +002862f0: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ +00286300: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +00286310: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +00286320: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ +00286330: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +00286340: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ +00286350: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ +00286360: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ +00286370: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +00286380: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00286390: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +002863a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +002863b0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +002863c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +002863d0: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ +002863e0: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
Remed │ │ │ +002864a0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002864b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +00286540: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00286550: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00286570: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00286590: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002865a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002865e0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002865f0: 7564 6520 7265 6d6f 7665 5f74 616c 6b0a  ude remove_talk.
│ │ │ +00286600: 0a63 6c61 7373 2072 656d 6f76 655f 7461  .class remove_ta
│ │ │ +00286610: 6c6b 207b 0a20 2070 6163 6b61 6765 207b  lk {.  package {
│ │ │ +00286620: 2027 7461 6c6b 273a 0a20 2020 2065 6e73   'talk':.    ens
│ │ │ +00286630: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00286640: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -002875e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002875f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00287600: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002876a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002876c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002876f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00287680: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00287690: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002876b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002876d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002876e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00287720: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00287730: 6465 2072 656d 6f76 655f 696e 6574 7574 de remove_inetut │ │ │ -00287740: 696c 732d 7465 6c6e 6574 0a0a 636c 6173 ils-telnet..clas │ │ │ -00287750: 7320 7265 6d6f 7665 5f69 6e65 7475 7469 s remove_inetuti │ │ │ -00287760: 6c73 2d74 656c 6e65 7420 7b0a 2020 7061 ls-telnet {. pa │ │ │ -00287770: 636b 6167 6520 7b20 2769 6e65 7475 7469 ckage { 'inetuti │ │ │ -00287780: 6c73 2d74 656c 6e65 7427 3a0a 2020 2020 ls-telnet':. │ │ │ -00287790: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -002877a0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ -002877c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00287860: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00287870: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00287910: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002879b0: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -002879c0: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ -002879d0: 6e73 7572 6520 696e 6574 7574 696c 732d  nsure inetutils-
│ │ │ -002879e0: 7465 6c6e 6574 2069 7320 7265 6d6f 7665  telnet is remove
│ │ │ -002879f0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -00287a00: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -00287a10: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ -00287a20: 732d 7465 6c6e 6574 0a20 2020 2073 7461  s-telnet.    sta
│ │ │ -00287a30: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00287a40: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00287a50: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00287a60: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00287a70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00287a80: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00287a90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00287aa0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00287ab0: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00287ac0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002875e0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +002875f0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ -00287900: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00287930: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00287940: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00287980: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00287990: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00287680: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00287690: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002876b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002876d0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002876e0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00287720: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00287730: 653a 2027 5265 6d6f 7665 2074 656c 6e65  e: 'Remove telne
│ │ │ +00287740: 7420 436c 6965 6e74 733a 2045 6e73 7572  t Clients: Ensur
│ │ │ +00287750: 6520 696e 6574 7574 696c 732d 7465 6c6e  e inetutils-teln
│ │ │ +00287760: 6574 2069 7320 7265 6d6f 7665 6427 0a20  et is removed'. 
│ │ │ +00287770: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00287780: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00287790: 6d65 3a20 696e 6574 7574 696c 732d 7465  me: inetutils-te
│ │ │ +002877a0: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +002877b0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002877c0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002877d0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002877e0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002877f0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +00287800: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +00287810: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00287820: 2020 2d20 7061 636b 6167 655f 696e 6574    - package_inet
│ │ │ +00287830: 7574 696c 732d 7465 6c6e 6574 5f72 656d  utils-telnet_rem
│ │ │ +00287840: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +00287900: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00287910: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00287990: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002879a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002879c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002879d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002879f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00287a10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00287a40: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00287a50: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +00287a60: 7465 6c6e 6574 0a0a 636c 6173 7320 7265  telnet..class re
│ │ │ +00287a70: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ +00287a80: 656c 6e65 7420 7b0a 2020 7061 636b 6167  elnet {.  packag
│ │ │ +00287a90: 6520 7b20 2769 6e65 7475 7469 6c73 2d74  e { 'inetutils-t
│ │ │ +00287aa0: 656c 6e65 7427 3a0a 2020 2020 656e 7375  elnet':.    ensu
│ │ │ +00287ab0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00287ac0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00287ad0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Re │ │ │ -002889d0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002889e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002889f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -00288a80: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00288a90: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00288ae0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00288b20: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -00288b30: 6c6e 6574 0a0a 636c 6173 7320 7265 6d6f  lnet..class remo
│ │ │ -00288b40: 7665 5f74 656c 6e65 7420 7b0a 2020 7061  ve_telnet {.  pa
│ │ │ -00288b50: 636b 6167 6520 7b20 2774 656c 6e65 7427  ckage { 'telnet'
│ │ │ -00288b60: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00288b70: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00288b80: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00288b90: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -00288c40: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00288c50: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -00288d10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00288d20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00288a70: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00288aa0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00288ab0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00288af0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00288b00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00288ce0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00288d00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00288d30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00288d50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00288d80: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ -00288d90: 6d6f 7665 2074 656c 6e65 7420 436c 6965  move telnet Clie
│ │ │ -00288da0: 6e74 733a 2045 6e73 7572 6520 7465 6c6e  nts: Ensure teln
│ │ │ -00288db0: 6574 2069 7320 7265 6d6f 7665 6427 0a20  et is removed'. 
│ │ │ -00288dc0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00288dd0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00288de0: 6d65 3a20 7465 6c6e 6574 0a20 2020 2073  me: telnet.    s
│ │ │ -00288df0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00288e00: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00288e10: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00288e20: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00288e30: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00288e40: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00288e50: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00288e60: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00288e70: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00288e80: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00288e90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00288ea0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00288eb0: 7465 6c6e 6574 5f72 656d 6f76 6564 0a3c  telnet_removed.<
│ │ │ +002889d0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002889e0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ +00288a80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00288b20: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ +00288b30: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ +00288b40: 6e73 7572 6520 7465 6c6e 6574 2069 7320  nsure telnet is 
│ │ │ +00288b50: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00288b60: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00288b70: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +00288b80: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +00288b90: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00288ba0: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00288bb0: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ +00288bc0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00288bd0: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00288be0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00288bf0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00288c00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00288c10: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00288c20: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00288c30: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00288c40: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +00288c50: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00288c60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00288d10: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00288d20: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00288d30: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00288a70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00288aa0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00288ab0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00288af0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00288b00: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00288dd0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00288df0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00288e20: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00288db0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00288dc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00288de0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00288e00: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00288e10: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00288e50: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00288e60: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ +00288e70: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74 ..class remove_t │ │ │ +00288e80: 656c 6e65 7420 7b0a 2020 7061 636b 6167 elnet {. packag │ │ │ +00288e90: 6520 7b20 2774 656c 6e65 7427 3a0a 2020 e { 'telnet':. │ │ │ +00288ea0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +00288eb0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ 00288ec0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
Rem │ │ │ -0028a740: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0028a750: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028a760: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0028a800: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028a850: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0028a890: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ -0028a8a0: 702d 7365 7276 6572 0a0a 636c 6173 7320  p-server..class 
│ │ │ -0028a8b0: 7265 6d6f 7665 5f74 6674 702d 7365 7276  remove_tftp-serv
│ │ │ -0028a8c0: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ -0028a8d0: 2027 7466 7470 2d73 6572 7665 7227 3a0a   'tftp-server':.
│ │ │ -0028a8e0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0028a8f0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0028a900: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0028a9c0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0028a9d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -0028a7e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028a810: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028a830: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028a840: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028a860: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0028a870: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0028aa50: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0028aa70: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0028aac0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0028aaf0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0028aa60: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0028aa80: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0028aad0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0028aae0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0028ab10: 7374 616c 6c20 7466 7470 2d73 6572 7665  stall tftp-serve
│ │ │ -0028ab20: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -0028ab30: 6520 7466 7470 2d73 6572 7665 7220 6973  e tftp-server is
│ │ │ -0028ab40: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0028ab50: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0028ab60: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -0028ab70: 6674 702d 7365 7276 6572 0a20 2020 2073  ftp-server.    s
│ │ │ -0028ab80: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0028ab90: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0028aba0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0028abb0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0028abc0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0028abd0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0028abe0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0028abf0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0028ac00: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0028ac10: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0028ac20: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0028ac30: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0028ac40: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0028ac50: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0028ac60: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0028ac70: 5f74 6674 702d 7365 7276 6572 5f72 656d  _tftp-server_rem
│ │ │ -0028ac80: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +0028a760: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0028a7f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028a800: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028a850: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0028a890: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0028a8a0: 2074 6674 702d 7365 7276 6572 2050 6163   tftp-server Pac
│ │ │ +0028a8b0: 6b61 6765 3a20 456e 7375 7265 2074 6674  kage: Ensure tft
│ │ │ +0028a8c0: 702d 7365 7276 6572 2069 7320 7265 6d6f  p-server is remo
│ │ │ +0028a8d0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0028a8e0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0028a8f0: 2020 2020 6e61 6d65 3a20 7466 7470 2d73      name: tftp-s
│ │ │ +0028a900: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ +0028a910: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0028a920: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0028a930: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0028a940: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +0028a950: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0028a960: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ +0028a970: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +0028a980: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +0028a990: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0028a9a0: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +0028a9b0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +0028a9c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0028a9d0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0028a9e0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0028a9f0: 2020 2d20 7061 636b 6167 655f 7466 7470    - package_tftp
│ │ │ +0028aa00: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +0028aa10: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +0028aad0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0028aae0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +0028a7e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028a810: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028a820: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028a860: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028a870: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0028abb0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0028abc0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0028ac20: 5f74 6674 702d 7365 7276 6572 0a0a 636c  _tftp-server..cl
│ │ │ +0028ac30: 6173 7320 7265 6d6f 7665 5f74 6674 702d  ass remove_tftp-
│ │ │ +0028ac40: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ +0028ac50: 6765 207b 2027 7466 7470 2d73 6572 7665  ge { 'tftp-serve
│ │ │ +0028ac60: 7227 3a0a 2020 2020 656e 7375 7265 203d  r':.    ensure =
│ │ │ +0028ac70: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0028ac80: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Re
│ │ │ -0028be00: 6d65 6469 6174 696f 6e20 4f53 4275 696c  mediation OSBuil
│ │ │ -0028be10: 6420 426c 7565 7072 696e 7420 736e 6970  d Blueprint snip
│ │ │ -0028be20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0028be30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028be40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028be50: 7365 2220 6964 3d22 6964 3130 3739 223e se" id="id1079"> │ │ │ -0028be60: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0028be70: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0028be80: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0028be90: 2274 6674 7022 5d0a 3c2f 636f 6465 3e3c  "tftp"].<
│ │ │ -0028bea0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -0028bf50: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ -0028bf60: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0028bf70: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0028bf80: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0028bf90: 7365 2220 6964 3d22 6964 3130 3830 223e se" id="id1080"> │ │ │ -0028bfa0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0028ab90: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0028aba0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0028abe0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0028abf0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0028c010: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0028c030: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0028c060: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0028c080: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0028bff0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0028c000: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0028c040: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0028c050: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0028c0a0: 6469 7361 626c 655f 7466 7470 0a0a 636c disable_tftp..cl │ │ │ -0028c0b0: 6173 7320 6469 7361 626c 655f 7466 7470 ass disable_tftp │ │ │ -0028c0c0: 207b 0a20 2073 6572 7669 6365 207b 2774 {. service {'t │ │ │ -0028c0d0: 6674 7027 3a0a 2020 2020 656e 6162 6c65 ftp':. enable │ │ │ -0028c0e0: 203d 2667 743b 2066 616c 7365 2c0a 2020 => false,. │ │ │ -0028c0f0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -0028c100: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a stopped',. }.}. │ │ │ -0028c110: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation Ans │ │ │ -0028c1d0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0028c1e0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -0028c260: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0028c280: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0028c2d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0028c300: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0028c320: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0028c330: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0028c340: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0028c350: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0028c360: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028c370: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0028c380: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0028c390: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0028c3a0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0028c3b0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0028c3c0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0028c3d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0028c3e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0028c3f0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0028c400: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0028c410: 6963 655f 7466 7470 5f64 6973 6162 6c65  ice_tftp_disable
│ │ │ -0028c420: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0028c430: 6c65 2074 6674 7020 5365 7276 6963 6520  le tftp Service 
│ │ │ -0028c440: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0028c450: 6520 7466 7470 0a20 2062 6c6f 636b 3a0a  e tftp.  block:.
│ │ │ -0028c460: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0028c470: 6c65 2074 6674 7020 5365 7276 6963 6520  le tftp Service 
│ │ │ -0028c480: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -0028c490: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -0028c4a0: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -0028c4b0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0028c4c0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0028c4d0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0028c4e0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -0028c4f0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -0028c500: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -0028c510: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -0028c520: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0028c530: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -0028c540: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -0028c550: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -0028c560: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -0028c570: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -0028c580: 2044 6973 6162 6c65 2074 6674 7020 5365   Disable tftp Se
│ │ │ -0028c590: 7276 6963 6520 2d20 456e 7375 7265 2074  rvice - Ensure t
│ │ │ -0028c5a0: 6674 702e 7365 7276 6963 6520 6973 204d  ftp.service is M
│ │ │ -0028c5b0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0028c5c0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0028c5d0: 643a 0a20 2020 2020 206e 616d 653a 2074  d:.      name: t
│ │ │ -0028c5e0: 6674 702e 7365 7276 6963 650a 2020 2020  ftp.service.    
│ │ │ -0028c5f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0028c600: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0028c610: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0028c620: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0028c630: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0028c640: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0028c650: 7320 7365 6172 6368 2822 7466 7470 2e73  s search("tftp.s
│ │ │ -0028c660: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0028c670: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0028c680: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0028c690: 4578 6973 7473 202d 2074 6674 702e 736f  Exists - tftp.so
│ │ │ -0028c6a0: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0028c6b0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0028c6c0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0028c6d0: 6973 742d 756e 6974 2d66 696c 6573 2074  ist-unit-files t
│ │ │ -0028c6e0: 6674 702e 736f 636b 6574 0a20 2020 2072  ftp.socket.    r
│ │ │ -0028c6f0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0028c700: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0028c710: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0028c720: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0028c730: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0028c740: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0028c750: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0028c760: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0028c770: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0028c780: 6520 7466 7470 2053 6572 7669 6365 202d  e tftp Service -
│ │ │ -0028c790: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -0028c7a0: 7466 7470 0a20 2020 2061 6e73 6962 6c65  tftp.    ansible
│ │ │ -0028c7b0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0028c7c0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7466  :.      name: tf
│ │ │ -0028c7d0: 7470 2e73 6f63 6b65 740a 2020 2020 2020  tp.socket.      
│ │ │ -0028c7e0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0028c7f0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0028c800: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -0028c810: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0028c820: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0028c830: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0028c840: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -0028c850: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0028c860: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0028c870: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0028c880: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0028c890: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0028c8a0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0028c8b0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0028c8c0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0028c8d0: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0028c8e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0028c8f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0028c900: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0028c910: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0028c920: 7365 7276 6963 655f 7466 7470 5f64 6973  service_tftp_dis
│ │ │ -0028c930: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -0028c940: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -0028c950: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0028c960: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0028c970: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0028be00: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0028be10: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -0028c290: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0028c2a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0028c2e0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0028c2f0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0028beb0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0028bf50: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0028bf60: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0028bf70: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0028bf80: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0028bf90: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0028bfa0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0028bfb0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0028bfc0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0028bfd0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0028bfe0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0028bff0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0028c000: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0028c010: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0028c020: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0028c030: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0028c040: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0028c050: 5f74 6674 705f 6469 7361 626c 6564 0a0a  _tftp_disabled..
│ │ │ +0028c060: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028c070: 7466 7470 2053 6572 7669 6365 202d 2044  tftp Service - D
│ │ │ +0028c080: 6973 6162 6c65 2073 6572 7669 6365 2074  isable service t
│ │ │ +0028c090: 6674 700a 2020 626c 6f63 6b3a 0a0a 2020  ftp.  block:..  
│ │ │ +0028c0a0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028c0b0: 7466 7470 2053 6572 7669 6365 202d 2043  tftp Service - C
│ │ │ +0028c0c0: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +0028c0d0: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +0028c0e0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +0028c0f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0028c100: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0028c110: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0028c120: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +0028c130: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +0028c140: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +0028c150: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +0028c160: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +0028c170: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +0028c180: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +0028c190: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0028c1a0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0028c1b0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0028c1c0: 7361 626c 6520 7466 7470 2053 6572 7669  sable tftp Servi
│ │ │ +0028c1d0: 6365 202d 2045 6e73 7572 6520 7466 7470  ce - Ensure tftp
│ │ │ +0028c1e0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +0028c1f0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +0028c200: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0028c210: 2020 2020 2020 6e61 6d65 3a20 7466 7470        name: tftp
│ │ │ +0028c220: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +0028c230: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0028c240: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0028c250: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +0028c260: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0028c270: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +0028c280: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0028c290: 6561 7263 6828 2274 6674 702e 7365 7276  earch("tftp.serv
│ │ │ +0028c2a0: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +0028c2b0: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +0028c2c0: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +0028c2d0: 7374 7320 2d20 7466 7470 2e73 6f63 6b65  sts - tftp.socke
│ │ │ +0028c2e0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0028c2f0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0028c300: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0028c310: 2d75 6e69 742d 6669 6c65 7320 7466 7470  -unit-files tftp
│ │ │ +0028c320: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0028c330: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0028c340: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0028c350: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0028c360: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0028c370: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0028c380: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0028c390: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0028c3a0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0028c3b0: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +0028c3c0: 6674 7020 5365 7276 6963 6520 2d20 4469  ftp Service - Di
│ │ │ +0028c3d0: 7361 626c 6520 536f 636b 6574 2074 6674  sable Socket tft
│ │ │ +0028c3e0: 700a 2020 2020 616e 7369 626c 652e 6275  p.    ansible.bu
│ │ │ +0028c3f0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0028c400: 2020 2020 206e 616d 653a 2074 6674 702e       name: tftp.
│ │ │ +0028c410: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0028c420: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0028c430: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0028c440: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0028c450: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0028c460: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0028c470: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0028c480: 2073 6561 7263 6828 2274 6674 702e 736f   search("tftp.so
│ │ │ +0028c490: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0028c4a0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0028c4b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0028c4c0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0028c4d0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0028c4e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0028c4f0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0028c500: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0028c510: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0028c520: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0028c530: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0028c540: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0028c550: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0028c560: 7669 6365 5f74 6674 705f 6469 7361 626c  vice_tftp_disabl
│ │ │ +0028c570: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0028c580: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0028c590: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0028c5a0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0028c5b0: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +0028c670: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0028c680: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0028bea0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0028bed0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0028bee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0028bf20: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0028bf30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0028c720: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0028c7c0: 636c 7564 6520 6469 7361 626c 655f 7466  clude disable_tf
│ │ │ +0028c7d0: 7470 0a0a 636c 6173 7320 6469 7361 626c  tp..class disabl
│ │ │ +0028c7e0: 655f 7466 7470 207b 0a20 2073 6572 7669  e_tftp {.  servi
│ │ │ +0028c7f0: 6365 207b 2774 6674 7027 3a0a 2020 2020  ce {'tftp':.    
│ │ │ +0028c800: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +0028c810: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +0028c820: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +0028c830: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +0028c8f0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0028c900: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0028c910: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +0028c960: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0028c970: 6173 6b65 6420 3d20 5b22 7466 7470 225d  asked = ["tftp"]
│ │ │  0028c980: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
< │ │ │ 0028c9a0: 2f74 723e 3c2f 7462 6f64 793e 3c2f 7461 /tr>
Re │ │ │ -0028d190: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0028d1a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0028d1b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0028c710: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0028c740: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0028c750: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0028c790: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0028c7a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0028d240: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028d250: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0028d2a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0028d2e0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ -0028d2f0: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ -0028d300: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ -0028d310: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ -0028d320: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0028d330: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0028d340: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0028d400: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0028d410: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -0028d230: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0028d260: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0028d270: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0028d2b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0028d2c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0028d490: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0028d4b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0028d500: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0028d530: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0028d550: 7461 6c6c 2072 7379 6e63 2050 6163 6b61  tall rsync Packa
│ │ │ -0028d560: 6765 3a20 456e 7375 7265 2072 7379 6e63  ge: Ensure rsync
│ │ │ -0028d570: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0028d580: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0028d590: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0028d5a0: 3a20 7273 796e 630a 2020 2020 7374 6174  : rsync.    stat
│ │ │ -0028d5b0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0028d5c0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0028d5d0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0028d5e0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0028d5f0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0028d600: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0028d610: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0028d620: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0028d630: 655f 7273 796e 635f 7265 6d6f 7665 640a  e_rsync_removed.
│ │ │ +0028d190: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0028d1a0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -0028d4c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0028d4d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0028d510: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0028d520: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0028d240: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0028d2e0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0028d2f0: 6c20 7273 796e 6320 5061 636b 6167 653a  l rsync Package:
│ │ │ +0028d300: 2045 6e73 7572 6520 7273 796e 6320 6973   Ensure rsync is
│ │ │ +0028d310: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0028d320: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0028d330: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0028d340: 7379 6e63 0a20 2020 2073 7461 7465 3a20  sync.    state: 
│ │ │ +0028d350: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0028d360: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0028d370: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0028d380: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0028d390: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0028d3a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0028d3b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0028d3c0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0028d3d0: 7379 6e63 5f72 656d 6f76 6564 0a3c 2f63  sync_removed.
│ │ │ +0028d3f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0028d490: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0028d4a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0028d4b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0028d230: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0028d260: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0028d270: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0028d2b0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0028d2c0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0028d540: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0028d550: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0028d5a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0028d5e0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +0028d5f0: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ +0028d600: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ +0028d610: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ +0028d620: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0028d630: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0028d640: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0028e1c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0028e1d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0028e1e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0028e1f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0028e230: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0028e240: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0028e250: 5b22 7273 796e 6364 225d 0a3c 2f63 6f64  ["rsyncd"].
Reme │ │ │ -0028e310: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0028e320: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +0028d530: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0028d560: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0028d570: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0028d5b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0028d5c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -0028e3b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0028e3e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0028e400: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0028e410: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0028e430: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0028e450: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0028e460: 6465 2064 6973 6162 6c65 5f72 7379 6e63  de disable_rsync
│ │ │ -0028e470: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ -0028e480: 5f72 7379 6e63 6420 7b0a 2020 7365 7276  _rsyncd {.  serv
│ │ │ -0028e490: 6963 6520 7b27 7273 796e 6364 273a 0a20  ice {'rsyncd':. 
│ │ │ -0028e4a0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0028e4b0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0028e4c0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0028e4d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0028e4e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0028e590: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0028e5a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0028e630: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0028e640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0028e660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0028e680: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0028e690: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0028e6d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0028e6e0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0028e6f0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0028e700: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0028e710: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0028e720: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -0028e730: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0028e740: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0028e750: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0028e760: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0028e770: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0028e780: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0028e790: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0028e7a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0028e7b0: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -0028e7c0: 6e63 645f 6469 7361 626c 6564 0a0a 2d20  ncd_disabled..- 
│ │ │ -0028e7d0: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -0028e7e0: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -0028e7f0: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ -0028e800: 6520 7365 7276 6963 6520 7273 796e 6364  e service rsyncd
│ │ │ -0028e810: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0028e820: 616d 653a 2045 6e73 7572 6520 7273 796e  ame: Ensure rsyn
│ │ │ -0028e830: 6364 2073 6572 7669 6365 2069 7320 6469  cd service is di
│ │ │ -0028e840: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -0028e850: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0028e860: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ -0028e870: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ -0028e880: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0028e890: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0028e8a0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0028e8b0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0028e8c0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0028e8d0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0028e8e0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0028e8f0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0028e900: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0028e910: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0028e920: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0028e930: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0028e940: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0028e950: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0028e960: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0028e970: 2d20 456e 7375 7265 2072 7379 6e63 642e  - Ensure rsyncd.
│ │ │ -0028e980: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0028e990: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0028e9a0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0028e9b0: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ -0028e9c0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -0028e9d0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0028e9e0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0028e9f0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0028ea00: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0028ea10: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0028ea20: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0028ea30: 7365 6172 6368 2822 7273 796e 6364 2e73  search("rsyncd.s
│ │ │ -0028ea40: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0028ea50: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0028ea60: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0028ea70: 4578 6973 7473 202d 2072 7379 6e63 642e  Exists - rsyncd.
│ │ │ -0028ea80: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0028ea90: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0028eaa0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0028eab0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0028eac0: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0028ead0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0028eae0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0028eaf0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0028eb00: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0028eb10: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0028eb20: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0028eb30: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0028eb40: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0028eb50: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0028eb60: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0028eb70: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0028eb80: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0028eb90: 2072 7379 6e63 640a 2020 2020 616e 7369   rsyncd.    ansi
│ │ │ -0028eba0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0028ebb0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0028ebc0: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0028ebd0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0028ebe0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0028ebf0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0028ec00: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0028ec10: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0028ec20: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0028ec30: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0028ec40: 2272 7379 6e63 642e 736f 636b 6574 222c  "rsyncd.socket",
│ │ │ -0028ec50: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0028ec60: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0028ec70: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0028ec80: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0028ec90: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0028eca0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0028ecb0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0028ecc0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0028ecd0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0028ece0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0028ecf0: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -0028ed00: 7379 6e63 645f 6469 7361 626c 6564 0a20  syncd_disabled. 
│ │ │ -0028ed10: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0028ed20: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0028ed30: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0028ed40: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0028ed50: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +0028e2b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028e2c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028e310: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0028e320: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0028e330: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0028e340: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0028e350: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0028e360: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0028e370: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0028e380: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0028e390: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0028e3a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0028e3b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0028e3c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0028e3d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0028e3e0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0028e3f0: 655f 7273 796e 6364 5f64 6973 6162 6c65  e_rsyncd_disable
│ │ │ +0028e400: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +0028e410: 6520 7273 796e 6364 2073 6572 7669 6365  e rsyncd service
│ │ │ +0028e420: 2069 7320 6469 7361 626c 6564 202d 2044   is disabled - D
│ │ │ +0028e430: 6973 6162 6c65 2073 6572 7669 6365 2072  isable service r
│ │ │ +0028e440: 7379 6e63 640a 2020 626c 6f63 6b3a 0a0a  syncd.  block:..
│ │ │ +0028e450: 2020 2d20 6e61 6d65 3a20 456e 7375 7265    - name: Ensure
│ │ │ +0028e460: 2072 7379 6e63 6420 7365 7276 6963 6520   rsyncd service 
│ │ │ +0028e470: 6973 2064 6973 6162 6c65 6420 2d20 436f  is disabled - Co
│ │ │ +0028e480: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +0028e490: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +0028e4a0: 6e0a 2020 2020 2020 7468 6520 5379 7374  n.      the Syst
│ │ │ +0028e4b0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0028e4c0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0028e4d0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0028e4e0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0028e4f0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0028e500: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0028e510: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0028e520: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0028e530: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0028e540: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0028e550: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0028e560: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0028e570: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0028e580: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0028e590: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0028e5a0: 626c 6564 202d 2045 6e73 7572 6520 7273  bled - Ensure rs
│ │ │ +0028e5b0: 796e 6364 2e73 6572 7669 6365 2069 7320  yncd.service is 
│ │ │ +0028e5c0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +0028e5d0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0028e5e0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0028e5f0: 7273 796e 6364 2e73 6572 7669 6365 0a20  rsyncd.service. 
│ │ │ +0028e600: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0028e610: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0028e620: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0028e630: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0028e640: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0028e650: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0028e660: 7320 6973 2073 6561 7263 6828 2272 7379  s is search("rsy
│ │ │ +0028e670: 6e63 642e 7365 7276 6963 6522 2c20 6d75  ncd.service", mu
│ │ │ +0028e680: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0028e690: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0028e6a0: 636b 6574 2045 7869 7374 7320 2d20 7273  cket Exists - rs
│ │ │ +0028e6b0: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ +0028e6c0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0028e6d0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0028e6e0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0028e6f0: 6669 6c65 7320 7273 796e 6364 2e73 6f63  files rsyncd.soc
│ │ │ +0028e700: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +0028e710: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0028e720: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0028e730: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0028e740: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +0028e750: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0028e760: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0028e770: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0028e780: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0028e790: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0028e7a0: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0028e7b0: 626c 6564 202d 2044 6973 6162 6c65 2053  bled - Disable S
│ │ │ +0028e7c0: 6f63 6b65 7420 7273 796e 6364 0a20 2020  ocket rsyncd.   
│ │ │ +0028e7d0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0028e7e0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0028e7f0: 6e61 6d65 3a20 7273 796e 6364 2e73 6f63  name: rsyncd.soc
│ │ │ +0028e800: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0028e810: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0028e820: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0028e830: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0028e840: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0028e850: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0028e860: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0028e870: 6172 6368 2822 7273 796e 6364 2e73 6f63  arch("rsyncd.soc
│ │ │ +0028e880: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +0028e890: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +0028e8a0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0028e8b0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0028e8c0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +0028e8d0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0028e8e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0028e8f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0028e900: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0028e910: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0028e920: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0028e930: 6963 655f 7273 796e 6364 5f64 6973 6162  ice_rsyncd_disab
│ │ │ +0028e940: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0028e950: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0028e960: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0028e970: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0028e980: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0028e990: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0028ea40: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0028ea50: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0028e290: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028e2a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028e2e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028e2f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0028eb30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028eb40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0028eb90: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ +0028eba0: 7379 6e63 640a 0a63 6c61 7373 2064 6973  syncd..class dis
│ │ │ +0028ebb0: 6162 6c65 5f72 7379 6e63 6420 7b0a 2020  able_rsyncd {.  
│ │ │ +0028ebc0: 7365 7276 6963 6520 7b27 7273 796e 6364  service {'rsyncd
│ │ │ +0028ebd0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0028ebe0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0028ebf0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0028ec00: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0028ec20: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0028ecc0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0028ecd0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0028ece0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028ecf0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028ed00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028ed10: 7365 2220 6964 3d22 6964 3130 3839 223e se" id="id1089"> │ │ │ +0028ed20: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0028ed30: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0028ed40: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0028ed50: 2272 7379 6e63 6422 5d0a 3c2f 636f 6465  "rsyncd"].
Complexity:low
Disrup │ │ │ +0028eb10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028eb20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028eb60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0028eb70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Remediation Pup │ │ │ -0028ffd0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0028ffe0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002900b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002900c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00290120: 5f63 7570 730a 0a63 6c61 7373 2072 656d  _cups..class rem
│ │ │ -00290130: 6f76 655f 6375 7073 207b 0a20 2070 6163  ove_cups {.  pac
│ │ │ -00290140: 6b61 6765 207b 2027 6375 7073 273a 0a20  kage { 'cups':. 
│ │ │ -00290150: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00290160: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00290170: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00290230: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00290240: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ -00290090: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002900a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002900e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002900f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002902c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002902e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00290330: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00290360: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00290380: 7461 6c6c 2043 5550 5320 5061 636b 6167  tall CUPS Packag
│ │ │ -00290390: 653a 2045 6e73 7572 6520 6375 7073 2069  e: Ensure cups i
│ │ │ -002903a0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002903b0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002903c0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002903d0: 6375 7073 0a20 2020 2073 7461 7465 3a20  cups.    state: 
│ │ │ -002903e0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002903f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00290400: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00290410: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00290420: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00290430: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -00290440: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00290450: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00290460: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00290470: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00290480: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00290490: 6765 5f63 7570 735f 7265 6d6f 7665 640a  ge_cups_removed.
│ │ │ -002904a0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -002904b0: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediation Ans
│ │ │ +0028ffd0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +0028ffe0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
low
Disr │ │ │ -002902f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00290300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00290340: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00290350: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +00290060: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00290080: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002900d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00290100: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00290120: 7461 6c6c 2043 5550 5320 5061 636b 6167  tall CUPS Packag
│ │ │ +00290130: 653a 2045 6e73 7572 6520 6375 7073 2069  e: Ensure cups i
│ │ │ +00290140: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +00290150: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00290160: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00290170: 6375 7073 0a20 2020 2073 7461 7465 3a20  cups.    state: 
│ │ │ +00290180: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00290190: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002901a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +002901b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +002901c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002901d0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +002901e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002901f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00290200: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00290210: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00290220: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00290230: 6765 5f63 7570 735f 7265 6d6f 7665 640a  ge_cups_removed.
│ │ │ +00290240: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +00290250: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.Remediatio
│ │ │ +00290310: 6e20 5075 7070 6574 2073 6e69 7070 6574  n Puppet snippet
│ │ │ +00290320: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +002903a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002903e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disr │ │ │ +00290090: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002900a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002900e0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002900f0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexit │ │ │ +002903b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +002903d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00290400: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00290420: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00290450: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00290460: 656d 6f76 655f 6375 7073 0a0a 636c 6173  emove_cups..clas
│ │ │ +00290470: 7320 7265 6d6f 7665 5f63 7570 7320 7b0a  s remove_cups {.
│ │ │ +00290480: 2020 7061 636b 6167 6520 7b20 2763 7570    package { 'cup
│ │ │ +00290490: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +002904a0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +002904b0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remedia │ │ │ -002914e0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -002914f0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00291500: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00291540: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00291550: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00291560: 0a6d 6173 6b65 6420 3d20 5b22 6375 7073  .masked = ["cups
│ │ │ -00291570: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00291580: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00291630: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00291640: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -002916d0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002916f0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00291710: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00291740: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00291750: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00291760: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -00291780: 6c65 5f63 7570 730a 0a63 6c61 7373 2064  le_cups..class d
│ │ │ -00291790: 6973 6162 6c65 5f63 7570 7320 7b0a 2020  isable_cups {.  
│ │ │ -002917a0: 7365 7276 6963 6520 7b27 6375 7073 273a  service {'cups':
│ │ │ -002917b0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -002917c0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -002917d0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -002917e0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -002918a0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002918b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002918c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00291960: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002919b0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002919f0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00291a00: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00291a10: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00291a20: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00291a30: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00291a40: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00291a50: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00291a60: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00291a70: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00291a80: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00291a90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00291aa0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00291ab0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00291ac0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00291ad0: 0a20 202d 2073 6572 7669 6365 5f63 7570  .  - service_cup
│ │ │ -00291ae0: 735f 6469 7361 626c 6564 0a20 202d 2075  s_disabled.  - u
│ │ │ -00291af0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -00291b00: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ -00291b10: 2074 6865 2043 5550 5320 5365 7276 6963   the CUPS Servic
│ │ │ -00291b20: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -00291b30: 6963 6520 6375 7073 0a20 2062 6c6f 636b  ice cups.  block
│ │ │ -00291b40: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ -00291b50: 6162 6c65 2074 6865 2043 5550 5320 5365  able the CUPS Se
│ │ │ -00291b60: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00291b70: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00291b80: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00291b90: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00291ba0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00291bb0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00291bc0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00291bd0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00291be0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00291bf0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00291c00: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00291c10: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00291c20: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00291c30: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00291c40: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00291c50: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00291c60: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ -00291c70: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ -00291c80: 2d20 456e 7375 7265 2063 7570 732e 7365  - Ensure cups.se
│ │ │ -00291c90: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00291ca0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00291cb0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00291cc0: 2020 206e 616d 653a 2063 7570 732e 7365     name: cups.se
│ │ │ -00291cd0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -00291ce0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -00291cf0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -00291d00: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00291d10: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -00291d20: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -00291d30: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00291d40: 6368 2822 6375 7073 2e73 6572 7669 6365  ch("cups.service
│ │ │ -00291d50: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00291d60: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00291d70: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00291d80: 202d 2063 7570 732e 736f 636b 6574 0a20   - cups.socket. 
│ │ │ -00291d90: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00291da0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00291db0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00291dc0: 6974 2d66 696c 6573 2063 7570 732e 736f  it-files cups.so
│ │ │ -00291dd0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00291de0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00291df0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00291e00: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00291e10: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00291e20: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00291e30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -00291e40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00291e50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00291e60: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ -00291e70: 4355 5053 2053 6572 7669 6365 202d 2044  CUPS Service - D
│ │ │ -00291e80: 6973 6162 6c65 2053 6f63 6b65 7420 6375  isable Socket cu
│ │ │ -00291e90: 7073 0a20 2020 2061 6e73 6962 6c65 2e62  ps.    ansible.b
│ │ │ -00291ea0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00291eb0: 2020 2020 2020 6e61 6d65 3a20 6375 7073        name: cups
│ │ │ -00291ec0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ -00291ed0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00291ee0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -00291ef0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00291f00: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00291f10: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00291f20: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -00291f30: 7320 7365 6172 6368 2822 6375 7073 2e73  s search("cups.s
│ │ │ -00291f40: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00291f50: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00291f60: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00291f70: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -00291f80: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -00291f90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00291fa0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -00291fb0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00291fc0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00291fd0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00291fe0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00291ff0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00292000: 6963 655f 6375 7073 5f64 6973 6162 6c65  ice_cups_disable
│ │ │ -00292010: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00292020: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ -00292030: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -00292040: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00292050: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00292060: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00292070: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002914e0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ +002914f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00291500: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Co │ │ │ -00291940: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00291970: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00291990: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002919a0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002919c0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002919d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +002915a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002915c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002915f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00291580: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00291590: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002915b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002915d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002915e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00291620: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00291630: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00291640: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00291650: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00291660: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00291670: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00291680: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00291690: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +002916a0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +002916b0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +002916c0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +002916d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +002916e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +002916f0: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ +00291700: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +00291710: 2d20 7365 7276 6963 655f 6375 7073 5f64 - service_cups_d │ │ │ +00291720: 6973 6162 6c65 640a 2020 2d20 756e 6b6e isabled. - unkn │ │ │ +00291730: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20 own_severity..- │ │ │ +00291740: 6e61 6d65 3a20 4469 7361 626c 6520 7468 name: Disable th │ │ │ +00291750: 6520 4355 5053 2053 6572 7669 6365 202d e CUPS Service - │ │ │ +00291760: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ +00291770: 2063 7570 730a 2020 626c 6f63 6b3a 0a0a cups. block:.. │ │ │ +00291780: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ +00291790: 6520 7468 6520 4355 5053 2053 6572 7669 e the CUPS Servi │ │ │ +002917a0: 6365 202d 2043 6f6c 6c65 6374 2073 7973 ce - Collect sys │ │ │ +002917b0: 7465 6d64 2053 6572 7669 6365 7320 5072 temd Services Pr │ │ │ +002917c0: 6573 656e 7420 696e 2074 6865 2053 7973 esent in the Sys │ │ │ +002917d0: 7465 6d0a 2020 2020 616e 7369 626c 652e tem. ansible. │ │ │ +002917e0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ +002917f0: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ +00291800: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d st-unit-files -- │ │ │ +00291810: 7479 7065 2073 6572 7669 6365 0a20 2020 type service. │ │ │ +00291820: 2072 6567 6973 7465 723a 2073 6572 7669 register: servi │ │ │ +00291830: 6365 5f65 7869 7374 730a 2020 2020 6368 ce_exists. ch │ │ │ +00291840: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +00291850: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ +00291860: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ +00291870: 732e 7263 206e 6f74 2069 6e20 5b30 2c20 s.rc not in [0, │ │ │ +00291880: 315d 0a20 2020 2063 6865 636b 5f6d 6f64 1]. check_mod │ │ │ +00291890: 653a 2066 616c 7365 0a0a 2020 2d20 6e61 e: false.. - na │ │ │ +002918a0: 6d65 3a20 4469 7361 626c 6520 7468 6520 me: Disable the │ │ │ +002918b0: 4355 5053 2053 6572 7669 6365 202d 2045 CUPS Service - E │ │ │ +002918c0: 6e73 7572 6520 6375 7073 2e73 6572 7669 nsure cups.servi │ │ │ +002918d0: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ +002918e0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +002918f0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ +00291900: 6e61 6d65 3a20 6375 7073 2e73 6572 7669 name: cups.servi │ │ │ +00291910: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ +00291920: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ +00291930: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +00291940: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ +00291950: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ +00291960: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ +00291970: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ +00291980: 2263 7570 732e 7365 7276 6963 6522 2c20 "cups.service", │ │ │ +00291990: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ +002919a0: 0a20 202d 206e 616d 653a 2055 6e69 7420 . - name: Unit │ │ │ +002919b0: 536f 636b 6574 2045 7869 7374 7320 2d20 Socket Exists - │ │ │ +002919c0: 6375 7073 2e73 6f63 6b65 740a 2020 2020 cups.socket. │ │ │ +002919d0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +002919e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ +002919f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ +00291a00: 6669 6c65 7320 6375 7073 2e73 6f63 6b65 files cups.socke │ │ │ +00291a10: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ +00291a20: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +00291a30: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +00291a40: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +00291a50: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ +00291a60: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ +00291a70: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ +00291a80: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ +00291a90: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ +00291aa0: 2044 6973 6162 6c65 2074 6865 2043 5550 Disable the CUP │ │ │ +00291ab0: 5320 5365 7276 6963 6520 2d20 4469 7361 S Service - Disa │ │ │ +00291ac0: 626c 6520 536f 636b 6574 2063 7570 730a ble Socket cups. │ │ │ +00291ad0: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +00291ae0: 7469 6e2e 7379 7374 656d 643a 0a20 2020 tin.systemd:. │ │ │ +00291af0: 2020 206e 616d 653a 2063 7570 732e 736f name: cups.so │ │ │ +00291b00: 636b 6574 0a20 2020 2020 2065 6e61 626c cket. enabl │ │ │ +00291b10: 6564 3a20 6661 6c73 650a 2020 2020 2020 ed: false. │ │ │ +00291b20: 7374 6174 653a 2073 746f 7070 6564 0a20 state: stopped. │ │ │ +00291b30: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ +00291b40: 650a 2020 2020 7768 656e 3a20 736f 636b e. when: sock │ │ │ +00291b50: 6574 5f66 696c 655f 6578 6973 7473 2e73 et_file_exists.s │ │ │ +00291b60: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ +00291b70: 6561 7263 6828 2263 7570 732e 736f 636b earch("cups.sock │ │ │ +00291b80: 6574 222c 206d 756c 7469 6c69 6e65 3d54 et", multiline=T │ │ │ +00291b90: 7275 6529 0a20 2074 6167 733a 0a20 202d rue). tags:. - │ │ │ +00291ba0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +00291bb0: 3628 6129 0a20 202d 204e 4953 542d 3830 6(a). - NIST-80 │ │ │ +00291bc0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d 0-53-CM-7(a). - │ │ │ +00291bd0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +00291be0: 3728 6229 0a20 202d 2064 6973 6162 6c65 7(b). - disable │ │ │ +00291bf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +00291c00: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00291c10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00291c20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +00291c30: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +00291c40: 5f63 7570 735f 6469 7361 626c 6564 0a20 _cups_disabled. │ │ │ +00291c50: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ +00291c60: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b ce_block. - unk │ │ │ +00291c70: 6e6f 776e 5f73 6576 6572 6974 790a 2020 nown_severity. │ │ │ +00291c80: 7768 656e 3a20 2722 6c69 6e75 782d 6261 when: '"linux-ba │ │ │ +00291c90: 7365 2220 696e 2061 6e73 6962 6c65 5f66 se" in ansible_f │ │ │ +00291ca0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c acts.packages'.< │ │ │ +00291cb0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
│ │ │ +00291d60: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00291d70: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +00291e50: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00291e60: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00291eb0: 6e63 6c75 6465 2064 6973 6162 6c65 5f63  nclude disable_c
│ │ │ +00291ec0: 7570 730a 0a63 6c61 7373 2064 6973 6162  ups..class disab
│ │ │ +00291ed0: 6c65 5f63 7570 7320 7b0a 2020 7365 7276  le_cups {.  serv
│ │ │ +00291ee0: 6963 6520 7b27 6375 7073 273a 0a20 2020  ice {'cups':.   
│ │ │ +00291ef0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +00291f00: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +00291f10: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +00291f20: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +00291fe0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00291ff0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00292000: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +00292040: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00292050: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00292060: 6d61 736b 6564 203d 205b 2263 7570 7322  masked = ["cups"
│ │ │ +00292070: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00292080: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 00292090: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74
< │ │ │ 002920b0: 7472 2064 6174 612d 7474 2d69 643d 2263 tr data-tt-id="c │ │ │ 002920c0: 6869 6c64 7265 6e2d 7863 6364 665f 6f72 hildren-xccdf_or │ │ │ 002920d0: 672e 7373 6770 726f 6a65 6374 2e63 6f6e g.ssgproject.con │ │ │ 002920e0: 7465 6e74 5f67 726f 7570 5f70 726f 7879 tent_group_proxy │ │ │ @@ -168714,89 +168714,89 @@ │ │ │ 00293090: 6172 6765 743d 2223 6964 3130 3939 2220 arget="#id1099" │ │ │ 002930a0: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 002930b0: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 002930c0: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 002930d0: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 002930e0: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 002930f0: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -00293100: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00293110: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00293190: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002931d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:low
Disrup │ │ │ +00291e30: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00291e40: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00291e80: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00291e90: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002931a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002931c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002931f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00293210: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00293240: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00293250: 656d 6f76 655f 7371 7569 640a 0a63 6c61  emove_squid..cla
│ │ │ -00293260: 7373 2072 656d 6f76 655f 7371 7569 6420  ss remove_squid 
│ │ │ -00293270: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ -00293280: 7175 6964 273a 0a20 2020 2065 6e73 7572  quid':.    ensur
│ │ │ -00293290: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002932a0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002932b0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00293360: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00293370: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00293380: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00293420: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00293440: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00293470: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00293400: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00293410: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00293430: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00293450: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00293460: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002934a0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002934b0: 3a20 2755 6e69 6e73 7461 6c6c 2073 7175 : 'Uninstall squ │ │ │ -002934c0: 6964 2050 6163 6b61 6765 3a20 456e 7375 id Package: Ensu │ │ │ -002934d0: 7265 2073 7175 6964 2069 7320 7265 6d6f re squid is remo │ │ │ -002934e0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62 ved'. ansible.b │ │ │ -002934f0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ -00293500: 2020 2020 6e61 6d65 3a20 7371 7569 640a name: squid. │ │ │ -00293510: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ -00293520: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ -00293530: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ -00293540: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ -00293550: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ -00293560: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f tion. - no_rebo │ │ │ -00293570: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ -00293580: 636b 6167 655f 7371 7569 645f 7265 6d6f ckage_squid_remo │ │ │ -00293590: 7665 640a 2020 2d20 756e 6b6e 6f77 6e5f ved. - unknown_ │ │ │ -002935a0: 7365 7665 7269 7479 0a3c 2f63 6f64 653e severity. │ │ │ +00293100: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ +00293110: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00293190: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002931a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002931b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002931f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00293200: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00293220: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00293230: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00293250: 556e 696e 7374 616c 6c20 7371 7569 6420  Uninstall squid 
│ │ │ +00293260: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00293270: 7371 7569 6420 6973 2072 656d 6f76 6564  squid is removed
│ │ │ +00293280: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00293290: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +002932a0: 206e 616d 653a 2073 7175 6964 0a20 2020   name: squid.   
│ │ │ +002932b0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002932c0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +002932d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002932e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002932f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00293300: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00293310: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +00293320: 6765 5f73 7175 6964 5f72 656d 6f76 6564  ge_squid_removed
│ │ │ +00293330: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +00293340: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +00293400: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +00293410: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00293490: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002934a0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002934b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002934f0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00293500: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00293520: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00293530: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +00293550: 7265 6d6f 7665 5f73 7175 6964 0a0a 636c  remove_squid..cl
│ │ │ +00293560: 6173 7320 7265 6d6f 7665 5f73 7175 6964  ass remove_squid
│ │ │ +00293570: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00293580: 7371 7569 6427 3a0a 2020 2020 656e 7375  squid':.    ensu
│ │ │ +00293590: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002935a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002935b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
R │ │ │ -00294100: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00294110: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00294120: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00294130: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -00294170: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -00294180: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -00294190: 5b22 7371 7569 6422 5d0a 3c2f 636f 6465  ["squid"].
Remed │ │ │ -00294250: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00294260: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002942f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00294300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00294320: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00294340: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00294350: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00294390: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002943a0: 6520 6469 7361 626c 655f 7371 7569 640a e disable_squid. │ │ │ -002943b0: 0a63 6c61 7373 2064 6973 6162 6c65 5f73 .class disable_s │ │ │ -002943c0: 7175 6964 207b 0a20 2073 6572 7669 6365 quid {. service │ │ │ -002943d0: 207b 2773 7175 6964 273a 0a20 2020 2065 {'squid':. e │ │ │ -002943e0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ -002943f0: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ -00294400: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ -00294410: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ -002944d0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002944e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -00294560: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00294570: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00294580: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002945c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002945d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002945f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00294600: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00294620: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00294630: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00294640: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00294650: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -00294660: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00294670: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00294680: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00294690: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002946a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002946b0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -002946c0: 7175 6964 5f64 6973 6162 6c65 640a 2020  quid_disabled.  
│ │ │ -002946d0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ -002946e0: 7479 0a0a 2d20 6e61 6d65 3a20 4469 7361  ty..- name: Disa
│ │ │ -002946f0: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -00294700: 626c 6520 7365 7276 6963 6520 7371 7569  ble service squi
│ │ │ -00294710: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -00294720: 6e61 6d65 3a20 4469 7361 626c 6520 5371  name: Disable Sq
│ │ │ -00294730: 7569 6420 2d20 436f 6c6c 6563 7420 7379  uid - Collect sy
│ │ │ -00294740: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00294750: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -00294760: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00294770: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00294780: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00294790: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -002947a0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -002947b0: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002947c0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002947d0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002947e0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002947f0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00294800: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00294810: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00294820: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00294830: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ -00294840: 6964 202d 2045 6e73 7572 6520 7371 7569  id - Ensure squi
│ │ │ -00294850: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ -00294860: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -00294870: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00294880: 0a20 2020 2020 206e 616d 653a 2073 7175  .      name: squ
│ │ │ -00294890: 6964 2e73 6572 7669 6365 0a20 2020 2020  id.service.     
│ │ │ -002948a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002948b0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002948c0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -002948d0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002948e0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002948f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00294900: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -00294910: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -00294920: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -00294930: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -00294940: 4578 6973 7473 202d 2073 7175 6964 2e73  Exists - squid.s
│ │ │ -00294950: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -00294960: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -00294970: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -00294980: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -00294990: 7371 7569 642e 736f 636b 6574 0a20 2020  squid.socket.   
│ │ │ -002949a0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002949b0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002949c0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002949d0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002949e0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -002949f0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00294a00: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00294a10: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00294a20: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00294a30: 626c 6520 5371 7569 6420 2d20 4469 7361  ble Squid - Disa
│ │ │ -00294a40: 626c 6520 536f 636b 6574 2073 7175 6964  ble Socket squid
│ │ │ -00294a50: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00294a60: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00294a70: 2020 2020 6e61 6d65 3a20 7371 7569 642e      name: squid.
│ │ │ -00294a80: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -00294a90: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00294aa0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -00294ab0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -00294ac0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -00294ad0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00294ae0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00294af0: 2073 6561 7263 6828 2273 7175 6964 2e73   search("squid.s
│ │ │ -00294b00: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -00294b10: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00294b20: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00294b30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00294b40: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00294b50: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00294b60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00294b70: 2020 2d20 7365 7276 6963 655f 7371 7569    - service_squi
│ │ │ -00294b80: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -00294b90: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00294ba0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ -00294bb0: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ -00294bc0: 3a20 2820 2273 7175 6964 2220 696e 2061  : ( "squid" in a
│ │ │ -00294bd0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00294be0: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ -00294bf0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00294c00: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00294c10: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
< │ │ │ +002941f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00294200: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +00294250: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00294260: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00294270: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00294280: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00294290: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002942a0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002942b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002942c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002942d0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +002942e0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002942f0: 7365 7276 6963 655f 7371 7569 645f 6469  service_squid_di
│ │ │ +00294300: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f  sabled.  - unkno
│ │ │ +00294310: 776e 5f73 6576 6572 6974 790a 0a2d 206e  wn_severity..- n
│ │ │ +00294320: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +00294330: 6964 202d 2044 6973 6162 6c65 2073 6572  id - Disable ser
│ │ │ +00294340: 7669 6365 2073 7175 6964 0a20 2062 6c6f  vice squid.  blo
│ │ │ +00294350: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ +00294360: 6973 6162 6c65 2053 7175 6964 202d 2043  isable Squid - C
│ │ │ +00294370: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +00294380: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +00294390: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +002943a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002943b0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002943c0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002943d0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +002943e0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +002943f0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +00294400: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00294410: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00294420: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +00294430: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +00294440: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00294450: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00294460: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00294470: 7361 626c 6520 5371 7569 6420 2d20 456e  sable Squid - En
│ │ │ +00294480: 7375 7265 2073 7175 6964 2e73 6572 7669  sure squid.servi
│ │ │ +00294490: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +002944a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002944b0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002944c0: 6e61 6d65 3a20 7371 7569 642e 7365 7276  name: squid.serv
│ │ │ +002944d0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002944e0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002944f0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00294500: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +00294510: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +00294520: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +00294530: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00294540: 2822 7371 7569 642e 7365 7276 6963 6522  ("squid.service"
│ │ │ +00294550: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +00294560: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ +00294570: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ +00294580: 2d20 7371 7569 642e 736f 636b 6574 0a20  - squid.socket. 
│ │ │ +00294590: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002945a0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002945b0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002945c0: 6974 2d66 696c 6573 2073 7175 6964 2e73  it-files squid.s
│ │ │ +002945d0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002945e0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002945f0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00294600: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00294610: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00294620: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00294630: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00294640: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00294650: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00294660: 616d 653a 2044 6973 6162 6c65 2053 7175  ame: Disable Squ
│ │ │ +00294670: 6964 202d 2044 6973 6162 6c65 2053 6f63  id - Disable Soc
│ │ │ +00294680: 6b65 7420 7371 7569 640a 2020 2020 616e  ket squid.    an
│ │ │ +00294690: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +002946a0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +002946b0: 653a 2073 7175 6964 2e73 6f63 6b65 740a  e: squid.socket.
│ │ │ +002946c0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002946d0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ +002946e0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002946f0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +00294700: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ +00294710: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ +00294720: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00294730: 2822 7371 7569 642e 736f 636b 6574 222c  ("squid.socket",
│ │ │ +00294740: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +00294750: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00294760: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00294770: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00294780: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00294790: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +002947a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002947b0: 7669 6365 5f73 7175 6964 5f64 6973 6162  vice_squid_disab
│ │ │ +002947c0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002947d0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002947e0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +002947f0: 7479 0a20 2077 6865 6e3a 2028 2022 7371  ty.  when: ( "sq
│ │ │ +00294800: 7569 6422 2069 6e20 616e 7369 626c 655f  uid" in ansible_
│ │ │ +00294810: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ +00294820: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ +00294830: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00294840: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +00294850: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +00294910: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00294920: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +002941d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002941e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00294220: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +00294230: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ +002949f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00294a00: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

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

.[custo │ │ │ +00294bf0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00294c00: 6573 5d0a 6d61 736b 6564 203d 205b 2273 es].masked = ["s │ │ │ +00294c10: 7175 6964 225d 0a3c 2f63 6f64 653e 3c2f quid"]. │ │ │ 00294c30: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64

low
Disru │ │ │ +002949d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002949e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00294a20: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00294a30: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ 00294c50: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>Rem │ │ │ -00295d50: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00295d60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00295d70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00295e10: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00295e60: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00295ea0: 636c 7564 6520 7265 6d6f 7665 5f73 616d  clude remove_sam
│ │ │ -00295eb0: 6261 0a0a 636c 6173 7320 7265 6d6f 7665  ba..class remove
│ │ │ -00295ec0: 5f73 616d 6261 207b 0a20 2070 6163 6b61  _samba {.  packa
│ │ │ -00295ed0: 6765 207b 2027 7361 6d62 6127 3a0a 2020  ge { 'samba':.  
│ │ │ -00295ee0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00295ef0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00295f00: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -00295fb0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00295fc0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00295fd0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Co │ │ │ -00295df0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00295e20: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00295e40: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00295e50: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00295e70: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00295e80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -002960a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002960b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00296110: 616c 6c20 5361 6d62 6120 5061 636b 6167  all Samba Packag
│ │ │ -00296120: 653a 2045 6e73 7572 6520 7361 6d62 6120  e: Ensure samba 
│ │ │ -00296130: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00296140: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00296150: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00296160: 2073 616d 6261 0a20 2020 2073 7461 7465   samba.    state
│ │ │ -00296170: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ -00296180: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00296190: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -002961a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -002961b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -002961c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -002961d0: 0a20 202d 2070 6163 6b61 6765 5f73 616d  .  - package_sam
│ │ │ -002961e0: 6261 5f72 656d 6f76 6564 0a20 202d 2075  ba_removed.  - u
│ │ │ -002961f0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00295d50: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00295d60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00295d70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low
Disru │ │ │ -00296080: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00296090: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002960d0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002960e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00295e00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00295e10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00295e60: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00295ea0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00295eb0: 2053 616d 6261 2050 6163 6b61 6765 3a20   Samba Package: 
│ │ │ +00295ec0: 456e 7375 7265 2073 616d 6261 2069 7320  Ensure samba is 
│ │ │ +00295ed0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00295ee0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00295ef0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7361  ge:.    name: sa
│ │ │ +00295f00: 6d62 610a 2020 2020 7374 6174 653a 2061  mba.    state: a
│ │ │ +00295f10: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00295f20: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +00295f30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00295f40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00295f50: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00295f60: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00295f70: 2d20 7061 636b 6167 655f 7361 6d62 615f  - package_samba_
│ │ │ +00295f80: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +00295f90: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +00295fb0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00296050: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00296060: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00296070: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +00295df0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00295e20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00295e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00295e70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00295e80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +00296100: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00296110: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00296160: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002961a0: 6e63 6c75 6465 2072 656d 6f76 655f 7361  nclude remove_sa
│ │ │ +002961b0: 6d62 610a 0a63 6c61 7373 2072 656d 6f76  mba..class remov
│ │ │ +002961c0: 655f 7361 6d62 6120 7b0a 2020 7061 636b  e_samba {.  pack
│ │ │ +002961d0: 6167 6520 7b20 2773 616d 6261 273a 0a20  age { 'samba':. 
│ │ │ +002961e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002961f0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00296200: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remed │ │ │ -00296ce0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -00296cf0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -00296d00: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ -00296d50: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00296d60: 735d 0a6d 6173 6b65 6420 3d20 5b22 736d s].masked = ["sm │ │ │ -00296d70: 6222 5d0a 3c2f 636f 6465 3e3c 2f70 7265 b"].
Remediation │ │ │ -00296e30: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00296e40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -00296f00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00296f10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +002960f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00296120: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00296130: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00296170: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00296180: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00296ed0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00296ef0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00296f20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00296f40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -00296f80: 626c 655f 736d 620a 0a63 6c61 7373 2064  ble_smb..class d
│ │ │ -00296f90: 6973 6162 6c65 5f73 6d62 207b 0a20 2073  isable_smb {.  s
│ │ │ -00296fa0: 6572 7669 6365 207b 2773 6d62 273a 0a20  ervice {'smb':. 
│ │ │ -00296fb0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00296fc0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00296fd0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -00296fe0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00296ff0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002970a0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002970b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00297140: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00297150: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00297170: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00297190: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002971a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002971e0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002971f0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00297200: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00297210: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00297220: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00297230: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00297240: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00297250: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00297260: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00297270: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -00297280: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00297290: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002972a0: 6963 655f 736d 625f 6469 7361 626c 6564  ice_smb_disabled
│ │ │ -002972b0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002972c0: 6520 5361 6d62 6120 2d20 4469 7361 626c  e Samba - Disabl
│ │ │ -002972d0: 6520 7365 7276 6963 6520 736d 620a 2020  e service smb.  
│ │ │ -002972e0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -002972f0: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ -00297300: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -00297310: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -00297320: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -00297330: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00297340: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00297350: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00297360: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00297370: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00297380: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00297390: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002973a0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002973b0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002973c0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002973d0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002973e0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002973f0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00297400: 2044 6973 6162 6c65 2053 616d 6261 202d   Disable Samba -
│ │ │ -00297410: 2045 6e73 7572 6520 736d 622e 7365 7276   Ensure smb.serv
│ │ │ -00297420: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00297430: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00297440: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00297450: 206e 616d 653a 2073 6d62 2e73 6572 7669   name: smb.servi
│ │ │ -00297460: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00297470: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00297480: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00297490: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -002974a0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -002974b0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -002974c0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002974d0: 2273 6d62 2e73 6572 7669 6365 222c 206d  "smb.service", m
│ │ │ -002974e0: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -002974f0: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00297500: 6f63 6b65 7420 4578 6973 7473 202d 2073  ocket Exists - s
│ │ │ -00297510: 6d62 2e73 6f63 6b65 740a 2020 2020 616e  mb.socket.    an
│ │ │ -00297520: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -00297530: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -00297540: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -00297550: 6c65 7320 736d 622e 736f 636b 6574 0a20  les smb.socket. 
│ │ │ -00297560: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -00297570: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -00297580: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -00297590: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002975a0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -002975b0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -002975c0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -002975d0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -002975e0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -002975f0: 7361 626c 6520 5361 6d62 6120 2d20 4469  sable Samba - Di
│ │ │ -00297600: 7361 626c 6520 536f 636b 6574 2073 6d62  sable Socket smb
│ │ │ -00297610: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00297620: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00297630: 2020 2020 6e61 6d65 3a20 736d 622e 736f      name: smb.so
│ │ │ -00297640: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00297650: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00297660: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00297670: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00297680: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00297690: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -002976a0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002976b0: 6561 7263 6828 2273 6d62 2e73 6f63 6b65  earch("smb.socke
│ │ │ -002976c0: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -002976d0: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -002976e0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002976f0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00297700: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00297710: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -00297720: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -00297730: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00297740: 2073 6572 7669 6365 5f73 6d62 5f64 6973   service_smb_dis
│ │ │ -00297750: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -00297760: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -00297770: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00297780: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00297790: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00296ce0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00296cf0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
Com │ │ │ +00296d80: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00296db0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00296dd0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00296de0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00296e00: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00296e10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00296e30: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00296e40: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00296e50: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00296e60: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00296e70: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00296e80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00296e90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00296ea0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00296eb0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +00296ec0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00296ed0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00296ee0: 7669 6365 5f73 6d62 5f64 6973 6162 6c65  vice_smb_disable
│ │ │ +00296ef0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +00296f00: 6c65 2053 616d 6261 202d 2044 6973 6162  le Samba - Disab
│ │ │ +00296f10: 6c65 2073 6572 7669 6365 2073 6d62 0a20  le service smb. 
│ │ │ +00296f20: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00296f30: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ +00296f40: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +00296f50: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +00296f60: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +00296f70: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00296f80: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00296f90: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00296fa0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00296fb0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00296fc0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00296fd0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00296fe0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00296ff0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00297000: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00297010: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00297020: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00297030: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00297040: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ +00297050: 2d20 456e 7375 7265 2073 6d62 2e73 6572  - Ensure smb.ser
│ │ │ +00297060: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +00297070: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00297080: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00297090: 2020 6e61 6d65 3a20 736d 622e 7365 7276    name: smb.serv
│ │ │ +002970a0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002970b0: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002970c0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002970d0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002970e0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002970f0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +00297100: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00297110: 2822 736d 622e 7365 7276 6963 6522 2c20  ("smb.service", 
│ │ │ +00297120: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00297130: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00297140: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00297150: 736d 622e 736f 636b 6574 0a20 2020 2061  smb.socket.    a
│ │ │ +00297160: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00297170: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00297180: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00297190: 696c 6573 2073 6d62 2e73 6f63 6b65 740a  iles smb.socket.
│ │ │ +002971a0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +002971b0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002971c0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002971d0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002971e0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +002971f0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +00297200: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00297210: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00297220: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00297230: 6973 6162 6c65 2053 616d 6261 202d 2044  isable Samba - D
│ │ │ +00297240: 6973 6162 6c65 2053 6f63 6b65 7420 736d  isable Socket sm
│ │ │ +00297250: 620a 2020 2020 616e 7369 626c 652e 6275  b.    ansible.bu
│ │ │ +00297260: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00297270: 2020 2020 206e 616d 653a 2073 6d62 2e73       name: smb.s
│ │ │ +00297280: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00297290: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002972a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002972b0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002972c0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +002972d0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +002972e0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002972f0: 7365 6172 6368 2822 736d 622e 736f 636b  search("smb.sock
│ │ │ +00297300: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ +00297310: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ +00297320: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00297330: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00297340: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00297350: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00297360: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00297370: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00297380: 2d20 7365 7276 6963 655f 736d 625f 6469  - service_smb_di
│ │ │ +00297390: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002973a0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002973b0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +002973c0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002973d0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002973e0: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002973f0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ +002974a0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002974b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +00297530: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00297550: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002975a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +002975d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +002975f0: 655f 736d 620a 0a63 6c61 7373 2064 6973  e_smb..class dis
│ │ │ +00297600: 6162 6c65 5f73 6d62 207b 0a20 2073 6572  able_smb {.  ser
│ │ │ +00297610: 7669 6365 207b 2773 6d62 273a 0a20 2020  vice {'smb':.   
│ │ │ +00297620: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +00297630: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +00297640: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +00297650: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +00297710: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00297720: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00297730: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +00297770: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00297780: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00297790: 6d61 736b 6564 203d 205b 2273 6d62 225d  masked = ["smb"]
│ │ │  002977a0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
< │ │ │ 002977c0: 2f74 723e 3c2f 7462 6f64 793e 3c2f 7461 /tr>
Reme │ │ │ -002988b0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002988c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Complexity:< │ │ │ +00297540: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00297560: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002975b0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +002975c0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -00298950: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00298980: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002989a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002989b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002989d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002989e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ -00298a00: 6c75 6465 2072 656d 6f76 655f 6e65 742d  lude remove_net-
│ │ │ -00298a10: 736e 6d70 0a0a 636c 6173 7320 7265 6d6f  snmp..class remo
│ │ │ -00298a20: 7665 5f6e 6574 2d73 6e6d 7020 7b0a 2020  ve_net-snmp {.  
│ │ │ -00298a30: 7061 636b 6167 6520 7b20 276e 6574 2d73  package { 'net-s
│ │ │ -00298a40: 6e6d 7027 3a0a 2020 2020 656e 7375 7265  nmp':.    ensure
│ │ │ -00298a50: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00298a60: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -00298b20: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00298b30: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00298b40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00298b50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00298b60: 7365 2220 6964 3d22 6964 3131 3136 223e se" id="id1116"> │ │ │ -00298b70: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00298be0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00298c00: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00298c30: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00298bc0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00298bd0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00298c10: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00298c20: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00298c70: 2027 556e 696e 7374 616c 6c20 6e65 742d 'Uninstall net- │ │ │ -00298c80: 736e 6d70 2050 6163 6b61 6765 3a20 456e snmp Package: En │ │ │ -00298c90: 7375 7265 206e 6574 2d73 6e6d 7020 6973 sure net-snmp is │ │ │ -00298ca0: 2072 656d 6f76 6564 270a 2020 616e 7369 removed'. ansi │ │ │ -00298cb0: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ -00298cc0: 6167 653a 0a20 2020 206e 616d 653a 206e age:. name: n │ │ │ -00298cd0: 6574 2d73 6e6d 700a 2020 2020 7374 6174 et-snmp. stat │ │ │ -00298ce0: 653a 2061 6273 656e 740a 2020 7461 6773 e: absent. tags │ │ │ -00298cf0: 3a0a 2020 2d20 5043 492d 4453 5376 342d :. - PCI-DSSv4- │ │ │ -00298d00: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ -00298d10: 342d 322e 322e 340a 2020 2d20 6469 7361 4-2.2.4. - disa │ │ │ -00298d20: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00298d30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00298d40: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00298d50: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ -00298d60: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -00298d70: 6167 655f 6e65 742d 736e 6d70 5f72 656d age_net-snmp_rem │ │ │ -00298d80: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e oved. - unknown │ │ │ -00298d90: 5f73 6576 6572 6974 790a 3c2f 636f 6465 _severity.< │ │ │ +002988d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

low< │ │ │ +00298970: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002989c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00298a00: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ +00298a10: 6e65 742d 736e 6d70 2050 6163 6b61 6765  net-snmp Package
│ │ │ +00298a20: 3a20 456e 7375 7265 206e 6574 2d73 6e6d  : Ensure net-snm
│ │ │ +00298a30: 7020 6973 2072 656d 6f76 6564 270a 2020  p is removed'.  
│ │ │ +00298a40: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00298a50: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00298a60: 653a 206e 6574 2d73 6e6d 700a 2020 2020  e: net-snmp.    
│ │ │ +00298a70: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00298a80: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ +00298a90: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +00298aa0: 4453 5376 342d 322e 322e 340a 2020 2d20  DSSv4-2.2.4.  - 
│ │ │ +00298ab0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +00298ac0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00298ad0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00298ae0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00298af0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00298b00: 7061 636b 6167 655f 6e65 742d 736e 6d70  package_net-snmp
│ │ │ +00298b10: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +00298b20: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
R │ │ │ +00298be0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00298bf0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +00298950: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00298980: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002989a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002989b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002989d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002989e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +00298c90: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +00298d30: 696e 636c 7564 6520 7265 6d6f 7665 5f6e  include remove_n
│ │ │ +00298d40: 6574 2d73 6e6d 700a 0a63 6c61 7373 2072  et-snmp..class r
│ │ │ +00298d50: 656d 6f76 655f 6e65 742d 736e 6d70 207b  emove_net-snmp {
│ │ │ +00298d60: 0a20 2070 6163 6b61 6765 207b 2027 6e65  .  package { 'ne
│ │ │ +00298d70: 742d 736e 6d70 273a 0a20 2020 2065 6e73  t-snmp':.    ens
│ │ │ +00298d80: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00298d90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Rem │ │ │ -00299900: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00299910: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00299920: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00299960: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00299970: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00299980: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00299990: 736e 6d70 6422 5d0a 3c2f 636f 6465 3e3c snmpd"].< │ │ │ -002999a0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remedia │ │ │ -00299a50: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00299a60: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00299a70: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00299a80: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00299a90: 7365 2220 6964 3d22 6964 3131 3230 223e se" id="id1120"> │ │ │ -00299aa0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ +00298c80: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00298cb0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00298cc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00298d00: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00298d10: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00299b10: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00299b30: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00299b60: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00299b80: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00299af0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00299b00: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00299b40: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00299b50: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00299ba0: 6469 7361 626c 655f 736e 6d70 640a 0a63 disable_snmpd..c │ │ │ -00299bb0: 6c61 7373 2064 6973 6162 6c65 5f73 6e6d lass disable_snm │ │ │ -00299bc0: 7064 207b 0a20 2073 6572 7669 6365 207b pd {. service { │ │ │ -00299bd0: 2773 6e6d 7064 273a 0a20 2020 2065 6e61 'snmpd':. ena │ │ │ -00299be0: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ -00299bf0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00299c00: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ -00299c10: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ -00299c20: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00299cd0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00299ce0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00299d70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00299d90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00299da0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00299db0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00299dc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00299de0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00299e10: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00299e20: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00299e30: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00299e40: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00299e50: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00299e60: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00299e70: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00299e80: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00299e90: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00299ea0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -00299eb0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00299ec0: 640a 2020 2d20 7365 7276 6963 655f 736e  d.  - service_sn
│ │ │ -00299ed0: 6d70 645f 6469 7361 626c 6564 0a0a 2d20  mpd_disabled..- 
│ │ │ -00299ee0: 6e61 6d65 3a20 4469 7361 626c 6520 736e  name: Disable sn
│ │ │ -00299ef0: 6d70 6420 5365 7276 6963 6520 2d20 4469  mpd Service - Di
│ │ │ -00299f00: 7361 626c 6520 7365 7276 6963 6520 736e  sable service sn
│ │ │ -00299f10: 6d70 640a 2020 626c 6f63 6b3a 0a0a 2020  mpd.  block:..  
│ │ │ -00299f20: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00299f30: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ -00299f40: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ -00299f50: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ -00299f60: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ -00299f70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00299f80: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -00299f90: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -00299fa0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -00299fb0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -00299fc0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -00299fd0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00299fe0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00299ff0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -0029a000: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -0029a010: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0029a020: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0029a030: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0029a040: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ -0029a050: 7669 6365 202d 2045 6e73 7572 6520 736e  vice - Ensure sn
│ │ │ -0029a060: 6d70 642e 7365 7276 6963 6520 6973 204d  mpd.service is M
│ │ │ -0029a070: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0029a080: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0029a090: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -0029a0a0: 6e6d 7064 2e73 6572 7669 6365 0a20 2020  nmpd.service.   
│ │ │ -0029a0b0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0029a0c0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0029a0d0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -0029a0e0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0029a0f0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0029a100: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0029a110: 6973 2073 6561 7263 6828 2273 6e6d 7064  is search("snmpd
│ │ │ -0029a120: 2e73 6572 7669 6365 222c 206d 756c 7469  .service", multi
│ │ │ -0029a130: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20  line=True)..  - 
│ │ │ -0029a140: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65  name: Unit Socke
│ │ │ -0029a150: 7420 4578 6973 7473 202d 2073 6e6d 7064  t Exists - snmpd
│ │ │ -0029a160: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -0029a170: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0029a180: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0029a190: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0029a1a0: 7320 736e 6d70 642e 736f 636b 6574 0a20  s snmpd.socket. 
│ │ │ -0029a1b0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0029a1c0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0029a1d0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0029a1e0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0029a1f0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0029a200: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0029a210: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0029a220: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0029a230: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0029a240: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ -0029a250: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ -0029a260: 636b 6574 2073 6e6d 7064 0a20 2020 2061  cket snmpd.    a
│ │ │ -0029a270: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0029a280: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0029a290: 6d65 3a20 736e 6d70 642e 736f 636b 6574  me: snmpd.socket
│ │ │ -0029a2a0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0029a2b0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -0029a2c0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -0029a2d0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -0029a2e0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -0029a2f0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -0029a300: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -0029a310: 6828 2273 6e6d 7064 2e73 6f63 6b65 7422  h("snmpd.socket"
│ │ │ -0029a320: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -0029a330: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -0029a340: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0029a350: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0029a360: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0029a370: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0029a380: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0029a390: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0029a3a0: 6572 7669 6365 5f73 6e6d 7064 5f64 6973  ervice_snmpd_dis
│ │ │ -0029a3b0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -0029a3c0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -0029a3d0: 2020 7768 656e 3a20 2820 2273 6e6d 7064    when: ( "snmpd
│ │ │ -0029a3e0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -0029a3f0: 7473 2e70 6163 6b61 6765 7320 616e 6420  ts.packages and 
│ │ │ -0029a400: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0029a410: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0029a420: 636b 6167 6573 0a20 2020 2029 0a3c 2f63  ckages.    ).
│ │ │ +00299920: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +002999b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002999c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00299a10: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00299a50: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00299a60: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00299a70: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00299a80: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00299a90: 6f0a 2020 7461 6773 3a0a 2020 2d20 6469  o.  tags:.  - di
│ │ │ +00299aa0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00299ab0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00299ac0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00299ad0: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ +00299ae0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00299af0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00299b00: 6572 7669 6365 5f73 6e6d 7064 5f64 6973  ervice_snmpd_dis
│ │ │ +00299b10: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +00299b20: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ +00299b30: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +00299b40: 6572 7669 6365 2073 6e6d 7064 0a20 2062  ervice snmpd.  b
│ │ │ +00299b50: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +00299b60: 2044 6973 6162 6c65 2073 6e6d 7064 2053   Disable snmpd S
│ │ │ +00299b70: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ +00299b80: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ +00299b90: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ +00299ba0: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ +00299bb0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00299bc0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00299bd0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00299be0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ +00299bf0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00299c00: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ +00299c10: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00299c20: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00299c30: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ +00299c40: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00299c50: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00299c60: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00299c70: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00299c80: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ +00299c90: 456e 7375 7265 2073 6e6d 7064 2e73 6572  Ensure snmpd.ser
│ │ │ +00299ca0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +00299cb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00299cc0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00299cd0: 2020 6e61 6d65 3a20 736e 6d70 642e 7365    name: snmpd.se
│ │ │ +00299ce0: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +00299cf0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +00299d00: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +00299d10: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00299d20: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +00299d30: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +00299d40: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00299d50: 6368 2822 736e 6d70 642e 7365 7276 6963  ch("snmpd.servic
│ │ │ +00299d60: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +00299d70: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +00299d80: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +00299d90: 7320 2d20 736e 6d70 642e 736f 636b 6574  s - snmpd.socket
│ │ │ +00299da0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00299db0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00299dc0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00299dd0: 756e 6974 2d66 696c 6573 2073 6e6d 7064  unit-files snmpd
│ │ │ +00299de0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +00299df0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00299e00: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00299e10: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00299e20: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00299e30: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00299e40: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00299e50: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00299e60: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00299e70: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +00299e80: 6e6d 7064 2053 6572 7669 6365 202d 2044  nmpd Service - D
│ │ │ +00299e90: 6973 6162 6c65 2053 6f63 6b65 7420 736e  isable Socket sn
│ │ │ +00299ea0: 6d70 640a 2020 2020 616e 7369 626c 652e  mpd.    ansible.
│ │ │ +00299eb0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00299ec0: 0a20 2020 2020 206e 616d 653a 2073 6e6d  .      name: snm
│ │ │ +00299ed0: 7064 2e73 6f63 6b65 740a 2020 2020 2020  pd.socket.      
│ │ │ +00299ee0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00299ef0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00299f00: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +00299f10: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +00299f20: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00299f30: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00299f40: 2069 7320 7365 6172 6368 2822 736e 6d70   is search("snmp
│ │ │ +00299f50: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +00299f60: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00299f70: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00299f80: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00299f90: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00299fa0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00299fb0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +00299fc0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00299fd0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00299fe0: 736e 6d70 645f 6469 7361 626c 6564 0a20  snmpd_disabled. 
│ │ │ +00299ff0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0029a000: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +0029a010: 2028 2022 736e 6d70 6422 2069 6e20 616e   ( "snmpd" in an
│ │ │ +0029a020: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0029a030: 6167 6573 2061 6e64 2022 6c69 6e75 782d  ages and "linux-
│ │ │ +0029a040: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0029a050: 5f66 6163 7473 2e70 6163 6b61 6765 730a  _facts.packages.
│ │ │ +0029a060: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70      ).

Remediati │ │ │ +0029a120: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0029a130: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029a1b0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0029a240: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +002999a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002999d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002999e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00299a20: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00299a30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ +0029a1c0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029a1d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0029a210: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029a220: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0029a260: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +0029a270: 7361 626c 655f 736e 6d70 640a 0a63 6c61  sable_snmpd..cla
│ │ │ +0029a280: 7373 2064 6973 6162 6c65 5f73 6e6d 7064  ss disable_snmpd
│ │ │ +0029a290: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ +0029a2a0: 6e6d 7064 273a 0a20 2020 2065 6e61 626c  nmpd':.    enabl
│ │ │ +0029a2b0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +0029a2c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0029a2d0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +0029a2e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OS │ │ │ +0029a3a0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0029a3b0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0029a3c0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +0029a400: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0029a410: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +0029a420: 203d 205b 2273 6e6d 7064 225d 0a3c 2f63   = ["snmpd"].
│ │ │ 0029a440: 3c2f 6469 763e 3c2f 7464 3e3c 2f74 723e
│ │ │ 0029a450: 3c2f 7462 6f64 793e 3c2f 7461 626c 653e │ │ │ 0029a460: 3c2f 7464 3e3c 2f74 723e 3c74 7220 6461 Remediation │ │ │ -002bf880: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002bf890: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
include s
│ │ │ -002bf8e0: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ -002bf8f0: 6572 6d73 0a0a 636c 6173 7320 7373 685f  erms..class ssh_
│ │ │ -002bf900: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ -002bf910: 7320 7b0a 2020 6578 6563 207b 2027 7373  s {.  exec { 'ss
│ │ │ -002bf920: 6864 5f70 7269 765f 6b65 7927 3a0a 2020  hd_priv_key':.  
│ │ │ -002bf930: 2020 636f 6d6d 616e 6420 3d26 6774 3b20    command => 
│ │ │ -002bf940: 2263 686d 6f64 2030 3634 3020 2f65 7463  "chmod 0640 /etc
│ │ │ -002bf950: 2f73 7368 2f2a 5f6b 6579 222c 0a20 2020  /ssh/*_key",.   
│ │ │ -002bf960: 2070 6174 6820 2020 203d 2667 743b 2027   path    => '
│ │ │ -002bf970: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20  /bin:/usr/bin'. 
│ │ │ -002bf980: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -002bfa40: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002bfa50: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002bfad0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002bfae0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002bfaf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002bfb30: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002bfb40: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002bfb60: 7464 3e63 6f6e 6669 6775 7265 3c2f 7464 td>configure

- name: │ │ │ -002bfb90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -002bfba0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002bfbb0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002bfbc0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002bfbd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bfbe0: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002bfbf0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002bfc00: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002bfc10: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002bfc20: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002bfc30: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002bfc40: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002bfc50: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002bfc60: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002bfc70: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002bfc80: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002bfc90: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002bfca0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002bfcb0: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002bfcc0: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002bfcd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002bfce0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002bfcf0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002bfd00: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002bfd10: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002bfd20: 4669 6e64 2072 6f6f 743a 726f 6f74 2d6f Find root:root-o │ │ │ -002bfd30: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ -002bfd40: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -002bfd50: 616e 643a 2066 696e 6420 2d48 202f 6574 and: find -H /et │ │ │ -002bfd60: 632f 7373 682f 202d 6d61 7864 6570 7468 c/ssh/ -maxdepth │ │ │ -002bfd70: 2031 202d 7573 6572 2072 6f6f 7420 2d72 1 -user root -r │ │ │ -002bfd80: 6567 6578 2022 2e2a 5f6b 6579 2422 0a20 egex ".*_key$". │ │ │ -002bfd90: 2020 202d 7479 7065 2066 202d 6772 6f75 -type f -grou │ │ │ -002bfda0: 7020 726f 6f74 202d 7065 726d 202f 752b p root -perm /u+ │ │ │ -002bfdb0: 7873 2c67 2b78 7772 732c 6f2b 7877 7274 xs,g+xwrs,o+xwrt │ │ │ -002bfdc0: 0a20 2072 6567 6973 7465 723a 2072 6f6f . register: roo │ │ │ -002bfdd0: 745f 6f77 6e65 645f 6b65 7973 0a20 2063 t_owned_keys. c │ │ │ -002bfde0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ -002bfdf0: 7365 0a20 2066 6169 6c65 645f 7768 656e se. failed_when │ │ │ -002bfe00: 3a20 6661 6c73 650a 2020 6368 6563 6b5f : false. check_ │ │ │ -002bfe10: 6d6f 6465 3a20 6661 6c73 650a 2020 7768 mode: false. wh │ │ │ -002bfe20: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002bfe30: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002bfe40: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002bfe50: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002bfe60: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002bfe70: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002bfe80: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002bfe90: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002bfea0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002bfeb0: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002bfec0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002bfed0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002bfee0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002bfef0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002bff00: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002bff10: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002bff20: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002bff30: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002bff40: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002bff50: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002bff60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002bff70: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002bff80: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002bff90: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002bffa0: 5365 7420 7065 726d 6973 7369 6f6e 7320 Set permissions │ │ │ -002bffb0: 666f 7220 726f 6f74 3a72 6f6f 742d 6f77 for root:root-ow │ │ │ -002bffc0: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ -002bffd0: 6c65 2e62 7569 6c74 696e 2e66 696c 653a le.builtin.file: │ │ │ -002bffe0: 0a20 2020 2070 6174 683a 2027 7b7b 2069 . path: '{{ i │ │ │ -002bfff0: 7465 6d20 7d7d 270a 2020 2020 6d6f 6465 tem }}'. mode │ │ │ -002c0000: 3a20 752d 7873 2c67 2d78 7772 732c 6f2d : u-xs,g-xwrs,o- │ │ │ -002c0010: 7877 7274 0a20 2020 2073 7461 7465 3a20 xwrt. state: │ │ │ -002c0020: 6669 6c65 0a20 2077 6974 685f 6974 656d file. with_item │ │ │ -002c0030: 733a 0a20 202d 2027 7b7b 2072 6f6f 745f s:. - '{{ root_ │ │ │ -002c0040: 6f77 6e65 645f 6b65 7973 2e73 7464 6f75 owned_keys.stdou │ │ │ -002c0050: 745f 6c69 6e65 7320 7d7d 270a 2020 7768 t_lines }}'. wh │ │ │ -002c0060: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002c0070: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002c0080: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002c0090: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002c00a0: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002c00b0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002c00c0: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002c00d0: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002c00e0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002c00f0: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002c0100: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002c0110: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002c0120: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002c0130: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002c0140: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002c0150: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002c0160: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002c0170: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002c0180: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002c0190: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002c01a0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002c01b0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002c01c0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002c01d0: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f needed.

< │ │ │ +002bf910: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002bf920: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002bf940: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002bf950: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002bf970: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002bf990: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ +002bf9b0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002bf9d0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +002bf9e0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +002bf9f0: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +002bfa00: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +002bfa10: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002bfa20: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002bfa30: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002bfa40: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002bfa50: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002bfa60: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002bfa70: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002bfa80: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002bfa90: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002bfaa0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002bfab0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002bfac0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002bfad0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002bfae0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002bfaf0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002bfb00: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002bfb10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002bfb20: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002bfb30: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002bfb40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002bfb50: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ +002bfb60: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ +002bfb70: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ +002bfb80: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +002bfb90: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ +002bfba0: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ +002bfbb0: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ +002bfbc0: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ +002bfbd0: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ +002bfbe0: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ +002bfbf0: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ +002bfc00: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ +002bfc10: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ +002bfc20: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +002bfc30: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ +002bfc40: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ +002bfc50: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ +002bfc60: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +002bfc70: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +002bfc80: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +002bfc90: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002bfca0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002bfcb0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002bfcc0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002bfcd0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002bfce0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002bfcf0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002bfd00: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002bfd10: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002bfd20: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002bfd30: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002bfd40: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002bfd50: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002bfd60: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002bfd70: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002bfd80: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002bfd90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002bfda0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002bfdb0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002bfdc0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002bfdd0: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ +002bfde0: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ +002bfdf0: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ +002bfe00: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ +002bfe10: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ +002bfe20: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ +002bfe30: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ +002bfe40: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ +002bfe50: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ +002bfe60: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ +002bfe70: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ +002bfe80: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ +002bfe90: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ +002bfea0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +002bfeb0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +002bfec0: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +002bfed0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002bfee0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002bfef0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002bff00: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002bff10: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002bff20: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002bff30: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002bff40: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002bff50: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002bff60: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002bff70: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002bff80: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002bff90: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002bffa0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002bffb0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002bffc0: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002bffd0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002bffe0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002bfff0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002c0000: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002c0010: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.

Remediati │ │ │ +002c00d0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002c00e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

include │ │ │ +002c0130: 2073 7368 5f70 7269 7661 7465 5f6b 6579 ssh_private_key │ │ │ +002c0140: 5f70 6572 6d73 0a0a 636c 6173 7320 7373 _perms..class ss │ │ │ +002c0150: 685f 7072 6976 6174 655f 6b65 795f 7065 h_private_key_pe │ │ │ +002c0160: 726d 7320 7b0a 2020 6578 6563 207b 2027 rms {. exec { ' │ │ │ +002c0170: 7373 6864 5f70 7269 765f 6b65 7927 3a0a sshd_priv_key':. │ │ │ +002c0180: 2020 2020 636f 6d6d 616e 6420 3d26 6774 command => │ │ │ +002c0190: 3b20 2263 686d 6f64 2030 3634 3020 2f65 ; "chmod 0640 /e │ │ │ +002c01a0: 7463 2f73 7368 2f2a 5f6b 6579 222c 0a20 tc/ssh/*_key",. │ │ │ +002c01b0: 2020 2070 6174 6820 2020 203d 2667 743b path => │ │ │ +002c01c0: 2027 2f62 696e 3a2f 7573 722f 6269 6e27 '/bin:/usr/bin' │ │ │ +002c01d0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remed │ │ │ -002c1640: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002c1650: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
inc
│ │ │ -002c16a0: 6c75 6465 2073 7368 5f70 7562 6c69 635f  lude ssh_public_
│ │ │ -002c16b0: 6b65 795f 7065 726d 730a 0a63 6c61 7373  key_perms..class
│ │ │ -002c16c0: 2073 7368 5f70 7562 6c69 635f 6b65 795f   ssh_public_key_
│ │ │ -002c16d0: 7065 726d 7320 7b0a 2020 6578 6563 207b  perms {.  exec {
│ │ │ -002c16e0: 2027 7373 6864 5f70 7562 5f6b 6579 273a   'sshd_pub_key':
│ │ │ -002c16f0: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667  .    command =&g
│ │ │ -002c1700: 743b 2022 6368 6d6f 6420 3036 3434 202f  t; "chmod 0644 /
│ │ │ -002c1710: 6574 632f 7373 682f 2a2e 7075 6222 2c0a  etc/ssh/*.pub",.
│ │ │ -002c1720: 2020 2020 7061 7468 2020 2020 3d26 6774      path    =>
│ │ │ -002c1730: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e  ; '/bin:/usr/bin
│ │ │ -002c1740: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  '.  }.}.<
│ │ │ -002c1750: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002c1800: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002c1810: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002c1820: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002c18c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002c18e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002c1910: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002c18a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002c18b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002c18d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002c18f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002c1900: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:configure< │ │ │ -002c1930: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002c1950: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002c1960: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002c1970: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002c1980: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002c1990: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002c19a0: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -002c19b0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -002c19c0: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -002c19d0: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -002c19e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002c19f0: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -002c1a00: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002c1a10: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -002c1a20: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -002c1a30: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002c1a40: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -002c1a50: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -002c1a60: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -002c1a70: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -002c1a80: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ -002c1a90: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002c1aa0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002c1ab0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002c1ac0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002c1ad0: 6565 6465 640a 0a2d 206e 616d 653a 2046  eeded..- name: F
│ │ │ -002c1ae0: 696e 6420 2f65 7463 2f73 7368 2f20 6669  ind /etc/ssh/ fi
│ │ │ -002c1af0: 6c65 2873 290a 2020 616e 7369 626c 652e  le(s).  ansible.
│ │ │ -002c1b00: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002c1b10: 2066 696e 6420 2d50 202f 6574 632f 7373   find -P /etc/ss
│ │ │ -002c1b20: 682f 202d 6d61 7864 6570 7468 2031 202d  h/ -maxdepth 1 -
│ │ │ -002c1b30: 7065 726d 202f 752b 7873 2c67 2b78 7773  perm /u+xs,g+xws
│ │ │ -002c1b40: 2c6f 2b78 7774 2020 2d74 7970 650a 2020  ,o+xwt  -type.  
│ │ │ -002c1b50: 2020 6620 2d72 6567 6578 7479 7065 2070    f -regextype p
│ │ │ -002c1b60: 6f73 6978 2d65 7874 656e 6465 6420 2d72  osix-extended -r
│ │ │ -002c1b70: 6567 6578 2022 5e2e 2a5c 2e70 7562 2422  egex "^.*\.pub$"
│ │ │ -002c1b80: 0a20 2072 6567 6973 7465 723a 2066 696c  .  register: fil
│ │ │ -002c1b90: 6573 5f66 6f75 6e64 0a20 2063 6861 6e67  es_found.  chang
│ │ │ -002c1ba0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002c1bb0: 2066 6169 6c65 645f 7768 656e 3a20 6661   failed_when: fa
│ │ │ -002c1bc0: 6c73 650a 2020 6368 6563 6b5f 6d6f 6465  lse.  check_mode
│ │ │ -002c1bd0: 3a20 6661 6c73 650a 2020 7768 656e 3a20  : false.  when: 
│ │ │ -002c1be0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002c1bf0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002c1c00: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -002c1c10: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002c1c20: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002c1c30: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002c1c40: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002c1c50: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002c1c60: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002c1c70: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002c1c80: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002c1c90: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002c1ca0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002c1cb0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002c1cc0: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002c1cd0: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002c1ce0: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002c1cf0: 6e73 5f73 7368 645f 7075 625f 6b65 790a  ns_sshd_pub_key.
│ │ │ -002c1d00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002c1d10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002c1d20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002c1d30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002c1d40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -002c1d50: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ -002c1d60: 6973 7369 6f6e 7320 666f 7220 2f65 7463  issions for /etc
│ │ │ -002c1d70: 2f73 7368 2f20 6669 6c65 2873 290a 2020  /ssh/ file(s).  
│ │ │ -002c1d80: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002c1d90: 6669 6c65 3a0a 2020 2020 7061 7468 3a20  file:.    path: 
│ │ │ -002c1da0: 277b 7b20 6974 656d 207d 7d27 0a20 2020  '{{ item }}'.   
│ │ │ -002c1db0: 206d 6f64 653a 2075 2d78 732c 672d 7877   mode: u-xs,g-xw
│ │ │ -002c1dc0: 732c 6f2d 7877 740a 2020 2020 7374 6174  s,o-xwt.    stat
│ │ │ -002c1dd0: 653a 2066 696c 650a 2020 7769 7468 5f69  e: file.  with_i
│ │ │ -002c1de0: 7465 6d73 3a0a 2020 2d20 277b 7b20 6669  tems:.  - '{{ fi
│ │ │ -002c1df0: 6c65 735f 666f 756e 642e 7374 646f 7574  les_found.stdout
│ │ │ -002c1e00: 5f6c 696e 6573 207d 7d27 0a20 2077 6865  _lines }}'.  whe
│ │ │ -002c1e10: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002c1e20: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002c1e30: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -002c1e40: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -002c1e50: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ -002c1e60: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002c1e70: 332e 3130 0a20 202d 204e 4953 542d 3830  3.10.  - NIST-80
│ │ │ -002c1e80: 302d 3533 2d41 432d 3137 2861 290a 2020  0-53-AC-17(a).  
│ │ │ -002c1e90: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -002c1ea0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38  -6(1).  - NIST-8
│ │ │ -002c1eb0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -002c1ec0: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ -002c1ed0: 322e 340a 2020 2d20 5043 492d 4453 5376  2.4.  - PCI-DSSv
│ │ │ -002c1ee0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002c1ef0: 5376 342d 322e 322e 360a 2020 2d20 636f  Sv4-2.2.6.  - co
│ │ │ -002c1f00: 6e66 6967 7572 655f 7374 7261 7465 6779  nfigure_strategy
│ │ │ -002c1f10: 0a20 202d 2066 696c 655f 7065 726d 6973  .  - file_permis
│ │ │ -002c1f20: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b  sions_sshd_pub_k
│ │ │ -002c1f30: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ -002c1f40: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002c1f50: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002c1f60: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002c1f70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002c1f80: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002c1640: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +002c1650: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
- 
│ │ │ +002c1790: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002c17a0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002c17b0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002c17c0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002c17d0: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +002c17e0: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ +002c17f0: 330a 2020 2d20 4e49 5354 2d38 3030 2d31  3.  - NIST-800-1
│ │ │ +002c1800: 3731 2d33 2e31 332e 3130 0a20 202d 204e  71-3.13.10.  - N
│ │ │ +002c1810: 4953 542d 3830 302d 3533 2d41 432d 3137  IST-800-53-AC-17
│ │ │ +002c1820: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002c1830: 2d35 332d 4143 2d36 2831 290a 2020 2d20  -53-AC-6(1).  - 
│ │ │ +002c1840: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002c1850: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +002c1860: 5265 712d 322e 322e 340a 2020 2d20 5043  Req-2.2.4.  - PC
│ │ │ +002c1870: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002c1880: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +002c1890: 2020 2d20 636f 6e66 6967 7572 655f 7374    - configure_st
│ │ │ +002c18a0: 7261 7465 6779 0a20 202d 2066 696c 655f  rategy.  - file_
│ │ │ +002c18b0: 7065 726d 6973 7369 6f6e 735f 7373 6864  permissions_sshd
│ │ │ +002c18c0: 5f70 7562 5f6b 6579 0a20 202d 206c 6f77  _pub_key.  - low
│ │ │ +002c18d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002c18e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002c18f0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +002c1900: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002c1910: 5f6e 6565 6465 640a 0a2d 206e 616d 653a  _needed..- name:
│ │ │ +002c1920: 2046 696e 6420 2f65 7463 2f73 7368 2f20   Find /etc/ssh/ 
│ │ │ +002c1930: 6669 6c65 2873 290a 2020 616e 7369 626c  file(s).  ansibl
│ │ │ +002c1940: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002c1950: 643a 2066 696e 6420 2d50 202f 6574 632f  d: find -P /etc/
│ │ │ +002c1960: 7373 682f 202d 6d61 7864 6570 7468 2031  ssh/ -maxdepth 1
│ │ │ +002c1970: 202d 7065 726d 202f 752b 7873 2c67 2b78   -perm /u+xs,g+x
│ │ │ +002c1980: 7773 2c6f 2b78 7774 2020 2d74 7970 650a  ws,o+xwt  -type.
│ │ │ +002c1990: 2020 2020 6620 2d72 6567 6578 7479 7065      f -regextype
│ │ │ +002c19a0: 2070 6f73 6978 2d65 7874 656e 6465 6420   posix-extended 
│ │ │ +002c19b0: 2d72 6567 6578 2022 5e2e 2a5c 2e70 7562  -regex "^.*\.pub
│ │ │ +002c19c0: 2422 0a20 2072 6567 6973 7465 723a 2066  $".  register: f
│ │ │ +002c19d0: 696c 6573 5f66 6f75 6e64 0a20 2063 6861  iles_found.  cha
│ │ │ +002c19e0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002c19f0: 0a20 2066 6169 6c65 645f 7768 656e 3a20  .  failed_when: 
│ │ │ +002c1a00: 6661 6c73 650a 2020 6368 6563 6b5f 6d6f  false.  check_mo
│ │ │ +002c1a10: 6465 3a20 6661 6c73 650a 2020 7768 656e  de: false.  when
│ │ │ +002c1a20: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002c1a30: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002c1a40: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +002c1a50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002c1a60: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ +002c1a70: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ +002c1a80: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ +002c1a90: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ +002c1aa0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +002c1ab0: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ +002c1ac0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002c1ad0: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +002c1ae0: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +002c1af0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002c1b00: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ +002c1b10: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ +002c1b20: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ +002c1b30: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ +002c1b40: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002c1b50: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002c1b60: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002c1b70: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002c1b80: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002c1b90: 0a0a 2d20 6e61 6d65 3a20 5365 7420 7065  ..- name: Set pe
│ │ │ +002c1ba0: 726d 6973 7369 6f6e 7320 666f 7220 2f65  rmissions for /e
│ │ │ +002c1bb0: 7463 2f73 7368 2f20 6669 6c65 2873 290a  tc/ssh/ file(s).
│ │ │ +002c1bc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002c1bd0: 6e2e 6669 6c65 3a0a 2020 2020 7061 7468  n.file:.    path
│ │ │ +002c1be0: 3a20 277b 7b20 6974 656d 207d 7d27 0a20  : '{{ item }}'. 
│ │ │ +002c1bf0: 2020 206d 6f64 653a 2075 2d78 732c 672d     mode: u-xs,g-
│ │ │ +002c1c00: 7877 732c 6f2d 7877 740a 2020 2020 7374  xws,o-xwt.    st
│ │ │ +002c1c10: 6174 653a 2066 696c 650a 2020 7769 7468  ate: file.  with
│ │ │ +002c1c20: 5f69 7465 6d73 3a0a 2020 2d20 277b 7b20  _items:.  - '{{ 
│ │ │ +002c1c30: 6669 6c65 735f 666f 756e 642e 7374 646f  files_found.stdo
│ │ │ +002c1c40: 7574 5f6c 696e 6573 207d 7d27 0a20 2077  ut_lines }}'.  w
│ │ │ +002c1c50: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +002c1c60: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002c1c70: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +002c1c80: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002c1c90: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +002c1ca0: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002c1cb0: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ +002c1cc0: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ +002c1cd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002c1ce0: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ +002c1cf0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002c1d00: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +002c1d10: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ +002c1d20: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +002c1d30: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +002c1d40: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ +002c1d50: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ +002c1d60: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ +002c1d70: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +002c1d80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002c1d90: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002c1da0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002c1db0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002c1dc0: 6465 640a 3c2f 636f 6465 3e3c 2f70 7265  ded.
Remediation │ │ │ +002c1e80: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002c1e90: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
include s
│ │ │ +002c1ee0: 7368 5f70 7562 6c69 635f 6b65 795f 7065  sh_public_key_pe
│ │ │ +002c1ef0: 726d 730a 0a63 6c61 7373 2073 7368 5f70  rms..class ssh_p
│ │ │ +002c1f00: 7562 6c69 635f 6b65 795f 7065 726d 7320  ublic_key_perms 
│ │ │ +002c1f10: 7b0a 2020 6578 6563 207b 2027 7373 6864  {.  exec { 'sshd
│ │ │ +002c1f20: 5f70 7562 5f6b 6579 273a 0a20 2020 2063  _pub_key':.    c
│ │ │ +002c1f30: 6f6d 6d61 6e64 203d 2667 743b 2022 6368  ommand => "ch
│ │ │ +002c1f40: 6d6f 6420 3036 3434 202f 6574 632f 7373  mod 0644 /etc/ss
│ │ │ +002c1f50: 682f 2a2e 7075 6222 2c0a 2020 2020 7061  h/*.pub",.    pa
│ │ │ +002c1f60: 7468 2020 2020 3d26 6774 3b20 272f 6269  th    => '/bi
│ │ │ +002c1f70: 6e3a 2f75 7372 2f62 696e 270a 2020 7d0a  n:/usr/bin'.  }.
│ │ │ +002c1f80: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 002c1f90: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> '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: │ │ │ │ @@ -170,14 +153,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 │ │ │ │ @@ -1342,31 +1342,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: │ │ │ │ @@ -1393,14 +1376,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 │ │ │ │ @@ -5719,31 +5719,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: │ │ │ │ @@ -5764,14 +5747,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 │ │ │ │ @@ -5788,31 +5788,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -5833,14 +5816,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -5853,31 +5853,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: │ │ │ │ @@ -5886,14 +5869,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" │ │ │ │ @@ -8397,31 +8397,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: │ │ │ │ @@ -8431,14 +8414,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 │ │ │ │ @@ -8454,31 +8454,14 @@ │ │ │ │ system will be available. │ │ │ │ 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- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _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" │ │ │ │ -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: │ │ │ │ @@ -8488,14 +8471,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -8928,31 +8928,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: │ │ │ │ @@ -8973,14 +8956,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$'; then │ │ │ │ @@ -9005,31 +9005,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: │ │ │ │ @@ -9065,14 +9048,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$' && { ( ( │ │ │ │ @@ -9097,31 +9097,14 @@ │ │ │ │ Rationale: 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: │ │ │ │ @@ -9156,14 +9139,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 │ │ │ │ @@ -10122,31 +10122,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: │ │ │ │ @@ -10169,14 +10152,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 │ │ │ │ @@ -10204,31 +10204,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -10265,14 +10248,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$'; then │ │ │ │ @@ -10618,31 +10618,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -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_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - 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: │ │ │ │ @@ -10663,14 +10646,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_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_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + 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 = "iptables-persistent" │ │ │ │ +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}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10687,31 +10687,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -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_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - 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: │ │ │ │ @@ -10736,14 +10719,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_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_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + 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 = "iptables" │ │ │ │ +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 ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -10757,27 +10757,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: │ │ │ │ @@ -10798,14 +10785,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 │ │ │ │ @@ -16596,31 +16596,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -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_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - 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: │ │ │ │ @@ -16645,14 +16628,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_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_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + 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 = "nftables" │ │ │ │ +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 ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -16668,31 +16668,14 @@ │ │ │ │ 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.3.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: │ │ │ │ @@ -16726,14 +16709,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 -q '^installed$' && ! │ │ │ │ @@ -16756,31 +16756,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.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_ _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: │ │ │ │ @@ -16836,14 +16819,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "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 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"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree nnffttaabblleess DDeeffaauulltt DDeennyy FFiirreewwaallll PPoolliiccyy ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Base chain policy is the default verdict that will be applied to packets reaching the end of the chain. There are │ │ │ │ two policies: accept (Default) and drop. If the policy is set to accept, the firewall will accept any packet that │ │ │ │ is not configured to be denied and the packet will continue traversing the network stack. Run the following │ │ │ │ commands and verify that base chains contain a policy of DROP. │ │ │ │ $ nft list ruleset | grep 'hook input' │ │ │ │ type filter hook input priority 0; policy drop; │ │ │ │ @@ -17305,31 +17305,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = "ufw" │ │ │ │ -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_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17350,14 +17333,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 = "ufw" │ │ │ │ +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 │ │ │ │ @@ -17370,27 +17370,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17411,14 +17398,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 │ │ │ │ @@ -17439,31 +17439,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17498,14 +17481,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" 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_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + 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 = ["ufw"] │ │ │ │ _R_e_m_e_d_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$' && { ( │ │ │ │ @@ -17599,31 +17599,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_ _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: │ │ │ │ @@ -17687,14 +17670,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDeeaaccttiivvaattee WWiirreelleessss NNeettwwoorrkk IInntteerrffaacceess ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Deactivating wireless network interfaces should prevent normal usage of the wireless capability. │ │ │ │ │ │ │ │ Configure the system to disable all wireless network interfaces with the following command: │ │ │ │ $ sudo nmcli radio all off │ │ │ │ The use of wireless networking can introduce many different attack vectors into the organization's │ │ │ │ network. Common attack vectors such as malicious association and ad hoc networks will allow an attacker │ │ │ │ @@ -24452,27 +24452,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: │ │ │ │ @@ -24481,14 +24468,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 │ │ │ │ @@ -24526,31 +24526,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_ _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: │ │ │ │ @@ -24611,14 +24594,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDiissaabbllee MMoouunnttiinngg ooff ccrraammffss ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ To configure the system to prevent the cramfs kernel module from being loaded, add the following line to the file │ │ │ │ /etc/modprobe.d/cramfs.conf: │ │ │ │ install cramfs /bin/false │ │ │ │ This entry will cause a non-zero return value during a cramfs module installation and additionally convey the │ │ │ │ meaning of the entry to the user in form of an error message. If you would like to omit a non-zero return value │ │ │ │ and an error message, you may want to add a different line instead (both /bin/true and /bin/false are allowed by │ │ │ │ @@ -30345,27 +30345,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 │ │ │ │ - │ │ │ │ -class remove_avahi { │ │ │ │ - package { 'avahi': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -30377,14 +30364,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 │ │ │ │ + │ │ │ │ +class remove_avahi { │ │ │ │ + package { 'avahi': │ │ │ │ + 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 │ │ │ │ @@ -30411,31 +30411,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_ _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: │ │ │ │ @@ -30497,14 +30480,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi" 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 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"] │ │ │ │ Group   Cron and At Daemons   Group contains 1 group and 32 rules │ │ │ │ _[_r_e_f_]   The cron and at services are used to allow commands to be executed at a later time. The cron service is │ │ │ │ required by almost all systems to perform necessary maintenance tasks, while at may or may not be required on a │ │ │ │ given system. Both daemons should be configured defensively. │ │ │ │ Group   Restrict at and cron to Authorized Users if Necessary   Group contains 12 rules │ │ │ │ _[_r_e_f_]   The /etc/cron.allow and /etc/at.allow files contain lists of users who are allowed to use cron and at to │ │ │ │ delay execution of processes. If these files exist and if the corresponding files /etc/cron.deny and /etc/at.deny │ │ │ │ @@ -31520,31 +31520,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: │ │ │ │ @@ -31571,14 +31554,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 │ │ │ │ @@ -31605,31 +31605,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: │ │ │ │ @@ -31664,14 +31647,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 │ │ │ │ @@ -33445,27 +33445,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: │ │ │ │ @@ -33474,14 +33461,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 │ │ │ │ @@ -33520,27 +33520,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33554,14 +33541,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -33577,31 +33577,14 @@ │ │ │ │ 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_ _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: │ │ │ │ @@ -33651,14 +33634,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDiissaabbllee DDHHCCPP SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd.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 │ │ │ │ @@ -33670,31 +33670,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 = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -33750,14 +33733,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   DNS Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   Most organizations have an operational need to run at least one nameserver. However, there are many common │ │ │ │ attacks involving DNS server software, and this server software should be disabled on any system on which it is not │ │ │ │ needed. │ │ │ │ Group   Disable DNS Server   Group contains 2 rules │ │ │ │ _[_r_e_f_]   DNS software should be disabled on any systems which does not need to be a nameserver. Note that the BIND │ │ │ │ DNS server software is not installed on Debian 12 by default. The remainder of this section discusses secure │ │ │ │ @@ -33776,27 +33776,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_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - 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 bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33808,14 +33795,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_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + 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 bind │ │ │ │ @@ -33840,31 +33840,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_ _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: │ │ │ │ @@ -33920,37 +33903,41 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddnnssmmaassqq PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ dnsmasq is a lightweight tool that provides DNS caching, DNS forwarding and DHCP (Dynamic Host Configuration │ │ │ │ Protocol) services. │ │ │ │ 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: │ │ │ │ @@ -33959,14 +33946,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 │ │ │ │ @@ -33981,31 +33981,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_ _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: │ │ │ │ @@ -34055,14 +34038,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   FTP Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   FTP is a common method for allowing remote access to files. Like telnet, the FTP protocol is unencrypted, │ │ │ │ which means that passwords and other data transmitted during the session can be captured and that the session is │ │ │ │ vulnerable to hijacking. Therefore, running the FTP server software is not recommended. │ │ │ │ │ │ │ │ However, there are some FTP server configurations which may be appropriate for some environments, particularly │ │ │ │ those which allow only read-only anonymous access as a means of downloading data available to the public. │ │ │ │ @@ -34082,27 +34082,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: │ │ │ │ @@ -34118,14 +34105,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 │ │ │ │ @@ -34151,31 +34151,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_ _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: │ │ │ │ @@ -34231,41 +34214,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  RReemmoovvee ffttpp PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ FTP (File Transfer Protocol) is a traditional and widely used standard tool for transferring files between a │ │ │ │ server and clients over a network, especially where no authentication is necessary (permits anonymous users to │ │ │ │ connect to a server). │ │ │ │ The ftp package can be removed with the following command: │ │ │ │ $ apt-get remove ftp │ │ │ │ FTP does not protect the confidentiality of data or authentication credentials. It is recommended SFTP │ │ │ │ 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: │ │ │ │ @@ -34276,14 +34263,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 │ │ │ │ @@ -34301,27 +34301,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: │ │ │ │ @@ -34330,14 +34317,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 │ │ │ │ @@ -34375,27 +34375,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_httpd │ │ │ │ - │ │ │ │ -class remove_httpd { │ │ │ │ - package { 'httpd': │ │ │ │ - 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 httpd Package: Ensure httpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34407,14 +34394,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_httpd │ │ │ │ + │ │ │ │ +class remove_httpd { │ │ │ │ + package { 'httpd': │ │ │ │ + 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 httpd │ │ │ │ @@ -34439,31 +34439,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 = ["httpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_httpd │ │ │ │ - │ │ │ │ -class disable_httpd { │ │ │ │ - service {'httpd': │ │ │ │ - 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: │ │ │ │ @@ -34519,14 +34502,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_httpd │ │ │ │ + │ │ │ │ +class disable_httpd { │ │ │ │ + service {'httpd': │ │ │ │ + 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 = ["httpd"] │ │ │ │ Group   Disable NGINX if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If NGINX was installed and activated, but the system does not need to act as a web server, then it should │ │ │ │ be removed from the system. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnggiinnxx PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nginx package can be removed with the following command: │ │ │ │ $ apt-get remove nginx │ │ │ │ Rationale: If there is no need to make the web server software available, removing it provides a safeguard against │ │ │ │ @@ -34539,27 +34539,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: │ │ │ │ @@ -34571,14 +34558,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 │ │ │ │ @@ -34593,31 +34593,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_ _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: │ │ │ │ @@ -34667,41 +34650,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   IMAP and POP3 Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Dovecot provides IMAP and POP3 services. It is not installed by default. The project page at _h_t_t_p_:_/_/ │ │ │ │ _w_w_w_._d_o_v_e_c_o_t_._o_r_g contains more detailed information about Dovecot configuration. │ │ │ │ Group   Disable Dovecot   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If the system does not need to operate as an IMAP or POP3 server, the dovecot software should be disabled │ │ │ │ and removed. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddoovveeccoott PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dovecot package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot │ │ │ │ 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 │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34710,14 +34697,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 │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + 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 │ │ │ │ @@ -34732,31 +34732,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_ _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: │ │ │ │ @@ -34806,14 +34789,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   LDAP   Group contains 2 groups and 3 rules │ │ │ │ _[_r_e_f_]   LDAP is a popular directory service, that is, a standardized way of looking up information from a central │ │ │ │ database. Debian 12 includes software that enables a system to act as both an LDAP client and server. │ │ │ │ Group   Configure OpenLDAP Clients   Group contains 1 rule │ │ │ │ _[_r_e_f_]   This section provides information on which security settings are important to configure in OpenLDAP clients │ │ │ │ by manually editing the appropriate configuration files. Debian 12 provides an automated configuration tool called │ │ │ │ authconfig and a graphical wrapper for authconfig called system-config-authentication. However, these tools do not │ │ │ │ @@ -34827,27 +34827,14 @@ │ │ │ │ from a central database. The openldap-clients package can be removed with the following command: │ │ │ │ $ apt-get remove openldap-clients │ │ │ │ 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_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - 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 openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34856,14 +34843,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_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + 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 openldap-clients │ │ │ │ @@ -34892,27 +34892,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_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - 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 openldap-servers Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34924,14 +34911,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_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + 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 openldap-servers │ │ │ │ @@ -34946,31 +34946,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_ _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: │ │ │ │ @@ -35020,14 +35003,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Mail Server Software   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Mail servers are used to send and receive email over the network. Mail is a very common service, and Mail │ │ │ │ Transfer Agents (MTAs) are obvious targets of network attack. Ensure that systems are not running MTAs │ │ │ │ unnecessarily, and configure needed MTAs as defensively as possible. │ │ │ │ │ │ │ │ Very few systems at any site should be configured to directly receive email over the network. Users should instead │ │ │ │ use mail client programs to retrieve email from a central server that supports protocols such as IMAP or POP3. │ │ │ │ @@ -35096,27 +35096,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: │ │ │ │ @@ -35137,14 +35124,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 │ │ │ │ @@ -35170,31 +35170,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_ _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: │ │ │ │ @@ -35248,14 +35231,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Configure NFS Clients   Group contains 1 group and 1 rule │ │ │ │ _[_r_e_f_]   The steps in this section are appropriate for systems which operate as NFS clients. │ │ │ │ Group   Disable NFS Server Daemons   Group contains 1 rule │ │ │ │ _[_r_e_f_]   There is no need to run the NFS server daemons nfs and rpcsvcgssd except on a small number of properly │ │ │ │ secured systems designated as NFS servers. Ensure that these daemons are turned off on clients. │ │ │ │ ****** RRuullee? ?  DDiissaabbllee NNeettwwoorrkk FFiillee SSyysstteemm ((nnffss)) ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the │ │ │ │ @@ -35272,31 +35272,14 @@ │ │ │ │ 4.3.3.6.8, 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 │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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_ _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: │ │ │ │ @@ -35353,35 +35336,39 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnffss--kkeerrnneell--sseerrvveerr PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -35390,14 +35377,27 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -35460,31 +35460,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -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_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - 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: │ │ │ │ @@ -35511,14 +35494,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_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_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + 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 = "chrony" │ │ │ │ +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 │ │ │ │ @@ -35540,31 +35540,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, 4.4.2.4 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.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 = "systemd-timesyncd" │ │ │ │ -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-timesyncd │ │ │ │ - │ │ │ │ -class install_systemd-timesyncd { │ │ │ │ - package { 'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -35589,14 +35572,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_timesyncd_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-timesyncd │ │ │ │ + │ │ │ │ +class install_systemd-timesyncd { │ │ │ │ + package { 'systemd-timesyncd': │ │ │ │ + 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-timesyncd" │ │ │ │ +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 │ │ │ │ @@ -35616,31 +35616,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -35675,14 +35658,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" 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_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + 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 = ["chrony"] │ │ │ │ _R_e_m_e_d_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$' && │ │ │ │ @@ -35715,31 +35715,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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -35785,14 +35768,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" 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-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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-timesyncd"] │ │ │ │ _R_e_m_e_d_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$' && { ( ( ! │ │ │ │ @@ -35812,31 +35812,14 @@ │ │ │ │ ****** RRuullee? ?  TThhee CChhrroonnyydd sseerrvviiccee iiss ddiissaabblleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The chrony service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now chrony.service │ │ │ │ Rationale: Disabling the chrony service ensures that there is only single one time service running. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_disabled │ │ │ │ References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class disable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -35889,41 +35872,41 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ -****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ -The systemd_timesyncd service can be disabled with the following command: │ │ │ │ -$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ - Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ -Rationale: │ │ │ │ - Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ - _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ -Severity:  medium │ │ │ │ -Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ -References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_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_systemd-timesyncd │ │ │ │ +include disable_chrony │ │ │ │ │ │ │ │ -class disable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ +class disable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ 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 = ["chrony"] │ │ │ │ +****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ +The systemd_timesyncd service can be disabled with the following command: │ │ │ │ +$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ + Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ +Rationale: │ │ │ │ + Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ + _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ +Severity:  medium │ │ │ │ +Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ +References: _c_i_s 2.3.1.1 │ │ │ │ _R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -35977,14 +35960,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"systemd-timesyncd" 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 disable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class disable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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 = ["systemd-timesyncd"] │ │ │ │ ****** RRuullee? ?  CChhrroonnyy CCoonnffiigguurree PPooooll aanndd SSeerrvveerr ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Chrony is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks │ │ │ │ across a variety of systems and use a source that is highly accurate. More information on chrony can be found at │ │ │ │ _h_t_t_p_s_:_/_/_c_h_r_o_n_y_-_p_r_o_j_e_c_t_._o_r_g_/. Chrony can be configured to be a client and/or a server. Add or edit server or pool │ │ │ │ lines to /etc/chrony/chrony.conf as appropriate: │ │ │ │ server │ │ │ │ Multiple servers may be configured. │ │ │ │ @@ -36379,27 +36379,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: │ │ │ │ @@ -36430,14 +36417,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 │ │ │ │ @@ -36476,31 +36476,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_ _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: │ │ │ │ @@ -36558,14 +36541,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   NIS   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Network Information Service (NIS), also known as 'Yellow Pages' (YP), and its successor NIS+ have been │ │ │ │ made obsolete by Kerberos, LDAP, and other modern centralized authentication services. NIS should not be used │ │ │ │ because it suffers from security problems inherent in its design, such as inadequate protection of important │ │ │ │ authentication information. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll yyppsseerrvv PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ypserv package can be removed with the following command: │ │ │ │ @@ -36591,27 +36591,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: │ │ │ │ @@ -36627,14 +36614,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 │ │ │ │ @@ -36650,31 +36650,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_ _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: │ │ │ │ @@ -36724,14 +36707,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Rlogin, Rsh, and Rexec   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Berkeley r-commands are legacy services which allow cleartext remote access and have an insecure trust │ │ │ │ model. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrsshh PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The rsh package contains the client commands for the rsh services │ │ │ │ These legacy clients contain numerous security exposures and have been replaced with the more secure │ │ │ │ Rationale: SSH package. Even if the server is removed, it is best to ensure the clients are also removed to │ │ │ │ @@ -36742,27 +36742,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36774,14 +36761,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -36831,27 +36831,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: │ │ │ │ @@ -36862,14 +36849,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 │ │ │ │ @@ -36888,27 +36888,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 Debian 12. │ │ │ │ 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: │ │ │ │ @@ -36917,14 +36904,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 │ │ │ │ @@ -36946,27 +36946,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: │ │ │ │ @@ -36978,14 +36965,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 │ │ │ │ @@ -37025,27 +37025,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37059,14 +37046,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -37094,31 +37094,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 = ["tftp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_tftp │ │ │ │ - │ │ │ │ -class disable_tftp { │ │ │ │ - service {'tftp': │ │ │ │ - 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: │ │ │ │ @@ -37174,35 +37157,39 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftp │ │ │ │ + │ │ │ │ +class disable_tftp { │ │ │ │ + service {'tftp': │ │ │ │ + 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 = ["tftp"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrssyynncc PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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: │ │ │ │ @@ -37211,14 +37198,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 │ │ │ │ @@ -37233,31 +37233,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 = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -37312,14 +37295,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Print Support   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Common Unix Printing System (CUPS) service provides both local and network printing support. A system │ │ │ │ running the CUPS service can accept print jobs from other systems, process them, and send them to the appropriate │ │ │ │ printer. It also provides an interface for remote administration through a web browser. The CUPS service is │ │ │ │ installed and activated by default. The project homepage and more detailed documentation are available at _h_t_t_p_:_/_/ │ │ │ │ _w_w_w_._c_u_p_s_._o_r_g. │ │ │ │ │ │ │ │ @@ -37337,27 +37337,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: │ │ │ │ @@ -37369,14 +37356,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 │ │ │ │ @@ -37400,31 +37400,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_ _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: │ │ │ │ @@ -37480,14 +37463,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Proxy Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   A proxy server is a very desirable target for a potential adversary because much (or all) sensitive data │ │ │ │ for a given infrastructure may flow through it. Therefore, if one is required, the system acting as a proxy server │ │ │ │ should be dedicated to that purpose alone and be stored in a physically secure location. The system's default proxy │ │ │ │ server software is Squid, and provided in an RPM package of the same name. │ │ │ │ Group   Disable Squid if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If Squid was installed and activated, but the system does not need to act as a proxy server, then it should │ │ │ │ @@ -37497,27 +37497,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: │ │ │ │ @@ -37526,14 +37513,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 │ │ │ │ @@ -37549,31 +37549,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_ _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: │ │ │ │ @@ -37624,14 +37607,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Samba(SMB) Microsoft Windows File Sharing Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   When properly configured, the Samba service allows Linux systems to provide file and print sharing to │ │ │ │ Microsoft Windows systems. There are two software packages that provide Samba support. The first, samba-client, │ │ │ │ provides a series of command line tools that enable a client system to access Samba shares. The second, simply │ │ │ │ labeled samba, provides the Samba service. It is this second package that allows a Linux system to act as an Active │ │ │ │ Directory server, a domain controller, or as a domain member. Only the samba-client package is installed by │ │ │ │ default. │ │ │ │ @@ -37642,27 +37642,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: │ │ │ │ @@ -37671,14 +37658,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 │ │ │ │ @@ -37692,31 +37692,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 = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - 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: │ │ │ │ @@ -37766,14 +37749,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + 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 = ["smb"] │ │ │ │ Group   SNMP Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   The Simple Network Management Protocol allows administrators to monitor the state of network devices, │ │ │ │ including computers. Older versions of SNMP were well-known for weak security, such as plaintext transmission of │ │ │ │ the community string (used for authentication) and usage of easily-guessable choices for the community string. │ │ │ │ Group   Disable SNMP Server if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The system includes an SNMP daemon that allows for its remote monitoring, though it not installed by │ │ │ │ default. If it was installed and activated but is not needed, the software should be disabled and removed. │ │ │ │ @@ -37782,27 +37782,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_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-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 net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -37813,14 +37800,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_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-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 net-snmp │ │ │ │ @@ -37835,31 +37835,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_ _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: │ │ │ │ @@ -37910,14 +37893,31 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmpd" 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 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"] │ │ │ │ Group   SSH Server   Group contains 1 group and 23 rules │ │ │ │ _[_r_e_f_]   The SSH protocol is recommended for remote login and remote file transfer. SSH provides confidentiality and │ │ │ │ integrity for data exchanged between two systems, as well as server authentication, through the use of public key │ │ │ │ cryptography. The implementation included with the system is called OpenSSH, and more detailed documentation is │ │ │ │ available from its website, _h_t_t_p_s_:_/_/_w_w_w_._o_p_e_n_s_s_h_._c_o_m. Its server program is called sshd and provided by the RPM │ │ │ │ package openssh-server. │ │ │ │ Group   Configure OpenSSH Server if Necessary   Group contains 18 rules │ │ │ │ @@ -40260,23 +40260,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 0640 /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: │ │ │ │ @@ -40340,14 +40331,23 @@ │ │ │ │ - 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 0640 /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 │ │ │ │ @@ -40384,23 +40384,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: │ │ │ │ @@ -40464,14 +40455,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-debian/ssg-debian12-guide-cis_level1_workstation.html │ │ │ @@ -15060,134 +15060,134 @@ │ │ │ 0003ad30: 7073 6522 2064 6174 612d 7461 7267 6574 pse" data-target │ │ │ 0003ad40: 3d22 2369 6431 3522 2074 6162 696e 6465 ="#id15" tabinde │ │ │ 0003ad50: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 0003ad60: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 0003ad70: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 0003ad80: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 0003ad90: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -0003ada0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0003adb0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0003adc0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0003add0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ -0003ae00: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -0003ae10: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -0003ae20: 6169 6465 220a 7665 7273 696f 6e20 3d20 aide".version = │ │ │ -0003ae30: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265 "*".
Remediation P │ │ │ -0003aef0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0003af00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Com │ │ │ +002c16e0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002c1710: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002c1730: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002c1740: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002c1760: 2f74 683e 3c74 643e 636f 6e66 6967 7572 /th>configur │ │ │ +002c1770: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -0003afd0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003afe0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003b030: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -0003b040: 6169 6465 0a0a 636c 6173 7320 696e 7374  aide..class inst
│ │ │ -0003b050: 616c 6c5f 6169 6465 207b 0a20 2070 6163  all_aide {.  pac
│ │ │ -0003b060: 6b61 6765 207b 2027 6169 6465 273a 0a20  kage { 'aide':. 
│ │ │ -0003b070: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0003b080: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ -0003b090: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0003b0a0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation An │ │ │ -0003b150: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0003b160: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disru │ │ │ -0003afb0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003afc0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003b000: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003b010: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -0003b230: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0003b240: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -0003b290: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0003b2a0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0003b2b0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0003b2c0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0003b2d0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0003b2e0: 434a 4953 2d35 2e31 302e 312e 330a 2020  CJIS-5.10.1.3.  
│ │ │ -0003b2f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0003b300: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0003b310: 532d 5265 712d 3131 2e35 0a20 202d 2050  S-Req-11.5.  - P
│ │ │ -0003b320: 4349 2d44 5353 7634 2d31 312e 352e 320a  CI-DSSv4-11.5.2.
│ │ │ -0003b330: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0003b340: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0003b350: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0003b360: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0003b370: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0003b380: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0003b390: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -0003b3a0: 6964 655f 696e 7374 616c 6c65 640a 0a2d  ide_installed..-
│ │ │ -0003b3b0: 206e 616d 653a 2045 6e73 7572 6520 6169   name: Ensure ai
│ │ │ -0003b3c0: 6465 2069 7320 696e 7374 616c 6c65 640a  de is installed.
│ │ │ -0003b3d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0003b3e0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0003b3f0: 616d 653a 2061 6964 650a 2020 2020 7374  ame: aide.    st
│ │ │ -0003b400: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -0003b410: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -0003b420: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -0003b430: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -0003b440: 7461 6773 3a0a 2020 2d20 434a 4953 2d35  tags:.  - CJIS-5
│ │ │ -0003b450: 2e31 302e 312e 330a 2020 2d20 4e49 5354  .10.1.3.  - NIST
│ │ │ -0003b460: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0003b470: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0003b480: 3131 2e35 0a20 202d 2050 4349 2d44 5353  11.5.  - PCI-DSS
│ │ │ -0003b490: 7634 2d31 312e 352e 320a 2020 2d20 656e  v4-11.5.2.  - en
│ │ │ -0003b4a0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0003b4b0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0003b4c0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0003b4d0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0003b4e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0003b4f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0003b500: 2070 6163 6b61 6765 5f61 6964 655f 696e   package_aide_in
│ │ │ -0003b510: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0003ada0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0003adb0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
low
Disru │ │ │ -0003b210: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0003b220: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0003b260: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -0003b270: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0003ae50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0003ae60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0003aeb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +0003aef0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0003af00: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0003af10: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0003af20: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0003af30: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ +0003af40: 532d 352e 3130 2e31 2e33 0a20 202d 204e  S-5.10.1.3.  - N
│ │ │ +0003af50: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0003af60: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +0003af70: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ +0003af80: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ +0003af90: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +0003afa0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0003afb0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0003afc0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0003afd0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0003afe0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0003aff0: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ +0003b000: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +0003b010: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ +0003b020: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +0003b030: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +0003b040: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +0003b050: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ +0003b060: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +0003b070: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0003b080: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0003b090: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +0003b0a0: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ +0003b0b0: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ +0003b0c0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +0003b0d0: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ +0003b0e0: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ +0003b0f0: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ +0003b100: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0003b110: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0003b120: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0003b130: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0003b140: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0003b150: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0003b160: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ +0003b170: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.Remediation 
│ │ │ +0003b230: 5075 7070 6574 2073 6e69 7070 6574 20e2  Puppet snippet .
│ │ │ +0003b240: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
C │ │ │ +0003ae40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0003ae70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0003ae80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0003aec0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0003aed0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0003b2c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0003b2e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0003b330: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +0003b380: 5f61 6964 650a 0a63 6c61 7373 2069 6e73  _aide..class ins
│ │ │ +0003b390: 7461 6c6c 5f61 6964 6520 7b0a 2020 7061  tall_aide {.  pa
│ │ │ +0003b3a0: 636b 6167 6520 7b20 2761 6964 6527 3a0a  ckage { 'aide':.
│ │ │ +0003b3b0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0003b3c0: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +0003b3d0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ +0003b490: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0003b4a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0003b4b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.[
│ │ │ +0003b4f0: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +0003b500: 203d 2022 6169 6465 220a 7665 7273 696f   = "aide".versio
│ │ │ +0003b510: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  0003b520: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -0004d730: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0004d740: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0004d750: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
.[[packa │ │ │ -0004d7a0: 6765 735d 5d0a 6e61 6d65 203d 2022 7375 ges]].name = "su │ │ │ -0004d7b0: 646f 220a 7665 7273 696f 6e20 3d20 222a do".version = "* │ │ │ -0004d7c0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ -0004d7d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ -0004d880: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0004d890: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disr │ │ │ +0003b2f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0003b300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0003b340: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0003b350: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0004d920: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0004d9c0: 636c 7564 6520 696e 7374 616c 6c5f 7375  clude install_su
│ │ │ -0004d9d0: 646f 0a0a 636c 6173 7320 696e 7374 616c  do..class instal
│ │ │ -0004d9e0: 6c5f 7375 646f 207b 0a20 2070 6163 6b61  l_sudo {.  packa
│ │ │ -0004d9f0: 6765 207b 2027 7375 646f 273a 0a20 2020  ge { 'sudo':.   
│ │ │ -0004da00: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -0004da10: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -0004da20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0004dad0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0004dae0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0004daf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ -0004d910: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0004d940: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0004d950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0004d990: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0004d9a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0004db80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0004dc20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0004dc30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0004dc40: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0004dc50: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0004dc60: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0004dc70: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0004dc80: 290a 2020 2d20 5043 492d 4453 5376 342d  ).  - PCI-DSSv4-
│ │ │ -0004dc90: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -0004dca0: 342d 322e 322e 360a 2020 2d20 656e 6162  4-2.2.6.  - enab
│ │ │ -0004dcb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0004dcc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0004dcd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0004dce0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0004dcf0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0004dd00: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0004dd10: 6163 6b61 6765 5f73 7564 6f5f 696e 7374  ackage_sudo_inst
│ │ │ -0004dd20: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0004dd30: 6e73 7572 6520 7375 646f 2069 7320 696e  nsure sudo is in
│ │ │ -0004dd40: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -0004dd50: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -0004dd60: 653a 0a20 2020 206e 616d 653a 2073 7564  e:.    name: sud
│ │ │ -0004dd70: 6f0a 2020 2020 7374 6174 653a 2070 7265  o.    state: pre
│ │ │ -0004dd80: 7365 6e74 0a20 2077 6865 6e3a 2027 226c  sent.  when: '"l
│ │ │ -0004dd90: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0004dda0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0004ddb0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0004ddc0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0004ddd0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -0004dde0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -0004ddf0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -0004de00: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0004de10: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0004de20: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0004de30: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0004de40: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0004de50: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0004de60: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ -0004de70: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +0004d750: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
│ │ │ -0004db70: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0004dba0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0004dbb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0004dbf0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0004dc00: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +0004d7d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0004d800: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0004d820: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0004d830: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0004d850: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0004d870: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0004d880: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0004d890: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +0004d8a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +0004d8b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +0004d8c0: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +0004d8d0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +0004d8e0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +0004d8f0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0004d900: 2e32 2e36 0a20 202d 2065 6e61 626c 655f  .2.6.  - enable_
│ │ │ +0004d910: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0004d920: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0004d930: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0004d940: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0004d950: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0004d960: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +0004d970: 6167 655f 7375 646f 5f69 6e73 7461 6c6c  age_sudo_install
│ │ │ +0004d980: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +0004d990: 7265 2073 7564 6f20 6973 2069 6e73 7461  re sudo is insta
│ │ │ +0004d9a0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ +0004d9b0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0004d9c0: 2020 2020 6e61 6d65 3a20 7375 646f 0a20      name: sudo. 
│ │ │ +0004d9d0: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0004d9e0: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0004d9f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0004da00: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0004da10: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +0004da20: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0004da30: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +0004da40: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0004da50: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +0004da60: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0004da70: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0004da80: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0004da90: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0004daa0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0004dab0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0004dac0: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ +0004dad0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
Remediatio │ │ │ +0004db90: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0004dba0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity: │ │ │ +0004dc30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0004dc50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0004dc70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0004dca0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0004dcb0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0004dcc0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +0004dce0: 6c6c 5f73 7564 6f0a 0a63 6c61 7373 2069  ll_sudo..class i
│ │ │ +0004dcf0: 6e73 7461 6c6c 5f73 7564 6f20 7b0a 2020  nstall_sudo {.  
│ │ │ +0004dd00: 7061 636b 6167 6520 7b20 2773 7564 6f27  package { 'sudo'
│ │ │ +0004dd10: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0004dd20: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ +0004dd30: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediation │ │ │ +0004ddf0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0004de00: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...

│ │ │ +0004de50: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +0004de60: 6d65 203d 2022 7375 646f 220a 7665 7273  me = "sudo".vers
│ │ │ +0004de70: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remediati │ │ │ -00095ca0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00095cb0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00095cc0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00095d10: 0a6e 616d 6520 3d20 226c 6962 7061 6d2d  .name = "libpam-
│ │ │ -00095d20: 6d6f 6475 6c65 7322 0a76 6572 7369 6f6e  modules".version
│ │ │ -00095d30: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -00095df0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00095e00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00095e80: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00095e90: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00095eb0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00095ec0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00095ee0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00095f00: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00095f30: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -00095f40: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -00095f50: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -00095f60: 6c6c 5f6c 6962 7061 6d2d 6d6f 6475 6c65  ll_libpam-module
│ │ │ -00095f70: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -00095f80: 276c 6962 7061 6d2d 6d6f 6475 6c65 7327  'libpam-modules'
│ │ │ -00095f90: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00095fa0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -00095fb0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00096070: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00096080: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00096100: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00096110: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00096130: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00096140: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00096160: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00096180: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000961b0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000961c0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000961d0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000961e0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000961f0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00096200: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00096210: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00096220: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00096230: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00096240: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00096250: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00096260: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00096270: 7061 6d5f 6d6f 6475 6c65 735f 696e 7374  pam_modules_inst
│ │ │ -00096280: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -00096290: 6e73 7572 6520 6c69 6270 616d 2d6d 6f64  nsure libpam-mod
│ │ │ -000962a0: 756c 6573 2069 7320 696e 7374 616c 6c65  ules is installe
│ │ │ -000962b0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000962c0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000962d0: 206e 616d 653a 206c 6962 7061 6d2d 6d6f   name: libpam-mo
│ │ │ -000962e0: 6475 6c65 730a 2020 2020 7374 6174 653a  dules.    state:
│ │ │ -000962f0: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00096300: 2027 226c 6962 7061 6d2d 7275 6e74 696d   '"libpam-runtim
│ │ │ -00096310: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00096320: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00096330: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -00096340: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00096350: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00096360: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00096370: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00096380: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00096390: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000963a0: 6b61 6765 5f70 616d 5f6d 6f64 756c 6573  kage_pam_modules
│ │ │ -000963b0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +00095d30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00095d40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00095d50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00095d90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00095da0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00095dc0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +00095de0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00095df0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00095e00: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00095e10: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00095e20: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00095e30: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +00095e40: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00095e50: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00095e60: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00095e70: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00095e80: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00095e90: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00095ea0: 5f70 616d 5f6d 6f64 756c 6573 5f69 6e73  _pam_modules_ins
│ │ │ +00095eb0: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00095ec0: 456e 7375 7265 206c 6962 7061 6d2d 6d6f  Ensure libpam-mo
│ │ │ +00095ed0: 6475 6c65 7320 6973 2069 6e73 7461 6c6c  dules is install
│ │ │ +00095ee0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +00095ef0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00095f00: 2020 6e61 6d65 3a20 6c69 6270 616d 2d6d    name: libpam-m
│ │ │ +00095f10: 6f64 756c 6573 0a20 2020 2073 7461 7465  odules.    state
│ │ │ +00095f20: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +00095f30: 3a20 2722 6c69 6270 616d 2d72 756e 7469  : '"libpam-runti
│ │ │ +00095f40: 6d65 2220 696e 2061 6e73 6962 6c65 5f66  me" in ansible_f
│ │ │ +00095f50: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00095f60: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00095f70: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00095f80: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00095f90: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00095fa0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00095fb0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00095fc0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00095fd0: 636b 6167 655f 7061 6d5f 6d6f 6475 6c65  ckage_pam_module
│ │ │ +00095fe0: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +00096000: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00096010: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00096020: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00096030: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00096040: 6431 3532 2220 7461 6269 6e64 6578 3d22 d152" tabindex=" │ │ │ +00096050: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00096060: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00096070: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00096080: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00096090: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000960a0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000960b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +00096140: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00096150: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00096170: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00096190: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000961a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000961e0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000961f0: 6520 696e 7374 616c 6c5f 6c69 6270 616d e install_libpam │ │ │ +00096200: 2d6d 6f64 756c 6573 0a0a 636c 6173 7320 -modules..class │ │ │ +00096210: 696e 7374 616c 6c5f 6c69 6270 616d 2d6d install_libpam-m │ │ │ +00096220: 6f64 756c 6573 207b 0a20 2070 6163 6b61 odules {. packa │ │ │ +00096230: 6765 207b 2027 6c69 6270 616d 2d6d 6f64 ge { 'libpam-mod │ │ │ +00096240: 756c 6573 273a 0a20 2020 2065 6e73 7572 ules':. ensur │ │ │ +00096250: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +00096260: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +00096320: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00096330: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00096340: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +00096390: 6573 5d5d 0a6e 616d 6520 3d20 226c 6962  es]].name = "lib
│ │ │ +000963a0: 7061 6d2d 6d6f 6475 6c65 7322 0a76 6572  pam-modules".ver
│ │ │ +000963b0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remediatio │ │ │ -000970e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -000970f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00097100: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[[packages]].
│ │ │ -00097150: 6e61 6d65 203d 2022 6c69 6270 616d 2d70  name = "libpam-p
│ │ │ -00097160: 7771 7561 6c69 7479 220a 7665 7273 696f  wquality".versio
│ │ │ -00097170: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00097180: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -00097230: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00097240: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000972c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000972d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000972e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00097320: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00097330: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00097350: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00097370: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -00097380: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -00097390: 7561 6c69 7479 0a0a 636c 6173 7320 696e  uality..class in
│ │ │ -000973a0: 7374 616c 6c5f 6c69 6270 616d 2d70 7771  stall_libpam-pwq
│ │ │ -000973b0: 7561 6c69 7479 207b 0a20 2070 6163 6b61  uality {.  packa
│ │ │ -000973c0: 6765 207b 2027 6c69 6270 616d 2d70 7771  ge { 'libpam-pwq
│ │ │ -000973d0: 7561 6c69 7479 273a 0a20 2020 2065 6e73  uality':.    ens
│ │ │ -000973e0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000973f0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -00097410: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000974b0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000974c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000974d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00097570: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000975c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00097550: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00097580: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000975a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000975b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000975d0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000975e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00097600: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00097610: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00097620: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00097630: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00097640: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -00097650: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00097660: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00097670: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00097680: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00097690: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000976a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000976b0: 6163 6b61 6765 5f70 616d 5f70 7771 7561  ackage_pam_pwqua
│ │ │ -000976c0: 6c69 7479 5f69 6e73 7461 6c6c 6564 0a0a  lity_installed..
│ │ │ -000976d0: 2d20 6e61 6d65 3a20 456e 7375 7265 206c  - name: Ensure l
│ │ │ -000976e0: 6962 7061 6d2d 7077 7175 616c 6974 7920  ibpam-pwquality 
│ │ │ -000976f0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00097700: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00097710: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00097720: 3a20 6c69 6270 616d 2d70 7771 7561 6c69  : libpam-pwquali
│ │ │ -00097730: 7479 0a20 2020 2073 7461 7465 3a20 7072  ty.    state: pr
│ │ │ -00097740: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00097750: 6c69 6270 616d 2d72 756e 7469 6d65 2220  libpam-runtime" 
│ │ │ -00097760: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00097770: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -00097780: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -00097790: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000977a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000977b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000977c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000977d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000977e0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000977f0: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ -00097800: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
< │ │ │ +00097170: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00097180: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000971a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000971b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000971d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000971f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +00097220: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00097230: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00097240: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00097250: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00097260: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00097270: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00097280: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00097290: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000972a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000972b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000972c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000972d0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000972e0: 7061 6d5f 7077 7175 616c 6974 795f 696e  pam_pwquality_in
│ │ │ +000972f0: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00097300: 2045 6e73 7572 6520 6c69 6270 616d 2d70   Ensure libpam-p
│ │ │ +00097310: 7771 7561 6c69 7479 2069 7320 696e 7374  wquality is inst
│ │ │ +00097320: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ +00097330: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00097340: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ +00097350: 6d2d 7077 7175 616c 6974 790a 2020 2020  m-pwquality.    
│ │ │ +00097360: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +00097370: 2077 6865 6e3a 2027 226c 6962 7061 6d2d   when: '"libpam-
│ │ │ +00097380: 7275 6e74 696d 6522 2069 6e20 616e 7369  runtime" in ansi
│ │ │ +00097390: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000973a0: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000973b0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000973c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000973d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000973e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000973f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00097400: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00097410: 202d 2070 6163 6b61 6765 5f70 616d 5f70   - package_pam_p
│ │ │ +00097420: 7771 7561 6c69 7479 5f69 6e73 7461 6c6c  wquality_install
│ │ │ +00097430: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00097440: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +000974f0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00097500: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00097580: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000975a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000975f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00097640: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +00097650: 790a 0a63 6c61 7373 2069 6e73 7461 6c6c  y..class install
│ │ │ +00097660: 5f6c 6962 7061 6d2d 7077 7175 616c 6974  _libpam-pwqualit
│ │ │ +00097670: 7920 7b0a 2020 7061 636b 6167 6520 7b20  y {.  package { 
│ │ │ +00097680: 276c 6962 7061 6d2d 7077 7175 616c 6974  'libpam-pwqualit
│ │ │ +00097690: 7927 3a0a 2020 2020 656e 7375 7265 203d  y':.    ensure =
│ │ │ +000976a0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +000976b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +000976c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ +00097770: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +00097780: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +00097790: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
.[[packages]
│ │ │ +000977e0: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ +000977f0: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ +00097800: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -00098360: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00098370: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00098380: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ -000983d0: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ -000983e0: 6962 7061 6d2d 7275 6e74 696d 6522 0a76 ibpam-runtime".v │ │ │ -000983f0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ -00098410: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000984b0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000984c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000984d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disr │ │ │ +000975b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000975c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00097600: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +00097610: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ -00098550: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00098580: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000985a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000985b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000985d0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000985f0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00098600: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ -00098610: 6d2d 7275 6e74 696d 650a 0a63 6c61 7373  m-runtime..class
│ │ │ -00098620: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ -00098630: 7275 6e74 696d 6520 7b0a 2020 7061 636b  runtime {.  pack
│ │ │ -00098640: 6167 6520 7b20 276c 6962 7061 6d2d 7275  age { 'libpam-ru
│ │ │ -00098650: 6e74 696d 6527 3a0a 2020 2020 656e 7375  ntime':.    ensu
│ │ │ -00098660: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -00098670: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -00098690: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000986a0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000986b0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000986c0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000986d0: 6431 3633 2220 7461 6269 6e64 6578 3d22 d163" tabindex=" │ │ │ -000986e0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000986f0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00098700: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00098710: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00098720: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00098730: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00098740: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00098750: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000987d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00098800: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00098820: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00098830: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00098850: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00098870: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00098880: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ -00098890: 2d72 756e 7469 6d65 2069 7320 696e 7374  -runtime is inst
│ │ │ -000988a0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000988b0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000988c0: 0a20 2020 206e 616d 653a 206c 6962 7061  .    name: libpa
│ │ │ -000988d0: 6d2d 7275 6e74 696d 650a 2020 2020 7374  m-runtime.    st
│ │ │ -000988e0: 6174 653a 2070 7265 7365 6e74 0a20 2074  ate: present.  t
│ │ │ -000988f0: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -00098900: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00098910: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -00098920: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -00098930: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -00098940: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00098950: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00098960: 6167 655f 7061 6d5f 7275 6e74 696d 655f  age_pam_runtime_
│ │ │ -00098970: 696e 7374 616c 6c65 640a 3c2f 636f 6465  installed.
│ │ │ +00098380: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00098420: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00098470: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00098400: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00098430: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00098450: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00098460: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00098480: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00098490: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000984b0: 6d65 3a20 456e 7375 7265 206c 6962 7061  me: Ensure libpa
│ │ │ +000984c0: 6d2d 7275 6e74 696d 6520 6973 2069 6e73  m-runtime is ins
│ │ │ +000984d0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000984e0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000984f0: 3a0a 2020 2020 6e61 6d65 3a20 6c69 6270  :.    name: libp
│ │ │ +00098500: 616d 2d72 756e 7469 6d65 0a20 2020 2073  am-runtime.    s
│ │ │ +00098510: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +00098520: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +00098530: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00098540: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00098550: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00098560: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00098570: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00098580: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00098590: 6b61 6765 5f70 616d 5f72 756e 7469 6d65  kage_pam_runtime
│ │ │ +000985a0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +00098660: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00098670: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00098720: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00098740: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00098770: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00098700: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00098710: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00098730: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00098750: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00098760: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000987b0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d install_libpam- │ │ │ +000987c0: 7275 6e74 696d 650a 0a63 6c61 7373 2069 runtime..class i │ │ │ +000987d0: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 7275 nstall_libpam-ru │ │ │ +000987e0: 6e74 696d 6520 7b0a 2020 7061 636b 6167 ntime {. packag │ │ │ +000987f0: 6520 7b20 276c 6962 7061 6d2d 7275 6e74 e { 'libpam-runt │ │ │ +00098800: 696d 6527 3a0a 2020 2020 656e 7375 7265 ime':. ensure │ │ │ +00098810: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +00098820: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ +000988e0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000988f0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00098900: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00098940: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +00098950: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +00098960: 616d 2d72 756e 7469 6d65 220a 7665 7273  am-runtime".vers
│ │ │ +00098970: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Rem │ │ │ -000cdf90: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -000cdfa0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -000cdfb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

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

│ │ │ -000ce040: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000ce0e0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000ce0f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000ce100: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000ce180: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000ce1b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000ce1d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000ce1e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000ce200: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000ce220: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000ce230: 6465 2069 6e73 7461 6c6c 5f61 7070 6172  de install_appar
│ │ │ -000ce240: 6d6f 722d 7574 696c 730a 0a63 6c61 7373  mor-utils..class
│ │ │ -000ce250: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f   install_apparmo
│ │ │ -000ce260: 722d 7574 696c 7320 7b0a 2020 7061 636b  r-utils {.  pack
│ │ │ -000ce270: 6167 6520 7b20 2761 7070 6172 6d6f 722d  age { 'apparmor-
│ │ │ -000ce280: 7574 696c 7327 3a0a 2020 2020 656e 7375  utils':.    ensu
│ │ │ -000ce290: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -000ce2a0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -000ce2c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -000ce2d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -000ce2e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -000ce2f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -000ce300: 6432 3534 2220 7461 6269 6e64 6578 3d22 d254" tabindex=" │ │ │ -000ce310: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -000ce320: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -000ce330: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -000ce340: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -000ce350: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -000ce360: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -000ce370: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000ce380: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -000ce400: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000ce430: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000ce450: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000ce460: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000ce480: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000ce4a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000ce4b0: 653a 2045 6e73 7572 6520 6170 7061 726d  e: Ensure apparm
│ │ │ -000ce4c0: 6f72 2d75 7469 6c73 2069 7320 696e 7374  or-utils is inst
│ │ │ -000ce4d0: 616c 6c65 640a 2020 616e 7369 626c 652e  alled.  ansible.
│ │ │ -000ce4e0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -000ce4f0: 0a20 2020 206e 616d 653a 2061 7070 6172  .    name: appar
│ │ │ -000ce500: 6d6f 722d 7574 696c 730a 2020 2020 7374  mor-utils.    st
│ │ │ -000ce510: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000ce520: 6865 6e3a 2061 6e73 6962 6c65 5f76 6972  hen: ansible_vir
│ │ │ -000ce530: 7475 616c 697a 6174 696f 6e5f 7479 7065  tualization_type
│ │ │ -000ce540: 206e 6f74 2069 6e20 5b22 646f 636b 6572   not in ["docker
│ │ │ -000ce550: 222c 2022 6c78 6322 2c20 226f 7065 6e76  ", "lxc", "openv
│ │ │ -000ce560: 7a22 2c20 2270 6f64 6d61 6e22 2c20 2263  z", "podman", "c
│ │ │ -000ce570: 6f6e 7461 696e 6572 225d 0a20 2074 6167  ontainer"].  tag
│ │ │ -000ce580: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000ce590: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000ce5a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000ce5b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000ce5c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000ce5d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000ce5e0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000ce5f0: 655f 6170 7061 726d 6f72 2d75 7469 6c73  e_apparmor-utils
│ │ │ -000ce600: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +000cdfb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +000ce050: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000ce0a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000ce030: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000ce060: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000ce080: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000ce090: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000ce0b0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000ce0c0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +000ce0e0: 6d65 3a20 456e 7375 7265 2061 7070 6172  me: Ensure appar
│ │ │ +000ce0f0: 6d6f 722d 7574 696c 7320 6973 2069 6e73  mor-utils is ins
│ │ │ +000ce100: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000ce110: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000ce120: 3a0a 2020 2020 6e61 6d65 3a20 6170 7061  :.    name: appa
│ │ │ +000ce130: 726d 6f72 2d75 7469 6c73 0a20 2020 2073  rmor-utils.    s
│ │ │ +000ce140: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000ce150: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ +000ce160: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ +000ce170: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ +000ce180: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ +000ce190: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ +000ce1a0: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ +000ce1b0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ +000ce1c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +000ce1d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +000ce1e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +000ce1f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +000ce200: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +000ce210: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +000ce220: 6765 5f61 7070 6172 6d6f 722d 7574 696c  ge_apparmor-util
│ │ │ +000ce230: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000ce250: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000ce260: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000ce270: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000ce280: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000ce290: 6432 3533 2220 7461 6269 6e64 6578 3d22 d253" tabindex=" │ │ │ +000ce2a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000ce2b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000ce2c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000ce2d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000ce2e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000ce2f0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000ce300: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +000ce390: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000ce3a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000ce3c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000ce3e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000ce3f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000ce430: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000ce440: 6520 696e 7374 616c 6c5f 6170 7061 726d e install_apparm │ │ │ +000ce450: 6f72 2d75 7469 6c73 0a0a 636c 6173 7320 or-utils..class │ │ │ +000ce460: 696e 7374 616c 6c5f 6170 7061 726d 6f72 install_apparmor │ │ │ +000ce470: 2d75 7469 6c73 207b 0a20 2070 6163 6b61 -utils {. packa │ │ │ +000ce480: 6765 207b 2027 6170 7061 726d 6f72 2d75 ge { 'apparmor-u │ │ │ +000ce490: 7469 6c73 273a 0a20 2020 2065 6e73 7572 tils':. ensur │ │ │ +000ce4a0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c e => 'install │ │ │ +000ce4b0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Remed │ │ │ +000ce570: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000ce580: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000ce590: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ +000ce5e0: 6573 5d5d 0a6e 616d 6520 3d20 2261 7070  es]].name = "app
│ │ │ +000ce5f0: 6172 6d6f 722d 7574 696c 7322 0a76 6572  armor-utils".ver
│ │ │ +000ce600: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Re │ │ │ -000cf280: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000cf290: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000cf2a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000cf2b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000cf2c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000cf2d0: 7365 2220 6964 3d22 6964 3235 3722 3e3c se" id="id257">< │ │ │ -000cf2e0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000cf2f0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000cf300: 6170 7061 726d 6f72 220a 7665 7273 696f apparmor".versio │ │ │ -000cf310: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c n = "*".< │ │ │ -000cf320: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -000cf3d0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000cf3e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000cf460: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000cf470: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000cf480: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000cf4c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000cf4d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000cf4f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000cf510: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000cf520: 7374 616c 6c5f 6170 7061 726d 6f72 0a0a  stall_apparmor..
│ │ │ -000cf530: 636c 6173 7320 696e 7374 616c 6c5f 6170  class install_ap
│ │ │ -000cf540: 7061 726d 6f72 207b 0a20 2070 6163 6b61  parmor {.  packa
│ │ │ -000cf550: 6765 207b 2027 6170 7061 726d 6f72 273a  ge { 'apparmor':
│ │ │ -000cf560: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000cf570: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000cf580: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000cf640: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000cf650: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000cf6e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000cf700: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000cf710: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000cf720: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000cf730: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000cf750: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Ensu
│ │ │ -000cf790: 7265 2061 7070 6172 6d6f 7220 6973 2069  re apparmor is i
│ │ │ -000cf7a0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -000cf7b0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000cf7c0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6170  ge:.    name: ap
│ │ │ -000cf7d0: 7061 726d 6f72 0a20 2020 2073 7461 7465  parmor.    state
│ │ │ -000cf7e0: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000cf7f0: 3a20 616e 7369 626c 655f 7669 7274 7561  : ansible_virtua
│ │ │ -000cf800: 6c69 7a61 7469 6f6e 5f74 7970 6520 6e6f  lization_type no
│ │ │ -000cf810: 7420 696e 205b 2264 6f63 6b65 7222 2c20  t in ["docker", 
│ │ │ -000cf820: 226c 7863 222c 2022 6f70 656e 767a 222c  "lxc", "openvz",
│ │ │ -000cf830: 2022 706f 646d 616e 222c 2022 636f 6e74   "podman", "cont
│ │ │ -000cf840: 6169 6e65 7222 5d0a 2020 7461 6773 3a0a  ainer"].  tags:.
│ │ │ -000cf850: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000cf860: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000cf870: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000cf880: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000cf890: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000cf8a0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000cf8b0: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -000cf8c0: 7070 6172 6d6f 725f 696e 7374 616c 6c65  pparmor_installe
│ │ │ -000cf8d0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +000cf280: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +000cf290: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ +000cf330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000cf340: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000cf390: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000cf3d0: 616d 653a 2045 6e73 7572 6520 6170 7061  ame: Ensure appa
│ │ │ +000cf3e0: 726d 6f72 2069 7320 696e 7374 616c 6c65  rmor is installe
│ │ │ +000cf3f0: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ +000cf400: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +000cf410: 206e 616d 653a 2061 7070 6172 6d6f 720a   name: apparmor.
│ │ │ +000cf420: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ +000cf430: 6e74 0a20 2077 6865 6e3a 2061 6e73 6962  nt.  when: ansib
│ │ │ +000cf440: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ +000cf450: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ +000cf460: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ +000cf470: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ +000cf480: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ +000cf490: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +000cf4a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000cf4b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000cf4c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000cf4d0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000cf4e0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000cf4f0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000cf500: 7061 636b 6167 655f 6170 7061 726d 6f72  package_apparmor
│ │ │ +000cf510: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000cf5d0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000cf5e0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +000cf320: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000cf350: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000cf360: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000cf3a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000cf3b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000cf690: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000cf6b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000cf6e0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000cf670: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000cf680: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000cf6a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000cf6c0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000cf6d0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000cf720: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f install_apparmo │ │ │ +000cf730: 720a 0a63 6c61 7373 2069 6e73 7461 6c6c r..class install │ │ │ +000cf740: 5f61 7070 6172 6d6f 7220 7b0a 2020 7061 _apparmor {. pa │ │ │ +000cf750: 636b 6167 6520 7b20 2761 7070 6172 6d6f ckage { 'apparmo │ │ │ +000cf760: 7227 3a0a 2020 2020 656e 7375 7265 203d r':. ensure = │ │ │ +000cf770: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ +000cf780: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +000cf790: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +000cf840: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +000cf850: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +000cf860: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +000cf8b0: 5d0a 6e61 6d65 203d 2022 6170 7061 726d  ].name = "apparm
│ │ │ +000cf8c0: 6f72 220a 7665 7273 696f 6e20 3d20 222a  or".version = "*
│ │ │ +000cf8d0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 000cf8e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -000d9b40: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -000d9b50: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -000d9b60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -000d9bb0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -000d9bc0: 2022 7379 7374 656d 642d 6a6f 7572 6e61   "systemd-journa
│ │ │ -000d9bd0: 6c2d 7265 6d6f 7465 220a 7665 7273 696f  l-remote".versio
│ │ │ -000d9be0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -000d9bf0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000d9ca0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -000d9cb0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000d9d30: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000d9d40: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000d9d50: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000d9d90: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000d9da0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000d9dc0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000d9de0: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -000d9df0: 7374 616c 6c5f 7379 7374 656d 642d 6a6f  stall_systemd-jo
│ │ │ -000d9e00: 7572 6e61 6c2d 7265 6d6f 7465 0a0a 636c  urnal-remote..cl
│ │ │ -000d9e10: 6173 7320 696e 7374 616c 6c5f 7379 7374  ass install_syst
│ │ │ -000d9e20: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000d9e30: 7465 207b 0a20 2070 6163 6b61 6765 207b  te {.  package {
│ │ │ -000d9e40: 2027 7379 7374 656d 642d 6a6f 7572 6e61   'systemd-journa
│ │ │ -000d9e50: 6c2d 7265 6d6f 7465 273a 0a20 2020 2065  l-remote':.    e
│ │ │ -000d9e60: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -000d9e70: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -000d9e80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000d9f30: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000d9f40: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000d9fe0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000da080: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000da090: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000da0a0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000da0b0: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000da0c0: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000da0d0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000da0e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000da0f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000da100: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000da110: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000da120: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000da130: 2070 6163 6b61 6765 5f73 7973 7465 6d64   package_systemd
│ │ │ -000da140: 2d6a 6f75 726e 616c 2d72 656d 6f74 655f  -journal-remote_
│ │ │ -000da150: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -000da160: 653a 2045 6e73 7572 6520 7379 7374 656d  e: Ensure system
│ │ │ -000da170: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ -000da180: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000da190: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000da1a0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000da1b0: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000da1c0: 616c 2d72 656d 6f74 650a 2020 2020 7374  al-remote.    st
│ │ │ -000da1d0: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -000da1e0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -000da1f0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -000da200: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -000da210: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ -000da220: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000da230: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000da240: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000da250: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000da260: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000da270: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000da280: 6b61 6765 5f73 7973 7465 6d64 2d6a 6f75  kage_systemd-jou
│ │ │ -000da290: 726e 616c 2d72 656d 6f74 655f 696e 7374  rnal-remote_inst
│ │ │ -000da2a0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.


│ │ │ -000d9fd0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000da000: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000da010: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000da050: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000da060: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +000d9c30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000d9c40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +000d9c90: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +000d9ca0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +000d9cb0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +000d9cc0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +000d9cd0: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ +000d9ce0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +000d9cf0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000d9d00: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000d9d10: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000d9d20: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000d9d30: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000d9d40: 2d20 7061 636b 6167 655f 7379 7374 656d  - package_system
│ │ │ +000d9d50: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000d9d60: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +000d9d70: 6d65 3a20 456e 7375 7265 2073 7973 7465  me: Ensure syste
│ │ │ +000d9d80: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000d9d90: 6520 6973 2069 6e73 7461 6c6c 6564 0a20  e is installed. 
│ │ │ +000d9da0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000d9db0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +000d9dc0: 6d65 3a20 7379 7374 656d 642d 6a6f 7572  me: systemd-jour
│ │ │ +000d9dd0: 6e61 6c2d 7265 6d6f 7465 0a20 2020 2073  nal-remote.    s
│ │ │ +000d9de0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ +000d9df0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +000d9e00: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +000d9e10: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +000d9e20: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +000d9e30: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +000d9e40: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +000d9e50: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +000d9e60: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +000d9e70: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +000d9e80: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +000d9e90: 636b 6167 655f 7379 7374 656d 642d 6a6f  ckage_systemd-jo
│ │ │ +000d9ea0: 7572 6e61 6c2d 7265 6d6f 7465 5f69 6e73  urnal-remote_ins
│ │ │ +000d9eb0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.Remediati
│ │ │ +000d9f70: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +000d9f80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +000da000: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +000da040: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Complexity:low
Disrup │ │ │ +000d9c10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000d9c20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000d9c60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +000d9c70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +000da010: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +000da030: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +000da060: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +000da080: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +000da0b0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000da0c0: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ +000da0d0: 726e 616c 2d72 656d 6f74 650a 0a63 6c61  rnal-remote..cla
│ │ │ +000da0e0: 7373 2069 6e73 7461 6c6c 5f73 7973 7465  ss install_syste
│ │ │ +000da0f0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ +000da100: 6520 7b0a 2020 7061 636b 6167 6520 7b20  e {.  package { 
│ │ │ +000da110: 2773 7973 7465 6d64 2d6a 6f75 726e 616c  'systemd-journal
│ │ │ +000da120: 2d72 656d 6f74 6527 3a0a 2020 2020 656e  -remote':.    en
│ │ │ +000da130: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +000da140: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ +000da200: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000da210: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000da220: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000da230: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000da240: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000da250: 7365 2220 6964 3d22 6964 3237 3522 3e3c se" id="id275">< │ │ │ +000da260: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ +000da270: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ +000da280: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d systemd-journal- │ │ │ +000da290: 7265 6d6f 7465 220a 7665 7273 696f 6e20 remote".version │ │ │ +000da2a0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70 = "*".

Remediat │ │ │ -000db3d0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000db3e0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000db3f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000db440: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000db450: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ -000db460: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000db470: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
Remediation │ │ │ -000db530: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000db540: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000db5c0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000db5e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000db630: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000db660: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -000db680: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ -000db690: 2d75 706c 6f61 640a 0a63 6c61 7373 2065  -upload..class e
│ │ │ -000db6a0: 6e61 626c 655f 7379 7374 656d 642d 6a6f  nable_systemd-jo
│ │ │ -000db6b0: 7572 6e61 6c2d 7570 6c6f 6164 207b 0a20  urnal-upload {. 
│ │ │ -000db6c0: 2073 6572 7669 6365 207b 2773 7973 7465   service {'syste
│ │ │ -000db6d0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ -000db6e0: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ -000db6f0: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ -000db700: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ -000db710: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ -000db730: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000db7d0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000db7e0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000db7f0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:< │ │ │ -000db5d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000db5f0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000db640: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000db650: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
low< │ │ │ -000db890: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000db8e0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000db870: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000db8a0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000db8c0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000db8d0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000db8f0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000db900: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000db920: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000db930: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000db940: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000db950: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000db960: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000db970: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000db980: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000db990: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000db9a0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000db9b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000db9c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -000db9d0: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ -000db9e0: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ -000db9f0: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ -000dba00: 6e61 626c 6520 7379 7374 656d 642d 6a6f  nable systemd-jo
│ │ │ -000dba10: 7572 6e61 6c2d 7570 6c6f 6164 2053 6572  urnal-upload Ser
│ │ │ -000dba20: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ -000dba30: 7276 6963 6520 7379 7374 656d 642d 6a6f  rvice systemd-jo
│ │ │ -000dba40: 7572 6e61 6c2d 7570 6c6f 6164 0a20 2062  urnal-upload.  b
│ │ │ -000dba50: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -000dba60: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -000dba70: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -000dba80: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -000dba90: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000dbaa0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000dbab0: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -000dbac0: 6c65 2073 7973 7465 6d64 2d6a 6f75 726e  le systemd-journ
│ │ │ -000dbad0: 616c 2d75 706c 6f61 6420 5365 7276 6963  al-upload Servic
│ │ │ -000dbae0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -000dbaf0: 6365 2073 7973 7465 6d64 2d6a 6f75 726e  ce systemd-journ
│ │ │ -000dbb00: 616c 2d75 706c 6f61 640a 2020 2020 616e  al-upload.    an
│ │ │ -000dbb10: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -000dbb20: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -000dbb30: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000dbb40: 616c 2d75 706c 6f61 640a 2020 2020 2020  al-upload.      
│ │ │ -000dbb50: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -000dbb60: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -000dbb70: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -000dbb80: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -000dbb90: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ -000dbba0: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ -000dbbb0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -000dbbc0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -000dbbd0: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ -000dbbe0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000dbbf0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000dbc00: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000dbc10: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000dbc20: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000dbc30: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -000dbc40: 6365 5f73 7973 7465 6d64 2d6a 6f75 726e  ce_systemd-journ
│ │ │ -000dbc50: 616c 2d75 706c 6f61 645f 656e 6162 6c65  al-upload_enable
│ │ │ -000dbc60: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -000dbc70: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -000dbc80: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ -000dbc90: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -000dbca0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -000dbcb0: 0a20 202d 2028 2061 6e73 6962 6c65 5f76  .  - ( ansible_v
│ │ │ -000dbcc0: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ -000dbcd0: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ -000dbce0: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ -000dbcf0: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ -000dbd00: 2263 6f6e 7461 696e 6572 225d 0a20 2020  "container"].   
│ │ │ -000dbd10: 2061 6e64 2022 7379 7374 656d 642d 6a6f   and "systemd-jo
│ │ │ -000dbd20: 7572 6e61 6c2d 7265 6d6f 7465 2220 696e  urnal-remote" in
│ │ │ -000dbd30: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000dbd40: 6163 6b61 6765 7320 290a 3c2f 636f 6465  ackages ).
< │ │ │ +000db3f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000db400: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000db410: 7365 2220 6964 3d22 6964 3237 3822 3e3c se" id="id278">< │ │ │ +000db420: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000db430: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000db440: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000db450: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000db460: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000db470: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000db480: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000db4c0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000db4d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000db4f0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000db500: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000db520: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000db530: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000db540: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000db550: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000db560: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000db570: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000db580: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000db590: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000db5a0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000db5b0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000db5c0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +000db5d0: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000db5e0: 6c2d 7570 6c6f 6164 5f65 6e61 626c 6564  l-upload_enabled
│ │ │ +000db5f0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +000db600: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000db610: 2d75 706c 6f61 6420 5365 7276 6963 6520  -upload Service 
│ │ │ +000db620: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +000db630: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000db640: 2d75 706c 6f61 640a 2020 626c 6f63 6b3a  -upload.  block:
│ │ │ +000db650: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ +000db660: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +000db670: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ +000db680: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000db690: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ +000db6a0: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ +000db6b0: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ +000db6c0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000db6d0: 6c6f 6164 2053 6572 7669 6365 202d 2045  load Service - E
│ │ │ +000db6e0: 6e61 626c 6520 5365 7276 6963 6520 7379  nable Service sy
│ │ │ +000db6f0: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000db700: 6c6f 6164 0a20 2020 2061 6e73 6962 6c65  load.    ansible
│ │ │ +000db710: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +000db720: 3a0a 2020 2020 2020 6e61 6d65 3a20 7379  :.      name: sy
│ │ │ +000db730: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000db740: 6c6f 6164 0a20 2020 2020 2065 6e61 626c  load.      enabl
│ │ │ +000db750: 6564 3a20 7472 7565 0a20 2020 2020 2073  ed: true.      s
│ │ │ +000db760: 7461 7465 3a20 7374 6172 7465 640a 2020  tate: started.  
│ │ │ +000db770: 2020 2020 6d61 736b 6564 3a20 6661 6c73      masked: fals
│ │ │ +000db780: 650a 2020 2020 7768 656e 3a0a 2020 2020  e.    when:.    
│ │ │ +000db790: 2d20 2722 7379 7374 656d 642d 6a6f 7572  - '"systemd-jour
│ │ │ +000db7a0: 6e61 6c2d 7265 6d6f 7465 2220 696e 2061  nal-remote" in a
│ │ │ +000db7b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +000db7c0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +000db7d0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +000db7e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +000db7f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +000db800: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +000db810: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +000db820: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +000db830: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ +000db840: 7374 656d 642d 6a6f 7572 6e61 6c2d 7570  stemd-journal-up
│ │ │ +000db850: 6c6f 6164 5f65 6e61 626c 6564 0a20 202d  load_enabled.  -
│ │ │ +000db860: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +000db870: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ +000db880: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ +000db890: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +000db8a0: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ +000db8b0: 2820 616e 7369 626c 655f 7669 7274 7561  ( ansible_virtua
│ │ │ +000db8c0: 6c69 7a61 7469 6f6e 5f74 7970 6520 6e6f  lization_type no
│ │ │ +000db8d0: 7420 696e 205b 2264 6f63 6b65 7222 2c20  t in ["docker", 
│ │ │ +000db8e0: 226c 7863 222c 2022 6f70 656e 767a 222c  "lxc", "openvz",
│ │ │ +000db8f0: 2022 706f 646d 616e 222c 2022 636f 6e74   "podman", "cont
│ │ │ +000db900: 6169 6e65 7222 5d0a 2020 2020 616e 6420  ainer"].    and 
│ │ │ +000db910: 2273 7973 7465 6d64 2d6a 6f75 726e 616c  "systemd-journal
│ │ │ +000db920: 2d72 656d 6f74 6522 2069 6e20 616e 7369  -remote" in ansi
│ │ │ +000db930: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000db940: 6573 2029 0a3c 2f63 6f64 653e 3c2f 7072  es ).
Remediation │ │ │ +000dba00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000dba10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000dbaa0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000dbac0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000dbae0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000dbb10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000dbb20: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000dbb30: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ +000dbb50: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ +000dbb60: 6c2d 7570 6c6f 6164 0a0a 636c 6173 7320  l-upload..class 
│ │ │ +000dbb70: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a  enable_systemd-j
│ │ │ +000dbb80: 6f75 726e 616c 2d75 706c 6f61 6420 7b0a  ournal-upload {.
│ │ │ +000dbb90: 2020 7365 7276 6963 6520 7b27 7379 7374    service {'syst
│ │ │ +000dbba0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ +000dbbb0: 6164 273a 0a20 2020 2065 6e61 626c 6520  ad':.    enable 
│ │ │ +000dbbc0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +000dbbd0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +000dbbe0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ +000dbca0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +000dbcb0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +000dbcc0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000dbcd0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000dbce0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000dbcf0: 7365 2220 6964 3d22 6964 3238 3022 3e3c se" id="id280">< │ │ │ +000dbd00: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +000dbd10: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +000dbd20: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ +000dbd30: 2273 7973 7465 6d64 2d6a 6f75 726e 616c "systemd-journal │ │ │ +000dbd40: 2d75 706c 6f61 6422 5d0a 3c2f 636f 6465 -upload"].
Remediat │ │ │ -000dcc30: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000dcc40: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000dcc50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -000dcca0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -000dccb0: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ -000dccc0: 6d64 2d6a 6f75 726e 616c 6422 5d0a 3c2f  md-journald"].
Re │ │ │ -000dcd80: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000dcd90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000dcda0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000dce40: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000dce90: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000dce20: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000dce50: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000dce70: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000dce80: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000dcea0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000dceb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000dced0: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ -000dcee0: 6d64 2d6a 6f75 726e 616c 640a 0a63 6c61  md-journald..cla
│ │ │ -000dcef0: 7373 2065 6e61 626c 655f 7379 7374 656d  ss enable_system
│ │ │ -000dcf00: 642d 6a6f 7572 6e61 6c64 207b 0a20 2073  d-journald {.  s
│ │ │ -000dcf10: 6572 7669 6365 207b 2773 7973 7465 6d64  ervice {'systemd
│ │ │ -000dcf20: 2d6a 6f75 726e 616c 6427 3a0a 2020 2020  -journald':.    
│ │ │ -000dcf30: 656e 6162 6c65 203d 2667 743b 2074 7275  enable => tru
│ │ │ -000dcf40: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -000dcf50: 6774 3b20 2772 756e 6e69 6e67 272c 0a20  gt; 'running',. 
│ │ │ -000dcf60: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000dd020: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000dd030: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000dd0c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000dd0e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000dd0f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000dd100: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000dd110: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000dd130: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -000dd170: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000dd180: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -000dd190: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000dd1a0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000dd1b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -000dd1c0: 5343 2d32 340a 2020 2d20 656e 6162 6c65  SC-24.  - enable
│ │ │ -000dd1d0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000dd1e0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000dd1f0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000dd200: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000dd210: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000dd220: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -000dd230: 7669 6365 5f73 7973 7465 6d64 2d6a 6f75  vice_systemd-jou
│ │ │ -000dd240: 726e 616c 645f 656e 6162 6c65 640a 0a2d  rnald_enabled..-
│ │ │ -000dd250: 206e 616d 653a 2045 6e61 626c 6520 7379   name: Enable sy
│ │ │ -000dd260: 7374 656d 642d 6a6f 7572 6e61 6c64 2053  stemd-journald S
│ │ │ -000dd270: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ -000dd280: 7365 7276 6963 6520 7379 7374 656d 642d  service systemd-
│ │ │ -000dd290: 6a6f 7572 6e61 6c64 0a20 2062 6c6f 636b  journald.  block
│ │ │ -000dd2a0: 3a0a 0a20 202d 206e 616d 653a 2047 6174  :..  - name: Gat
│ │ │ -000dd2b0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000dd2c0: 6661 6374 730a 2020 2020 616e 7369 626c  facts.    ansibl
│ │ │ -000dd2d0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000dd2e0: 655f 6661 6374 733a 0a20 2020 2020 206d  e_facts:.      m
│ │ │ -000dd2f0: 616e 6167 6572 3a20 6175 746f 0a0a 2020  anager: auto..  
│ │ │ -000dd300: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -000dd310: 7973 7465 6d64 2d6a 6f75 726e 616c 6420  ystemd-journald 
│ │ │ -000dd320: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ -000dd330: 2053 6572 7669 6365 2073 7973 7465 6d64   Service systemd
│ │ │ -000dd340: 2d6a 6f75 726e 616c 640a 2020 2020 616e  -journald.    an
│ │ │ -000dd350: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -000dd360: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -000dd370: 653a 2073 7973 7465 6d64 2d6a 6f75 726e  e: systemd-journ
│ │ │ -000dd380: 616c 640a 2020 2020 2020 656e 6162 6c65  ald.      enable
│ │ │ -000dd390: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ -000dd3a0: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ -000dd3b0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ -000dd3c0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ -000dd3d0: 2027 2273 7973 7465 6d64 2220 696e 2061   '"systemd" in a
│ │ │ -000dd3e0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000dd3f0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000dd400: 202d 204e 4953 542d 3830 302d 3533 2d53   - NIST-800-53-S
│ │ │ -000dd410: 432d 3234 0a20 202d 2065 6e61 626c 655f  C-24.  - enable_
│ │ │ -000dd420: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000dd430: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000dd440: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000dd450: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000dd460: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000dd470: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -000dd480: 6963 655f 7379 7374 656d 642d 6a6f 7572  ice_systemd-jour
│ │ │ -000dd490: 6e61 6c64 5f65 6e61 626c 6564 0a20 202d  nald_enabled.  -
│ │ │ -000dd4a0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -000dd4b0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -000dd4c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -000dd4d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -000dd4e0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +000dcc30: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +000dcc40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +000dcc50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000dcc60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000dcc70: 7365 2220 6964 3d22 6964 3238 3322 3e3c se" id="id283">< │ │ │ +000dcc80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000dcc90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000dcca0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000dccb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000dccc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +000dccd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000dcce0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +000dcd20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000dcd30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +000dcd50: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +000dcd60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +000dcd80: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000dcd90: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000dcda0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000dcdb0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000dcdc0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +000dcdd0: 3533 2d53 432d 3234 0a20 202d 2065 6e61  53-SC-24.  - ena
│ │ │ +000dcde0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000dcdf0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000dce00: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000dce10: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000dce20: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000dce30: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000dce40: 7365 7276 6963 655f 7379 7374 656d 642d  service_systemd-
│ │ │ +000dce50: 6a6f 7572 6e61 6c64 5f65 6e61 626c 6564  journald_enabled
│ │ │ +000dce60: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +000dce70: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ +000dce80: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ +000dce90: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ +000dcea0: 6d64 2d6a 6f75 726e 616c 640a 2020 626c  md-journald.  bl
│ │ │ +000dceb0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +000dcec0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +000dced0: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +000dcee0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000dcef0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +000dcf00: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +000dcf10: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +000dcf20: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ +000dcf30: 6c64 2053 6572 7669 6365 202d 2045 6e61  ld Service - Ena
│ │ │ +000dcf40: 626c 6520 5365 7276 6963 6520 7379 7374  ble Service syst
│ │ │ +000dcf50: 656d 642d 6a6f 7572 6e61 6c64 0a20 2020  emd-journald.   
│ │ │ +000dcf60: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +000dcf70: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +000dcf80: 6e61 6d65 3a20 7379 7374 656d 642d 6a6f  name: systemd-jo
│ │ │ +000dcf90: 7572 6e61 6c64 0a20 2020 2020 2065 6e61  urnald.      ena
│ │ │ +000dcfa0: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +000dcfb0: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +000dcfc0: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +000dcfd0: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +000dcfe0: 2020 2d20 2722 7379 7374 656d 6422 2069    - '"systemd" i
│ │ │ +000dcff0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +000dd000: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +000dd010: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +000dd020: 332d 5343 2d32 340a 2020 2d20 656e 6162  3-SC-24.  - enab
│ │ │ +000dd030: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000dd040: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000dd050: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000dd060: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000dd070: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000dd080: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000dd090: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000dd0a0: 6f75 726e 616c 645f 656e 6162 6c65 640a  ournald_enabled.
│ │ │ +000dd0b0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +000dd0c0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +000dd0d0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +000dd0e0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +000dd0f0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +000dd1b0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000dd1c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +000dd270: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000dd290: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000dd2c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000dd250: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000dd260: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000dd280: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000dd2a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000dd2b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000dd300: 2065 6e61 626c 655f 7379 7374 656d 642d enable_systemd- │ │ │ +000dd310: 6a6f 7572 6e61 6c64 0a0a 636c 6173 7320 journald..class │ │ │ +000dd320: 656e 6162 6c65 5f73 7973 7465 6d64 2d6a enable_systemd-j │ │ │ +000dd330: 6f75 726e 616c 6420 7b0a 2020 7365 7276 ournald {. serv │ │ │ +000dd340: 6963 6520 7b27 7379 7374 656d 642d 6a6f ice {'systemd-jo │ │ │ +000dd350: 7572 6e61 6c64 273a 0a20 2020 2065 6e61 urnald':. ena │ │ │ +000dd360: 626c 6520 3d26 6774 3b20 7472 7565 2c0a ble => true,. │ │ │ +000dd370: 2020 2020 656e 7375 7265 203d 2667 743b ensure => │ │ │ +000dd380: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a 'running',. }. │ │ │ +000dd390: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ +000dd3a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000dd450: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000dd460: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000dd470: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>

.[
│ │ │ +000dd4b0: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +000dd4c0: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +000dd4d0: 203d 205b 2273 7973 7465 6d64 2d6a 6f75   = ["systemd-jou
│ │ │ +000dd4e0: 726e 616c 6422 5d0a 3c2f 636f 6465 3e3c  rnald"].<
│ │ │  000dd4f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Re │ │ │ -000eaf20: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000eaf30: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000eaf40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000eaf50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000eaf60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000eaf70: 7365 2220 6964 3d22 6964 3330 3922 3e3c se" id="id309">< │ │ │ -000eaf80: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000eaf90: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000eafa0: 7273 7973 6c6f 6722 0a76 6572 7369 6f6e rsyslog".version │ │ │ -000eafb0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".
Remediati │ │ │ -000eb070: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000eb080: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000eb100: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000eb110: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000eb130: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000eb140: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000eb160: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000eb180: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000eb1b0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000eb1c0: 7461 6c6c 5f72 7379 736c 6f67 0a0a 636c  tall_rsyslog..cl
│ │ │ -000eb1d0: 6173 7320 696e 7374 616c 6c5f 7273 7973  ass install_rsys
│ │ │ -000eb1e0: 6c6f 6720 7b0a 2020 7061 636b 6167 6520  log {.  package 
│ │ │ -000eb1f0: 7b20 2772 7379 736c 6f67 273a 0a20 2020  { 'rsyslog':.   
│ │ │ -000eb200: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000eb210: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000eb220: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000eb2e0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000eb2f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -000eb3c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000eb3d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000eb420: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000eb430: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000eb440: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000eb450: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000eb460: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000eb470: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000eb480: 2861 290a 2020 2d20 656e 6162 6c65 5f73  (a).  - enable_s
│ │ │ -000eb490: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000eb4a0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000eb4b0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000eb4c0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000eb4d0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000eb4e0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000eb4f0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461  ge_rsyslog_insta
│ │ │ -000eb500: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e  lled..- name: En
│ │ │ -000eb510: 7375 7265 2072 7379 736c 6f67 2069 7320  sure rsyslog is 
│ │ │ -000eb520: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000eb530: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000eb540: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ -000eb550: 7379 736c 6f67 0a20 2020 2073 7461 7465  syslog.    state
│ │ │ -000eb560: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000eb570: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -000eb580: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -000eb590: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -000eb5a0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -000eb5b0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -000eb5c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -000eb5d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -000eb5e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -000eb5f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -000eb600: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -000eb610: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -000eb620: 2d20 7061 636b 6167 655f 7273 7973 6c6f  - package_rsyslo
│ │ │ -000eb630: 675f 696e 7374 616c 6c65 640a 3c2f 636f  g_installed.
low
Disru │ │ │ -000eb3a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000eb3b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000eb3f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000eb400: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +000eafd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000eafe0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000eb030: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000eb070: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000eb080: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000eb090: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000eb0a0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000eb0b0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000eb0c0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +000eb0d0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000eb0e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000eb0f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000eb100: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000eb110: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000eb120: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000eb130: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +000eb140: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +000eb150: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +000eb160: 6520 7273 7973 6c6f 6720 6973 2069 6e73  e rsyslog is ins
│ │ │ +000eb170: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +000eb180: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +000eb190: 3a0a 2020 2020 6e61 6d65 3a20 7273 7973  :.    name: rsys
│ │ │ +000eb1a0: 6c6f 670a 2020 2020 7374 6174 653a 2070  log.    state: p
│ │ │ +000eb1b0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000eb1c0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +000eb1d0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000eb1e0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +000eb1f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +000eb200: 434d 2d36 2861 290a 2020 2d20 656e 6162  CM-6(a).  - enab
│ │ │ +000eb210: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000eb220: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000eb230: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000eb240: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000eb250: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000eb260: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000eb270: 6163 6b61 6765 5f72 7379 736c 6f67 5f69  ackage_rsyslog_i
│ │ │ +000eb280: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +000eb290: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +000eb340: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +000eb350: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +000eb360: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000eb370: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000eb380: 7365 2220 6964 3d22 6964 3331 3022 3e3c se" id="id310">< │ │ │ +000eb390: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000eb3a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000eb3b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000eb3c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000eb3d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000eb460: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000eb470: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +000eafc0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000eaff0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000eb000: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000eb040: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000eb050: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +000eb3e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000eb3f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000eb430: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000eb440: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +000eb490: 6e73 7461 6c6c 5f72 7379 736c 6f67 0a0a  nstall_rsyslog..
│ │ │ +000eb4a0: 636c 6173 7320 696e 7374 616c 6c5f 7273  class install_rs
│ │ │ +000eb4b0: 7973 6c6f 6720 7b0a 2020 7061 636b 6167  yslog {.  packag
│ │ │ +000eb4c0: 6520 7b20 2772 7379 736c 6f67 273a 0a20  e { 'rsyslog':. 
│ │ │ +000eb4d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +000eb4e0: 2769 6e73 7461 6c6c 6564 272c 0a20 207d  'installed',.  }
│ │ │ +000eb4f0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +000eb500: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +000eb5b0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +000eb5c0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000eb5d0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +000eb610: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ +000eb620: 6520 3d20 2272 7379 736c 6f67 220a 7665  e = "rsyslog".ve
│ │ │ +000eb630: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 000eb650: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000eb660: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000eb670: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000eb680: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000eb690: 6433 3132 2220 7461 6269 6e64 6578 3d22 d312" tabindex=" │ │ │ 000eb6a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -60549,151 +60549,151 @@ │ │ │ 000ec840: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 000ec850: 2369 6433 3134 2220 7461 6269 6e64 6578 #id314" tabindex │ │ │ 000ec860: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 000ec870: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 000ec880: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 000ec890: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 000ec8a0: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -000ec8b0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000ec8c0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000ec8d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000ec8e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000ec8f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000ec900: 7365 2220 6964 3d22 6964 3331 3422 3e3c se" id="id314">< │ │ │ -000ec910: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -000ec920: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -000ec930: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -000ec940: 2272 7379 736c 6f67 225d 0a3c 2f63 6f64 "rsyslog"].
Remed │ │ │ -000eca00: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -000eca10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -000ecac0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -000ecae0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -000ecb10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -000ecaa0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -000ecab0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -000ecad0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -000ecaf0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -000ecb00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediati │ │ │ -000ecc80: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -000ecc90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -000ecd10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -000ecd20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -000ecd30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -000ecd70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -000ecd80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -000ecda0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -000ecdc0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -000ecdd0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000ecde0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -000ecdf0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -000ece00: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -000ece10: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000ece20: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ -000ece30: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -000ece40: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ -000ece50: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000ece60: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000ece70: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000ece80: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000ece90: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -000ecea0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -000eceb0: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ -000ecec0: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ -000eced0: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ -000ecee0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -000ecef0: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ -000ecf00: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -000ecf10: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -000ecf20: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -000ecf30: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -000ecf40: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -000ecf50: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -000ecf60: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ -000ecf70: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ -000ecf80: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -000ecf90: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ -000ecfa0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -000ecfb0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -000ecfc0: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ -000ecfd0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ -000ecfe0: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ -000ecff0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -000ed000: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ -000ed010: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ -000ed020: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000ed030: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000ed040: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -000ed050: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ -000ed060: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -000ed070: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ -000ed080: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000ed090: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000ed0a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000ed0b0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000ed0c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000ed0d0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -000ed0e0: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ -000ed0f0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -000ed100: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -000ed110: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ -000ed120: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ -000ed130: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +000ec8b0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +000ec8c0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
< │ │ │ +000ec960: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000ec970: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000ec9c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000eca00: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000eca10: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000eca20: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +000eca30: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +000eca40: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +000eca50: 542d 3830 302d 3533 2d41 552d 3428 3129  T-800-53-AU-4(1)
│ │ │ +000eca60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +000eca70: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +000eca80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +000eca90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +000ecaa0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +000ecab0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +000ecac0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000ecad0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000ecae0: 7365 7276 6963 655f 7273 7973 6c6f 675f  service_rsyslog_
│ │ │ +000ecaf0: 656e 6162 6c65 640a 0a2d 206e 616d 653a  enabled..- name:
│ │ │ +000ecb00: 2045 6e61 626c 6520 7273 7973 6c6f 6720   Enable rsyslog 
│ │ │ +000ecb10: 5365 7276 6963 6520 2d20 456e 6162 6c65  Service - Enable
│ │ │ +000ecb20: 2073 6572 7669 6365 2072 7379 736c 6f67   service rsyslog
│ │ │ +000ecb30: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +000ecb40: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000ecb50: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000ecb60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000ecb70: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +000ecb80: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +000ecb90: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +000ecba0: 456e 6162 6c65 2072 7379 736c 6f67 2053  Enable rsyslog S
│ │ │ +000ecbb0: 6572 7669 6365 202d 2045 6e61 626c 6520  ervice - Enable 
│ │ │ +000ecbc0: 5365 7276 6963 6520 7273 7973 6c6f 670a  Service rsyslog.
│ │ │ +000ecbd0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +000ecbe0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +000ecbf0: 2020 206e 616d 653a 2072 7379 736c 6f67     name: rsyslog
│ │ │ +000ecc00: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +000ecc10: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ +000ecc20: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ +000ecc30: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ +000ecc40: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ +000ecc50: 7273 7973 6c6f 6722 2069 6e20 616e 7369  rsyslog" in ansi
│ │ │ +000ecc60: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000ecc70: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +000ecc80: 4e49 5354 2d38 3030 2d35 332d 4155 2d34  NIST-800-53-AU-4
│ │ │ +000ecc90: 2831 290a 2020 2d20 4e49 5354 2d38 3030  (1).  - NIST-800
│ │ │ +000ecca0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ +000eccb0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000eccc0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000eccd0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000ecce0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000eccf0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000ecd00: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000ecd10: 202d 2073 6572 7669 6365 5f72 7379 736c   - service_rsysl
│ │ │ +000ecd20: 6f67 5f65 6e61 626c 6564 0a20 202d 2073  og_enabled.  - s
│ │ │ +000ecd30: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +000ecd40: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ +000ecd50: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +000ecd60: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000ecd70: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Remediatio │ │ │ +000ece30: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000ece40: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000ecf00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000ecf10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +000ec950: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000ec980: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000ec990: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000ec9d0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000ec9e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +000eced0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000ecef0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000ecf20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000ecf40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +000ecf80: 6c65 5f72 7379 736c 6f67 0a0a 636c 6173  le_rsyslog..clas
│ │ │ +000ecf90: 7320 656e 6162 6c65 5f72 7379 736c 6f67  s enable_rsyslog
│ │ │ +000ecfa0: 207b 0a20 2073 6572 7669 6365 207b 2772   {.  service {'r
│ │ │ +000ecfb0: 7379 736c 6f67 273a 0a20 2020 2065 6e61  syslog':.    ena
│ │ │ +000ecfc0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ +000ecfd0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000ecfe0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ +000ecff0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +000ed000: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +000ed0b0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +000ed0c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000ed0d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +000ed110: 6375 7374 6f6d 697a 6174 696f 6e73 2e73  customizations.s
│ │ │ +000ed120: 6572 7669 6365 735d 0a65 6e61 626c 6564  ervices].enabled
│ │ │ +000ed130: 203d 205b 2272 7379 736c 6f67 225d 0a3c   = ["rsyslog"].<
│ │ │  000ed140: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OS │ │ │ -000f69e0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ -000f69f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f6a00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ -000f6a40: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ -000f6a50: 203d 2022 6970 7461 626c 6573 2d70 6572   = "iptables-per
│ │ │ -000f6a60: 7369 7374 656e 7422 0a76 6572 7369 6f6e  sistent".version
│ │ │ -000f6a70: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -000f6b30: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f6b40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f6bc0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f6bd0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f6bf0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f6c00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f6c20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f6c40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f6c70: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -000f6c80: 7461 6c6c 5f69 7074 6162 6c65 732d 7065  tall_iptables-pe
│ │ │ -000f6c90: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ -000f6ca0: 696e 7374 616c 6c5f 6970 7461 626c 6573  install_iptables
│ │ │ -000f6cb0: 2d70 6572 7369 7374 656e 7420 7b0a 2020  -persistent {.  
│ │ │ -000f6cc0: 7061 636b 6167 6520 7b20 2769 7074 6162  package { 'iptab
│ │ │ -000f6cd0: 6c65 732d 7065 7273 6973 7465 6e74 273a  les-persistent':
│ │ │ -000f6ce0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -000f6cf0: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -000f6d00: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -000f6dc0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -000f6dd0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -000f6e60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -000f6e80: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -000f6e90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f6ea0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -000f6eb0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -000f6ed0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -000f6f10: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -000f6f20: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -000f6f30: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -000f6f40: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -000f6f50: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -000f6f60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -000f6f70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -000f6f80: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -000f6f90: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -000f6fa0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -000f6fb0: 6564 0a20 202d 2070 6163 6b61 6765 5f69  ed.  - package_i
│ │ │ -000f6fc0: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -000f6fd0: 6e74 5f69 6e73 7461 6c6c 6564 0a0a 2d20  nt_installed..- 
│ │ │ -000f6fe0: 6e61 6d65 3a20 456e 7375 7265 2069 7074  name: Ensure ipt
│ │ │ -000f6ff0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -000f7000: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -000f7010: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -000f7020: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -000f7030: 653a 2069 7074 6162 6c65 732d 7065 7273  e: iptables-pers
│ │ │ -000f7040: 6973 7465 6e74 0a20 2020 2073 7461 7465  istent.    state
│ │ │ -000f7050: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -000f7060: 3a20 2722 6970 7461 626c 6573 2220 696e  : '"iptables" in
│ │ │ -000f7070: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -000f7080: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -000f7090: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000f70a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000f70b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000f70c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000f70d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000f70e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000f70f0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000f7100: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -000f7110: 656e 745f 696e 7374 616c 6c65 640a 3c2f  ent_installed.Remediation An
│ │ │ +000f69e0: 7369 626c 6520 736e 6970 7065 7420 e287  sible snippet ..
│ │ │ +000f69f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
< │ │ │ +000f6a70: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +000f6a90: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +000f6ae0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ +000f6b30: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000f6b40: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +000f6b50: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +000f6b60: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +000f6b70: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +000f6b80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000f6b90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000f6ba0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000f6bb0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000f6bc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000f6bd0: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +000f6be0: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +000f6bf0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +000f6c00: 653a 2045 6e73 7572 6520 6970 7461 626c  e: Ensure iptabl
│ │ │ +000f6c10: 6573 2d70 6572 7369 7374 656e 7420 6973  es-persistent is
│ │ │ +000f6c20: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +000f6c30: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +000f6c40: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +000f6c50: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +000f6c60: 656e 740a 2020 2020 7374 6174 653a 2070  ent.    state: p
│ │ │ +000f6c70: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +000f6c80: 2269 7074 6162 6c65 7322 2069 6e20 616e  "iptables" in an
│ │ │ +000f6c90: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000f6ca0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000f6cb0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000f6cc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000f6cd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000f6ce0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000f6cf0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000f6d00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000f6d10: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ +000f6d20: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000f6d30: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +000f6df0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +000f6e00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +000f6aa0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +000f6ab0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +000f6af0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +000f6b00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +000f6eb0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000f6ed0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000f6f00: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000f6e90: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000f6ea0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000f6ec0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000f6ee0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000f6ef0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +000f6f40: 2069 6e73 7461 6c6c 5f69 7074 6162 6c65 install_iptable │ │ │ +000f6f50: 732d 7065 7273 6973 7465 6e74 0a0a 636c s-persistent..cl │ │ │ +000f6f60: 6173 7320 696e 7374 616c 6c5f 6970 7461 ass install_ipta │ │ │ +000f6f70: 626c 6573 2d70 6572 7369 7374 656e 7420 bles-persistent │ │ │ +000f6f80: 7b0a 2020 7061 636b 6167 6520 7b20 2769 {. package { 'i │ │ │ +000f6f90: 7074 6162 6c65 732d 7065 7273 6973 7465 ptables-persiste │ │ │ +000f6fa0: 6e74 273a 0a20 2020 2065 6e73 7572 6520 nt':. ensure │ │ │ +000f6fb0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +000f6fc0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +000f6fd0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ +000f7080: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000f7090: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000f70a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000f70e0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +000f70f0: 5d5d 0a6e 616d 6520 3d20 2269 7074 6162  ]].name = "iptab
│ │ │ +000f7100: 6c65 732d 7065 7273 6973 7465 6e74 220a  les-persistent".
│ │ │ +000f7110: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remedi │ │ │ -000f7e40: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -000f7e50: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -000f7e60: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -000f7ea0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ -000f7eb0: 735d 5d0a 6e61 6d65 203d 2022 6970 7461  s]].name = "ipta
│ │ │ -000f7ec0: 626c 6573 220a 7665 7273 696f 6e20 3d20  bles".version = 
│ │ │ -000f7ed0: 222a 220a 3c2f 636f 6465 3e3c 2f70 7265  "*".
Remediation │ │ │ -000f7f90: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -000f7fa0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -000f8020: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -000f8040: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -000f8090: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -000f80c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -000f80e0: 6c5f 6970 7461 626c 6573 0a0a 636c 6173  l_iptables..clas
│ │ │ -000f80f0: 7320 696e 7374 616c 6c5f 6970 7461 626c  s install_iptabl
│ │ │ -000f8100: 6573 207b 0a20 2070 6163 6b61 6765 207b  es {.  package {
│ │ │ -000f8110: 2027 6970 7461 626c 6573 273a 0a20 2020   'iptables':.   
│ │ │ -000f8120: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ -000f8130: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ -000f8140: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -000f8200: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -000f8210: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:< │ │ │ -000f8030: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -000f8050: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -000f80a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -000f80b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity: │ │ │ -000f82e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -000f82f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -000f8340: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -000f8350: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -000f8360: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -000f8370: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -000f8380: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -000f8390: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -000f83a0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -000f83b0: 5265 712d 312e 342e 310a 2020 2d20 656e  Req-1.4.1.  - en
│ │ │ -000f83c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000f83d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000f83e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000f83f0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000f8400: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000f8410: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000f8420: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ -000f8430: 735f 696e 7374 616c 6c65 640a 0a2d 206e  s_installed..- n
│ │ │ -000f8440: 616d 653a 2045 6e73 7572 6520 6970 7461  ame: Ensure ipta
│ │ │ -000f8450: 626c 6573 2069 7320 696e 7374 616c 6c65  bles is installe
│ │ │ -000f8460: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -000f8470: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -000f8480: 206e 616d 653a 2069 7074 6162 6c65 730a   name: iptables.
│ │ │ -000f8490: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -000f84a0: 6e74 0a20 2077 6865 6e3a 2028 2022 6c69  nt.  when: ( "li
│ │ │ -000f84b0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -000f84c0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000f84d0: 6765 7320 290a 2020 7461 6773 3a0a 2020  ges ).  tags:.  
│ │ │ -000f84e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -000f84f0: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -000f8500: 532d 5265 712d 312e 342e 310a 2020 2d20  S-Req-1.4.1.  - 
│ │ │ -000f8510: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -000f8520: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -000f8530: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -000f8540: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -000f8550: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -000f8560: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -000f8570: 202d 2070 6163 6b61 6765 5f69 7074 6162   - package_iptab
│ │ │ -000f8580: 6c65 735f 696e 7374 616c 6c65 640a 3c2f  les_installed.
low
Disru │ │ │ -000f82c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -000f82d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -000f8310: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -000f8320: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +000f7f00: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +000f7f20: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +000f7f50: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +000f7ee0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +000f7ef0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +000f7f10: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +000f7f30: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +000f7f40: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ +000f7f90: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +000f7fa0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +000f7fb0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +000f7fc0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +000f7fd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +000f7fe0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +000f7ff0: 2050 4349 2d44 5353 2d52 6571 2d31 2e34 PCI-DSS-Req-1.4 │ │ │ +000f8000: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ +000f8010: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ +000f8020: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +000f8030: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +000f8040: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +000f8050: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +000f8060: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +000f8070: 655f 6970 7461 626c 6573 5f69 6e73 7461 e_iptables_insta │ │ │ +000f8080: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ +000f8090: 7375 7265 2069 7074 6162 6c65 7320 6973 sure iptables is │ │ │ +000f80a0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ +000f80b0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ +000f80c0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ +000f80d0: 6970 7461 626c 6573 0a20 2020 2073 7461 iptables. sta │ │ │ +000f80e0: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ +000f80f0: 656e 3a20 2820 226c 696e 7578 2d62 6173 en: ( "linux-bas │ │ │ +000f8100: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ +000f8110: 6374 732e 7061 636b 6167 6573 2029 0a20 cts.packages ). │ │ │ +000f8120: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +000f8130: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +000f8140: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ +000f8150: 2e34 2e31 0a20 202d 2065 6e61 626c 655f .4.1. - enable_ │ │ │ +000f8160: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +000f8170: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +000f8180: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +000f8190: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +000f81a0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +000f81b0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +000f81c0: 6167 655f 6970 7461 626c 6573 5f69 6e73 age_iptables_ins │ │ │ +000f81d0: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.

Remediati │ │ │ +000f8290: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +000f82a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ +000f8320: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +000f8330: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +000f8350: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +000f8360: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +000f8380: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +000f83a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +000f83d0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +000f83e0: 7461 6c6c 5f69 7074 6162 6c65 730a 0a63  tall_iptables..c
│ │ │ +000f83f0: 6c61 7373 2069 6e73 7461 6c6c 5f69 7074  lass install_ipt
│ │ │ +000f8400: 6162 6c65 7320 7b0a 2020 7061 636b 6167  ables {.  packag
│ │ │ +000f8410: 6520 7b20 2769 7074 6162 6c65 7327 3a0a  e { 'iptables':.
│ │ │ +000f8420: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000f8430: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ +000f8440: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +000f8500: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +000f8510: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +000f8560: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ +000f8570: 6d65 203d 2022 6970 7461 626c 6573 220a  me = "iptables".
│ │ │ +000f8580: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
│ │ │ -000f91a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -000f91b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -000f9250: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -000f92f0: 696e 636c 7564 6520 7265 6d6f 7665 5f69  include remove_i
│ │ │ -000f9300: 7074 6162 6c65 732d 7065 7273 6973 7465  ptables-persiste
│ │ │ -000f9310: 6e74 0a0a 636c 6173 7320 7265 6d6f 7665  nt..class remove
│ │ │ -000f9320: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -000f9330: 7465 6e74 207b 0a20 2070 6163 6b61 6765  tent {.  package
│ │ │ -000f9340: 207b 2027 6970 7461 626c 6573 2d70 6572   { 'iptables-per
│ │ │ -000f9350: 7369 7374 656e 7427 3a0a 2020 2020 656e  sistent':.    en
│ │ │ -000f9360: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -000f9370: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -000f9430: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -000f9440: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ -000f9240: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000f9270: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000f9280: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000f92c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -000f92d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ -000f94d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -000f94e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -000f9500: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -000f9520: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -000f9530: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -000f9570: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -000f9580: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -000f9590: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -000f95a0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -000f95b0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -000f95c0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -000f95d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000f95e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000f95f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000f9600: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000f9610: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000f9620: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000f9630: 6163 6b61 6765 5f69 7074 6162 6c65 732d  ackage_iptables-
│ │ │ -000f9640: 7065 7273 6973 7465 6e74 5f72 656d 6f76  persistent_remov
│ │ │ -000f9650: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ -000f9660: 6f76 6520 6970 7461 626c 6573 2d70 6572  ove iptables-per
│ │ │ -000f9670: 7369 7374 656e 7420 5061 636b 6167 653a  sistent Package:
│ │ │ -000f9680: 2045 6e73 7572 6520 6970 7461 626c 6573   Ensure iptables
│ │ │ -000f9690: 2d70 6572 7369 7374 656e 7420 6973 2072  -persistent is r
│ │ │ -000f96a0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -000f96b0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000f96c0: 653a 0a20 2020 206e 616d 653a 2069 7074  e:.    name: ipt
│ │ │ -000f96d0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -000f96e0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -000f96f0: 6e74 0a20 2077 6865 6e3a 2027 2275 6677  nt.  when: '"ufw
│ │ │ -000f9700: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000f9710: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000f9720: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -000f9730: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -000f9740: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -000f9750: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -000f9760: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -000f9770: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -000f9780: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -000f9790: 6b61 6765 5f69 7074 6162 6c65 732d 7065  kage_iptables-pe
│ │ │ -000f97a0: 7273 6973 7465 6e74 5f72 656d 6f76 6564  rsistent_removed
│ │ │ +000f91a0: 5265 6d65 6469 6174 696f 6e20 416e 7369  Remediation Ansi
│ │ │ +000f91b0: 626c 6520 736e 6970 7065 7420 e287 b23c  ble snippet ...<
│ │ │ +000f91c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173  /a>
< │ │ │ +000f9290: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +000f92a0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +000f92f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000f9300: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000f9310: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000f9320: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000f9330: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000f9340: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +000f9350: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +000f9360: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +000f9370: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +000f9380: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +000f9390: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +000f93a0: 2020 2d20 7061 636b 6167 655f 6970 7461    - package_ipta
│ │ │ +000f93b0: 626c 6573 2d70 6572 7369 7374 656e 745f  bles-persistent_
│ │ │ +000f93c0: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ +000f93d0: 2027 5265 6d6f 7665 2069 7074 6162 6c65   'Remove iptable
│ │ │ +000f93e0: 732d 7065 7273 6973 7465 6e74 2050 6163  s-persistent Pac
│ │ │ +000f93f0: 6b61 6765 3a20 456e 7375 7265 2069 7074  kage: Ensure ipt
│ │ │ +000f9400: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ +000f9410: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +000f9420: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +000f9430: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +000f9440: 3a20 6970 7461 626c 6573 2d70 6572 7369  : iptables-persi
│ │ │ +000f9450: 7374 656e 740a 2020 2020 7374 6174 653a  stent.    state:
│ │ │ +000f9460: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ +000f9470: 2722 7566 7722 2069 6e20 616e 7369 626c  '"ufw" in ansibl
│ │ │ +000f9480: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +000f9490: 270a 2020 7461 6773 3a0a 2020 2d20 6469  '.  tags:.  - di
│ │ │ +000f94a0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +000f94b0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +000f94c0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +000f94d0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +000f94e0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +000f94f0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +000f9500: 2d20 7061 636b 6167 655f 6970 7461 626c  - package_iptabl
│ │ │ +000f9510: 6573 2d70 6572 7369 7374 656e 745f 7265  es-persistent_re
│ │ │ +000f9520: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +000f95e0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +000f95f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +000f96b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000f96c0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +000f9270: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +000f9280: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +000f92c0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +000f92d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +000f9680: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +000f96a0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +000f96d0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +000f96f0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +000f9720: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +000f9730: 6d6f 7665 5f69 7074 6162 6c65 732d 7065  move_iptables-pe
│ │ │ +000f9740: 7273 6973 7465 6e74 0a0a 636c 6173 7320  rsistent..class 
│ │ │ +000f9750: 7265 6d6f 7665 5f69 7074 6162 6c65 732d  remove_iptables-
│ │ │ +000f9760: 7065 7273 6973 7465 6e74 207b 0a20 2070  persistent {.  p
│ │ │ +000f9770: 6163 6b61 6765 207b 2027 6970 7461 626c  ackage { 'iptabl
│ │ │ +000f9780: 6573 2d70 6572 7369 7374 656e 7427 3a0a  es-persistent':.
│ │ │ +000f9790: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +000f97a0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  000f97b0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation │ │ │ -00144d00: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00144d10: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ -00144d70: 616d 6520 3d20 226e 6674 6162 6c65 7322  ame = "nftables"
│ │ │ -00144d80: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -00144d90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -00144e40: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00144e50: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00144ef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00144f00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00144f50: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00144f90: 6c75 6465 2069 6e73 7461 6c6c 5f6e 6674  lude install_nft
│ │ │ -00144fa0: 6162 6c65 730a 0a63 6c61 7373 2069 6e73  ables..class ins
│ │ │ -00144fb0: 7461 6c6c 5f6e 6674 6162 6c65 7320 7b0a  tall_nftables {.
│ │ │ -00144fc0: 2020 7061 636b 6167 6520 7b20 276e 6674    package { 'nft
│ │ │ -00144fd0: 6162 6c65 7327 3a0a 2020 2020 656e 7375  ables':.    ensu
│ │ │ -00144fe0: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ -00144ff0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ -00145010: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00145020: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00145030: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00145040: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00145050: 6434 3136 2220 7461 6269 6e64 6578 3d22 d416" tabindex=" │ │ │ -00145060: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00145070: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00145080: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00145090: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -001450a0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -001450b0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -001450c0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -001450d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ -00144ee0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00144f10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00144f20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00144f60: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00144f70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ -00145150: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00145180: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -001451a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -001451b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -001451d0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -001451f0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00145200: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00145210: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -00145220: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00145230: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -00145240: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -00145250: 5353 7634 2d31 2e32 0a20 202d 2050 4349  SSv4-1.2.  - PCI
│ │ │ -00145260: 2d44 5353 7634 2d31 2e32 2e31 0a20 202d  -DSSv4-1.2.1.  -
│ │ │ -00145270: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00145280: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00145290: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -001452a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -001452b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -001452c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -001452d0: 2020 2d20 7061 636b 6167 655f 6e66 7461    - package_nfta
│ │ │ -001452e0: 626c 6573 5f69 6e73 7461 6c6c 6564 0a0a  bles_installed..
│ │ │ -001452f0: 2d20 6e61 6d65 3a20 456e 7375 7265 206e  - name: Ensure n
│ │ │ -00145300: 6674 6162 6c65 7320 6973 2069 6e73 7461  ftables is insta
│ │ │ -00145310: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62  lled.  ansible.b
│ │ │ -00145320: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00145330: 2020 2020 6e61 6d65 3a20 6e66 7461 626c      name: nftabl
│ │ │ -00145340: 6573 0a20 2020 2073 7461 7465 3a20 7072  es.    state: pr
│ │ │ -00145350: 6573 656e 740a 2020 7768 656e 3a20 2820  esent.  when: ( 
│ │ │ -00145360: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00145370: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00145380: 636b 6167 6573 2029 0a20 2074 6167 733a  ckages ).  tags:
│ │ │ -00145390: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -001453a0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -001453b0: 2d31 2e32 2e31 0a20 202d 2065 6e61 626c  -1.2.1.  - enabl
│ │ │ -001453c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -001453d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -001453e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -001453f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00145400: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00145410: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00145420: 636b 6167 655f 6e66 7461 626c 6573 5f69  ckage_nftables_i
│ │ │ -00145430: 6e73 7461 6c6c 6564 0a3c 2f63 6f64 653e  nstalled.
│ │ │ +00144d00: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00144d10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
Complexity │ │ │ +00144da0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00144dc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00144dd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00144de0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00144df0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00144e10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00144e50: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00144e60: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00144e70: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00144e80: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00144e90: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ +00144ea0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00144eb0: 312e 322e 310a 2020 2d20 656e 6162 6c65  1.2.1.  - enable
│ │ │ +00144ec0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00144ed0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00144ee0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00144ef0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00144f00: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00144f10: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00144f20: 6b61 6765 5f6e 6674 6162 6c65 735f 696e  kage_nftables_in
│ │ │ +00144f30: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ +00144f40: 2045 6e73 7572 6520 6e66 7461 626c 6573   Ensure nftables
│ │ │ +00144f50: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ +00144f60: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00144f70: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00144f80: 653a 206e 6674 6162 6c65 730a 2020 2020  e: nftables.    
│ │ │ +00144f90: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +00144fa0: 2077 6865 6e3a 2028 2022 6c69 6e75 782d   when: ( "linux-
│ │ │ +00144fb0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00144fc0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00144fd0: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ +00144fe0: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +00144ff0: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +00145000: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00145010: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00145020: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00145030: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00145040: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00145050: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00145060: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ +00145070: 6674 6162 6c65 735f 696e 7374 616c 6c65  ftables_installe
│ │ │ +00145080: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00145090: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00145140: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00145150: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00145220: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00145230: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00145280: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00145290: 6e66 7461 626c 6573 0a0a 636c 6173 7320  nftables..class 
│ │ │ +001452a0: 696e 7374 616c 6c5f 6e66 7461 626c 6573  install_nftables
│ │ │ +001452b0: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +001452c0: 6e66 7461 626c 6573 273a 0a20 2020 2065  nftables':.    e
│ │ │ +001452d0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +001452e0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +001452f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +001453a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +001453b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +001453c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001453d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00145400: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +00145410: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +00145420: 226e 6674 6162 6c65 7322 0a76 6572 7369  "nftables".versi
│ │ │ +00145430: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │  00145440: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Reme │ │ │ -001460c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -001460d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -001460e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ -00146130: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -00146140: 735d 0a65 6e61 626c 6564 203d 205b 226e s].enabled = ["n │ │ │ -00146150: 6674 6162 6c65 7322 5d0a 3c2f 636f 6465 ftables"].Remedi │ │ │ -00146210: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00146220: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00146230: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00146260: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00145200: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00145210: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00145250: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00145260: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -001462d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -001462f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00146320: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00146340: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -001462b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -001462c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00146300: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00146310: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00146360: 656e 6162 6c65 5f6e 6674 6162 6c65 730a enable_nftables. │ │ │ -00146370: 0a63 6c61 7373 2065 6e61 626c 655f 6e66 .class enable_nf │ │ │ -00146380: 7461 626c 6573 207b 0a20 2073 6572 7669 tables {. servi │ │ │ -00146390: 6365 207b 276e 6674 6162 6c65 7327 3a0a ce {'nftables':. │ │ │ -001463a0: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ -001463b0: 2074 7275 652c 0a20 2020 2065 6e73 7572 true,. ensur │ │ │ -001463c0: 6520 3d26 6774 3b20 2772 756e 6e69 6e67 e => 'running │ │ │ -001463d0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -001463e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ -00146490: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -001464a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -001464b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -001464e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00146550: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00146570: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -001465a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -001465c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00146530: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00146540: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00146580: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00146590: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ -001465e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -001465f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00146600: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00146610: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00146620: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00146630: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00146640: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00146650: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00146660: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00146670: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00146680: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00146690: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ -001466a0: 6c65 640a 0a2d 206e 616d 653a 2056 6572 led..- name: Ver │ │ │ -001466b0: 6966 7920 6e66 7461 626c 6573 2053 6572 ify nftables Ser │ │ │ -001466c0: 7669 6365 2069 7320 456e 6162 6c65 6420 vice is Enabled │ │ │ -001466d0: 2d20 456e 6162 6c65 2073 6572 7669 6365 - Enable service │ │ │ -001466e0: 206e 6674 6162 6c65 730a 2020 626c 6f63 nftables. bloc │ │ │ -001466f0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761 k:.. - name: Ga │ │ │ -00146700: 7468 6572 2074 6865 2070 6163 6b61 6765 ther the package │ │ │ -00146710: 2066 6163 7473 0a20 2020 2061 6e73 6962 facts. ansib │ │ │ -00146720: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61 le.builtin.packa │ │ │ -00146730: 6765 5f66 6163 7473 3a0a 2020 2020 2020 ge_facts:. │ │ │ -00146740: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20 manager: auto.. │ │ │ -00146750: 202d 206e 616d 653a 2056 6572 6966 7920 - name: Verify │ │ │ -00146760: 6e66 7461 626c 6573 2053 6572 7669 6365 nftables Service │ │ │ -00146770: 2069 7320 456e 6162 6c65 6420 2d20 456e is Enabled - En │ │ │ -00146780: 6162 6c65 2053 6572 7669 6365 206e 6674 able Service nft │ │ │ -00146790: 6162 6c65 730a 2020 2020 616e 7369 626c ables. ansibl │ │ │ -001467a0: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -001467b0: 643a 0a20 2020 2020 206e 616d 653a 206e d:. name: n │ │ │ -001467c0: 6674 6162 6c65 730a 2020 2020 2020 656e ftables. en │ │ │ -001467d0: 6162 6c65 643a 2074 7275 650a 2020 2020 abled: true. │ │ │ -001467e0: 2020 7374 6174 653a 2073 7461 7274 6564 state: started │ │ │ -001467f0: 0a20 2020 2020 206d 6173 6b65 643a 2066 . masked: f │ │ │ -00146800: 616c 7365 0a20 2020 2077 6865 6e3a 0a20 alse. when:. │ │ │ -00146810: 2020 202d 2027 226e 6674 6162 6c65 7322 - '"nftables" │ │ │ -00146820: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -00146830: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ -00146840: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ -00146850: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00146860: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00146870: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00146880: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00146890: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -001468a0: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -001468b0: 6365 5f6e 6674 6162 6c65 735f 656e 6162 ce_nftables_enab │ │ │ -001468c0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f led. - special_ │ │ │ -001468d0: 7365 7276 6963 655f 626c 6f63 6b0a 2020 service_block. │ │ │ -001468e0: 7768 656e 3a20 2820 226e 6674 6162 6c65 when: ( "nftable │ │ │ -001468f0: 7322 2069 6e20 616e 7369 626c 655f 6661 s" in ansible_fa │ │ │ -00146900: 6374 732e 7061 636b 6167 6573 2061 6e64 cts.packages and │ │ │ -00146910: 2022 6c69 6e75 782d 6261 7365 2220 696e "linux-base" in │ │ │ -00146920: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00146930: 6163 6b61 6765 730a 2020 2020 290a 3c2f ackages. ).< │ │ │ +001460e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00146160: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00146190: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001461b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001461c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001461e0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00146200: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00146210: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00146220: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00146230: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00146240: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00146250: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00146260: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00146270: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00146280: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00146290: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001462a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001462b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001462c0: 7276 6963 655f 6e66 7461 626c 6573 5f65  rvice_nftables_e
│ │ │ +001462d0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +001462e0: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ +001462f0: 5365 7276 6963 6520 6973 2045 6e61 626c  Service is Enabl
│ │ │ +00146300: 6564 202d 2045 6e61 626c 6520 7365 7276  ed - Enable serv
│ │ │ +00146310: 6963 6520 6e66 7461 626c 6573 0a20 2062  ice nftables.  b
│ │ │ +00146320: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +00146330: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +00146340: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +00146350: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +00146360: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00146370: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00146380: 0a0a 2020 2d20 6e61 6d65 3a20 5665 7269  ..  - name: Veri
│ │ │ +00146390: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ +001463a0: 6963 6520 6973 2045 6e61 626c 6564 202d  ice is Enabled -
│ │ │ +001463b0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +001463c0: 6e66 7461 626c 6573 0a20 2020 2061 6e73  nftables.    ans
│ │ │ +001463d0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +001463e0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +001463f0: 3a20 6e66 7461 626c 6573 0a20 2020 2020  : nftables.     
│ │ │ +00146400: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ +00146410: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ +00146420: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ +00146430: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ +00146440: 3a0a 2020 2020 2d20 2722 6e66 7461 626c  :.    - '"nftabl
│ │ │ +00146450: 6573 2220 696e 2061 6e73 6962 6c65 5f66  es" in ansible_f
│ │ │ +00146460: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00146470: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00146480: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00146490: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001464a0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001464b0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001464c0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001464d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001464e0: 7276 6963 655f 6e66 7461 626c 6573 5f65  rvice_nftables_e
│ │ │ +001464f0: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +00146500: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00146510: 0a20 2077 6865 6e3a 2028 2022 6e66 7461  .  when: ( "nfta
│ │ │ +00146520: 626c 6573 2220 696e 2061 6e73 6962 6c65  bles" in ansible
│ │ │ +00146530: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00146540: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +00146550: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00146560: 732e 7061 636b 6167 6573 0a20 2020 2029  s.packages.    )
│ │ │ +00146570: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00146630: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00146640: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00146710: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00146720: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00146770: 6e63 6c75 6465 2065 6e61 626c 655f 6e66  nclude enable_nf
│ │ │ +00146780: 7461 626c 6573 0a0a 636c 6173 7320 656e  tables..class en
│ │ │ +00146790: 6162 6c65 5f6e 6674 6162 6c65 7320 7b0a  able_nftables {.
│ │ │ +001467a0: 2020 7365 7276 6963 6520 7b27 6e66 7461    service {'nfta
│ │ │ +001467b0: 626c 6573 273a 0a20 2020 2065 6e61 626c  bles':.    enabl
│ │ │ +001467c0: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +001467d0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +001467e0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +001467f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001468a0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +001468b0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +001468c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00146910: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00146920: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +00146930: 205b 226e 6674 6162 6c65 7322 5d0a 3c2f   ["nftables"].
Remediati │ │ │ -00147740: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00147750: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00147760: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -001477b0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -001477c0: 736b 6564 203d 205b 226e 6674 6162 6c65  sked = ["nftable
│ │ │ -001477d0: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -00147890: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -001478a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:low
Disrup │ │ │ +001466f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00146700: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00146740: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00146750: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00147920: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00147940: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00147990: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -001479c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -001479e0: 655f 6e66 7461 626c 6573 0a0a 636c 6173  e_nftables..clas
│ │ │ -001479f0: 7320 6469 7361 626c 655f 6e66 7461 626c  s disable_nftabl
│ │ │ -00147a00: 6573 207b 0a20 2073 6572 7669 6365 207b  es {.  service {
│ │ │ -00147a10: 276e 6674 6162 6c65 7327 3a0a 2020 2020  'nftables':.    
│ │ │ -00147a20: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -00147a30: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -00147a40: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -00147a50: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00147b10: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00147b20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00147ba0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00147be0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Complexity:< │ │ │ -00147930: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00147950: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -001479a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -001479b0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexit │ │ │ -00147bb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00147bd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00147c00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00147c20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00147c50: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00147c60: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00147c70: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00147c80: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00147c90: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00147ca0: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00147cb0: 312e 320a 2020 2d20 5043 492d 4453 5376  1.2.  - PCI-DSSv
│ │ │ -00147cc0: 342d 312e 322e 310a 2020 2d20 6469 7361  4-1.2.1.  - disa
│ │ │ -00147cd0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00147ce0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00147cf0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00147d00: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00147d10: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00147d20: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00147d30: 7365 7276 6963 655f 6e66 7461 626c 6573  service_nftables
│ │ │ -00147d40: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ -00147d50: 653a 2056 6572 6966 7920 6e66 7461 626c  e: Verify nftabl
│ │ │ -00147d60: 6573 2053 6572 7669 6365 2069 7320 4469  es Service is Di
│ │ │ -00147d70: 7361 626c 6564 202d 2044 6973 6162 6c65  sabled - Disable
│ │ │ -00147d80: 2073 6572 7669 6365 206e 6674 6162 6c65   service nftable
│ │ │ -00147d90: 730a 2020 626c 6f63 6b3a 0a0a 2020 2d20  s.  block:..  - 
│ │ │ -00147da0: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ -00147db0: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ -00147dc0: 2044 6973 6162 6c65 6420 2d20 436f 6c6c   Disabled - Coll
│ │ │ -00147dd0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -00147de0: 6963 6573 2050 7265 7365 6e74 2069 6e0a  ices Present in.
│ │ │ -00147df0: 2020 2020 2020 7468 6520 5379 7374 656d        the System
│ │ │ -00147e00: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00147e10: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00147e20: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00147e30: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00147e40: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00147e50: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00147e60: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00147e70: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00147e80: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -00147e90: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -00147ea0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -00147eb0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -00147ec0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -00147ed0: 2056 6572 6966 7920 6e66 7461 626c 6573   Verify nftables
│ │ │ -00147ee0: 2053 6572 7669 6365 2069 7320 4469 7361   Service is Disa
│ │ │ -00147ef0: 626c 6564 202d 2045 6e73 7572 6520 6e66  bled - Ensure nf
│ │ │ -00147f00: 7461 626c 6573 2e73 6572 7669 6365 2069  tables.service i
│ │ │ -00147f10: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -00147f20: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00147f30: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00147f40: 3a20 6e66 7461 626c 6573 2e73 6572 7669  : nftables.servi
│ │ │ -00147f50: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00147f60: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00147f70: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00147f80: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00147f90: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00147fa0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00147fb0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00147fc0: 226e 6674 6162 6c65 732e 7365 7276 6963  "nftables.servic
│ │ │ -00147fd0: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00147fe0: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -00147ff0: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -00148000: 7320 2d20 6e66 7461 626c 6573 2e73 6f63  s - nftables.soc
│ │ │ -00148010: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -00148020: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00148030: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00148040: 7374 2d75 6e69 742d 6669 6c65 7320 6e66  st-unit-files nf
│ │ │ -00148050: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ -00148060: 2020 7265 6769 7374 6572 3a20 736f 636b    register: sock
│ │ │ -00148070: 6574 5f66 696c 655f 6578 6973 7473 0a20  et_file_exists. 
│ │ │ -00148080: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00148090: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -001480a0: 645f 7768 656e 3a20 736f 636b 6574 5f66  d_when: socket_f
│ │ │ -001480b0: 696c 655f 6578 6973 7473 2e72 6320 6e6f  ile_exists.rc no
│ │ │ -001480c0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -001480d0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -001480e0: 650a 0a20 202d 206e 616d 653a 2056 6572  e..  - name: Ver
│ │ │ -001480f0: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ -00148100: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ -00148110: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -00148120: 7420 6e66 7461 626c 6573 0a20 2020 2061  t nftables.    a
│ │ │ -00148130: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00148140: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00148150: 6d65 3a20 6e66 7461 626c 6573 2e73 6f63  me: nftables.soc
│ │ │ -00148160: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ -00148170: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ -00148180: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00148190: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -001481a0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ -001481b0: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ -001481c0: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -001481d0: 6172 6368 2822 6e66 7461 626c 6573 2e73  arch("nftables.s
│ │ │ -001481e0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ -001481f0: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ -00148200: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ -00148210: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -00148220: 312e 322e 310a 2020 2d20 6469 7361 626c  1.2.1.  - disabl
│ │ │ -00148230: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00148240: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00148250: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00148260: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00148270: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00148280: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00148290: 7276 6963 655f 6e66 7461 626c 6573 5f64  rvice_nftables_d
│ │ │ -001482a0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -001482b0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -001482c0: 6b0a 2020 7768 656e 3a20 2820 2266 6972  k.  when: ( "fir
│ │ │ -001482d0: 6577 616c 6c64 2220 696e 2061 6e73 6962  ewalld" in ansib
│ │ │ -001482e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -001482f0: 7320 616e 6420 226e 6674 6162 6c65 7322  s and "nftables"
│ │ │ -00148300: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00148310: 732e 7061 636b 6167 6573 0a20 2020 2061  s.packages.    a
│ │ │ -00148320: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ -00148330: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -00148340: 2e70 6163 6b61 6765 7320 290a 3c2f 636f  .packages ).
│ │ │ +001477d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +001477e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001477f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00147830: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00147840: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00147860: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00147870: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00147890: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +001478a0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +001478b0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +001478c0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +001478d0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +001478e0: 2d31 2e32 0a20 202d 2050 4349 2d44 5353  -1.2.  - PCI-DSS
│ │ │ +001478f0: 7634 2d31 2e32 2e31 0a20 202d 2064 6973  v4-1.2.1.  - dis
│ │ │ +00147900: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00147910: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00147920: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00147930: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00147940: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00147950: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00147960: 2073 6572 7669 6365 5f6e 6674 6162 6c65   service_nftable
│ │ │ +00147970: 735f 6469 7361 626c 6564 0a0a 2d20 6e61  s_disabled..- na
│ │ │ +00147980: 6d65 3a20 5665 7269 6679 206e 6674 6162  me: Verify nftab
│ │ │ +00147990: 6c65 7320 5365 7276 6963 6520 6973 2044  les Service is D
│ │ │ +001479a0: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ +001479b0: 6520 7365 7276 6963 6520 6e66 7461 626c  e service nftabl
│ │ │ +001479c0: 6573 0a20 2062 6c6f 636b 3a0a 0a20 202d  es.  block:..  -
│ │ │ +001479d0: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +001479e0: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +001479f0: 7320 4469 7361 626c 6564 202d 2043 6f6c  s Disabled - Col
│ │ │ +00147a00: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +00147a10: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +00147a20: 0a20 2020 2020 2074 6865 2053 7973 7465  .      the Syste
│ │ │ +00147a30: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00147a40: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00147a50: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00147a60: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00147a70: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00147a80: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00147a90: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00147aa0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00147ab0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00147ac0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00147ad0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00147ae0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00147af0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00147b00: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ +00147b10: 7320 5365 7276 6963 6520 6973 2044 6973  s Service is Dis
│ │ │ +00147b20: 6162 6c65 6420 2d20 456e 7375 7265 206e  abled - Ensure n
│ │ │ +00147b30: 6674 6162 6c65 732e 7365 7276 6963 6520  ftables.service 
│ │ │ +00147b40: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +00147b50: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00147b60: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00147b70: 653a 206e 6674 6162 6c65 732e 7365 7276  e: nftables.serv
│ │ │ +00147b80: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +00147b90: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +00147ba0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +00147bb0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +00147bc0: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +00147bd0: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +00147be0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +00147bf0: 2822 6e66 7461 626c 6573 2e73 6572 7669  ("nftables.servi
│ │ │ +00147c00: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00147c10: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00147c20: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +00147c30: 7473 202d 206e 6674 6162 6c65 732e 736f  ts - nftables.so
│ │ │ +00147c40: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +00147c50: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00147c60: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00147c70: 6973 742d 756e 6974 2d66 696c 6573 206e  ist-unit-files n
│ │ │ +00147c80: 6674 6162 6c65 732e 736f 636b 6574 0a20  ftables.socket. 
│ │ │ +00147c90: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +00147ca0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +00147cb0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00147cc0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00147cd0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +00147ce0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +00147cf0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00147d00: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00147d10: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5665  se..  - name: Ve
│ │ │ +00147d20: 7269 6679 206e 6674 6162 6c65 7320 5365  rify nftables Se
│ │ │ +00147d30: 7276 6963 6520 6973 2044 6973 6162 6c65  rvice is Disable
│ │ │ +00147d40: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ +00147d50: 6574 206e 6674 6162 6c65 730a 2020 2020  et nftables.    
│ │ │ +00147d60: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00147d70: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00147d80: 616d 653a 206e 6674 6162 6c65 732e 736f  ame: nftables.so
│ │ │ +00147d90: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00147da0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00147db0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00147dc0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00147dd0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +00147de0: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +00147df0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00147e00: 6561 7263 6828 226e 6674 6162 6c65 732e  earch("nftables.
│ │ │ +00147e10: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00147e20: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +00147e30: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +00147e40: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +00147e50: 2d31 2e32 2e31 0a20 202d 2064 6973 6162  -1.2.1.  - disab
│ │ │ +00147e60: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00147e70: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00147e80: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00147e90: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00147ea0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00147eb0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00147ec0: 6572 7669 6365 5f6e 6674 6162 6c65 735f  ervice_nftables_
│ │ │ +00147ed0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00147ee0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00147ef0: 636b 0a20 2077 6865 6e3a 2028 2022 6669  ck.  when: ( "fi
│ │ │ +00147f00: 7265 7761 6c6c 6422 2069 6e20 616e 7369  rewalld" in ansi
│ │ │ +00147f10: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00147f20: 6573 2061 6e64 2022 6e66 7461 626c 6573  es and "nftables
│ │ │ +00147f30: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00147f40: 7473 2e70 6163 6b61 6765 730a 2020 2020  ts.packages.    
│ │ │ +00147f50: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +00147f60: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00147f70: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
│ │ │ +00147f90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00148030: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00148040: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00148050: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +001480d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00148100: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00148120: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00148130: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00148150: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00148170: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00148180: 6465 2064 6973 6162 6c65 5f6e 6674 6162  de disable_nftab
│ │ │ +00148190: 6c65 730a 0a63 6c61 7373 2064 6973 6162  les..class disab
│ │ │ +001481a0: 6c65 5f6e 6674 6162 6c65 7320 7b0a 2020  le_nftables {.  
│ │ │ +001481b0: 7365 7276 6963 6520 7b27 6e66 7461 626c  service {'nftabl
│ │ │ +001481c0: 6573 273a 0a20 2020 2065 6e61 626c 6520  es':.    enable 
│ │ │ +001481d0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +001481e0: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +001481f0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +00148200: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +001482b0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +001482c0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +001482d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +001482e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00148310: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +00148320: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +00148330: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +00148340: 226e 6674 6162 6c65 7322 5d0a 3c2f 636f  "nftables"].
< │ │ │ 00148360: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 00148370: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>< │ │ │ 00148380: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediat │ │ │ -001503e0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -001503f0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00150400: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -00150450: 5d0a 6e61 6d65 203d 2022 7566 7722 0a76  ].name = "ufw".v
│ │ │ -00150460: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -00150480: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00150520: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00150530: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00150540: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -001505c0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -001505f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00150610: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00150620: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00150640: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -00150660: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -00150670: 6465 2069 6e73 7461 6c6c 5f75 6677 0a0a  de install_ufw..
│ │ │ -00150680: 636c 6173 7320 696e 7374 616c 6c5f 7566  class install_uf
│ │ │ -00150690: 7720 7b0a 2020 7061 636b 6167 6520 7b20  w {.  package { 
│ │ │ -001506a0: 2775 6677 273a 0a20 2020 2065 6e73 7572  'ufw':.    ensur
│ │ │ -001506b0: 6520 3d26 6774 3b20 2769 6e73 7461 6c6c  e => 'install
│ │ │ -001506c0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -00150780: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00150790: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00150820: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00150830: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00150850: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00150870: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00150880: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -001508c0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -001508d0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -001508e0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -001508f0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00150900: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00150910: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ -00150920: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -00150930: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -00150940: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -00150950: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ -00150960: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ -00150970: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00150980: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c kage_ufw_install │ │ │ -00150990: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ -001509a0: 7265 2075 6677 2069 7320 696e 7374 616c re ufw is instal │ │ │ -001509b0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ -001509c0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -001509d0: 2020 206e 616d 653a 2075 6677 0a20 2020 name: ufw. │ │ │ -001509e0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ -001509f0: 2020 7768 656e 3a20 2722 6c69 6e75 782d when: '"linux- │ │ │ -00150a00: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ -00150a10: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ -00150a20: 0a20 2074 6167 733a 0a20 202d 2065 6e61 . tags:. - ena │ │ │ -00150a30: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -00150a40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -00150a50: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00150a60: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00150a70: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00150a80: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00150a90: 7061 636b 6167 655f 7566 775f 696e 7374 package_ufw_inst │ │ │ -00150aa0: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70 alled.


< │ │ │ +00150400: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00150410: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00150420: 7365 2220 6964 3d22 6964 3433 3922 3e3c se" id="id439">< │ │ │ +00150430: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00150440: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00150450: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00150460: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00150470: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00150480: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00150490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +001504d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +001504e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00150500: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00150510: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +00150530: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00150540: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00150550: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00150560: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00150570: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +00150580: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00150590: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +001505a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +001505b0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +001505c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +001505d0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +001505e0: 655f 7566 775f 696e 7374 616c 6c65 640a  e_ufw_installed.
│ │ │ +001505f0: 0a2d 206e 616d 653a 2045 6e73 7572 6520  .- name: Ensure 
│ │ │ +00150600: 7566 7720 6973 2069 6e73 7461 6c6c 6564  ufw is installed
│ │ │ +00150610: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00150620: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00150630: 6e61 6d65 3a20 7566 770a 2020 2020 7374  name: ufw.    st
│ │ │ +00150640: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ +00150650: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00150660: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00150670: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00150680: 7461 6773 3a0a 2020 2d20 656e 6162 6c65  tags:.  - enable
│ │ │ +00150690: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +001506a0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +001506b0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +001506c0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +001506d0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +001506e0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +001506f0: 6b61 6765 5f75 6677 5f69 6e73 7461 6c6c  kage_ufw_install
│ │ │ +00150700: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00150710: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +001507c0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +001507d0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00150850: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00150870: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +001508c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include install
│ │ │ +00150910: 5f75 6677 0a0a 636c 6173 7320 696e 7374  _ufw..class inst
│ │ │ +00150920: 616c 6c5f 7566 7720 7b0a 2020 7061 636b  all_ufw {.  pack
│ │ │ +00150930: 6167 6520 7b20 2775 6677 273a 0a20 2020  age { 'ufw':.   
│ │ │ +00150940: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +00150950: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +00150960: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +00150a20: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +00150a30: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ +00150a80: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ +00150a90: 3d20 2275 6677 220a 7665 7273 696f 6e20  = "ufw".version 
│ │ │ +00150aa0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Reme │ │ │ -001515b0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -001515c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disr │ │ │ +00150880: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00150890: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +001508d0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +001508e0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ -00151650: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00151660: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00151680: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -001516a0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -001516b0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -001516f0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -00151700: 7564 6520 7265 6d6f 7665 5f75 6677 0a0a  ude remove_ufw..
│ │ │ -00151710: 636c 6173 7320 7265 6d6f 7665 5f75 6677  class remove_ufw
│ │ │ -00151720: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00151730: 7566 7727 3a0a 2020 2020 656e 7375 7265  ufw':.    ensure
│ │ │ -00151740: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00151750: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00151810: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -00151820: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -001518a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -001518b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -001518c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00151900: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00151910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00151930: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00151940: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -00151960: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -00151970: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -00151980: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -00151990: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -001519a0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -001519b0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -001519c0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -001519d0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -001519e0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -001519f0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00151a00: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00151a10: 6765 5f75 6677 5f72 656d 6f76 6564 0a0a  ge_ufw_removed..
│ │ │ -00151a20: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -00151a30: 7566 7720 5061 636b 6167 653a 2045 6e73  ufw Package: Ens
│ │ │ -00151a40: 7572 6520 7566 7720 6973 2072 656d 6f76  ure ufw is remov
│ │ │ -00151a50: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00151a60: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00151a70: 2020 206e 616d 653a 2075 6677 0a20 2020     name: ufw.   
│ │ │ -00151a80: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00151a90: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00151aa0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00151ab0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -00151ac0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -00151ad0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00151ae0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00151af0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00151b00: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00151b10: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00151b20: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00151b30: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ -00151b40: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
< │ │ │ +001515d0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +00151650: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00151680: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001516a0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001516b0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001516d0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001516e0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00151700: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00151710: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00151720: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00151730: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00151740: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00151750: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00151760: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00151770: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00151780: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00151790: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +001517a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001517b0: 7061 636b 6167 655f 7566 775f 7265 6d6f  package_ufw_remo
│ │ │ +001517c0: 7665 640a 0a2d 206e 616d 653a 2027 5265  ved..- name: 'Re
│ │ │ +001517d0: 6d6f 7665 2075 6677 2050 6163 6b61 6765  move ufw Package
│ │ │ +001517e0: 3a20 456e 7375 7265 2075 6677 2069 7320  : Ensure ufw is 
│ │ │ +001517f0: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00151800: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00151810: 6765 3a0a 2020 2020 6e61 6d65 3a20 7566  ge:.    name: uf
│ │ │ +00151820: 770a 2020 2020 7374 6174 653a 2061 6273  w.    state: abs
│ │ │ +00151830: 656e 740a 2020 7768 656e 3a20 2722 6c69  ent.  when: '"li
│ │ │ +00151840: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00151850: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00151860: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +00151870: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00151880: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00151890: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +001518a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +001518b0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +001518c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +001518d0: 0a20 202d 2070 6163 6b61 6765 5f75 6677  .  - package_ufw
│ │ │ +001518e0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +001518f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +001519a0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +001519b0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001519c0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001519d0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001519e0: 7365 2220 6964 3d22 6964 3434 3522 3e3c se" id="id445">< │ │ │ +001519f0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00151a00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00151a10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00151a20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00151a30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00151a40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00151a50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00151a90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00151aa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00151ac0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00151ad0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00151af0: 2072 656d 6f76 655f 7566 770a 0a63 6c61 remove_ufw..cla │ │ │ +00151b00: 7373 2072 656d 6f76 655f 7566 7720 7b0a ss remove_ufw {. │ │ │ +00151b10: 2020 7061 636b 6167 6520 7b20 2775 6677 package { 'ufw │ │ │ +00151b20: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +00151b30: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +00151b40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -001527a0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -001527b0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -00152810: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -00152820: 6c65 6420 3d20 5b22 7566 7722 5d0a 3c2f  led = ["ufw"].
Re │ │ │ -001528e0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -001528f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00152900: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -001529a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -001529f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00152980: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001529b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001529d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001529e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00152a00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00152a10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00152a30: 7564 6520 656e 6162 6c65 5f75 6677 0a0a  ude enable_ufw..
│ │ │ -00152a40: 636c 6173 7320 656e 6162 6c65 5f75 6677  class enable_ufw
│ │ │ -00152a50: 207b 0a20 2073 6572 7669 6365 207b 2775   {.  service {'u
│ │ │ -00152a60: 6677 273a 0a20 2020 2065 6e61 626c 6520  fw':.    enable 
│ │ │ -00152a70: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -00152a80: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -00152a90: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -00152b50: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00152b60: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -00152c00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00152c10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00152c60: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -00152ca0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00152cb0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00152cc0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00152cd0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00152ce0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00152cf0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00152d00: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00152d10: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00152d20: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00152d30: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00152d40: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00152d50: 7365 7276 6963 655f 7566 775f 656e 6162  service_ufw_enab
│ │ │ -00152d60: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ -00152d70: 6966 7920 7566 7720 456e 6162 6c65 6420  ify ufw Enabled 
│ │ │ -00152d80: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -00152d90: 2075 6677 0a20 2062 6c6f 636b 3a0a 0a20   ufw.  block:.. 
│ │ │ -00152da0: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ -00152db0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00152dc0: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ -00152dd0: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ -00152de0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ -00152df0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ -00152e00: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ -00152e10: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ -00152e20: 5365 7276 6963 6520 7566 770a 2020 2020  Service ufw.    
│ │ │ -00152e30: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00152e40: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00152e50: 616d 653a 2075 6677 0a20 2020 2020 2065  ame: ufw.      e
│ │ │ -00152e60: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ -00152e70: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ -00152e80: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ -00152e90: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ -00152ea0: 2020 2020 2d20 2722 7566 7722 2069 6e20      - '"ufw" in 
│ │ │ -00152eb0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00152ec0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ -00152ed0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00152ee0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00152ef0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00152f00: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00152f10: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00152f20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00152f30: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ -00152f40: 6677 5f65 6e61 626c 6564 0a20 202d 2073  fw_enabled.  - s
│ │ │ -00152f50: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00152f60: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -00152f70: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00152f80: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00152f90: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -00152fa0: 2275 6677 2220 696e 2061 6e73 6962 6c65  "ufw" in ansible
│ │ │ -00152fb0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ -00152fc0: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ -00152fd0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00152fe0: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
< │ │ │ +00152870: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00152880: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00152bf0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00152c20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00152c30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00152c70: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00152c80: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity │ │ │ +00152840: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00152860: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00152890: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +001528b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +001528f0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00152900: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00152910: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00152920: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00152930: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00152940: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00152950: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00152960: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00152970: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00152980: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00152990: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ +001529a0: 6677 5f65 6e61 626c 6564 0a0a 2d20 6e61  fw_enabled..- na
│ │ │ +001529b0: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ +001529c0: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ +001529d0: 7365 7276 6963 6520 7566 770a 2020 626c  service ufw.  bl
│ │ │ +001529e0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +001529f0: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00152a00: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00152a10: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00152a20: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00152a30: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00152a40: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ +00152a50: 7920 7566 7720 456e 6162 6c65 6420 2d20  y ufw Enabled - 
│ │ │ +00152a60: 456e 6162 6c65 2053 6572 7669 6365 2075  Enable Service u
│ │ │ +00152a70: 6677 0a20 2020 2061 6e73 6962 6c65 2e62  fw.    ansible.b
│ │ │ +00152a80: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00152a90: 2020 2020 2020 6e61 6d65 3a20 7566 770a        name: ufw.
│ │ │ +00152aa0: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +00152ab0: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +00152ac0: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +00152ad0: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +00152ae0: 2077 6865 6e3a 0a20 2020 202d 2027 2275   when:.    - '"u
│ │ │ +00152af0: 6677 2220 696e 2061 6e73 6962 6c65 5f66  fw" in ansible_f
│ │ │ +00152b00: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00152b10: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00152b20: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00152b30: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00152b40: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00152b50: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00152b60: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00152b70: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00152b80: 7276 6963 655f 7566 775f 656e 6162 6c65  rvice_ufw_enable
│ │ │ +00152b90: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00152ba0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00152bb0: 656e 3a0a 2020 2d20 2722 6c69 6e75 782d  en:.  - '"linux-
│ │ │ +00152bc0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00152bd0: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00152be0: 0a20 202d 2028 2022 7566 7722 2069 6e20  .  - ( "ufw" in 
│ │ │ +00152bf0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00152c00: 636b 6167 6573 2061 6e64 2022 6c69 6e75  ckages and "linu
│ │ │ +00152c10: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00152c20: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00152c30: 7320 290a 3c2f 636f 6465 3e3c 2f70 7265  s ).
Remediation │ │ │ +00152cf0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00152d00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00152d80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00152da0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00152df0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00152e20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +00152e40: 5f75 6677 0a0a 636c 6173 7320 656e 6162  _ufw..class enab
│ │ │ +00152e50: 6c65 5f75 6677 207b 0a20 2073 6572 7669  le_ufw {.  servi
│ │ │ +00152e60: 6365 207b 2775 6677 273a 0a20 2020 2065  ce {'ufw':.    e
│ │ │ +00152e70: 6e61 626c 6520 3d26 6774 3b20 7472 7565  nable => true
│ │ │ +00152e80: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00152e90: 743b 2027 7275 6e6e 696e 6727 2c0a 2020  t; 'running',.  
│ │ │ +00152ea0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00152f60: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00152f70: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00152fc0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00152fd0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ +00152fe0: 6564 203d 205b 2275 6677 225d 0a3c 2f63  ed = ["ufw"].
│ │ │ 00153000: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 │ │ │ -00216ee0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00216ef0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00216f00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[p
│ │ │ -00216f50: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -00216f60: 2022 6372 6f6e 220a 7665 7273 696f 6e20   "cron".version 
│ │ │ -00216f70: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -00217030: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00217040: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00217100: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00217110: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:< │ │ │ +00152d90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00152db0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00152e00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00152e10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complexity │ │ │ -002170d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002170f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00217120: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00217140: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -00217180: 616c 6c5f 6372 6f6e 0a0a 636c 6173 7320  all_cron..class 
│ │ │ -00217190: 696e 7374 616c 6c5f 6372 6f6e 207b 0a20  install_cron {. 
│ │ │ -002171a0: 2070 6163 6b61 6765 207b 2027 6372 6f6e   package { 'cron
│ │ │ -002171b0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002171c0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ -002171d0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -00217290: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002172a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00217320: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00217330: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00217340: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00217380: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00217390: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002173b0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -002173d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002173e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002173f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00217400: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00217410: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00217420: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00217430: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -00217440: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00217450: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -00217460: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00217470: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00217480: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00217490: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -002174a0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -002174b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002174c0: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ -002174d0: 726f 6e5f 696e 7374 616c 6c65 640a 0a2d  ron_installed..-
│ │ │ -002174e0: 206e 616d 653a 2045 6e73 7572 6520 6372   name: Ensure cr
│ │ │ -002174f0: 6f6e 2069 7320 696e 7374 616c 6c65 640a  on is installed.
│ │ │ -00217500: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00217510: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -00217520: 616d 653a 2063 726f 6e0a 2020 2020 7374  ame: cron.    st
│ │ │ -00217530: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -00217540: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00217550: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00217560: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00217570: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00217580: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00217590: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002175a0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002175b0: 322e 360a 2020 2d20 656e 6162 6c65 5f73  2.6.  - enable_s
│ │ │ -002175c0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002175d0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002175e0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002175f0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00217600: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00217610: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00217620: 6765 5f63 726f 6e5f 696e 7374 616c 6c65  ge_cron_installe
│ │ │ -00217630: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00216ee0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +00216ef0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +00216f00: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00216fd0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00216fe0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00217030: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00217040: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00217050: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00217060: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00217070: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00217080: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00217090: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +002170a0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002170b0: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +002170c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002170d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002170e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002170f0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00217100: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00217110: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00217120: 7061 636b 6167 655f 6372 6f6e 5f69 6e73  package_cron_ins
│ │ │ +00217130: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00217140: 456e 7375 7265 2063 726f 6e20 6973 2069  Ensure cron is i
│ │ │ +00217150: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +00217160: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00217170: 6765 3a0a 2020 2020 6e61 6d65 3a20 6372  ge:.    name: cr
│ │ │ +00217180: 6f6e 0a20 2020 2073 7461 7465 3a20 7072  on.    state: pr
│ │ │ +00217190: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +002171a0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002171b0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002171c0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +002171d0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002171e0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002171f0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00217200: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00217210: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00217220: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00217230: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00217240: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00217250: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00217260: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00217270: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ +00217280: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +00217340: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00217350: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +00216fb0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00216fc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00217000: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00217010: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00217400: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00217420: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00217450: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002173e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002173f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00217410: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00217430: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00217440: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00217490: 2069 6e73 7461 6c6c 5f63 726f 6e0a 0a63 install_cron..c │ │ │ +002174a0: 6c61 7373 2069 6e73 7461 6c6c 5f63 726f lass install_cro │ │ │ +002174b0: 6e20 7b0a 2020 7061 636b 6167 6520 7b20 n {. package { │ │ │ +002174c0: 2763 726f 6e27 3a0a 2020 2020 656e 7375 'cron':. ensu │ │ │ +002174d0: 7265 203d 2667 743b 2027 696e 7374 616c re => 'instal │ │ │ +002174e0: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f led',. }.}.

< │ │ │ +00217500: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00217510: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00217520: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00217530: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00217540: 6438 3132 2220 7461 6269 6e64 6578 3d22 d812" tabindex=" │ │ │ +00217550: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00217560: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00217570: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00217580: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00217590: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +002175a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +002175b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +002175c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +00217610: 6765 735d 5d0a 6e61 6d65 203d 2022 6372 ges]].name = "cr │ │ │ +00217620: 6f6e 220a 7665 7273 696f 6e20 3d20 222a on".version = "* │ │ │ +00217630: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c ".< │ │ │ 00217640: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> │ │ │ -00218850: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -00218860: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -00218870: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -002188c0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002188d0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ -002188e0: 205b 2263 726f 6e22 5d0a 3c2f 636f 6465   ["cron"].
Remedi │ │ │ -002189a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002189b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002189c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002189f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00218a60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00218a80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00218ab0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00218ad0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00218a40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00218a50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00218a90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00218aa0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00218af0: 656e 6162 6c65 5f63 726f 6e0a 0a63 6c61 enable_cron..cla │ │ │ -00218b00: 7373 2065 6e61 626c 655f 6372 6f6e 207b ss enable_cron { │ │ │ -00218b10: 0a20 2073 6572 7669 6365 207b 2763 726f . service {'cro │ │ │ -00218b20: 6e27 3a0a 2020 2020 656e 6162 6c65 203d n':. enable = │ │ │ -00218b30: 2667 743b 2074 7275 652c 0a20 2020 2065 > true,. e │ │ │ -00218b40: 6e73 7572 6520 3d26 6774 3b20 2772 756e nsure => 'run │ │ │ -00218b50: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63 ning',. }.}.
│ │ │ -00218b70: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00218c10: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00218c20: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00218c30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00218cd0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00218d20: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00218cb0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00218ce0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00218d00: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00218d10: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00218d30: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00218d40: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00218d60: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -00218d70: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -00218d80: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00218d90: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00218da0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -00218db0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00218dc0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00218dd0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00218de0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00218df0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00218e00: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00218e10: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00218e20: 6564 0a20 202d 2073 6572 7669 6365 5f63  ed.  - service_c
│ │ │ -00218e30: 726f 6e5f 656e 6162 6c65 640a 0a2d 206e  ron_enabled..- n
│ │ │ -00218e40: 616d 653a 2045 6e61 626c 6520 6372 6f6e  ame: Enable cron
│ │ │ -00218e50: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -00218e60: 6520 7365 7276 6963 6520 6372 6f6e 0a20  e service cron. 
│ │ │ -00218e70: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -00218e80: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -00218e90: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ -00218ea0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00218eb0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00218ec0: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ -00218ed0: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ -00218ee0: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ -00218ef0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ -00218f00: 6365 2063 726f 6e0a 2020 2020 616e 7369  ce cron.    ansi
│ │ │ -00218f10: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -00218f20: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -00218f30: 2063 726f 6e0a 2020 2020 2020 656e 6162   cron.      enab
│ │ │ -00218f40: 6c65 643a 2074 7275 650a 2020 2020 2020  led: true.      
│ │ │ -00218f50: 7374 6174 653a 2073 7461 7274 6564 0a20  state: started. 
│ │ │ -00218f60: 2020 2020 206d 6173 6b65 643a 2066 616c       masked: fal
│ │ │ -00218f70: 7365 0a20 2020 2077 6865 6e3a 0a20 2020  se.    when:.   
│ │ │ -00218f80: 202d 2027 2263 726f 6e22 2069 6e20 616e   - '"cron" in an
│ │ │ -00218f90: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00218fa0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -00218fb0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00218fc0: 2d36 2861 290a 2020 2d20 656e 6162 6c65  -6(a).  - enable
│ │ │ -00218fd0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00218fe0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00218ff0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00219000: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -00219010: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -00219020: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00219030: 7669 6365 5f63 726f 6e5f 656e 6162 6c65  vice_cron_enable
│ │ │ -00219040: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ -00219050: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ -00219060: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ -00219070: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00219080: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
< │ │ │ +00218940: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00218950: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +002189a0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002189b0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002189c0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002189d0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002189e0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +002189f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00218a00: 6129 0a20 202d 2065 6e61 626c 655f 7374  a).  - enable_st
│ │ │ +00218a10: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00218a20: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00218a30: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00218a40: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +00218a50: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00218a60: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00218a70: 655f 6372 6f6e 5f65 6e61 626c 6564 0a0a  e_cron_enabled..
│ │ │ +00218a80: 2d20 6e61 6d65 3a20 456e 6162 6c65 2063  - name: Enable c
│ │ │ +00218a90: 726f 6e20 5365 7276 6963 6520 2d20 456e  ron Service - En
│ │ │ +00218aa0: 6162 6c65 2073 6572 7669 6365 2063 726f  able service cro
│ │ │ +00218ab0: 6e0a 2020 626c 6f63 6b3a 0a0a 2020 2d20  n.  block:..  - 
│ │ │ +00218ac0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00218ad0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00218ae0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00218af0: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ +00218b00: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ +00218b10: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ +00218b20: 2045 6e61 626c 6520 6372 6f6e 2053 6572   Enable cron Ser
│ │ │ +00218b30: 7669 6365 202d 2045 6e61 626c 6520 5365  vice - Enable Se
│ │ │ +00218b40: 7276 6963 6520 6372 6f6e 0a20 2020 2061  rvice cron.    a
│ │ │ +00218b50: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00218b60: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00218b70: 6d65 3a20 6372 6f6e 0a20 2020 2020 2065  me: cron.      e
│ │ │ +00218b80: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +00218b90: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +00218ba0: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00218bb0: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +00218bc0: 2020 2020 2d20 2722 6372 6f6e 2220 696e      - '"cron" in
│ │ │ +00218bd0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00218be0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +00218bf0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00218c00: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ +00218c10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00218c20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00218c30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00218c40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00218c50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00218c60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00218c70: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ +00218c80: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +00218c90: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +00218ca0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +00218cb0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00218cc0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00218cd0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00218d80: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +00218d90: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +00218920: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00218930: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00218970: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00218980: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00218e30: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00218ed0: 636c 7564 6520 656e 6162 6c65 5f63 726f  clude enable_cro
│ │ │ +00218ee0: 6e0a 0a63 6c61 7373 2065 6e61 626c 655f  n..class enable_
│ │ │ +00218ef0: 6372 6f6e 207b 0a20 2073 6572 7669 6365  cron {.  service
│ │ │ +00218f00: 207b 2763 726f 6e27 3a0a 2020 2020 656e   {'cron':.    en
│ │ │ +00218f10: 6162 6c65 203d 2667 743b 2074 7275 652c  able => true,
│ │ │ +00218f20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00218f30: 3b20 2772 756e 6e69 6e67 272c 0a20 207d  ; 'running',.  }
│ │ │ +00218f40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00218f50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ +00219000: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +00219010: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00219020: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00219060: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00219070: 7365 7276 6963 6573 5d0a 656e 6162 6c65  services].enable
│ │ │ +00219080: 6420 3d20 5b22 6372 6f6e 225d 0a3c 2f63  d = ["cron"].
│ │ │ 002190a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation Pu │ │ │ -00235310: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -00235320: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +00218e20: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00218e50: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00218e60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00218ea0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00218eb0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -002353f0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00235400: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ -00235460: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ -00235470: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ -00235480: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ -00235490: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -002354a0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -002354c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -00235560: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00235570: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00235580: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ -002353d0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002353e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00235420: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00235430: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ -00235620: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00235670: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002356b0: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -002356c0: 7468 6520 6e69 7320 7061 636b 6167 653a  the nis package:
│ │ │ -002356d0: 2045 6e73 7572 6520 6e69 7320 6973 2072   Ensure nis is r
│ │ │ -002356e0: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ -002356f0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -00235700: 653a 0a20 2020 206e 616d 653a 206e 6973  e:.    name: nis
│ │ │ -00235710: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00235720: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -00235730: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00235740: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00235750: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00235760: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00235770: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00235780: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00235790: 7061 636b 6167 655f 6e69 735f 7265 6d6f  package_nis_remo
│ │ │ -002357a0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation An │ │ │ +00235310: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +00235320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -00235600: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00235630: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00235650: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00235660: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00235680: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00235690: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +002353a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002353c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00235410: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00235440: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ +00235460: 7461 6c6c 2074 6865 206e 6973 2070 6163  tall the nis pac
│ │ │ +00235470: 6b61 6765 3a20 456e 7375 7265 206e 6973  kage: Ensure nis
│ │ │ +00235480: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ +00235490: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +002354a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +002354b0: 3a20 6e69 730a 2020 2020 7374 6174 653a  : nis.    state:
│ │ │ +002354c0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002354d0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002354e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002354f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00235500: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00235510: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00235520: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00235530: 0a20 202d 2070 6163 6b61 6765 5f6e 6973  .  - package_nis
│ │ │ +00235540: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00235550: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00235600: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00235610: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00235620: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00235630: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00235640: 7365 2220 6964 3d22 6964 3837 3522 3e3c se" id="id875">< │ │ │ +00235650: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00235660: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00235670: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00235680: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00235690: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00235720: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00235730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
low
Disr │ │ │ +002353d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002353e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00235420: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00235430: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complex │ │ │ +002356a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002356b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +002356f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00235700: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ +00235750: 2072 656d 6f76 655f 6e69 730a 0a63 6c61 remove_nis..cla │ │ │ +00235760: 7373 2072 656d 6f76 655f 6e69 7320 7b0a ss remove_nis {. │ │ │ +00235770: 2020 7061 636b 6167 6520 7b20 276e 6973 package { 'nis │ │ │ +00235780: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ +00235790: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ +002357a0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Re │ │ │ -00237280: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00237290: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002372a0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00237340: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00237390: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002373d0: 636c 7564 6520 7265 6d6f 7665 5f64 6863  clude remove_dhc
│ │ │ -002373e0: 700a 0a63 6c61 7373 2072 656d 6f76 655f  p..class remove_
│ │ │ -002373f0: 6468 6370 207b 0a20 2070 6163 6b61 6765  dhcp {.  package
│ │ │ -00237400: 207b 2027 6468 6370 273a 0a20 2020 2065   { 'dhcp':.    e
│ │ │ -00237410: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -00237420: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -00237440: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00237450: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00237460: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00237470: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00237480: 6438 3739 2220 7461 6269 6e64 6578 3d22 d879" tabindex=" │ │ │ -00237490: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -002374a0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -002374b0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -002374c0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -002374d0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002374e0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -002374f0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00237500: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ -00237320: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00237350: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00237370: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00237380: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002373a0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002373b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ -00237580: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002375b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002375d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002375e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00237600: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00237610: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00237630: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2044  me: 'Uninstall D
│ │ │ -00237640: 4843 5020 5365 7276 6572 2050 6163 6b61  HCP Server Packa
│ │ │ -00237650: 6765 3a20 456e 7375 7265 2064 6863 7020  ge: Ensure dhcp 
│ │ │ -00237660: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -00237670: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00237680: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00237690: 2064 6863 700a 2020 2020 7374 6174 653a   dhcp.    state:
│ │ │ -002376a0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002376b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002376c0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002376d0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002376e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002376f0: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ -00237700: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00237710: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -00237720: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00237730: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00237740: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00237750: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00237760: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00237770: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00237780: 640a 2020 2d20 7061 636b 6167 655f 6468  d.  - package_dh
│ │ │ -00237790: 6370 5f72 656d 6f76 6564 0a3c 2f63 6f64  cp_removed.
< │ │ │ +00237330: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00237340: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00237390: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002373d0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002373e0: 2044 4843 5020 5365 7276 6572 2050 6163   DHCP Server Pac
│ │ │ +002373f0: 6b61 6765 3a20 456e 7375 7265 2064 6863  kage: Ensure dhc
│ │ │ +00237400: 7020 6973 2072 656d 6f76 6564 270a 2020  p is removed'.  
│ │ │ +00237410: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00237420: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +00237430: 653a 2064 6863 700a 2020 2020 7374 6174  e: dhcp.    stat
│ │ │ +00237440: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ +00237450: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00237460: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00237470: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00237480: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00237490: 332d 434d 2d37 2862 290a 2020 2d20 5043  3-CM-7(b).  - PC
│ │ │ +002374a0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002374b0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +002374c0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002374d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002374e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002374f0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00237500: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00237510: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00237520: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00237530: 6468 6370 5f72 656d 6f76 6564 0a3c 2f63  dhcp_removed.
│ │ │ +00237550: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +002375f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00237600: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00237610: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +00237320: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00237350: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00237360: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002373a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002373b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +00237690: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002376c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002376e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002376f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00237710: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +00237720: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +00237740: 6c75 6465 2072 656d 6f76 655f 6468 6370  lude remove_dhcp
│ │ │ +00237750: 0a0a 636c 6173 7320 7265 6d6f 7665 5f64  ..class remove_d
│ │ │ +00237760: 6863 7020 7b0a 2020 7061 636b 6167 6520  hcp {.  package 
│ │ │ +00237770: 7b20 2764 6863 7027 3a0a 2020 2020 656e  { 'dhcp':.    en
│ │ │ +00237780: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00237790: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remedi │ │ │ -00238350: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -00238360: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -00238370: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -002383b0: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -002383c0: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -002383d0: 0a6d 6173 6b65 6420 3d20 5b22 6468 6370  .masked = ["dhcp
│ │ │ -002383e0: 6436 225d 0a3c 2f63 6f64 653e 3c2f 7072  d6"].
Remediation │ │ │ -002384a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002384b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00238540: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00238560: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00238580: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002385b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002385c0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -002385d0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ -002385f0: 6c65 5f64 6863 7064 360a 0a63 6c61 7373  le_dhcpd6..class
│ │ │ -00238600: 2064 6973 6162 6c65 5f64 6863 7064 3620   disable_dhcpd6 
│ │ │ -00238610: 7b0a 2020 7365 7276 6963 6520 7b27 6468  {.  service {'dh
│ │ │ -00238620: 6370 6436 273a 0a20 2020 2065 6e61 626c  cpd6':.    enabl
│ │ │ -00238630: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00238640: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00238650: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00238660: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00238720: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00238730: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00238800: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00238810: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00238870: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00238880: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00238890: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -002388a0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -002388b0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002388c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002388d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002388e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -002388f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00238900: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00238910: 0a20 202d 2073 6572 7669 6365 5f64 6863  .  - service_dhc
│ │ │ -00238920: 7064 365f 6469 7361 626c 6564 0a0a 2d20  pd6_disabled..- 
│ │ │ -00238930: 6e61 6d65 3a20 4469 7361 626c 6520 4448  name: Disable DH
│ │ │ -00238940: 4350 4436 2053 6572 7669 6365 202d 2044  CPD6 Service - D
│ │ │ -00238950: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ -00238960: 6863 7064 360a 2020 626c 6f63 6b3a 0a0a  hcpd6.  block:..
│ │ │ -00238970: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00238980: 6520 4448 4350 4436 2053 6572 7669 6365  e DHCPD6 Service
│ │ │ -00238990: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -002389a0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002389b0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -002389c0: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -002389d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002389e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002389f0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -00238a00: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -00238a10: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -00238a20: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00238a30: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00238a40: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00238a50: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -00238a60: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00238a70: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00238a80: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00238a90: 3a20 4469 7361 626c 6520 4448 4350 4436  : Disable DHCPD6
│ │ │ -00238aa0: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ -00238ab0: 6520 6468 6370 6436 2e73 6572 7669 6365  e dhcpd6.service
│ │ │ -00238ac0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00238ad0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00238ae0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00238af0: 6d65 3a20 6468 6370 6436 2e73 6572 7669  me: dhcpd6.servi
│ │ │ -00238b00: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00238b10: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00238b20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00238b30: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00238b40: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00238b50: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00238b60: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -00238b70: 2264 6863 7064 362e 7365 7276 6963 6522  "dhcpd6.service"
│ │ │ -00238b80: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00238b90: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -00238ba0: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -00238bb0: 2d20 6468 6370 6436 2e73 6f63 6b65 740a  - dhcpd6.socket.
│ │ │ -00238bc0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00238bd0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00238be0: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -00238bf0: 6e69 742d 6669 6c65 7320 6468 6370 6436  nit-files dhcpd6
│ │ │ -00238c00: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ -00238c10: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ -00238c20: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ -00238c30: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ -00238c40: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ -00238c50: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00238c60: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00238c70: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00238c80: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00238c90: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ -00238ca0: 4843 5044 3620 5365 7276 6963 6520 2d20  HCPD6 Service - 
│ │ │ -00238cb0: 4469 7361 626c 6520 536f 636b 6574 2064  Disable Socket d
│ │ │ -00238cc0: 6863 7064 360a 2020 2020 616e 7369 626c  hcpd6.    ansibl
│ │ │ -00238cd0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00238ce0: 643a 0a20 2020 2020 206e 616d 653a 2064  d:.      name: d
│ │ │ -00238cf0: 6863 7064 362e 736f 636b 6574 0a20 2020  hcpd6.socket.   
│ │ │ -00238d00: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00238d10: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00238d20: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -00238d30: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00238d40: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00238d50: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00238d60: 6e65 7320 6973 2073 6561 7263 6828 2264  nes is search("d
│ │ │ -00238d70: 6863 7064 362e 736f 636b 6574 222c 206d  hcpd6.socket", m
│ │ │ -00238d80: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00238d90: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00238da0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00238db0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00238dc0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00238dd0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00238de0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00238df0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00238e00: 6572 7669 6365 5f64 6863 7064 365f 6469  ervice_dhcpd6_di
│ │ │ -00238e10: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -00238e20: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -00238e30: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -00238e40: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -00238e50: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -00238e60: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00238350: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +00238360: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ -002387e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002387f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00238830: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00238840: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00238410: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00238430: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00238460: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002383f0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00238400: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00238420: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00238440: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00238450: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00238490: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +002384a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +002384b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +002384c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +002384d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +002384e0: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ +002384f0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +00238500: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +00238510: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +00238520: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +00238530: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +00238540: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ +00238550: 7276 6963 655f 6468 6370 6436 5f64 6973 rvice_dhcpd6_dis │ │ │ +00238560: 6162 6c65 640a 0a2d 206e 616d 653a 2044 abled..- name: D │ │ │ +00238570: 6973 6162 6c65 2044 4843 5044 3620 5365 isable DHCPD6 Se │ │ │ +00238580: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ +00238590: 7365 7276 6963 6520 6468 6370 6436 0a20 service dhcpd6. │ │ │ +002385a0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ +002385b0: 653a 2044 6973 6162 6c65 2044 4843 5044 e: Disable DHCPD │ │ │ +002385c0: 3620 5365 7276 6963 6520 2d20 436f 6c6c 6 Service - Coll │ │ │ +002385d0: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ +002385e0: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ +002385f0: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ +00238600: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ +00238610: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ +00238620: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ +00238630: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ +00238640: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ +00238650: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ +00238660: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ +00238670: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ +00238680: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ +00238690: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ +002386a0: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ +002386b0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ +002386c0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +002386d0: 6c65 2044 4843 5044 3620 5365 7276 6963 le DHCPD6 Servic │ │ │ +002386e0: 6520 2d20 456e 7375 7265 2064 6863 7064 e - Ensure dhcpd │ │ │ +002386f0: 362e 7365 7276 6963 6520 6973 204d 6173 6.service is Mas │ │ │ +00238700: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ +00238710: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +00238720: 0a20 2020 2020 206e 616d 653a 2064 6863 . name: dhc │ │ │ +00238730: 7064 362e 7365 7276 6963 650a 2020 2020 pd6.service. │ │ │ +00238740: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ +00238750: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +00238760: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ +00238770: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +00238780: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ +00238790: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +002387a0: 7320 7365 6172 6368 2822 6468 6370 6436 s search("dhcpd6 │ │ │ +002387b0: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ +002387c0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ +002387d0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ +002387e0: 7420 4578 6973 7473 202d 2064 6863 7064 t Exists - dhcpd │ │ │ +002387f0: 362e 736f 636b 6574 0a20 2020 2061 6e73 6.socket. ans │ │ │ +00238800: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ +00238810: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ +00238820: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ +00238830: 6573 2064 6863 7064 362e 736f 636b 6574 es dhcpd6.socket │ │ │ +00238840: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +00238850: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +00238860: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ +00238870: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ +00238880: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ +00238890: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ +002388a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ +002388b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ +002388c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ +002388d0: 4469 7361 626c 6520 4448 4350 4436 2053 Disable DHCPD6 S │ │ │ +002388e0: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ +002388f0: 2053 6f63 6b65 7420 6468 6370 6436 0a20 Socket dhcpd6. │ │ │ +00238900: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ +00238910: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ +00238920: 2020 6e61 6d65 3a20 6468 6370 6436 2e73 name: dhcpd6.s │ │ │ +00238930: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ +00238940: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ +00238950: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ +00238960: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ +00238970: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ +00238980: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ +00238990: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ +002389a0: 7365 6172 6368 2822 6468 6370 6436 2e73 search("dhcpd6.s │ │ │ +002389b0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ +002389c0: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ +002389d0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +002389e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +002389f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00238a00: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +00238a10: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +00238a20: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +00238a30: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +00238a40: 6468 6370 6436 5f64 6973 6162 6c65 640a dhcpd6_disabled. │ │ │ +00238a50: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +00238a60: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +00238a70: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +00238a80: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +00238a90: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
Remed │ │ │ +00238b50: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00238b60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00238c10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00238c30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00238c60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00238bf0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00238c00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00238c20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00238c40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00238c50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00238ca0: 2064 6973 6162 6c65 5f64 6863 7064 360a disable_dhcpd6. │ │ │ +00238cb0: 0a63 6c61 7373 2064 6973 6162 6c65 5f64 .class disable_d │ │ │ +00238cc0: 6863 7064 3620 7b0a 2020 7365 7276 6963 hcpd6 {. servic │ │ │ +00238cd0: 6520 7b27 6468 6370 6436 273a 0a20 2020 e {'dhcpd6':. │ │ │ +00238ce0: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +00238cf0: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +00238d00: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +00238d10: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ +00238dd0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +00238de0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +00238df0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +00238e40: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00238e50: 736b 6564 203d 205b 2264 6863 7064 3622  sked = ["dhcpd6"
│ │ │ +00238e60: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 00238e70: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 00238e80: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74 < │ │ │ 00238ea0: 7472 2064 6174 612d 7474 2d69 643d 2278 tr data-tt-id="x │ │ │ 00238eb0: 6363 6466 5f6f 7267 2e73 7367 7072 6f6a ccdf_org.ssgproj │ │ │ 00238ec0: 6563 742e 636f 6e74 656e 745f 7275 6c65 ect.content_rule │ │ │ 00238ed0: 5f73 6572 7669 6365 5f64 6863 7064 5f64 _service_dhcpd_d │ │ │ @@ -145857,199 +145857,199 @@ │ │ │ 00239c00: 7461 7267 6574 3d22 2369 6438 3836 2220 target="#id886" │ │ │ 00239c10: 7461 6269 6e64 6578 3d22 3022 2072 6f6c tabindex="0" rol │ │ │ 00239c20: 653d 2262 7574 746f 6e22 2061 7269 612d e="button" aria- │ │ │ 00239c30: 6578 7061 6e64 6564 3d22 6661 6c73 6522 expanded="false" │ │ │ 00239c40: 2074 6974 6c65 3d22 4163 7469 7661 7465 title="Activate │ │ │ 00239c50: 2074 6f20 7265 7665 616c 2220 6872 6566 to reveal" href │ │ │ 00239c60: 3d22 2321 223e 5265 6d65 6469 6174 696f ="#!">Remediatio │ │ │ -00239c70: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -00239c80: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -00239c90: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -00239ce0: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00239cf0: 6b65 6420 3d20 5b22 6468 6370 6422 5d0a  ked = ["dhcpd"].
│ │ │ -00239d00: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00239db0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -00239dc0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -00239e60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00239f00: 636c 7564 6520 6469 7361 626c 655f 6468  clude disable_dh
│ │ │ -00239f10: 6370 640a 0a63 6c61 7373 2064 6973 6162  cpd..class disab
│ │ │ -00239f20: 6c65 5f64 6863 7064 207b 0a20 2073 6572  le_dhcpd {.  ser
│ │ │ -00239f30: 7669 6365 207b 2764 6863 7064 273a 0a20  vice {'dhcpd':. 
│ │ │ -00239f40: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -00239f50: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -00239f60: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -00239f70: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00239f80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0023a030: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0023a040: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023a050: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023a080: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -00239e50: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00239e80: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00239e90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00239ed0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00239ee0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0023a0f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0023a110: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0023a140: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0023a0d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0023a0e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0023a120: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0023a130: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0023a180: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0023a190: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0023a1a0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0023a1b0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0023a1c0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0023a1d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0023a1e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0023a1f0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -0023a200: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -0023a210: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0023a220: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0023a230: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0023a240: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0023a250: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0023a260: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0023a270: 0a20 202d 2073 6572 7669 6365 5f64 6863 . - service_dhc │ │ │ -0023a280: 7064 5f64 6973 6162 6c65 640a 0a2d 206e pd_disabled..- n │ │ │ -0023a290: 616d 653a 2044 6973 6162 6c65 2044 4843 ame: Disable DHC │ │ │ -0023a2a0: 5020 5365 7276 6963 6520 2d20 4469 7361 P Service - Disa │ │ │ -0023a2b0: 626c 6520 7365 7276 6963 6520 6468 6370 ble service dhcp │ │ │ -0023a2c0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20 d. block:.. - │ │ │ -0023a2d0: 6e61 6d65 3a20 4469 7361 626c 6520 4448 name: Disable DH │ │ │ -0023a2e0: 4350 2053 6572 7669 6365 202d 2043 6f6c CP Service - Col │ │ │ -0023a2f0: 6c65 6374 2073 7973 7465 6d64 2053 6572 lect systemd Ser │ │ │ -0023a300: 7669 6365 7320 5072 6573 656e 7420 696e vices Present in │ │ │ -0023a310: 2074 6865 2053 7973 7465 6d0a 2020 2020 the System. │ │ │ -0023a320: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -0023a330: 636f 6d6d 616e 643a 2073 7973 7465 6d63 command: systemc │ │ │ -0023a340: 746c 202d 7120 6c69 7374 2d75 6e69 742d tl -q list-unit- │ │ │ -0023a350: 6669 6c65 7320 2d2d 7479 7065 2073 6572 files --type ser │ │ │ -0023a360: 7669 6365 0a20 2020 2072 6567 6973 7465 vice. registe │ │ │ -0023a370: 723a 2073 6572 7669 6365 5f65 7869 7374 r: service_exist │ │ │ -0023a380: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -0023a390: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -0023a3a0: 696c 6564 5f77 6865 6e3a 2073 6572 7669 iled_when: servi │ │ │ -0023a3b0: 6365 5f65 7869 7374 732e 7263 206e 6f74 ce_exists.rc not │ │ │ -0023a3c0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063 in [0, 1]. c │ │ │ -0023a3d0: 6865 636b 5f6d 6f64 653a 2066 616c 7365 heck_mode: false │ │ │ -0023a3e0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361 .. - name: Disa │ │ │ -0023a3f0: 626c 6520 4448 4350 2053 6572 7669 6365 ble DHCP Service │ │ │ -0023a400: 202d 2045 6e73 7572 6520 6468 6370 642e - Ensure dhcpd. │ │ │ -0023a410: 7365 7276 6963 6520 6973 204d 6173 6b65 service is Maske │ │ │ -0023a420: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ -0023a430: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -0023a440: 2020 2020 206e 616d 653a 2064 6863 7064 name: dhcpd │ │ │ -0023a450: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ -0023a460: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -0023a470: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -0023a480: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ -0023a490: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -0023a4a0: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ -0023a4b0: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -0023a4c0: 6561 7263 6828 2264 6863 7064 2e73 6572 earch("dhcpd.ser │ │ │ -0023a4d0: 7669 6365 222c 206d 756c 7469 6c69 6e65 vice", multiline │ │ │ -0023a4e0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65 =True).. - name │ │ │ -0023a4f0: 3a20 556e 6974 2053 6f63 6b65 7420 4578 : Unit Socket Ex │ │ │ -0023a500: 6973 7473 202d 2064 6863 7064 2e73 6f63 ists - dhcpd.soc │ │ │ -0023a510: 6b65 740a 2020 2020 616e 7369 626c 652e ket. ansible. │ │ │ -0023a520: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ -0023a530: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ -0023a540: 7374 2d75 6e69 742d 6669 6c65 7320 6468 st-unit-files dh │ │ │ -0023a550: 6370 642e 736f 636b 6574 0a20 2020 2072 cpd.socket. r │ │ │ -0023a560: 6567 6973 7465 723a 2073 6f63 6b65 745f egister: socket_ │ │ │ -0023a570: 6669 6c65 5f65 7869 7374 730a 2020 2020 file_exists. │ │ │ -0023a580: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -0023a590: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -0023a5a0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ -0023a5b0: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -0023a5c0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -0023a5d0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -0023a5e0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -0023a5f0: 6520 4448 4350 2053 6572 7669 6365 202d e DHCP Service - │ │ │ -0023a600: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ -0023a610: 6468 6370 640a 2020 2020 616e 7369 626c dhcpd. ansibl │ │ │ -0023a620: 652e 6275 696c 7469 6e2e 7379 7374 656d e.builtin.system │ │ │ -0023a630: 643a 0a20 2020 2020 206e 616d 653a 2064 d:. name: d │ │ │ -0023a640: 6863 7064 2e73 6f63 6b65 740a 2020 2020 hcpd.socket. │ │ │ -0023a650: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -0023a660: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -0023a670: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -0023a680: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -0023a690: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -0023a6a0: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -0023a6b0: 6573 2069 7320 7365 6172 6368 2822 6468 es is search("dh │ │ │ -0023a6c0: 6370 642e 736f 636b 6574 222c 206d 756c cpd.socket", mul │ │ │ -0023a6d0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074 tiline=True). t │ │ │ -0023a6e0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0023a6f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0023a700: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0023a710: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -0023a720: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -0023a730: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0023a740: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0023a750: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0023a760: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0023a770: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0023a780: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0023a790: 0a20 202d 2073 6572 7669 6365 5f64 6863 . - service_dhc │ │ │ -0023a7a0: 7064 5f64 6973 6162 6c65 640a 2020 2d20 pd_disabled. - │ │ │ -0023a7b0: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -0023a7c0: 626c 6f63 6b0a 2020 7768 656e 3a20 2722 block. when: '" │ │ │ -0023a7d0: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0023a7e0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0023a7f0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f kages'.
< │ │ │ +00239d00: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00239d10: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00239d30: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00239d40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00239d60: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00239d80: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable

│ │ │ +00239db0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00239dc0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00239dd0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00239de0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00239df0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00239e00: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00239e10: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +00239e20: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +00239e30: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00239e40: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +00239e50: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +00239e60: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00239e70: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00239e80: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +00239e90: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00239ea0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00239eb0: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ +00239ec0: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +00239ed0: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ +00239ee0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +00239ef0: 2073 6572 7669 6365 2064 6863 7064 0a20   service dhcpd. 
│ │ │ +00239f00: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +00239f10: 653a 2044 6973 6162 6c65 2044 4843 5020  e: Disable DHCP 
│ │ │ +00239f20: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ +00239f30: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +00239f40: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ +00239f50: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +00239f60: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00239f70: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00239f80: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00239f90: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +00239fa0: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +00239fb0: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +00239fc0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +00239fd0: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +00239fe0: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +00239ff0: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +0023a000: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +0023a010: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +0023a020: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0023a030: 2044 4843 5020 5365 7276 6963 6520 2d20   DHCP Service - 
│ │ │ +0023a040: 456e 7375 7265 2064 6863 7064 2e73 6572  Ensure dhcpd.ser
│ │ │ +0023a050: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0023a060: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0023a070: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0023a080: 2020 6e61 6d65 3a20 6468 6370 642e 7365    name: dhcpd.se
│ │ │ +0023a090: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ +0023a0a0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +0023a0b0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0023a0c0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0023a0d0: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ +0023a0e0: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ +0023a0f0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +0023a100: 6368 2822 6468 6370 642e 7365 7276 6963  ch("dhcpd.servic
│ │ │ +0023a110: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +0023a120: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +0023a130: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +0023a140: 7320 2d20 6468 6370 642e 736f 636b 6574  s - dhcpd.socket
│ │ │ +0023a150: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0023a160: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0023a170: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0023a180: 756e 6974 2d66 696c 6573 2064 6863 7064  unit-files dhcpd
│ │ │ +0023a190: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0023a1a0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0023a1b0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0023a1c0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0023a1d0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0023a1e0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0023a1f0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0023a200: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0023a210: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0023a220: 206e 616d 653a 2044 6973 6162 6c65 2044   name: Disable D
│ │ │ +0023a230: 4843 5020 5365 7276 6963 6520 2d20 4469  HCP Service - Di
│ │ │ +0023a240: 7361 626c 6520 536f 636b 6574 2064 6863  sable Socket dhc
│ │ │ +0023a250: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ +0023a260: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0023a270: 2020 2020 2020 6e61 6d65 3a20 6468 6370        name: dhcp
│ │ │ +0023a280: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ +0023a290: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +0023a2a0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +0023a2b0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +0023a2c0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0023a2d0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0023a2e0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0023a2f0: 6973 2073 6561 7263 6828 2264 6863 7064  is search("dhcpd
│ │ │ +0023a300: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0023a310: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0023a320: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0023a330: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0023a340: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0023a350: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0023a360: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +0023a370: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0023a380: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0023a390: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0023a3a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0023a3b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0023a3c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0023a3d0: 2d20 7365 7276 6963 655f 6468 6370 645f  - service_dhcpd_
│ │ │ +0023a3e0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +0023a3f0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +0023a400: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +0023a410: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +0023a420: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +0023a430: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +0023a4f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0023a500: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0023a580: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0023a5a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0023a5f0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0023a620: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +0023a640: 655f 6468 6370 640a 0a63 6c61 7373 2064  e_dhcpd..class d
│ │ │ +0023a650: 6973 6162 6c65 5f64 6863 7064 207b 0a20  isable_dhcpd {. 
│ │ │ +0023a660: 2073 6572 7669 6365 207b 2764 6863 7064   service {'dhcpd
│ │ │ +0023a670: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0023a680: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0023a690: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0023a6a0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0023a6c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0023a760: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0023a770: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0023a780: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +0023a7d0: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +0023a7e0: 6573 5d0a 6d61 736b 6564 203d 205b 2264 es].masked = ["d │ │ │ +0023a7f0: 6863 7064 225d 0a3c 2f63 6f64 653e 3c2f hcpd"]. │ │ │ 0023a810: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64

Complexity:< │ │ │ +0023a590: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0023a5b0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0023a600: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0023a610: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ 0023a830: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>Remedi │ │ │ -0023bda0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -0023bdb0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023bdc0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023bdf0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0023be60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0023be80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0023beb0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0023be40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0023be50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0023be90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0023bea0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

.includ │ │ │ -0023bef0: 6520 7265 6d6f 7665 5f62 696e 640a 0a63 e remove_bind..c │ │ │ -0023bf00: 6c61 7373 2072 656d 6f76 655f 6269 6e64 lass remove_bind │ │ │ -0023bf10: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ -0023bf20: 6269 6e64 273a 0a20 2020 2065 6e73 7572 bind':. ensur │ │ │ -0023bf30: 6520 3d26 6774 3b20 2770 7572 6765 6427 e => 'purged' │ │ │ -0023bf40: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -0023bf50: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ -0023c000: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0023c010: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0023c020: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0023c030: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0023c040: 7365 2220 6964 3d22 6964 3839 3122 3e3c se" id="id891">< │ │ │ -0023c050: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0023c060: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0023c070: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0023c080: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0023c090: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0023c0a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0023c0b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0023c0f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0023c100: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0023c120: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0023c130: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0023c150: 2755 6e69 6e73 7461 6c6c 2062 696e 6420 'Uninstall bind │ │ │ -0023c160: 5061 636b 6167 653a 2045 6e73 7572 6520 Package: Ensure │ │ │ -0023c170: 6269 6e64 2069 7320 7265 6d6f 7665 6427 bind is removed' │ │ │ -0023c180: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74 . ansible.built │ │ │ -0023c190: 696e 2e70 6163 6b61 6765 3a0a 2020 2020 in.package:. │ │ │ -0023c1a0: 6e61 6d65 3a20 6269 6e64 0a20 2020 2073 name: bind. s │ │ │ -0023c1b0: 7461 7465 3a20 6162 7365 6e74 0a20 2074 tate: absent. t │ │ │ -0023c1c0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0023c1d0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0023c1e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0023c1f0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -0023c200: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -0023c210: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0023c220: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0023c230: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0023c240: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f ruption. - low_ │ │ │ -0023c250: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -0023c260: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -0023c270: 2d20 7061 636b 6167 655f 6269 6e64 5f72 - package_bind_r │ │ │ -0023c280: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f emoved.
│ │ │ +0023be60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0023be80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0023beb0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0023be40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0023be50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0023be70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0023be90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0023bea0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0023bee0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0023bef0: 3a20 2755 6e69 6e73 7461 6c6c 2062 696e : 'Uninstall bin │ │ │ +0023bf00: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ +0023bf10: 6520 6269 6e64 2069 7320 7265 6d6f 7665 e bind is remove │ │ │ +0023bf20: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +0023bf30: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +0023bf40: 2020 6e61 6d65 3a20 6269 6e64 0a20 2020 name: bind. │ │ │ +0023bf50: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +0023bf60: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ +0023bf70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ +0023bf80: 202d 204e 4953 542d 3830 302d 3533 2d43 - NIST-800-53-C │ │ │ +0023bf90: 4d2d 3728 6129 0a20 202d 204e 4953 542d M-7(a). - NIST- │ │ │ +0023bfa0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20 800-53-CM-7(b). │ │ │ +0023bfb0: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ +0023bfc0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ +0023bfd0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ +0023bfe0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f isruption. - lo │ │ │ +0023bff0: 775f 7365 7665 7269 7479 0a20 202d 206e w_severity. - n │ │ │ +0023c000: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0023c010: 2020 2d20 7061 636b 6167 655f 6269 6e64 - package_bind │ │ │ +0023c020: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e _removed. │ │ │ +0023c030: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +0023c0e0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0023c0f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0023c100: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0023c110: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0023c120: 7365 2220 6964 3d22 6964 3839 3122 3e3c se" id="id891">< │ │ │ +0023c130: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0023c140: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0023c150: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0023c160: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0023c170: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0023c180: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0023c190: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0023c1d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0023c1e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0023c200: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0023c210: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +0023c230: 2072 656d 6f76 655f 6269 6e64 0a0a 636c remove_bind..cl │ │ │ +0023c240: 6173 7320 7265 6d6f 7665 5f62 696e 6420 ass remove_bind │ │ │ +0023c250: 7b0a 2020 7061 636b 6167 6520 7b20 2762 {. package { 'b │ │ │ +0023c260: 696e 6427 3a0a 2020 2020 656e 7375 7265 ind':. ensure │ │ │ +0023c270: 203d 2667 743b 2027 7075 7267 6564 272c => 'purged', │ │ │ +0023c280: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.
Remediatio │ │ │ -0023d300: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0023d310: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0023d320: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -0023d370: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -0023d380: 6b65 6420 3d20 5b22 6e61 6d65 6422 5d0a  ked = ["named"].
│ │ │ -0023d390: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0023d440: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0023d450: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ -0023d4f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0023d590: 636c 7564 6520 6469 7361 626c 655f 6e61  clude disable_na
│ │ │ -0023d5a0: 6d65 640a 0a63 6c61 7373 2064 6973 6162  med..class disab
│ │ │ -0023d5b0: 6c65 5f6e 616d 6564 207b 0a20 2073 6572  le_named {.  ser
│ │ │ -0023d5c0: 7669 6365 207b 276e 616d 6564 273a 0a20  vice {'named':. 
│ │ │ -0023d5d0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0023d5e0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0023d5f0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0023d600: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0023d610: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0023d6c0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0023d6d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023d6e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023d710: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -0023d4e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0023d510: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0023d520: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0023d560: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0023d570: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0023d780: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0023d7a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0023d7d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0023d760: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0023d770: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0023d7b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0023d7c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0023d810: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0023d820: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0023d830: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0023d840: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0023d850: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0023d860: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0023d870: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ -0023d880: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ -0023d890: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ -0023d8a0: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0023d8b0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0023d8c0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0023d8d0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -0023d8e0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -0023d8f0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0023d900: 0a20 202d 2073 6572 7669 6365 5f6e 616d . - service_nam │ │ │ -0023d910: 6564 5f64 6973 6162 6c65 640a 0a2d 206e ed_disabled..- n │ │ │ -0023d920: 616d 653a 2044 6973 6162 6c65 206e 616d ame: Disable nam │ │ │ -0023d930: 6564 2053 6572 7669 6365 202d 2044 6973 ed Service - Dis │ │ │ -0023d940: 6162 6c65 2073 6572 7669 6365 206e 616d able service nam │ │ │ -0023d950: 6564 0a20 2062 6c6f 636b 3a0a 0a20 202d ed. block:.. - │ │ │ -0023d960: 206e 616d 653a 2044 6973 6162 6c65 206e name: Disable n │ │ │ -0023d970: 616d 6564 2053 6572 7669 6365 202d 2043 amed Service - C │ │ │ -0023d980: 6f6c 6c65 6374 2073 7973 7465 6d64 2053 ollect systemd S │ │ │ -0023d990: 6572 7669 6365 7320 5072 6573 656e 7420 ervices Present │ │ │ -0023d9a0: 696e 2074 6865 2053 7973 7465 6d0a 2020 in the System. │ │ │ -0023d9b0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0023d9c0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465 n.command: syste │ │ │ -0023d9d0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69 mctl -q list-uni │ │ │ -0023d9e0: 742d 6669 6c65 7320 2d2d 7479 7065 2073 t-files --type s │ │ │ -0023d9f0: 6572 7669 6365 0a20 2020 2072 6567 6973 ervice. regis │ │ │ -0023da00: 7465 723a 2073 6572 7669 6365 5f65 7869 ter: service_exi │ │ │ -0023da10: 7374 730a 2020 2020 6368 616e 6765 645f sts. changed_ │ │ │ -0023da20: 7768 656e 3a20 6661 6c73 650a 2020 2020 when: false. │ │ │ -0023da30: 6661 696c 6564 5f77 6865 6e3a 2073 6572 failed_when: ser │ │ │ -0023da40: 7669 6365 5f65 7869 7374 732e 7263 206e vice_exists.rc n │ │ │ -0023da50: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ -0023da60: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ -0023da70: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ -0023da80: 7361 626c 6520 6e61 6d65 6420 5365 7276 sable named Serv │ │ │ -0023da90: 6963 6520 2d20 456e 7375 7265 206e 616d ice - Ensure nam │ │ │ -0023daa0: 6564 2e73 6572 7669 6365 2069 7320 4d61 ed.service is Ma │ │ │ -0023dab0: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ -0023dac0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -0023dad0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e61 :. name: na │ │ │ -0023dae0: 6d65 642e 7365 7276 6963 650a 2020 2020 med.service. │ │ │ -0023daf0: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -0023db00: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -0023db10: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -0023db20: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -0023db30: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -0023db40: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -0023db50: 7320 7365 6172 6368 2822 6e61 6d65 642e s search("named. │ │ │ -0023db60: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -0023db70: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -0023db80: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -0023db90: 2045 7869 7374 7320 2d20 6e61 6d65 642e Exists - named. │ │ │ -0023dba0: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ -0023dbb0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0023dbc0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -0023dbd0: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -0023dbe0: 206e 616d 6564 2e73 6f63 6b65 740a 2020 named.socket. │ │ │ -0023dbf0: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -0023dc00: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -0023dc10: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -0023dc20: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -0023dc30: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -0023dc40: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -0023dc50: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -0023dc60: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -0023dc70: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -0023dc80: 6162 6c65 206e 616d 6564 2053 6572 7669 able named Servi │ │ │ -0023dc90: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ -0023dca0: 6b65 7420 6e61 6d65 640a 2020 2020 616e ket named. an │ │ │ -0023dcb0: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -0023dcc0: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -0023dcd0: 653a 206e 616d 6564 2e73 6f63 6b65 740a e: named.socket. │ │ │ -0023dce0: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -0023dcf0: 616c 7365 0a20 2020 2020 2073 7461 7465 alse. state │ │ │ -0023dd00: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ -0023dd10: 6d61 736b 6564 3a20 7472 7565 0a20 2020 masked: true. │ │ │ -0023dd20: 2077 6865 6e3a 2073 6f63 6b65 745f 6669 when: socket_fi │ │ │ -0023dd30: 6c65 5f65 7869 7374 732e 7374 646f 7574 le_exists.stdout │ │ │ -0023dd40: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ -0023dd50: 2822 6e61 6d65 642e 736f 636b 6574 222c ("named.socket", │ │ │ -0023dd60: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -0023dd70: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -0023dd80: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -0023dd90: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0023dda0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -0023ddb0: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -0023ddc0: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -0023ddd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0023dde0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0023ddf0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0023de00: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ -0023de10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0023de20: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0023de30: 5f6e 616d 6564 5f64 6973 6162 6c65 640a _named_disabled. │ │ │ -0023de40: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ -0023de50: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ -0023de60: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -0023de70: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -0023de80: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
< │ │ │ +0023d390: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0023d3a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0023d3c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0023d3d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0023d3f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0023d410: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable

│ │ │ +0023d440: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0023d450: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0023d460: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0023d470: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0023d480: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0023d490: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0023d4a0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0023d4b0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0023d4c0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0023d4d0: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +0023d4e0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0023d4f0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0023d500: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0023d510: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +0023d520: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +0023d530: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +0023d540: 2d20 7365 7276 6963 655f 6e61 6d65 645f  - service_named_
│ │ │ +0023d550: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ +0023d560: 3a20 4469 7361 626c 6520 6e61 6d65 6420  : Disable named 
│ │ │ +0023d570: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +0023d580: 6520 7365 7276 6963 6520 6e61 6d65 640a  e service named.
│ │ │ +0023d590: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0023d5a0: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ +0023d5b0: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ +0023d5c0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ +0023d5d0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ +0023d5e0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +0023d5f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0023d600: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0023d610: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0023d620: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +0023d630: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +0023d640: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0023d650: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0023d660: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0023d670: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +0023d680: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0023d690: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0023d6a0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0023d6b0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0023d6c0: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ +0023d6d0: 202d 2045 6e73 7572 6520 6e61 6d65 642e   - Ensure named.
│ │ │ +0023d6e0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ +0023d6f0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +0023d700: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0023d710: 2020 2020 206e 616d 653a 206e 616d 6564       name: named
│ │ │ +0023d720: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +0023d730: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0023d740: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0023d750: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +0023d760: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0023d770: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +0023d780: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0023d790: 6561 7263 6828 226e 616d 6564 2e73 6572  earch("named.ser
│ │ │ +0023d7a0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +0023d7b0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +0023d7c0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +0023d7d0: 6973 7473 202d 206e 616d 6564 2e73 6f63  ists - named.soc
│ │ │ +0023d7e0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +0023d7f0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0023d800: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0023d810: 7374 2d75 6e69 742d 6669 6c65 7320 6e61  st-unit-files na
│ │ │ +0023d820: 6d65 642e 736f 636b 6574 0a20 2020 2072  med.socket.    r
│ │ │ +0023d830: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ +0023d840: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ +0023d850: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +0023d860: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +0023d870: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0023d880: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +0023d890: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +0023d8a0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +0023d8b0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0023d8c0: 6520 6e61 6d65 6420 5365 7276 6963 6520  e named Service 
│ │ │ +0023d8d0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +0023d8e0: 206e 616d 6564 0a20 2020 2061 6e73 6962   named.    ansib
│ │ │ +0023d8f0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0023d900: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0023d910: 6e61 6d65 642e 736f 636b 6574 0a20 2020  named.socket.   
│ │ │ +0023d920: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0023d930: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0023d940: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ +0023d950: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0023d960: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +0023d970: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0023d980: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ +0023d990: 616d 6564 2e73 6f63 6b65 7422 2c20 6d75  amed.socket", mu
│ │ │ +0023d9a0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +0023d9b0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0023d9c0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0023d9d0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0023d9e0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0023d9f0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0023da00: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0023da10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0023da20: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0023da30: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0023da40: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0023da50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0023da60: 640a 2020 2d20 7365 7276 6963 655f 6e61  d.  - service_na
│ │ │ +0023da70: 6d65 645f 6469 7361 626c 6564 0a20 202d  med_disabled.  -
│ │ │ +0023da80: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +0023da90: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ +0023daa0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +0023dab0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0023dac0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0023dad0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0023db80: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0023db90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0023dc10: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0023dc20: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0023dc30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0023dc70: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0023dc80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0023dca0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0023dcc0: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +0023dcd0: 7361 626c 655f 6e61 6d65 640a 0a63 6c61  sable_named..cla
│ │ │ +0023dce0: 7373 2064 6973 6162 6c65 5f6e 616d 6564  ss disable_named
│ │ │ +0023dcf0: 207b 0a20 2073 6572 7669 6365 207b 276e   {.  service {'n
│ │ │ +0023dd00: 616d 6564 273a 0a20 2020 2065 6e61 626c  amed':.    enabl
│ │ │ +0023dd10: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +0023dd20: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0023dd30: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +0023dd40: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OSB │ │ │ +0023de00: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ +0023de10: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ +0023de60: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +0023de70: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +0023de80: 205b 226e 616d 6564 225d 0a3c 2f63 6f64   ["named"].
Remediat │ │ │ -0023e730: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0023e740: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0023e7c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0023e7d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0023e7e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0023e820: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0023e830: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0023e850: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0023e860: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0023e880: 7265 6d6f 7665 5f64 6e73 6d61 7371 0a0a  remove_dnsmasq..
│ │ │ -0023e890: 636c 6173 7320 7265 6d6f 7665 5f64 6e73  class remove_dns
│ │ │ -0023e8a0: 6d61 7371 207b 0a20 2070 6163 6b61 6765  masq {.  package
│ │ │ -0023e8b0: 207b 2027 646e 736d 6173 7127 3a0a 2020   { 'dnsmasq':.  
│ │ │ -0023e8c0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -0023e8d0: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -0023e8e0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0023e990: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0023e9a0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0023ea40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0023eae0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -0023eaf0: 6c20 646e 736d 6173 7120 5061 636b 6167  l dnsmasq Packag
│ │ │ -0023eb00: 653a 2045 6e73 7572 6520 646e 736d 6173  e: Ensure dnsmas
│ │ │ -0023eb10: 7120 6973 2072 656d 6f76 6564 270a 2020  q is removed'.  
│ │ │ -0023eb20: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0023eb30: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0023eb40: 653a 2064 6e73 6d61 7371 0a20 2020 2073  e: dnsmasq.    s
│ │ │ -0023eb50: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0023eb60: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0023eb70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0023eb80: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0023eb90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0023eba0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -0023ebb0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0023ebc0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0023ebd0: 655f 646e 736d 6173 715f 7265 6d6f 7665  e_dnsmasq_remove
│ │ │ -0023ebe0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0023e730: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0023e740: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0023e750: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0023e760: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0023e770: 7365 2220 6964 3d22 6964 3839 3822 3e3c se" id="id898">< │ │ │ +0023e780: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0023e790: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0023e7a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0023e7b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0023e7c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ +0023e850: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +0023e860: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -0023ea30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0023ea60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0023ea70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0023eab0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0023eac0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +0023e7d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0023e7e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +0023e820: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0023e830: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +0023e880: 2755 6e69 6e73 7461 6c6c 2064 6e73 6d61 'Uninstall dnsma │ │ │ +0023e890: 7371 2050 6163 6b61 6765 3a20 456e 7375 sq Package: Ensu │ │ │ +0023e8a0: 7265 2064 6e73 6d61 7371 2069 7320 7265 re dnsmasq is re │ │ │ +0023e8b0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ +0023e8c0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ +0023e8d0: 3a0a 2020 2020 6e61 6d65 3a20 646e 736d :. name: dnsm │ │ │ +0023e8e0: 6173 710a 2020 2020 7374 6174 653a 2061 asq. state: a │ │ │ +0023e8f0: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ +0023e900: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0023e910: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +0023e920: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +0023e930: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ +0023e940: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +0023e950: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +0023e960: 202d 2070 6163 6b61 6765 5f64 6e73 6d61 - package_dnsma │ │ │ +0023e970: 7371 5f72 656d 6f76 6564 0a3c 2f63 6f64 sq_removed.
Remed │ │ │ +0023ea30: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0023ea40: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Remediation │ │ │ -00263fb0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00263fc0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00264050: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00264070: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00264090: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -002640c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002640d0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -00264100: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00264110: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00264120: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00264130: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00264140: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00264150: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00264160: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00264170: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00264180: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00264190: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002641a0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -002641b0: 6368 726f 6e79 645f 6469 7361 626c 6564  chronyd_disabled
│ │ │ -002641c0: 0a0a 2d20 6e61 6d65 3a20 5468 6520 4368  ..- name: The Ch
│ │ │ -002641d0: 726f 6e79 6420 7365 7276 6963 6520 6973  ronyd service is
│ │ │ -002641e0: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ -002641f0: 626c 6520 7365 7276 6963 6520 6368 726f  ble service chro
│ │ │ -00264200: 6e79 0a20 2062 6c6f 636b 3a0a 0a20 202d  ny.  block:..  -
│ │ │ -00264210: 206e 616d 653a 2054 6865 2043 6872 6f6e   name: The Chron
│ │ │ -00264220: 7964 2073 6572 7669 6365 2069 7320 6469  yd service is di
│ │ │ -00264230: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -00264240: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -00264250: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -00264260: 0a20 2020 2020 2053 7973 7465 6d0a 2020  .      System.  
│ │ │ -00264270: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00264280: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00264290: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -002642a0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -002642b0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -002642c0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -002642d0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002642e0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002642f0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -00264300: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -00264310: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00264320: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00264330: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5468  se..  - name: Th
│ │ │ -00264340: 6520 4368 726f 6e79 6420 7365 7276 6963  e Chronyd servic
│ │ │ -00264350: 6520 6973 2064 6973 6162 6c65 6420 2d20  e is disabled - 
│ │ │ -00264360: 456e 7375 7265 2063 6872 6f6e 792e 7365  Ensure chrony.se
│ │ │ -00264370: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00264380: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00264390: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -002643a0: 2020 206e 616d 653a 2063 6872 6f6e 792e     name: chrony.
│ │ │ -002643b0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -002643c0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -002643d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -002643e0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -002643f0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -00264400: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -00264410: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -00264420: 6172 6368 2822 6368 726f 6e79 2e73 6572  arch("chrony.ser
│ │ │ -00264430: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00264440: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -00264450: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -00264460: 6973 7473 202d 2063 6872 6f6e 792e 736f  ists - chrony.so
│ │ │ -00264470: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00264480: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00264490: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002644a0: 6973 742d 756e 6974 2d66 696c 6573 2063  ist-unit-files c
│ │ │ -002644b0: 6872 6f6e 792e 736f 636b 6574 0a20 2020  hrony.socket.   
│ │ │ -002644c0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -002644d0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -002644e0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002644f0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -00264500: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -00264510: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -00264520: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -00264530: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -00264540: 0a0a 2020 2d20 6e61 6d65 3a20 5468 6520  ..  - name: The 
│ │ │ -00264550: 4368 726f 6e79 6420 7365 7276 6963 6520  Chronyd service 
│ │ │ -00264560: 6973 2064 6973 6162 6c65 6420 2d20 4469  is disabled - Di
│ │ │ -00264570: 7361 626c 6520 536f 636b 6574 2063 6872  sable Socket chr
│ │ │ -00264580: 6f6e 790a 2020 2020 616e 7369 626c 652e  ony.    ansible.
│ │ │ -00264590: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002645a0: 0a20 2020 2020 206e 616d 653a 2063 6872  .      name: chr
│ │ │ -002645b0: 6f6e 792e 736f 636b 6574 0a20 2020 2020  ony.socket.     
│ │ │ -002645c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002645d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002645e0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002645f0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00264600: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00264610: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00264620: 7320 6973 2073 6561 7263 6828 2263 6872  s is search("chr
│ │ │ -00264630: 6f6e 792e 736f 636b 6574 222c 206d 756c  ony.socket", mul
│ │ │ -00264640: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -00264650: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00264660: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00264670: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00264680: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00264690: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -002646a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002646b0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002646c0: 7669 6365 5f63 6872 6f6e 7964 5f64 6973  vice_chronyd_dis
│ │ │ -002646d0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -002646e0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -002646f0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ -00264700: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00264710: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00264720: 6765 7327 0a20 202d 2027 2263 6872 6f6e  ges'.  - '"chron
│ │ │ -00264730: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ -00264740: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
│ │ │ +00263c00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
low< │ │ │ +00263ca0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00263cf0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00263d30: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00263d40: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00263d50: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00263d60: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00263d70: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00263d80: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00263d90: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00263da0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00263db0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00263dc0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00263dd0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00263de0: 2073 6572 7669 6365 5f63 6872 6f6e 7964   service_chronyd
│ │ │ +00263df0: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +00263e00: 653a 2054 6865 2043 6872 6f6e 7964 2073  e: The Chronyd s
│ │ │ +00263e10: 6572 7669 6365 2069 7320 6469 7361 626c  ervice is disabl
│ │ │ +00263e20: 6564 202d 2044 6973 6162 6c65 2073 6572  ed - Disable ser
│ │ │ +00263e30: 7669 6365 2063 6872 6f6e 790a 2020 626c  vice chrony.  bl
│ │ │ +00263e40: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00263e50: 5468 6520 4368 726f 6e79 6420 7365 7276  The Chronyd serv
│ │ │ +00263e60: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ +00263e70: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +00263e80: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +00263e90: 6e74 2069 6e20 7468 650a 2020 2020 2020  nt in the.      
│ │ │ +00263ea0: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +00263eb0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +00263ec0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +00263ed0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +00263ee0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +00263ef0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +00263f00: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +00263f10: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +00263f20: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +00263f30: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00263f40: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00263f50: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00263f60: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00263f70: 206e 616d 653a 2054 6865 2043 6872 6f6e   name: The Chron
│ │ │ +00263f80: 7964 2073 6572 7669 6365 2069 7320 6469  yd service is di
│ │ │ +00263f90: 7361 626c 6564 202d 2045 6e73 7572 6520  sabled - Ensure 
│ │ │ +00263fa0: 6368 726f 6e79 2e73 6572 7669 6365 2069  chrony.service i
│ │ │ +00263fb0: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00263fc0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00263fd0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00263fe0: 3a20 6368 726f 6e79 2e73 6572 7669 6365  : chrony.service
│ │ │ +00263ff0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00264000: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +00264010: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00264020: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +00264030: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +00264040: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +00264050: 6e65 7320 6973 2073 6561 7263 6828 2263  nes is search("c
│ │ │ +00264060: 6872 6f6e 792e 7365 7276 6963 6522 2c20  hrony.service", 
│ │ │ +00264070: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00264080: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00264090: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +002640a0: 6368 726f 6e79 2e73 6f63 6b65 740a 2020  chrony.socket.  
│ │ │ +002640b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002640c0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +002640d0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +002640e0: 742d 6669 6c65 7320 6368 726f 6e79 2e73  t-files chrony.s
│ │ │ +002640f0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +00264100: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +00264110: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00264120: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00264130: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00264140: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00264150: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00264160: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00264170: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00264180: 616d 653a 2054 6865 2043 6872 6f6e 7964  ame: The Chronyd
│ │ │ +00264190: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +002641a0: 626c 6564 202d 2044 6973 6162 6c65 2053  bled - Disable S
│ │ │ +002641b0: 6f63 6b65 7420 6368 726f 6e79 0a20 2020  ocket chrony.   
│ │ │ +002641c0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002641d0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +002641e0: 6e61 6d65 3a20 6368 726f 6e79 2e73 6f63  name: chrony.soc
│ │ │ +002641f0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +00264200: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +00264210: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +00264220: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +00264230: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +00264240: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +00264250: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +00264260: 6172 6368 2822 6368 726f 6e79 2e73 6f63  arch("chrony.soc
│ │ │ +00264270: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +00264280: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +00264290: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002642a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002642b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002642c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +002642d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002642e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002642f0: 640a 2020 2d20 7365 7276 6963 655f 6368  d.  - service_ch
│ │ │ +00264300: 726f 6e79 645f 6469 7361 626c 6564 0a20  ronyd_disabled. 
│ │ │ +00264310: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00264320: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00264330: 0a20 202d 2027 226c 696e 7578 2d62 6173  .  - '"linux-bas
│ │ │ +00264340: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00264350: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00264360: 2d20 2722 6368 726f 6e79 2220 696e 2061  - '"chrony" in a
│ │ │ +00264370: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00264380: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f  kages'.Remediati
│ │ │ +00264440: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +00264450: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +002644d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00264510: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
Co │ │ │ +00263c80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00263cb0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00263cd0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00263ce0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00263d00: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00263d10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +002644e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00264500: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00264530: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00264550: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ +00264580: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ +00264590: 6162 6c65 5f63 6872 6f6e 790a 0a63 6c61  able_chrony..cla
│ │ │ +002645a0: 7373 2064 6973 6162 6c65 5f63 6872 6f6e  ss disable_chron
│ │ │ +002645b0: 7920 7b0a 2020 7365 7276 6963 6520 7b27  y {.  service {'
│ │ │ +002645c0: 6368 726f 6e79 273a 0a20 2020 2065 6e61  chrony':.    ena
│ │ │ +002645d0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ +002645e0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +002645f0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ +00264600: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ +00264610: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +002646c0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002646d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002646e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +00264720: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +00264730: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +00264740: 203d 205b 2263 6872 6f6e 7922 5d0a 3c2f   = ["chrony"].
Re │ │ │ -00265040: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00265050: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00265060: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00265070: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00265080: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00265090: 7365 2220 6964 3d22 6964 3130 3030 223e se" id="id1000"> │ │ │ -002650a0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002650b0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002650c0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002650d0: 2273 7973 7465 6d64 2d74 696d 6573 796e  "systemd-timesyn
│ │ │ -002650e0: 6364 225d 0a3c 2f63 6f64 653e 3c2f 7072  cd"].
│ │ │ +0023eaf0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0023eb10: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0023eb40: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0023ead0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0023eae0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0023eb00: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0023eb20: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0023eb30: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0023eb70: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +0023eb80: 6465 2072 656d 6f76 655f 646e 736d 6173 de remove_dnsmas │ │ │ +0023eb90: 710a 0a63 6c61 7373 2072 656d 6f76 655f q..class remove_ │ │ │ +0023eba0: 646e 736d 6173 7120 7b0a 2020 7061 636b dnsmasq {. pack │ │ │ +0023ebb0: 6167 6520 7b20 2764 6e73 6d61 7371 273a age { 'dnsmasq': │ │ │ +0023ebc0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0023ebd0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ +0023ebe0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ 0023ebf0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>R │ │ │ -0023f730: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0023f740: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0023f750: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0023f760: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0023f790: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0023f7a0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0023f7b0: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0023f7c0: 2264 6e73 6d61 7371 225d 0a3c 2f63 6f64  "dnsmasq"].
Remed │ │ │ -0023f880: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0023f890: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0023f940: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0023f960: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0023f990: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0023f920: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0023f930: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0023f950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0023f970: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0023f980: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -0023f9d0: 2064 6973 6162 6c65 5f64 6e73 6d61 7371 disable_dnsmasq │ │ │ -0023f9e0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -0023f9f0: 646e 736d 6173 7120 7b0a 2020 7365 7276 dnsmasq {. serv │ │ │ -0023fa00: 6963 6520 7b27 646e 736d 6173 7127 3a0a ice {'dnsmasq':. │ │ │ -0023fa10: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ -0023fa20: 2066 616c 7365 2c0a 2020 2020 656e 7375 false,. ensu │ │ │ -0023fa30: 7265 203d 2667 743b 2027 7374 6f70 7065 re => 'stoppe │ │ │ -0023fa40: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.

Remedi │ │ │ -0023fb00: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0023fb10: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0023fbc0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0023fbe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0023fc10: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0023fba0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0023fbb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0023fbd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0023fbf0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0023fc00: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0023fc40: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -0023fc50: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -0023fc60: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -0023fc70: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -0023fc80: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -0023fc90: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -0023fca0: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -0023fcb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -0023fcc0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -0023fcd0: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -0023fce0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -0023fcf0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ -0023fd00: 7276 6963 655f 646e 736d 6173 715f 6469 rvice_dnsmasq_di │ │ │ -0023fd10: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20 sabled..- name: │ │ │ -0023fd20: 4469 7361 626c 6520 646e 736d 6173 7120 Disable dnsmasq │ │ │ -0023fd30: 5365 7276 6963 6520 2d20 4469 7361 626c Service - Disabl │ │ │ -0023fd40: 6520 7365 7276 6963 6520 646e 736d 6173 e service dnsmas │ │ │ -0023fd50: 710a 2020 626c 6f63 6b3a 0a0a 2020 2d20 q. block:.. - │ │ │ -0023fd60: 6e61 6d65 3a20 4469 7361 626c 6520 646e name: Disable dn │ │ │ -0023fd70: 736d 6173 7120 5365 7276 6963 6520 2d20 smasq Service - │ │ │ -0023fd80: 436f 6c6c 6563 7420 7379 7374 656d 6420 Collect systemd │ │ │ -0023fd90: 5365 7276 6963 6573 2050 7265 7365 6e74 Services Present │ │ │ -0023fda0: 2069 6e20 7468 6520 5379 7374 656d 0a20 in the System. │ │ │ -0023fdb0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -0023fdc0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -0023fdd0: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -0023fde0: 6974 2d66 696c 6573 202d 2d74 7970 6520 it-files --type │ │ │ -0023fdf0: 7365 7276 6963 650a 2020 2020 7265 6769 service. regi │ │ │ -0023fe00: 7374 6572 3a20 7365 7276 6963 655f 6578 ster: service_ex │ │ │ -0023fe10: 6973 7473 0a20 2020 2063 6861 6e67 6564 ists. changed │ │ │ -0023fe20: 5f77 6865 6e3a 2066 616c 7365 0a20 2020 _when: false. │ │ │ -0023fe30: 2066 6169 6c65 645f 7768 656e 3a20 7365 failed_when: se │ │ │ -0023fe40: 7276 6963 655f 6578 6973 7473 2e72 6320 rvice_exists.rc │ │ │ -0023fe50: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -0023fe60: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -0023fe70: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -0023fe80: 6973 6162 6c65 2064 6e73 6d61 7371 2053 isable dnsmasq S │ │ │ -0023fe90: 6572 7669 6365 202d 2045 6e73 7572 6520 ervice - Ensure │ │ │ -0023fea0: 646e 736d 6173 712e 7365 7276 6963 6520 dnsmasq.service │ │ │ -0023feb0: 6973 204d 6173 6b65 640a 2020 2020 616e is Masked. an │ │ │ -0023fec0: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -0023fed0: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -0023fee0: 653a 2064 6e73 6d61 7371 2e73 6572 7669 e: dnsmasq.servi │ │ │ -0023fef0: 6365 0a20 2020 2020 2073 7461 7465 3a20 ce. state: │ │ │ -0023ff00: 7374 6f70 7065 640a 2020 2020 2020 656e stopped. en │ │ │ -0023ff10: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -0023ff20: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -0023ff30: 2020 2020 7768 656e 3a20 7365 7276 6963 when: servic │ │ │ -0023ff40: 655f 6578 6973 7473 2e73 7464 6f75 745f e_exists.stdout_ │ │ │ -0023ff50: 6c69 6e65 7320 6973 2073 6561 7263 6828 lines is search( │ │ │ -0023ff60: 2264 6e73 6d61 7371 2e73 6572 7669 6365 "dnsmasq.service │ │ │ -0023ff70: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -0023ff80: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ -0023ff90: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ -0023ffa0: 202d 2064 6e73 6d61 7371 2e73 6f63 6b65 - dnsmasq.socke │ │ │ -0023ffb0: 740a 2020 2020 616e 7369 626c 652e 6275 t. ansible.bu │ │ │ -0023ffc0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073 iltin.command: s │ │ │ -0023ffd0: 7973 7465 6d63 746c 202d 7120 6c69 7374 ystemctl -q list │ │ │ -0023ffe0: 2d75 6e69 742d 6669 6c65 7320 646e 736d -unit-files dnsm │ │ │ -0023fff0: 6173 712e 736f 636b 6574 0a20 2020 2072 asq.socket. r │ │ │ -00240000: 6567 6973 7465 723a 2073 6f63 6b65 745f egister: socket_ │ │ │ -00240010: 6669 6c65 5f65 7869 7374 730a 2020 2020 file_exists. │ │ │ -00240020: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -00240030: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -00240040: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ -00240050: 5f65 7869 7374 732e 7263 206e 6f74 2069 _exists.rc not i │ │ │ -00240060: 6e20 5b30 2c20 315d 0a20 2020 2063 6865 n [0, 1]. che │ │ │ -00240070: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a ck_mode: false.. │ │ │ -00240080: 2020 2d20 6e61 6d65 3a20 4469 7361 626c - name: Disabl │ │ │ -00240090: 6520 646e 736d 6173 7120 5365 7276 6963 e dnsmasq Servic │ │ │ -002400a0: 6520 2d20 4469 7361 626c 6520 536f 636b e - Disable Sock │ │ │ -002400b0: 6574 2064 6e73 6d61 7371 0a20 2020 2061 et dnsmasq. a │ │ │ -002400c0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ -002400d0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ -002400e0: 6d65 3a20 646e 736d 6173 712e 736f 636b me: dnsmasq.sock │ │ │ -002400f0: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ -00240100: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ -00240110: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ -00240120: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -00240130: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ -00240140: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ -00240150: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ -00240160: 7263 6828 2264 6e73 6d61 7371 2e73 6f63 rch("dnsmasq.soc │ │ │ -00240170: 6b65 7422 2c20 6d75 6c74 696c 696e 653d ket", multiline= │ │ │ -00240180: 5472 7565 290a 2020 7461 6773 3a0a 2020 True). tags:. │ │ │ -00240190: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -002401a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -002401b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -002401c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -002401d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -002401e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -002401f0: 640a 2020 2d20 7365 7276 6963 655f 646e d. - service_dn │ │ │ -00240200: 736d 6173 715f 6469 7361 626c 6564 0a20 smasq_disabled. │ │ │ -00240210: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ -00240220: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ -00240230: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -00240240: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -00240250: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'.
│ │ │ +0023f7e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0023f880: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0023f890: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0023f8a0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0023f8b0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0023f8c0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +0023f8d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +0023f8e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0023f8f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0023f900: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0023f910: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0023f920: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0023f930: 202d 2073 6572 7669 6365 5f64 6e73 6d61   - service_dnsma
│ │ │ +0023f940: 7371 5f64 6973 6162 6c65 640a 0a2d 206e  sq_disabled..- n
│ │ │ +0023f950: 616d 653a 2044 6973 6162 6c65 2064 6e73  ame: Disable dns
│ │ │ +0023f960: 6d61 7371 2053 6572 7669 6365 202d 2044  masq Service - D
│ │ │ +0023f970: 6973 6162 6c65 2073 6572 7669 6365 2064  isable service d
│ │ │ +0023f980: 6e73 6d61 7371 0a20 2062 6c6f 636b 3a0a  nsmasq.  block:.
│ │ │ +0023f990: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0023f9a0: 6c65 2064 6e73 6d61 7371 2053 6572 7669  le dnsmasq Servi
│ │ │ +0023f9b0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0023f9c0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0023f9d0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0023f9e0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0023f9f0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0023fa00: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0023fa10: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0023fa20: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0023fa30: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0023fa40: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0023fa50: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0023fa60: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0023fa70: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0023fa80: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0023fa90: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0023faa0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0023fab0: 6d65 3a20 4469 7361 626c 6520 646e 736d  me: Disable dnsm
│ │ │ +0023fac0: 6173 7120 5365 7276 6963 6520 2d20 456e  asq Service - En
│ │ │ +0023fad0: 7375 7265 2064 6e73 6d61 7371 2e73 6572  sure dnsmasq.ser
│ │ │ +0023fae0: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0023faf0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0023fb00: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0023fb10: 2020 6e61 6d65 3a20 646e 736d 6173 712e    name: dnsmasq.
│ │ │ +0023fb20: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ +0023fb30: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ +0023fb40: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ +0023fb50: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ +0023fb60: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0023fb70: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ +0023fb80: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0023fb90: 6172 6368 2822 646e 736d 6173 712e 7365  arch("dnsmasq.se
│ │ │ +0023fba0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +0023fbb0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +0023fbc0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +0023fbd0: 7869 7374 7320 2d20 646e 736d 6173 712e  xists - dnsmasq.
│ │ │ +0023fbe0: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ +0023fbf0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0023fc00: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0023fc10: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0023fc20: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a   dnsmasq.socket.
│ │ │ +0023fc30: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +0023fc40: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0023fc50: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0023fc60: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0023fc70: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +0023fc80: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +0023fc90: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +0023fca0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +0023fcb0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +0023fcc0: 6973 6162 6c65 2064 6e73 6d61 7371 2053  isable dnsmasq S
│ │ │ +0023fcd0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0023fce0: 2053 6f63 6b65 7420 646e 736d 6173 710a   Socket dnsmasq.
│ │ │ +0023fcf0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0023fd00: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0023fd10: 2020 206e 616d 653a 2064 6e73 6d61 7371     name: dnsmasq
│ │ │ +0023fd20: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +0023fd30: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0023fd40: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0023fd50: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +0023fd60: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +0023fd70: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +0023fd80: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +0023fd90: 7320 7365 6172 6368 2822 646e 736d 6173  s search("dnsmas
│ │ │ +0023fda0: 712e 736f 636b 6574 222c 206d 756c 7469  q.socket", multi
│ │ │ +0023fdb0: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +0023fdc0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +0023fdd0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +0023fde0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0023fdf0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0023fe00: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +0023fe10: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +0023fe20: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +0023fe30: 6365 5f64 6e73 6d61 7371 5f64 6973 6162  ce_dnsmasq_disab
│ │ │ +0023fe40: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0023fe50: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0023fe60: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0023fe70: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0023fe80: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0023fe90: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0023ff40: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0023ff50: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0023f7d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0023f800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0023f810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0023f850: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0023f860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0023fff0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00240000: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00240050: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00240090: 6c75 6465 2064 6973 6162 6c65 5f64 6e73  lude disable_dns
│ │ │ +002400a0: 6d61 7371 0a0a 636c 6173 7320 6469 7361  masq..class disa
│ │ │ +002400b0: 626c 655f 646e 736d 6173 7120 7b0a 2020  ble_dnsmasq {.  
│ │ │ +002400c0: 7365 7276 6963 6520 7b27 646e 736d 6173  service {'dnsmas
│ │ │ +002400d0: 7127 3a0a 2020 2020 656e 6162 6c65 203d  q':.    enable =
│ │ │ +002400e0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +002400f0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00240100: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +002401c0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +002401d0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +002401e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002401f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00240200: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00240210: 7365 2220 6964 3d22 6964 3930 3422 3e3c se" id="id904">< │ │ │ +00240220: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00240230: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00240240: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +00240250: 646e 736d 6173 7122 5d0a 3c2f 636f 6465 dnsmasq"].
C │ │ │ +0023ffe0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00240010: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00240020: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00240060: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00240070: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Remediation │ │ │ -00241910: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00241920: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -002419b0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -002419d0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -002419f0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00241a20: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00241a30: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00241a60: 6f76 655f 7673 6674 7064 0a0a 636c 6173  ove_vsftpd..clas
│ │ │ -00241a70: 7320 7265 6d6f 7665 5f76 7366 7470 6420  s remove_vsftpd 
│ │ │ -00241a80: 7b0a 2020 7061 636b 6167 6520 7b20 2776  {.  package { 'v
│ │ │ -00241a90: 7366 7470 6427 3a0a 2020 2020 656e 7375  sftpd':.    ensu
│ │ │ -00241aa0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00241ab0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00241ac0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00241b70: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00241b80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00241b90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00241bc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00241c30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00241c50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00241c80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00241c10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00241c20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00241c60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00241c70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00241cc0: 2027 556e 696e 7374 616c 6c20 7673 6674 'Uninstall vsft │ │ │ -00241cd0: 7064 2050 6163 6b61 6765 3a20 456e 7375 pd Package: Ensu │ │ │ -00241ce0: 7265 2076 7366 7470 6420 6973 2072 656d re vsftpd is rem │ │ │ -00241cf0: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ -00241d00: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ -00241d10: 0a20 2020 206e 616d 653a 2076 7366 7470 . name: vsftp │ │ │ -00241d20: 640a 2020 2020 7374 6174 653a 2061 6273 d. state: abs │ │ │ -00241d30: 656e 740a 2020 7461 6773 3a0a 2020 2d20 ent. tags:. - │ │ │ -00241d40: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00241d50: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00241d60: 2d35 332d 434d 2d37 0a20 202d 204e 4953 -53-CM-7. - NIS │ │ │ -00241d70: 542d 3830 302d 3533 2d43 4d2d 3728 6129 T-800-53-CM-7(a) │ │ │ -00241d80: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00241d90: 2d43 4d2d 3728 6229 0a20 202d 204e 4953 -CM-7(b). - NIS │ │ │ -00241da0: 542d 3830 302d 3533 2d43 4d2d 372e 3128 T-800-53-CM-7.1( │ │ │ -00241db0: 6969 290a 2020 2d20 4e49 5354 2d38 3030 ii). - NIST-800 │ │ │ -00241dc0: 2d35 332d 4941 2d35 2831 2928 6329 0a20 -53-IA-5(1)(c). │ │ │ -00241dd0: 202d 204e 4953 542d 3830 302d 3533 2d49 - NIST-800-53-I │ │ │ -00241de0: 412d 3528 3129 2e31 2876 290a 2020 2d20 A-5(1).1(v). - │ │ │ -00241df0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -00241e00: 0a20 202d 2068 6967 685f 7365 7665 7269 . - high_severi │ │ │ -00241e10: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c ty. - low_compl │ │ │ -00241e20: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00241e30: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -00241e40: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -00241e50: 2d20 7061 636b 6167 655f 7673 6674 7064 - package_vsftpd │ │ │ -00241e60: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e _removed. │ │ │ +00241910: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00241920: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

Complexity │ │ │ +002419b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002419d0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002419e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002419f0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00241a00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00241a20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00241a50: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +00241a60: 696e 7374 616c 6c20 7673 6674 7064 2050  install vsftpd P
│ │ │ +00241a70: 6163 6b61 6765 3a20 456e 7375 7265 2076  ackage: Ensure v
│ │ │ +00241a80: 7366 7470 6420 6973 2072 656d 6f76 6564  sftpd is removed
│ │ │ +00241a90: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00241aa0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00241ab0: 206e 616d 653a 2076 7366 7470 640a 2020   name: vsftpd.  
│ │ │ +00241ac0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00241ad0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00241ae0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00241af0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00241b00: 434d 2d37 0a20 202d 204e 4953 542d 3830  CM-7.  - NIST-80
│ │ │ +00241b10: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00241b20: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00241b30: 3728 6229 0a20 202d 204e 4953 542d 3830  7(b).  - NIST-80
│ │ │ +00241b40: 302d 3533 2d43 4d2d 372e 3128 6969 290a  0-53-CM-7.1(ii).
│ │ │ +00241b50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00241b60: 4941 2d35 2831 2928 6329 0a20 202d 204e  IA-5(1)(c).  - N
│ │ │ +00241b70: 4953 542d 3830 302d 3533 2d49 412d 3528  IST-800-53-IA-5(
│ │ │ +00241b80: 3129 2e31 2876 290a 2020 2d20 6469 7361  1).1(v).  - disa
│ │ │ +00241b90: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00241ba0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +00241bb0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00241bc0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00241bd0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00241be0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00241bf0: 636b 6167 655f 7673 6674 7064 5f72 656d  ckage_vsftpd_rem
│ │ │ +00241c00: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediation │ │ │ +00241cc0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00241cd0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +00241d60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00241d80: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00241da0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00241dd0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00241de0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00241e10: 6f76 655f 7673 6674 7064 0a0a 636c 6173  ove_vsftpd..clas
│ │ │ +00241e20: 7320 7265 6d6f 7665 5f76 7366 7470 6420  s remove_vsftpd 
│ │ │ +00241e30: 7b0a 2020 7061 636b 6167 6520 7b20 2776  {.  package { 'v
│ │ │ +00241e40: 7366 7470 6427 3a0a 2020 2020 656e 7375  sftpd':.    ensu
│ │ │ +00241e50: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00241e60: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00241e70: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remediation OSB │ │ │ -00242f50: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00242f60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -00242fb0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -00242fc0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -00242fd0: 205b 2276 7366 7470 6422 5d0a 3c2f 636f   ["vsftpd"].
< │ │ │ -00242ff0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00243000: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00243010: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00243020: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00243030: 6439 3131 2220 7461 6269 6e64 6578 3d22 d911" tabindex=" │ │ │ -00243040: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00243050: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00243060: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00243070: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00243080: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00243090: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002430a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00243130: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00243140: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00243160: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00243180: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00243190: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002431d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002431e0: 6520 6469 7361 626c 655f 7673 6674 7064 e disable_vsftpd │ │ │ -002431f0: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -00243200: 7673 6674 7064 207b 0a20 2073 6572 7669 vsftpd {. servi │ │ │ -00243210: 6365 207b 2776 7366 7470 6427 3a0a 2020 ce {'vsftpd':. │ │ │ -00243220: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -00243230: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -00243240: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -00243250: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00243260: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00243310: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00243320: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00243330: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00243340: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00243350: 7365 2220 6964 3d22 6964 3931 3222 3e3c se" id="id912">< │ │ │ -00243360: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00243370: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00243380: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00243390: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002433a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002433b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002433c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00243400: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00243410: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00243430: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00243440: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00243460: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00243470: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00243480: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00243490: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002434a0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -002434b0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -002434c0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -002434d0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -002434e0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -002434f0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -00243500: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00243510: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00243520: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00243530: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00243540: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00243550: 2020 2d20 7365 7276 6963 655f 7673 6674 - service_vsft │ │ │ -00243560: 7064 5f64 6973 6162 6c65 640a 0a2d 206e pd_disabled..- n │ │ │ -00243570: 616d 653a 2044 6973 6162 6c65 2076 7366 ame: Disable vsf │ │ │ -00243580: 7470 6420 5365 7276 6963 6520 2d20 4469 tpd Service - Di │ │ │ -00243590: 7361 626c 6520 7365 7276 6963 6520 7673 sable service vs │ │ │ -002435a0: 6674 7064 0a20 2062 6c6f 636b 3a0a 0a20 ftpd. block:.. │ │ │ -002435b0: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ -002435c0: 2076 7366 7470 6420 5365 7276 6963 6520 vsftpd Service │ │ │ -002435d0: 2d20 436f 6c6c 6563 7420 7379 7374 656d - Collect system │ │ │ -002435e0: 6420 5365 7276 6963 6573 2050 7265 7365 d Services Prese │ │ │ -002435f0: 6e74 2069 6e20 7468 6520 5379 7374 656d nt in the System │ │ │ -00243600: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00243610: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ -00243620: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ -00243630: 756e 6974 2d66 696c 6573 202d 2d74 7970 unit-files --typ │ │ │ -00243640: 6520 7365 7276 6963 650a 2020 2020 7265 e service. re │ │ │ -00243650: 6769 7374 6572 3a20 7365 7276 6963 655f gister: service_ │ │ │ -00243660: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ -00243670: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ -00243680: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ -00243690: 7365 7276 6963 655f 6578 6973 7473 2e72 service_exists.r │ │ │ -002436a0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -002436b0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -002436c0: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -002436d0: 2044 6973 6162 6c65 2076 7366 7470 6420 Disable vsftpd │ │ │ -002436e0: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ -002436f0: 2076 7366 7470 642e 7365 7276 6963 6520 vsftpd.service │ │ │ -00243700: 6973 204d 6173 6b65 640a 2020 2020 616e is Masked. an │ │ │ -00243710: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -00243720: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -00243730: 653a 2076 7366 7470 642e 7365 7276 6963 e: vsftpd.servic │ │ │ -00243740: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -00243750: 746f 7070 6564 0a20 2020 2020 2065 6e61 topped. ena │ │ │ -00243760: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ -00243770: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ -00243780: 2020 2077 6865 6e3a 2073 6572 7669 6365 when: service │ │ │ -00243790: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ -002437a0: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ -002437b0: 7673 6674 7064 2e73 6572 7669 6365 222c vsftpd.service", │ │ │ -002437c0: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ -002437d0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ -002437e0: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ -002437f0: 2076 7366 7470 642e 736f 636b 6574 0a20 vsftpd.socket. │ │ │ -00243800: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00243810: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374 in.command: syst │ │ │ -00243820: 656d 6374 6c20 2d71 206c 6973 742d 756e emctl -q list-un │ │ │ -00243830: 6974 2d66 696c 6573 2076 7366 7470 642e it-files vsftpd. │ │ │ -00243840: 736f 636b 6574 0a20 2020 2072 6567 6973 socket. regis │ │ │ -00243850: 7465 723a 2073 6f63 6b65 745f 6669 6c65 ter: socket_file │ │ │ -00243860: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -00243870: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -00243880: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -00243890: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -002438a0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -002438b0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -002438c0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -002438d0: 6e61 6d65 3a20 4469 7361 626c 6520 7673 name: Disable vs │ │ │ -002438e0: 6674 7064 2053 6572 7669 6365 202d 2044 ftpd Service - D │ │ │ -002438f0: 6973 6162 6c65 2053 6f63 6b65 7420 7673 isable Socket vs │ │ │ -00243900: 6674 7064 0a20 2020 2061 6e73 6962 6c65 ftpd. ansible │ │ │ -00243910: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -00243920: 3a0a 2020 2020 2020 6e61 6d65 3a20 7673 :. name: vs │ │ │ -00243930: 6674 7064 2e73 6f63 6b65 740a 2020 2020 ftpd.socket. │ │ │ -00243940: 2020 656e 6162 6c65 643a 2066 616c 7365 enabled: false │ │ │ -00243950: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ -00243960: 6f70 7065 640a 2020 2020 2020 6d61 736b opped. mask │ │ │ -00243970: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -00243980: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ -00243990: 7869 7374 732e 7374 646f 7574 5f6c 696e xists.stdout_lin │ │ │ -002439a0: 6573 2069 7320 7365 6172 6368 2822 7673 es is search("vs │ │ │ -002439b0: 6674 7064 2e73 6f63 6b65 7422 2c20 6d75 ftpd.socket", mu │ │ │ -002439c0: 6c74 696c 696e 653d 5472 7565 290a 2020 ltiline=True). │ │ │ -002439d0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002439e0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002439f0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -00243a00: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00243a10: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -00243a20: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00243a30: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00243a40: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00243a50: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ -00243a60: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ -00243a70: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -00243a80: 640a 2020 2d20 7365 7276 6963 655f 7673 d. - service_vs │ │ │ -00243a90: 6674 7064 5f64 6973 6162 6c65 640a 2020 ftpd_disabled. │ │ │ -00243aa0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -00243ab0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ -00243ac0: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ -00243ad0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ -00243ae0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00242f40: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +00242f50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00242f60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00243030: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00243040: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +002430a0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002430b0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002430c0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002430d0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002430e0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002430f0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ +00243100: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ +00243110: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00243120: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ +00243130: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00243140: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00243150: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00243160: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00243170: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00243180: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00243190: 7669 6365 5f76 7366 7470 645f 6469 7361  vice_vsftpd_disa
│ │ │ +002431a0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ +002431b0: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ +002431c0: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ +002431d0: 6572 7669 6365 2076 7366 7470 640a 2020  ervice vsftpd.  
│ │ │ +002431e0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002431f0: 3a20 4469 7361 626c 6520 7673 6674 7064  : Disable vsftpd
│ │ │ +00243200: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ +00243210: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00243220: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00243230: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00243240: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00243250: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00243260: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00243270: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00243280: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00243290: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +002432a0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +002432b0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002432c0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002432d0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002432e0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002432f0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00243300: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00243310: 6520 7673 6674 7064 2053 6572 7669 6365  e vsftpd Service
│ │ │ +00243320: 202d 2045 6e73 7572 6520 7673 6674 7064   - Ensure vsftpd
│ │ │ +00243330: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +00243340: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +00243350: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +00243360: 2020 2020 2020 6e61 6d65 3a20 7673 6674        name: vsft
│ │ │ +00243370: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +00243380: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00243390: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002433a0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002433b0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002433c0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002433d0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002433e0: 2073 6561 7263 6828 2276 7366 7470 642e   search("vsftpd.
│ │ │ +002433f0: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +00243400: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +00243410: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +00243420: 2045 7869 7374 7320 2d20 7673 6674 7064   Exists - vsftpd
│ │ │ +00243430: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ +00243440: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ +00243450: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ +00243460: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ +00243470: 7320 7673 6674 7064 2e73 6f63 6b65 740a  s vsftpd.socket.
│ │ │ +00243480: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +00243490: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002434a0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +002434b0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +002434c0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +002434d0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +002434e0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002434f0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00243500: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00243510: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ +00243520: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00243530: 536f 636b 6574 2076 7366 7470 640a 2020  Socket vsftpd.  
│ │ │ +00243540: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00243550: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +00243560: 206e 616d 653a 2076 7366 7470 642e 736f   name: vsftpd.so
│ │ │ +00243570: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00243580: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00243590: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002435a0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002435b0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +002435c0: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +002435d0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002435e0: 6561 7263 6828 2276 7366 7470 642e 736f  earch("vsftpd.so
│ │ │ +002435f0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00243600: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00243610: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00243620: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00243630: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00243640: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00243650: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00243660: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00243670: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00243680: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00243690: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002436a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +002436b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002436c0: 6572 7669 6365 5f76 7366 7470 645f 6469  ervice_vsftpd_di
│ │ │ +002436d0: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +002436e0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +002436f0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00243700: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00243710: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00243720: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +00243730: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +002437e0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002437f0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +00243010: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00243020: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00243060: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00243070: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +002438c0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002438d0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00243920: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00243930: 7673 6674 7064 0a0a 636c 6173 7320 6469  vsftpd..class di
│ │ │ +00243940: 7361 626c 655f 7673 6674 7064 207b 0a20  sable_vsftpd {. 
│ │ │ +00243950: 2073 6572 7669 6365 207b 2776 7366 7470   service {'vsftp
│ │ │ +00243960: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +00243970: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00243980: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00243990: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +00243a50: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00243a60: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00243a70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00243a80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00243a90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00243aa0: 7365 2220 6964 3d22 6964 3931 3222 3e3c se" id="id912">< │ │ │ +00243ab0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00243ac0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00243ad0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +00243ae0: 7673 6674 7064 225d 0a3c 2f63 6f64 653e vsftpd"]. │ │ │ 00243af0: 3c2f 7072 653e 3c2f 6469 763e 3c2f 6469
low
Disru │ │ │ +002438a0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002438b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002438f0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00243900: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Remediat │ │ │ -002444f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00244500: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00244580: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00244590: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002445a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002445e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002445f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00244610: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00244620: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00244640: 7265 6d6f 7665 5f66 7470 0a0a 636c 6173  remove_ftp..clas
│ │ │ -00244650: 7320 7265 6d6f 7665 5f66 7470 207b 0a20  s remove_ftp {. 
│ │ │ -00244660: 2070 6163 6b61 6765 207b 2027 6674 7027   package { 'ftp'
│ │ │ -00244670: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00244680: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00244690: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -002446a0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation A │ │ │ -00244750: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00244760: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002447e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00244800: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00244850: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00244880: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002447f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00244810: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00244860: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00244870: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Remo
│ │ │ -002448a0: 7665 2066 7470 2050 6163 6b61 6765 3a20  ve ftp Package: 
│ │ │ -002448b0: 456e 7375 7265 2066 7470 2069 7320 7265  Ensure ftp is re
│ │ │ -002448c0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -002448d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002448e0: 3a0a 2020 2020 6e61 6d65 3a20 6674 700a  :.    name: ftp.
│ │ │ -002448f0: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00244900: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -00244910: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00244920: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -00244930: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00244940: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00244950: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00244960: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00244970: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00244980: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00244990: 0a20 202d 2070 6163 6b61 6765 5f66 7470  .  - package_ftp
│ │ │ -002449a0: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002444f0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ +00244500: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00244510: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00244520: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00244530: 7365 2220 6964 3d22 6964 3931 3422 3e3c se" id="id914">< │ │ │ +00244540: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00244550: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00244560: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00244570: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00244580: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00244590: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002445a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002445e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002445f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00244610: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00244620: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00244640: 2752 656d 6f76 6520 6674 7020 5061 636b 'Remove ftp Pack │ │ │ +00244650: 6167 653a 2045 6e73 7572 6520 6674 7020 age: Ensure ftp │ │ │ +00244660: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ +00244670: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ +00244680: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ +00244690: 2066 7470 0a20 2020 2073 7461 7465 3a20 ftp. state: │ │ │ +002446a0: 6162 7365 6e74 0a20 2074 6167 733a 0a20 absent. tags:. │ │ │ +002446b0: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +002446c0: 0a20 202d 2050 4349 2d44 5353 7634 2d32 . - PCI-DSSv4-2 │ │ │ +002446d0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65 .2.4. - disable │ │ │ +002446e0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +002446f0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +00244700: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +00244710: 2020 2d20 6c6f 775f 7365 7665 7269 7479 - low_severity │ │ │ +00244720: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +00244730: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ +00244740: 655f 6674 705f 7265 6d6f 7665 640a 3c2f e_ftp_removed.
Re │ │ │ +00244800: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00244810: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00244820: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +002448c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00244910: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +00244950: 636c 7564 6520 7265 6d6f 7665 5f66 7470  clude remove_ftp
│ │ │ +00244960: 0a0a 636c 6173 7320 7265 6d6f 7665 5f66  ..class remove_f
│ │ │ +00244970: 7470 207b 0a20 2070 6163 6b61 6765 207b  tp {.  package {
│ │ │ +00244980: 2027 6674 7027 3a0a 2020 2020 656e 7375   'ftp':.    ensu
│ │ │ +00244990: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +002449a0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  002449b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remed │ │ │ -00245590: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002455a0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Co │ │ │ +002448a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002448d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002448f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00244900: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00244920: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00244930: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -00245650: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00245670: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002456a0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00245630: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00245640: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00245660: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00245680: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00245690: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002456d0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002456e0: 6465 2072 656d 6f76 655f 746e 6674 700a de remove_tnftp. │ │ │ -002456f0: 0a63 6c61 7373 2072 656d 6f76 655f 746e .class remove_tn │ │ │ -00245700: 6674 7020 7b0a 2020 7061 636b 6167 6520 ftp {. package │ │ │ -00245710: 7b20 2774 6e66 7470 273a 0a20 2020 2065 { 'tnftp':. e │ │ │ -00245720: 6e73 7572 6520 3d26 6774 3b20 2770 7572 nsure => 'pur │ │ │ -00245730: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f ged',. }.}.
< │ │ │ -00245750: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00245760: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00245770: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00245780: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00245790: 6439 3139 2220 7461 6269 6e64 6578 3d22 d919" tabindex=" │ │ │ -002457a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -002457b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -002457c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -002457d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -002457e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -002457f0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00245800: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00245810: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -00245890: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002458c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002458e0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002458f0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00245910: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00245920: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00245940: 6d65 3a20 2752 656d 6f76 6520 746e 6674  me: 'Remove tnft
│ │ │ -00245950: 7020 5061 636b 6167 653a 2045 6e73 7572  p Package: Ensur
│ │ │ -00245960: 6520 746e 6674 7020 6973 2072 656d 6f76  e tnftp is remov
│ │ │ -00245970: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -00245980: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -00245990: 2020 206e 616d 653a 2074 6e66 7470 0a20     name: tnftp. 
│ │ │ -002459a0: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -002459b0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -002459c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002459d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002459e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002459f0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -00245a00: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00245a10: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -00245a20: 636b 6167 655f 746e 6674 705f 7265 6d6f  ckage_tnftp_remo
│ │ │ -00245a30: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Comp │ │ │ +00245630: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00245640: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00245660: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00245680: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00245690: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002456d0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002456e0: 653a 2027 5265 6d6f 7665 2074 6e66 7470  e: 'Remove tnftp
│ │ │ +002456f0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00245700: 2074 6e66 7470 2069 7320 7265 6d6f 7665   tnftp is remove
│ │ │ +00245710: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00245720: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00245730: 2020 6e61 6d65 3a20 746e 6674 700a 2020    name: tnftp.  
│ │ │ +00245740: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00245750: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00245760: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00245770: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00245780: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00245790: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002457a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002457b0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002457c0: 6b61 6765 5f74 6e66 7470 5f72 656d 6f76  kage_tnftp_remov
│ │ │ +002457d0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002457e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00245890: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +002458a0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00245920: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00245940: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00245990: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002459c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002459e0: 655f 746e 6674 700a 0a63 6c61 7373 2072  e_tnftp..class r
│ │ │ +002459f0: 656d 6f76 655f 746e 6674 7020 7b0a 2020  emove_tnftp {.  
│ │ │ +00245a00: 7061 636b 6167 6520 7b20 2774 6e66 7470  package { 'tnftp
│ │ │ +00245a10: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00245a20: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00245a30: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -00247360: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -00247370: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disr │ │ │ +00245950: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00245960: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002459a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002459b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ -00247410: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00247420: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00247470: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002474b0: 6e63 6c75 6465 2072 656d 6f76 655f 6874  nclude remove_ht
│ │ │ -002474c0: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ -002474d0: 655f 6874 7470 6420 7b0a 2020 7061 636b  e_httpd {.  pack
│ │ │ -002474e0: 6167 6520 7b20 2768 7474 7064 273a 0a20  age { 'httpd':. 
│ │ │ -002474f0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00247500: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00247510: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -002475c0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002475d0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002475e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -00247400: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00247430: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00247440: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00247480: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00247490: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002476b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002476c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00247710: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -00247720: 6c6c 2068 7474 7064 2050 6163 6b61 6765  ll httpd Package
│ │ │ -00247730: 3a20 456e 7375 7265 2068 7474 7064 2069  : Ensure httpd i
│ │ │ -00247740: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00247750: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00247760: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00247770: 6874 7470 640a 2020 2020 7374 6174 653a  httpd.    state:
│ │ │ -00247780: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -00247790: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002477a0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002477b0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002477c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002477d0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -002477e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002477f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00247800: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00247810: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00247820: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00247830: 6167 655f 6874 7470 645f 7265 6d6f 7665  age_httpd_remove
│ │ │ -00247840: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -00247850: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f  verity.
Complexity:low
Disrup │ │ │ -00247690: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002476a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002476e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002476f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +00247410: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002474b0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002474c0: 6c20 6874 7470 6420 5061 636b 6167 653a  l httpd Package:
│ │ │ +002474d0: 2045 6e73 7572 6520 6874 7470 6420 6973   Ensure httpd is
│ │ │ +002474e0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002474f0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00247500: 6167 653a 0a20 2020 206e 616d 653a 2068  age:.    name: h
│ │ │ +00247510: 7474 7064 0a20 2020 2073 7461 7465 3a20  ttpd.    state: 
│ │ │ +00247520: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00247530: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00247540: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00247550: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00247560: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00247570: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00247580: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00247590: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002475a0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002475b0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002475c0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +002475d0: 6765 5f68 7474 7064 5f72 656d 6f76 6564  ge_httpd_removed
│ │ │ +002475e0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002475f0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediatio │ │ │ +002476b0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002476c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00247780: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00247790: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +00247400: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00247430: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00247440: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00247480: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00247490: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +00247750: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00247770: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002477a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +002477c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002477f0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00247800: 6d6f 7665 5f68 7474 7064 0a0a 636c 6173  move_httpd..clas
│ │ │ +00247810: 7320 7265 6d6f 7665 5f68 7474 7064 207b  s remove_httpd {
│ │ │ +00247820: 0a20 2070 6163 6b61 6765 207b 2027 6874  .  package { 'ht
│ │ │ +00247830: 7470 6427 3a0a 2020 2020 656e 7375 7265  tpd':.    ensure
│ │ │ +00247840: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00247850: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Re │ │ │ -002488c0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002488d0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002488e0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002488f0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00248900: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00248910: 7365 2220 6964 3d22 6964 3932 3622 3e3c se" id="id926">< │ │ │ -00248920: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00248930: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00248940: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00248950: 6874 7470 6422 5d0a 3c2f 636f 6465 3e3c httpd"].< │ │ │ -00248960: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00248a10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00248a20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00248aa0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00248ab0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00248ac0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00248b00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00248b10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00248b30: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00248b50: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00248b60: 7361 626c 655f 6874 7470 640a 0a63 6c61  sable_httpd..cla
│ │ │ -00248b70: 7373 2064 6973 6162 6c65 5f68 7474 7064  ss disable_httpd
│ │ │ -00248b80: 207b 0a20 2073 6572 7669 6365 207b 2768   {.  service {'h
│ │ │ -00248b90: 7474 7064 273a 0a20 2020 2065 6e61 626c  ttpd':.    enabl
│ │ │ -00248ba0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00248bb0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00248bc0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00248bd0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -00248c90: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00248ca0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -00248d70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00248d80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00248de0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00248df0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00248e00: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00248e10: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00248e20: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00248e30: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00248e40: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -00248e50: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00248e60: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -00248e70: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00248e80: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00248e90: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00248ea0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00248eb0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -00248ec0: 5f68 7474 7064 5f64 6973 6162 6c65 640a  _httpd_disabled.
│ │ │ -00248ed0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ -00248ee0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469  rity..- name: Di
│ │ │ -00248ef0: 7361 626c 6520 6874 7470 6420 5365 7276  sable httpd Serv
│ │ │ -00248f00: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00248f10: 7276 6963 6520 6874 7470 640a 2020 626c  rvice httpd.  bl
│ │ │ -00248f20: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00248f30: 4469 7361 626c 6520 6874 7470 6420 5365  Disable httpd Se
│ │ │ -00248f40: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00248f50: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00248f60: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00248f70: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00248f80: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00248f90: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00248fa0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00248fb0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00248fc0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00248fd0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00248fe0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00248ff0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00249000: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00249010: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00249020: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00249030: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00249040: 206e 616d 653a 2044 6973 6162 6c65 2068   name: Disable h
│ │ │ -00249050: 7474 7064 2053 6572 7669 6365 202d 2045  ttpd Service - E
│ │ │ -00249060: 6e73 7572 6520 6874 7470 642e 7365 7276  nsure httpd.serv
│ │ │ -00249070: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00249080: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00249090: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -002490a0: 206e 616d 653a 2068 7474 7064 2e73 6572   name: httpd.ser
│ │ │ -002490b0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -002490c0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002490d0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002490e0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -002490f0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00249100: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00249110: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00249120: 6828 2268 7474 7064 2e73 6572 7669 6365  h("httpd.service
│ │ │ -00249130: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00249140: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00249150: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00249160: 202d 2068 7474 7064 2e73 6f63 6b65 740a   - httpd.socket.
│ │ │ -00249170: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00249180: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00249190: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002491a0: 6e69 742d 6669 6c65 7320 6874 7470 642e  nit-files httpd.
│ │ │ -002491b0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002491c0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -002491d0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002491e0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002491f0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00249200: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00249210: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00249220: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00249230: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00249240: 6e61 6d65 3a20 4469 7361 626c 6520 6874  name: Disable ht
│ │ │ -00249250: 7470 6420 5365 7276 6963 6520 2d20 4469  tpd Service - Di
│ │ │ -00249260: 7361 626c 6520 536f 636b 6574 2068 7474  sable Socket htt
│ │ │ -00249270: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -00249280: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00249290: 2020 2020 2020 6e61 6d65 3a20 6874 7470        name: http
│ │ │ -002492a0: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -002492b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002492c0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002492d0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002492e0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002492f0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00249300: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00249310: 6973 2073 6561 7263 6828 2268 7474 7064  is search("httpd
│ │ │ -00249320: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00249330: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00249340: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00249350: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00249360: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00249370: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00249380: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00249390: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -002493a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -002493b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002493c0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ -002493d0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -002493e0: 7276 6963 655f 6874 7470 645f 6469 7361  rvice_httpd_disa
│ │ │ -002493f0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00249400: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00249410: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ -00249420: 6974 790a 2020 7768 656e 3a20 2722 6c69  ity.  when: '"li
│ │ │ -00249430: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00249440: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00249450: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.
low
Disru │ │ │ -00248d50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00248d60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00248da0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00248db0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +00248970: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00248980: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002489d0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00248a10: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00248a20: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00248a30: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00248a40: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00248a50: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +00248a60: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +00248a70: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +00248a80: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +00248a90: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +00248aa0: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ +00248ab0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00248ac0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00248ad0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00248ae0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00248af0: 640a 2020 2d20 7365 7276 6963 655f 6874  d.  - service_ht
│ │ │ +00248b00: 7470 645f 6469 7361 626c 6564 0a20 202d  tpd_disabled.  -
│ │ │ +00248b10: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00248b20: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +00248b30: 6c65 2068 7474 7064 2053 6572 7669 6365  le httpd Service
│ │ │ +00248b40: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00248b50: 6365 2068 7474 7064 0a20 2062 6c6f 636b  ce httpd.  block
│ │ │ +00248b60: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00248b70: 6162 6c65 2068 7474 7064 2053 6572 7669  able httpd Servi
│ │ │ +00248b80: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00248b90: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00248ba0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +00248bb0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00248bc0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00248bd0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00248be0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +00248bf0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +00248c00: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +00248c10: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +00248c20: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00248c30: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00248c40: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00248c50: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00248c60: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00248c70: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +00248c80: 6d65 3a20 4469 7361 626c 6520 6874 7470  me: Disable http
│ │ │ +00248c90: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ +00248ca0: 7265 2068 7474 7064 2e73 6572 7669 6365  re httpd.service
│ │ │ +00248cb0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00248cc0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00248cd0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00248ce0: 6d65 3a20 6874 7470 642e 7365 7276 6963  me: httpd.servic
│ │ │ +00248cf0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00248d00: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00248d10: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00248d20: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00248d30: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00248d40: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00248d50: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00248d60: 6874 7470 642e 7365 7276 6963 6522 2c20  httpd.service", 
│ │ │ +00248d70: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00248d80: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00248d90: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00248da0: 6874 7470 642e 736f 636b 6574 0a20 2020  httpd.socket.   
│ │ │ +00248db0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00248dc0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00248dd0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00248de0: 2d66 696c 6573 2068 7474 7064 2e73 6f63  -files httpd.soc
│ │ │ +00248df0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00248e00: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00248e10: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00248e20: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00248e30: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00248e40: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00248e50: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00248e60: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00248e70: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00248e80: 653a 2044 6973 6162 6c65 2068 7474 7064  e: Disable httpd
│ │ │ +00248e90: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00248ea0: 6c65 2053 6f63 6b65 7420 6874 7470 640a  le Socket httpd.
│ │ │ +00248eb0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00248ec0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00248ed0: 2020 206e 616d 653a 2068 7474 7064 2e73     name: httpd.s
│ │ │ +00248ee0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00248ef0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00248f00: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00248f10: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00248f20: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00248f30: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00248f40: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00248f50: 7365 6172 6368 2822 6874 7470 642e 736f  search("httpd.so
│ │ │ +00248f60: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00248f70: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00248f80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00248f90: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00248fa0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00248fb0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00248fc0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +00248fd0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00248fe0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00248ff0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00249000: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +00249010: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00249020: 6365 5f68 7474 7064 5f64 6973 6162 6c65  ce_httpd_disable
│ │ │ +00249030: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00249040: 7276 6963 655f 626c 6f63 6b0a 2020 2d20  rvice_block.  - 
│ │ │ +00249050: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +00249060: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ +00249070: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +00249080: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +00249090: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002490a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00249150: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00249160: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ +00248960: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00248990: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002489a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002489e0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002489f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00249230: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00249240: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00249290: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002492a0: 6874 7470 640a 0a63 6c61 7373 2064 6973  httpd..class dis
│ │ │ +002492b0: 6162 6c65 5f68 7474 7064 207b 0a20 2073  able_httpd {.  s
│ │ │ +002492c0: 6572 7669 6365 207b 2768 7474 7064 273a  ervice {'httpd':
│ │ │ +002492d0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +002492e0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +002492f0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +00249300: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +002493c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +002493d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +002493e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00249430: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00249440: 5d0a 6d61 736b 6564 203d 205b 2268 7474  ].masked = ["htt
│ │ │ +00249450: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
│ │ │ 00249480: 3c2f 7461 626c 653e 3c2f 7464 3e3c 2f74
low
Disru │ │ │ +00249210: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00249220: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00249260: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00249270: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Remediat │ │ │ -0024a4f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0024a500: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0024a580: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0024a590: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0024a5a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0024a5e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0024a5f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0024a610: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0024a620: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0024a640: 7265 6d6f 7665 5f6e 6769 6e78 0a0a 636c  remove_nginx..cl
│ │ │ -0024a650: 6173 7320 7265 6d6f 7665 5f6e 6769 6e78  ass remove_nginx
│ │ │ -0024a660: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -0024a670: 6e67 696e 7827 3a0a 2020 2020 656e 7375  nginx':.    ensu
│ │ │ -0024a680: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0024a690: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0024a6a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0024a750: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0024a760: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0024a770: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0024a7a0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0024a810: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0024a830: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0024a860: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0024a7f0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0024a800: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0024a840: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0024a850: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0024a8a0: 2027 556e 696e 7374 616c 6c20 6e67 696e 'Uninstall ngin │ │ │ -0024a8b0: 7820 5061 636b 6167 653a 2045 6e73 7572 x Package: Ensur │ │ │ -0024a8c0: 6520 6e67 696e 7820 6973 2072 656d 6f76 e nginx is remov │ │ │ -0024a8d0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -0024a8e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -0024a8f0: 2020 206e 616d 653a 206e 6769 6e78 0a20 name: nginx. │ │ │ -0024a900: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -0024a910: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -0024a920: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -0024a930: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -0024a940: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -0024a950: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -0024a960: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -0024a970: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -0024a980: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -0024a990: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -0024a9a0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -0024a9b0: 0a20 202d 2070 6163 6b61 6765 5f6e 6769 . - package_ngi │ │ │ -0024a9c0: 6e78 5f72 656d 6f76 6564 0a20 202d 2075 nx_removed. - u │ │ │ -0024a9d0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a nknown_severity. │ │ │ +0024a4f0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +0024a500: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0024a510: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0024a520: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0024a530: 7365 2220 6964 3d22 6964 3933 3022 3e3c se" id="id930">< │ │ │ +0024a540: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0024a550: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0024a560: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0024a570: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0024a580: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0024a590: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0024a5a0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0024a5e0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0024a5f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0024a610: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0024a620: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0024a640: 2755 6e69 6e73 7461 6c6c 206e 6769 6e78 'Uninstall nginx │ │ │ +0024a650: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +0024a660: 206e 6769 6e78 2069 7320 7265 6d6f 7665 nginx is remove │ │ │ +0024a670: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +0024a680: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +0024a690: 2020 6e61 6d65 3a20 6e67 696e 780a 2020 name: nginx. │ │ │ +0024a6a0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +0024a6b0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0024a6c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0024a6d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0024a6e0: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +0024a6f0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +0024a700: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0024a710: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +0024a720: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0024a730: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +0024a740: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0024a750: 2020 2d20 7061 636b 6167 655f 6e67 696e - package_ngin │ │ │ +0024a760: 785f 7265 6d6f 7665 640a 2020 2d20 756e x_removed. - un │ │ │ +0024a770: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c known_severity.< │ │ │ +0024a780: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ +0024a830: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0024a840: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

< │ │ │ +0024a8e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024a8f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024a940: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0024a980: 6e63 6c75 6465 2072 656d 6f76 655f 6e67  nclude remove_ng
│ │ │ +0024a990: 696e 780a 0a63 6c61 7373 2072 656d 6f76  inx..class remov
│ │ │ +0024a9a0: 655f 6e67 696e 7820 7b0a 2020 7061 636b  e_nginx {.  pack
│ │ │ +0024a9b0: 6167 6520 7b20 276e 6769 6e78 273a 0a20  age { 'nginx':. 
│ │ │ +0024a9c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0024a9d0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0024a9e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediatio │ │ │ -0024b4e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0024b4f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0024b500: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +0024a8d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024a900: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024a910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024a950: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0024a960: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -0024b6d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0024b770: 636c 7564 6520 6469 7361 626c 655f 6e67  clude disable_ng
│ │ │ -0024b780: 696e 780a 0a63 6c61 7373 2064 6973 6162  inx..class disab
│ │ │ -0024b790: 6c65 5f6e 6769 6e78 207b 0a20 2073 6572  le_nginx {.  ser
│ │ │ -0024b7a0: 7669 6365 207b 276e 6769 6e78 273a 0a20  vice {'nginx':. 
│ │ │ -0024b7b0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0024b7c0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0024b7d0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0024b7e0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0024b7f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0024b8a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0024b8b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0024b8c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0024b8f0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
│ │ │ -0024b6c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0024b6f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0024b700: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0024b740: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0024b750: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0024b960: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0024b980: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0024b9b0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0024b940: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0024b950: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0024b990: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0024b9a0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0024b9f0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0024ba00: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0024ba10: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0024ba20: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0024ba30: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ -0024ba40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ -0024ba50: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ -0024ba60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ -0024ba70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ -0024ba80: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ -0024ba90: 5f6e 6769 6e78 5f64 6973 6162 6c65 640a _nginx_disabled. │ │ │ -0024baa0: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665 - unknown_seve │ │ │ -0024bab0: 7269 7479 0a0a 2d20 6e61 6d65 3a20 4469 rity..- name: Di │ │ │ -0024bac0: 7361 626c 6520 6e67 696e 7820 5365 7276 sable nginx Serv │ │ │ -0024bad0: 6963 6520 2d20 4469 7361 626c 6520 7365 ice - Disable se │ │ │ -0024bae0: 7276 6963 6520 6e67 696e 780a 2020 626c rvice nginx. bl │ │ │ -0024baf0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -0024bb00: 4469 7361 626c 6520 6e67 696e 7820 5365 Disable nginx Se │ │ │ -0024bb10: 7276 6963 6520 2d20 436f 6c6c 6563 7420 rvice - Collect │ │ │ -0024bb20: 7379 7374 656d 6420 5365 7276 6963 6573 systemd Services │ │ │ -0024bb30: 2050 7265 7365 6e74 2069 6e20 7468 6520 Present in the │ │ │ -0024bb40: 5379 7374 656d 0a20 2020 2061 6e73 6962 System. ansib │ │ │ -0024bb50: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -0024bb60: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -0024bb70: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -0024bb80: 202d 2d74 7970 6520 7365 7276 6963 650a --type service. │ │ │ -0024bb90: 2020 2020 7265 6769 7374 6572 3a20 7365 register: se │ │ │ -0024bba0: 7276 6963 655f 6578 6973 7473 0a20 2020 rvice_exists. │ │ │ -0024bbb0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -0024bbc0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -0024bbd0: 7768 656e 3a20 7365 7276 6963 655f 6578 when: service_ex │ │ │ -0024bbe0: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -0024bbf0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -0024bc00: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -0024bc10: 206e 616d 653a 2044 6973 6162 6c65 206e name: Disable n │ │ │ -0024bc20: 6769 6e78 2053 6572 7669 6365 202d 2045 ginx Service - E │ │ │ -0024bc30: 6e73 7572 6520 6e67 696e 782e 7365 7276 nsure nginx.serv │ │ │ -0024bc40: 6963 6520 6973 204d 6173 6b65 640a 2020 ice is Masked. │ │ │ -0024bc50: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0024bc60: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ -0024bc70: 206e 616d 653a 206e 6769 6e78 2e73 6572 name: nginx.ser │ │ │ -0024bc80: 7669 6365 0a20 2020 2020 2073 7461 7465 vice. state │ │ │ -0024bc90: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ -0024bca0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -0024bcb0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ -0024bcc0: 650a 2020 2020 7768 656e 3a20 7365 7276 e. when: serv │ │ │ -0024bcd0: 6963 655f 6578 6973 7473 2e73 7464 6f75 ice_exists.stdou │ │ │ -0024bce0: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ -0024bcf0: 6828 226e 6769 6e78 2e73 6572 7669 6365 h("nginx.service │ │ │ -0024bd00: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -0024bd10: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ -0024bd20: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ -0024bd30: 202d 206e 6769 6e78 2e73 6f63 6b65 740a - nginx.socket. │ │ │ -0024bd40: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -0024bd50: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -0024bd60: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -0024bd70: 6e69 742d 6669 6c65 7320 6e67 696e 782e nit-files nginx. │ │ │ -0024bd80: 736f 636b 6574 0a20 2020 2072 6567 6973 socket. regis │ │ │ -0024bd90: 7465 723a 2073 6f63 6b65 745f 6669 6c65 ter: socket_file │ │ │ -0024bda0: 5f65 7869 7374 730a 2020 2020 6368 616e _exists. chan │ │ │ -0024bdb0: 6765 645f 7768 656e 3a20 6661 6c73 650a ged_when: false. │ │ │ -0024bdc0: 2020 2020 6661 696c 6564 5f77 6865 6e3a failed_when: │ │ │ -0024bdd0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -0024bde0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -0024bdf0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -0024be00: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -0024be10: 6e61 6d65 3a20 4469 7361 626c 6520 6e67 name: Disable ng │ │ │ -0024be20: 696e 7820 5365 7276 6963 6520 2d20 4469 inx Service - Di │ │ │ -0024be30: 7361 626c 6520 536f 636b 6574 206e 6769 sable Socket ngi │ │ │ -0024be40: 6e78 0a20 2020 2061 6e73 6962 6c65 2e62 nx. ansible.b │ │ │ -0024be50: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ -0024be60: 2020 2020 2020 6e61 6d65 3a20 6e67 696e name: ngin │ │ │ -0024be70: 782e 736f 636b 6574 0a20 2020 2020 2065 x.socket. e │ │ │ -0024be80: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -0024be90: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ -0024bea0: 6564 0a20 2020 2020 206d 6173 6b65 643a ed. masked: │ │ │ -0024beb0: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -0024bec0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -0024bed0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ -0024bee0: 6973 2073 6561 7263 6828 226e 6769 6e78 is search("nginx │ │ │ -0024bef0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c .socket", multil │ │ │ -0024bf00: 696e 653d 5472 7565 290a 2020 7461 6773 ine=True). tags │ │ │ -0024bf10: 3a0a 2020 2d20 6469 7361 626c 655f 7374 :. - disable_st │ │ │ -0024bf20: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0024bf30: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0024bf40: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0024bf50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ -0024bf60: 640a 2020 2d20 7365 7276 6963 655f 6e67 d. - service_ng │ │ │ -0024bf70: 696e 785f 6469 7361 626c 6564 0a20 202d inx_disabled. - │ │ │ -0024bf80: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ -0024bf90: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ -0024bfa0: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ -0024bfb0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -0024bfc0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -0024bfd0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'.
< │ │ │ +0024b570: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +0024b580: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +0024b5a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +0024b5b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +0024b5d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +0024b5f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable

│ │ │ +0024b620: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0024b630: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0024b640: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0024b650: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0024b660: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0024b670: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0024b680: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0024b690: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0024b6a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0024b6b0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0024b6c0: 640a 2020 2d20 7365 7276 6963 655f 6e67  d.  - service_ng
│ │ │ +0024b6d0: 696e 785f 6469 7361 626c 6564 0a20 202d  inx_disabled.  -
│ │ │ +0024b6e0: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +0024b6f0: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +0024b700: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ +0024b710: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +0024b720: 6365 206e 6769 6e78 0a20 2062 6c6f 636b  ce nginx.  block
│ │ │ +0024b730: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +0024b740: 6162 6c65 206e 6769 6e78 2053 6572 7669  able nginx Servi
│ │ │ +0024b750: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +0024b760: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +0024b770: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +0024b780: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +0024b790: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +0024b7a0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +0024b7b0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +0024b7c0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +0024b7d0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +0024b7e0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +0024b7f0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0024b800: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0024b810: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +0024b820: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +0024b830: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +0024b840: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +0024b850: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ +0024b860: 7820 5365 7276 6963 6520 2d20 456e 7375  x Service - Ensu
│ │ │ +0024b870: 7265 206e 6769 6e78 2e73 6572 7669 6365  re nginx.service
│ │ │ +0024b880: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +0024b890: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +0024b8a0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +0024b8b0: 6d65 3a20 6e67 696e 782e 7365 7276 6963  me: nginx.servic
│ │ │ +0024b8c0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0024b8d0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +0024b8e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0024b8f0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0024b900: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +0024b910: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0024b920: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0024b930: 6e67 696e 782e 7365 7276 6963 6522 2c20  nginx.service", 
│ │ │ +0024b940: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +0024b950: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +0024b960: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +0024b970: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ +0024b980: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0024b990: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0024b9a0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0024b9b0: 2d66 696c 6573 206e 6769 6e78 2e73 6f63  -files nginx.soc
│ │ │ +0024b9c0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +0024b9d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0024b9e0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0024b9f0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0024ba00: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +0024ba10: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0024ba20: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0024ba30: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0024ba40: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0024ba50: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ +0024ba60: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +0024ba70: 6c65 2053 6f63 6b65 7420 6e67 696e 780a  le Socket nginx.
│ │ │ +0024ba80: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0024ba90: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0024baa0: 2020 206e 616d 653a 206e 6769 6e78 2e73     name: nginx.s
│ │ │ +0024bab0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +0024bac0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0024bad0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0024bae0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +0024baf0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +0024bb00: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0024bb10: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +0024bb20: 7365 6172 6368 2822 6e67 696e 782e 736f  search("nginx.so
│ │ │ +0024bb30: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0024bb40: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0024bb50: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0024bb60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0024bb70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0024bb80: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0024bb90: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0024bba0: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ +0024bbb0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +0024bbc0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +0024bbd0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ +0024bbe0: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ +0024bbf0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +0024bc00: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0024bc10: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remedi │ │ │ +0024bcd0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0024bce0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0024bcf0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0024bd20: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0024bd90: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0024bdb0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0024bde0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0024be00: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0024bd70: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0024bd80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0024bdc0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0024bdd0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0024be20: 6469 7361 626c 655f 6e67 696e 780a 0a63 disable_nginx..c │ │ │ +0024be30: 6c61 7373 2064 6973 6162 6c65 5f6e 6769 lass disable_ngi │ │ │ +0024be40: 6e78 207b 0a20 2073 6572 7669 6365 207b nx {. service { │ │ │ +0024be50: 276e 6769 6e78 273a 0a20 2020 2065 6e61 'nginx':. ena │ │ │ +0024be60: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ +0024be70: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0024be80: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ +0024be90: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ +0024bea0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation O │ │ │ +0024bf50: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +0024bf60: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0024bf70: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ +0024bfb0: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0024bfc0: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +0024bfd0: 203d 205b 226e 6769 6e78 225d 0a3c 2f63   = ["nginx"].
│ │ │ 0024bff0: 3c2f 6469 763e 3c2f 7464 3e3c 2f74 723e
│ │ │ 0024c000: 3c2f 7462 6f64 793e 3c2f 7461 626c 653e │ │ │ 0024c010: 3c2f 7464 3e3c 2f74 723e 3c74 7220 6461 R │ │ │ -0024cf40: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0024cf50: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0024cff0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0024d000: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0024d050: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0024d090: 6e63 6c75 6465 2072 656d 6f76 655f 646f  nclude remove_do
│ │ │ -0024d0a0: 7665 636f 740a 0a63 6c61 7373 2072 656d  vecot..class rem
│ │ │ -0024d0b0: 6f76 655f 646f 7665 636f 7420 7b0a 2020  ove_dovecot {.  
│ │ │ -0024d0c0: 7061 636b 6167 6520 7b20 2764 6f76 6563  package { 'dovec
│ │ │ -0024d0d0: 6f74 273a 0a20 2020 2065 6e73 7572 6520  ot':.    ensure 
│ │ │ -0024d0e0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -0024d0f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0024d1b0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0024d1c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0024d240: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0024d280: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
C │ │ │ -0024cfe0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0024d010: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0024d020: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0024d060: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0024d070: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexit │ │ │ -0024d250: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0024d270: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0024d2a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0024d2c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -0024d2f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0024d300: 6e69 6e73 7461 6c6c 2064 6f76 6563 6f74  ninstall dovecot
│ │ │ -0024d310: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -0024d320: 2064 6f76 6563 6f74 2069 7320 7265 6d6f   dovecot is remo
│ │ │ -0024d330: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -0024d340: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0024d350: 2020 2020 6e61 6d65 3a20 646f 7665 636f      name: doveco
│ │ │ -0024d360: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ -0024d370: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -0024d380: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -0024d390: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0024d3a0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0024d3b0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0024d3c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0024d3d0: 7061 636b 6167 655f 646f 7665 636f 745f  package_dovecot_
│ │ │ -0024d3e0: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ -0024d3f0: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +0024cff0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0024d090: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0024d0a0: 6c20 646f 7665 636f 7420 5061 636b 6167  l dovecot Packag
│ │ │ +0024d0b0: 653a 2045 6e73 7572 6520 646f 7665 636f  e: Ensure doveco
│ │ │ +0024d0c0: 7420 6973 2072 656d 6f76 6564 270a 2020  t is removed'.  
│ │ │ +0024d0d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0024d0e0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ +0024d0f0: 653a 2064 6f76 6563 6f74 0a20 2020 2073  e: dovecot.    s
│ │ │ +0024d100: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0024d110: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +0024d120: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0024d130: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0024d140: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0024d150: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0024d160: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +0024d170: 5f64 6f76 6563 6f74 5f72 656d 6f76 6564  _dovecot_removed
│ │ │ +0024d180: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +0024d190: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediatio │ │ │ +0024d250: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0024d260: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0024d320: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024d330: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0024cfe0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0024d010: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0024d020: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0024d060: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0024d070: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +0024d2f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0024d310: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0024d340: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0024d360: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0024d390: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0024d3a0: 6d6f 7665 5f64 6f76 6563 6f74 0a0a 636c  move_dovecot..cl
│ │ │ +0024d3b0: 6173 7320 7265 6d6f 7665 5f64 6f76 6563  ass remove_dovec
│ │ │ +0024d3c0: 6f74 207b 0a20 2070 6163 6b61 6765 207b  ot {.  package {
│ │ │ +0024d3d0: 2027 646f 7665 636f 7427 3a0a 2020 2020   'dovecot':.    
│ │ │ +0024d3e0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0024d3f0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0024d410: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0024df10: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -0024df20: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -0024df30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -0024df80: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -0024df90: 6573 5d0a 6d61 736b 6564 203d 205b 2264 es].masked = ["d │ │ │ -0024dfa0: 6f76 6563 6f74 225d 0a3c 2f63 6f64 653e ovecot"]. │ │ │ -0024dfb0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -0024e060: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0024e070: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024e080: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024e090: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024e0a0: 7365 2220 6964 3d22 6964 3934 3322 3e3c se" id="id943">< │ │ │ -0024e0b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024e0c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024e0d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024e0e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024e0f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024e100: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024e110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024e150: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024e160: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024e180: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -0024e190: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -0024e1b0: 6973 6162 6c65 5f64 6f76 6563 6f74 0a0a  isable_dovecot..
│ │ │ -0024e1c0: 636c 6173 7320 6469 7361 626c 655f 646f  class disable_do
│ │ │ -0024e1d0: 7665 636f 7420 7b0a 2020 7365 7276 6963  vecot {.  servic
│ │ │ -0024e1e0: 6520 7b27 646f 7665 636f 7427 3a0a 2020  e {'dovecot':.  
│ │ │ -0024e1f0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -0024e200: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -0024e210: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -0024e220: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -0024e230: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -0024e2e0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -0024e2f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0024e300: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0024e310: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0024e320: 7365 2220 6964 3d22 6964 3934 3422 3e3c se" id="id944">< │ │ │ -0024e330: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0024e340: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0024e350: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0024e360: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0024e370: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -0024e380: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0024e390: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -0024e3d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0024e3e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -0024e400: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -0024e410: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -0024e430: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -0024e440: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -0024e450: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -0024e460: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -0024e470: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -0024e480: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0024e490: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0024e4a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0024e4b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -0024e4c0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -0024e4d0: 646f 7665 636f 745f 6469 7361 626c 6564 dovecot_disabled │ │ │ -0024e4e0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576 . - unknown_sev │ │ │ -0024e4f0: 6572 6974 790a 0a2d 206e 616d 653a 2044 erity..- name: D │ │ │ -0024e500: 6973 6162 6c65 2044 6f76 6563 6f74 2053 isable Dovecot S │ │ │ -0024e510: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -0024e520: 2073 6572 7669 6365 2064 6f76 6563 6f74 service dovecot │ │ │ -0024e530: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e . block:.. - n │ │ │ -0024e540: 616d 653a 2044 6973 6162 6c65 2044 6f76 ame: Disable Dov │ │ │ -0024e550: 6563 6f74 2053 6572 7669 6365 202d 2043 ecot Service - C │ │ │ -0024e560: 6f6c 6c65 6374 2073 7973 7465 6d64 2053 ollect systemd S │ │ │ -0024e570: 6572 7669 6365 7320 5072 6573 656e 7420 ervices Present │ │ │ -0024e580: 696e 2074 6865 2053 7973 7465 6d0a 2020 in the System. │ │ │ -0024e590: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ -0024e5a0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465 n.command: syste │ │ │ -0024e5b0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69 mctl -q list-uni │ │ │ -0024e5c0: 742d 6669 6c65 7320 2d2d 7479 7065 2073 t-files --type s │ │ │ -0024e5d0: 6572 7669 6365 0a20 2020 2072 6567 6973 ervice. regis │ │ │ -0024e5e0: 7465 723a 2073 6572 7669 6365 5f65 7869 ter: service_exi │ │ │ -0024e5f0: 7374 730a 2020 2020 6368 616e 6765 645f sts. changed_ │ │ │ -0024e600: 7768 656e 3a20 6661 6c73 650a 2020 2020 when: false. │ │ │ -0024e610: 6661 696c 6564 5f77 6865 6e3a 2073 6572 failed_when: ser │ │ │ -0024e620: 7669 6365 5f65 7869 7374 732e 7263 206e vice_exists.rc n │ │ │ -0024e630: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020 ot in [0, 1]. │ │ │ -0024e640: 2063 6865 636b 5f6d 6f64 653a 2066 616c check_mode: fal │ │ │ -0024e650: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469 se.. - name: Di │ │ │ -0024e660: 7361 626c 6520 446f 7665 636f 7420 5365 sable Dovecot Se │ │ │ -0024e670: 7276 6963 6520 2d20 456e 7375 7265 2064 rvice - Ensure d │ │ │ -0024e680: 6f76 6563 6f74 2e73 6572 7669 6365 2069 ovecot.service i │ │ │ -0024e690: 7320 4d61 736b 6564 0a20 2020 2061 6e73 s Masked. ans │ │ │ -0024e6a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ -0024e6b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ -0024e6c0: 3a20 646f 7665 636f 742e 7365 7276 6963 : dovecot.servic │ │ │ -0024e6d0: 650a 2020 2020 2020 7374 6174 653a 2073 e. state: s │ │ │ -0024e6e0: 746f 7070 6564 0a20 2020 2020 2065 6e61 topped. ena │ │ │ -0024e6f0: 626c 6564 3a20 6661 6c73 650a 2020 2020 bled: false. │ │ │ -0024e700: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ -0024e710: 2020 2077 6865 6e3a 2073 6572 7669 6365 when: service │ │ │ -0024e720: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ -0024e730: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ -0024e740: 646f 7665 636f 742e 7365 7276 6963 6522 dovecot.service" │ │ │ -0024e750: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -0024e760: 290a 0a20 202d 206e 616d 653a 2055 6e69 ).. - name: Uni │ │ │ -0024e770: 7420 536f 636b 6574 2045 7869 7374 7320 t Socket Exists │ │ │ -0024e780: 2d20 646f 7665 636f 742e 736f 636b 6574 - dovecot.socket │ │ │ -0024e790: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -0024e7a0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ -0024e7b0: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ -0024e7c0: 756e 6974 2d66 696c 6573 2064 6f76 6563 unit-files dovec │ │ │ -0024e7d0: 6f74 2e73 6f63 6b65 740a 2020 2020 7265 ot.socket. re │ │ │ -0024e7e0: 6769 7374 6572 3a20 736f 636b 6574 5f66 gister: socket_f │ │ │ -0024e7f0: 696c 655f 6578 6973 7473 0a20 2020 2063 ile_exists. c │ │ │ -0024e800: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ -0024e810: 7365 0a20 2020 2066 6169 6c65 645f 7768 se. failed_wh │ │ │ -0024e820: 656e 3a20 736f 636b 6574 5f66 696c 655f en: socket_file_ │ │ │ -0024e830: 6578 6973 7473 2e72 6320 6e6f 7420 696e exists.rc not in │ │ │ -0024e840: 205b 302c 2031 5d0a 2020 2020 6368 6563 [0, 1]. chec │ │ │ -0024e850: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20 k_mode: false.. │ │ │ -0024e860: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ -0024e870: 2044 6f76 6563 6f74 2053 6572 7669 6365 Dovecot Service │ │ │ -0024e880: 202d 2044 6973 6162 6c65 2053 6f63 6b65 - Disable Socke │ │ │ -0024e890: 7420 646f 7665 636f 740a 2020 2020 616e t dovecot. an │ │ │ -0024e8a0: 7369 626c 652e 6275 696c 7469 6e2e 7379 sible.builtin.sy │ │ │ -0024e8b0: 7374 656d 643a 0a20 2020 2020 206e 616d stemd:. nam │ │ │ -0024e8c0: 653a 2064 6f76 6563 6f74 2e73 6f63 6b65 e: dovecot.socke │ │ │ -0024e8d0: 740a 2020 2020 2020 656e 6162 6c65 643a t. enabled: │ │ │ -0024e8e0: 2066 616c 7365 0a20 2020 2020 2073 7461 false. sta │ │ │ -0024e8f0: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ -0024e900: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ -0024e910: 2020 2077 6865 6e3a 2073 6f63 6b65 745f when: socket_ │ │ │ -0024e920: 6669 6c65 5f65 7869 7374 732e 7374 646f file_exists.stdo │ │ │ -0024e930: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ -0024e940: 6368 2822 646f 7665 636f 742e 736f 636b ch("dovecot.sock │ │ │ -0024e950: 6574 222c 206d 756c 7469 6c69 6e65 3d54 et", multiline=T │ │ │ -0024e960: 7275 6529 0a20 2074 6167 733a 0a20 202d rue). tags:. - │ │ │ -0024e970: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0024e980: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0024e990: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0024e9a0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72 ruption. - no_r │ │ │ -0024e9b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -0024e9c0: 2073 6572 7669 6365 5f64 6f76 6563 6f74 service_dovecot │ │ │ -0024e9d0: 5f64 6973 6162 6c65 640a 2020 2d20 7370 _disabled. - sp │ │ │ -0024e9e0: 6563 6961 6c5f 7365 7276 6963 655f 626c ecial_service_bl │ │ │ -0024e9f0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f ock. - unknown_ │ │ │ -0024ea00: 7365 7665 7269 7479 0a20 2077 6865 6e3a severity. when: │ │ │ -0024ea10: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ -0024ea20: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ -0024ea30: 7061 636b 6167 6573 270a 3c2f 636f 6465 packages'. │ │ │ +0024df30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +0024dfd0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0024e020: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +0024e060: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0024e070: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0024e080: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0024e090: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0024e0a0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0024e0b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0024e0c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0024e0d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0024e0e0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0024e0f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0024e100: 7669 6365 5f64 6f76 6563 6f74 5f64 6973  vice_dovecot_dis
│ │ │ +0024e110: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ +0024e120: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ +0024e130: 6d65 3a20 4469 7361 626c 6520 446f 7665  me: Disable Dove
│ │ │ +0024e140: 636f 7420 5365 7276 6963 6520 2d20 4469  cot Service - Di
│ │ │ +0024e150: 7361 626c 6520 7365 7276 6963 6520 646f  sable service do
│ │ │ +0024e160: 7665 636f 740a 2020 626c 6f63 6b3a 0a0a  vecot.  block:..
│ │ │ +0024e170: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +0024e180: 6520 446f 7665 636f 7420 5365 7276 6963  e Dovecot Servic
│ │ │ +0024e190: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +0024e1a0: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +0024e1b0: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +0024e1c0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0024e1d0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0024e1e0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0024e1f0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0024e200: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0024e210: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0024e220: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0024e230: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0024e240: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0024e250: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0024e260: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0024e270: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0024e280: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0024e290: 653a 2044 6973 6162 6c65 2044 6f76 6563  e: Disable Dovec
│ │ │ +0024e2a0: 6f74 2053 6572 7669 6365 202d 2045 6e73  ot Service - Ens
│ │ │ +0024e2b0: 7572 6520 646f 7665 636f 742e 7365 7276  ure dovecot.serv
│ │ │ +0024e2c0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +0024e2d0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0024e2e0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +0024e2f0: 206e 616d 653a 2064 6f76 6563 6f74 2e73   name: dovecot.s
│ │ │ +0024e300: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +0024e310: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +0024e320: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0024e330: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0024e340: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +0024e350: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +0024e360: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +0024e370: 7263 6828 2264 6f76 6563 6f74 2e73 6572  rch("dovecot.ser
│ │ │ +0024e380: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +0024e390: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +0024e3a0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +0024e3b0: 6973 7473 202d 2064 6f76 6563 6f74 2e73  ists - dovecot.s
│ │ │ +0024e3c0: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +0024e3d0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0024e3e0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0024e3f0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0024e400: 646f 7665 636f 742e 736f 636b 6574 0a20  dovecot.socket. 
│ │ │ +0024e410: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +0024e420: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +0024e430: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +0024e440: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +0024e450: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +0024e460: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +0024e470: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0024e480: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0024e490: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0024e4a0: 7361 626c 6520 446f 7665 636f 7420 5365  sable Dovecot Se
│ │ │ +0024e4b0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +0024e4c0: 536f 636b 6574 2064 6f76 6563 6f74 0a20  Socket dovecot. 
│ │ │ +0024e4d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0024e4e0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0024e4f0: 2020 6e61 6d65 3a20 646f 7665 636f 742e    name: dovecot.
│ │ │ +0024e500: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0024e510: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0024e520: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0024e530: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0024e540: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0024e550: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0024e560: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0024e570: 2073 6561 7263 6828 2264 6f76 6563 6f74   search("dovecot
│ │ │ +0024e580: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0024e590: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0024e5a0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +0024e5b0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0024e5c0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0024e5d0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0024e5e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0024e5f0: 640a 2020 2d20 7365 7276 6963 655f 646f  d.  - service_do
│ │ │ +0024e600: 7665 636f 745f 6469 7361 626c 6564 0a20  vecot_disabled. 
│ │ │ +0024e610: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +0024e620: 6365 5f62 6c6f 636b 0a20 202d 2075 6e6b  ce_block.  - unk
│ │ │ +0024e630: 6e6f 776e 5f73 6576 6572 6974 790a 2020  nown_severity.  
│ │ │ +0024e640: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0024e650: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0024e660: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0024e670: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0024e720: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0024e730: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Co │ │ │ +0024dfb0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0024dfe0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0024e000: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0024e010: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0024e030: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0024e040: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +0024e7d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0024e7e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0024e830: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +0024e870: 6c75 6465 2064 6973 6162 6c65 5f64 6f76  lude disable_dov
│ │ │ +0024e880: 6563 6f74 0a0a 636c 6173 7320 6469 7361  ecot..class disa
│ │ │ +0024e890: 626c 655f 646f 7665 636f 7420 7b0a 2020  ble_dovecot {.  
│ │ │ +0024e8a0: 7365 7276 6963 6520 7b27 646f 7665 636f  service {'doveco
│ │ │ +0024e8b0: 7427 3a0a 2020 2020 656e 6162 6c65 203d  t':.    enable =
│ │ │ +0024e8c0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +0024e8d0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +0024e8e0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +0024e9a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0024e9b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0024e9c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0024e9d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0024e9e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0024e9f0: 7365 2220 6964 3d22 6964 3934 3422 3e3c se" id="id944">< │ │ │ +0024ea00: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +0024ea10: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +0024ea20: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +0024ea30: 646f 7665 636f 7422 5d0a 3c2f 636f 6465 dovecot"].
C │ │ │ +0024e7c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0024e7f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0024e800: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0024e840: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0024e850: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Remediation P │ │ │ -0024fda0: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0024fdb0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0024fe30: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0024fe50: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0024fea0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0024fed0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -0024fef0: 655f 6f70 656e 6c64 6170 2d63 6c69 656e  e_openldap-clien
│ │ │ -0024ff00: 7473 0a0a 636c 6173 7320 7265 6d6f 7665  ts..class remove
│ │ │ -0024ff10: 5f6f 7065 6e6c 6461 702d 636c 6965 6e74  _openldap-client
│ │ │ -0024ff20: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ -0024ff30: 276f 7065 6e6c 6461 702d 636c 6965 6e74  'openldap-client
│ │ │ -0024ff40: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ -0024ff50: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0024ff60: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -00250020: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -00250030: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -002500f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00250100: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0024fe60: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0024fe70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0024feb0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0024fec0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity │ │ │ -002500c0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -002500e0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00250110: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00250130: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00250160: 636f 6465 3e2d 206e 616d 653a 2027 456e  code>- name: 'En
│ │ │ -00250170: 7375 7265 204c 4441 5020 636c 6965 6e74  sure LDAP client
│ │ │ -00250180: 2069 7320 6e6f 7420 696e 7374 616c 6c65   is not installe
│ │ │ -00250190: 643a 2045 6e73 7572 6520 6f70 656e 6c64  d: Ensure openld
│ │ │ -002501a0: 6170 2d63 6c69 656e 7473 2069 7320 7265  ap-clients is re
│ │ │ -002501b0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -002501c0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -002501d0: 3a0a 2020 2020 6e61 6d65 3a20 6f70 656e  :.    name: open
│ │ │ -002501e0: 6c64 6170 2d63 6c69 656e 7473 0a20 2020  ldap-clients.   
│ │ │ -002501f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00250200: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -00250210: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00250220: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00250230: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00250240: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ -00250250: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -00250260: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -00250270: 6167 655f 6f70 656e 6c64 6170 2d63 6c69  age_openldap-cli
│ │ │ -00250280: 656e 7473 5f72 656d 6f76 6564 0a3c 2f63  ents_removed.Remediation A
│ │ │ +0024fda0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0024fdb0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0024fe30: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0024fe50: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0024fea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +0024fed0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +0024fe40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0024fe60: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0024feb0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +0024fec0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Ensu
│ │ │ +0024fef0: 7265 204c 4441 5020 636c 6965 6e74 2069  re LDAP client i
│ │ │ +0024ff00: 7320 6e6f 7420 696e 7374 616c 6c65 643a  s not installed:
│ │ │ +0024ff10: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ +0024ff20: 2d63 6c69 656e 7473 2069 7320 7265 6d6f  -clients is remo
│ │ │ +0024ff30: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0024ff40: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0024ff50: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ +0024ff60: 6170 2d63 6c69 656e 7473 0a20 2020 2073  ap-clients.    s
│ │ │ +0024ff70: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +0024ff80: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +0024ff90: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +0024ffa0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0024ffb0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0024ffc0: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +0024ffd0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0024ffe0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +0024fff0: 655f 6f70 656e 6c64 6170 2d63 6c69 656e  e_openldap-clien
│ │ │ +00250000: 7473 5f72 656d 6f76 6564 0a3c 2f63 6f64  ts_removed.
Remed │ │ │ +002500c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002500d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +00250180: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002501a0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +002501d0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00250160: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00250170: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00250190: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002501b0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002501c0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00250200: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00250210: 6465 2072 656d 6f76 655f 6f70 656e 6c64 de remove_openld │ │ │ +00250220: 6170 2d63 6c69 656e 7473 0a0a 636c 6173 ap-clients..clas │ │ │ +00250230: 7320 7265 6d6f 7665 5f6f 7065 6e6c 6461 s remove_openlda │ │ │ +00250240: 702d 636c 6965 6e74 7320 7b0a 2020 7061 p-clients {. pa │ │ │ +00250250: 636b 6167 6520 7b20 276f 7065 6e6c 6461 ckage { 'openlda │ │ │ +00250260: 702d 636c 6965 6e74 7327 3a0a 2020 2020 p-clients':. │ │ │ +00250270: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ +00250280: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ 002502a0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation │ │ │ -002517b0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002517c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00251840: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00251860: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002518b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002518e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00251850: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00251870: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002518c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002518d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -00251900: 7665 5f6f 7065 6e6c 6461 702d 7365 7276  ve_openldap-serv
│ │ │ -00251910: 6572 730a 0a63 6c61 7373 2072 656d 6f76  ers..class remov
│ │ │ -00251920: 655f 6f70 656e 6c64 6170 2d73 6572 7665  e_openldap-serve
│ │ │ -00251930: 7273 207b 0a20 2070 6163 6b61 6765 207b  rs {.  package {
│ │ │ -00251940: 2027 6f70 656e 6c64 6170 2d73 6572 7665   'openldap-serve
│ │ │ -00251950: 7273 273a 0a20 2020 2065 6e73 7572 6520  rs':.    ensure 
│ │ │ -00251960: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ -00251970: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00251a30: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00251a40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00251ac0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00251ad0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00251af0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00251b00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00251b20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00251b40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00251b70: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -00251b80: 6e69 6e73 7461 6c6c 206f 7065 6e6c 6461  ninstall openlda
│ │ │ -00251b90: 702d 7365 7276 6572 7320 5061 636b 6167  p-servers Packag
│ │ │ -00251ba0: 653a 2045 6e73 7572 6520 6f70 656e 6c64  e: Ensure openld
│ │ │ -00251bb0: 6170 2d73 6572 7665 7273 2069 7320 7265  ap-servers is re
│ │ │ -00251bc0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ -00251bd0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00251be0: 3a0a 2020 2020 6e61 6d65 3a20 6f70 656e  :.    name: open
│ │ │ -00251bf0: 6c64 6170 2d73 6572 7665 7273 0a20 2020  ldap-servers.   
│ │ │ -00251c00: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -00251c10: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00251c20: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00251c30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00251c40: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00251c50: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00251c60: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00251c70: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00251c80: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00251c90: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00251ca0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00251cb0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00251cc0: 2020 2d20 7061 636b 6167 655f 6f70 656e    - package_open
│ │ │ -00251cd0: 6c64 6170 2d73 6572 7665 7273 5f72 656d  ldap-servers_rem
│ │ │ -00251ce0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Complexity: │ │ │ +00251850: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00251870: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00251890: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +002518c0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002518d0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +00251900: 6e73 7461 6c6c 206f 7065 6e6c 6461 702d  nstall openldap-
│ │ │ +00251910: 7365 7276 6572 7320 5061 636b 6167 653a  servers Package:
│ │ │ +00251920: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ +00251930: 2d73 6572 7665 7273 2069 7320 7265 6d6f  -servers is remo
│ │ │ +00251940: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00251950: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00251960: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ +00251970: 6170 2d73 6572 7665 7273 0a20 2020 2073  ap-servers.    s
│ │ │ +00251980: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ +00251990: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +002519a0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002519b0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +002519c0: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ +002519d0: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ +002519e0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002519f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00251a00: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00251a10: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00251a20: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00251a30: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00251a40: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ +00251a50: 6170 2d73 6572 7665 7273 5f72 656d 6f76  ap-servers_remov
│ │ │ +00251a60: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +00251a70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ +00251b20: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00251b30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ +00251bb0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +00251bd0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +00251c20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +00251c50: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +00251c70: 655f 6f70 656e 6c64 6170 2d73 6572 7665  e_openldap-serve
│ │ │ +00251c80: 7273 0a0a 636c 6173 7320 7265 6d6f 7665  rs..class remove
│ │ │ +00251c90: 5f6f 7065 6e6c 6461 702d 7365 7276 6572  _openldap-server
│ │ │ +00251ca0: 7320 7b0a 2020 7061 636b 6167 6520 7b20  s {.  package { 
│ │ │ +00251cb0: 276f 7065 6e6c 6461 702d 7365 7276 6572  'openldap-server
│ │ │ +00251cc0: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ +00251cd0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +00251ce0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation OSB
│ │ │ -00252830: 7569 6c64 2042 6c75 6570 7269 6e74 2073  uild Blueprint s
│ │ │ -00252840: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
.[c
│ │ │ -00252890: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002528a0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002528b0: 205b 2273 6c61 7064 225d 0a3c 2f63 6f64   ["slapd"].
Remed │ │ │ -00252970: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00252980: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disr │ │ │ +00251be0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +00251bf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +00251c30: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +00251c40: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -00252a30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00252a50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00252a80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00252a10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00252a20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00252a40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00252a60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00252a70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

Remediation │ │ │ -00252bf0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00252c00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00252c90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00252cb0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00252cd0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00252d00: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00252d10: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -00252d40: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00252d50: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -00252d60: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -00252d70: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -00252d80: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00252d90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00252da0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00252db0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00252dc0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00252dd0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00252de0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00252df0: 736c 6170 645f 6469 7361 626c 6564 0a0a  slapd_disabled..
│ │ │ -00252e00: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -00252e10: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ -00252e20: 7064 2920 2d20 4469 7361 626c 6520 7365  pd) - Disable se
│ │ │ -00252e30: 7276 6963 6520 736c 6170 640a 2020 626c  rvice slapd.  bl
│ │ │ -00252e40: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00252e50: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ -00252e60: 7665 7220 2873 6c61 7064 2920 2d20 436f  ver (slapd) - Co
│ │ │ -00252e70: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -00252e80: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -00252e90: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -00252ea0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00252eb0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00252ec0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00252ed0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -00252ee0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -00252ef0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00252f00: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00252f10: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00252f20: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -00252f30: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -00252f40: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -00252f50: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -00252f60: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -00252f70: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ -00252f80: 2028 736c 6170 6429 202d 2045 6e73 7572   (slapd) - Ensur
│ │ │ -00252f90: 6520 736c 6170 642e 7365 7276 6963 6520  e slapd.service 
│ │ │ -00252fa0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ -00252fb0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00252fc0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00252fd0: 653a 2073 6c61 7064 2e73 6572 7669 6365  e: slapd.service
│ │ │ -00252fe0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -00252ff0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ -00253000: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -00253010: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -00253020: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ -00253030: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00253040: 6e65 7320 6973 2073 6561 7263 6828 2273  nes is search("s
│ │ │ -00253050: 6c61 7064 2e73 6572 7669 6365 222c 206d  lapd.service", m
│ │ │ -00253060: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ -00253070: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ -00253080: 6f63 6b65 7420 4578 6973 7473 202d 2073  ocket Exists - s
│ │ │ -00253090: 6c61 7064 2e73 6f63 6b65 740a 2020 2020  lapd.socket.    
│ │ │ -002530a0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002530b0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -002530c0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -002530d0: 6669 6c65 7320 736c 6170 642e 736f 636b  files slapd.sock
│ │ │ -002530e0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -002530f0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00253100: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -00253110: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -00253120: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -00253130: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00253140: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -00253150: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -00253160: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -00253170: 3a20 4469 7361 626c 6520 4c44 4150 2053  : Disable LDAP S
│ │ │ -00253180: 6572 7665 7220 2873 6c61 7064 2920 2d20  erver (slapd) - 
│ │ │ -00253190: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ -002531a0: 6c61 7064 0a20 2020 2061 6e73 6962 6c65  lapd.    ansible
│ │ │ -002531b0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -002531c0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736c  :.      name: sl
│ │ │ -002531d0: 6170 642e 736f 636b 6574 0a20 2020 2020  apd.socket.     
│ │ │ -002531e0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002531f0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00253200: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -00253210: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00253220: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00253230: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -00253240: 7320 6973 2073 6561 7263 6828 2273 6c61  s is search("sla
│ │ │ -00253250: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74  pd.socket", mult
│ │ │ -00253260: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00253270: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00253280: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -00253290: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002532a0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002532b0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002532c0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002532d0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -002532e0: 6963 655f 736c 6170 645f 6469 7361 626c  ice_slapd_disabl
│ │ │ -002532f0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00253300: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ -00253310: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00253320: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00253330: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.Remediation Ans
│ │ │ +00252830: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00252840: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00252910: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00252920: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +00252980: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00252990: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002529a0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002529b0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002529c0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002529d0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002529e0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002529f0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +00252a00: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +00252a10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00252a20: 0a20 202d 2073 6572 7669 6365 5f73 6c61  .  - service_sla
│ │ │ +00252a30: 7064 5f64 6973 6162 6c65 640a 0a2d 206e  pd_disabled..- n
│ │ │ +00252a40: 616d 653a 2044 6973 6162 6c65 204c 4441  ame: Disable LDA
│ │ │ +00252a50: 5020 5365 7276 6572 2028 736c 6170 6429  P Server (slapd)
│ │ │ +00252a60: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00252a70: 6365 2073 6c61 7064 0a20 2062 6c6f 636b  ce slapd.  block
│ │ │ +00252a80: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00252a90: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ +00252aa0: 2028 736c 6170 6429 202d 2043 6f6c 6c65   (slapd) - Colle
│ │ │ +00252ab0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00252ac0: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00252ad0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00252ae0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00252af0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00252b00: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00252b10: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00252b20: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00252b30: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00252b40: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00252b50: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00252b60: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00252b70: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00252b80: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00252b90: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00252ba0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00252bb0: 6520 4c44 4150 2053 6572 7665 7220 2873  e LDAP Server (s
│ │ │ +00252bc0: 6c61 7064 2920 2d20 456e 7375 7265 2073  lapd) - Ensure s
│ │ │ +00252bd0: 6c61 7064 2e73 6572 7669 6365 2069 7320  lapd.service is 
│ │ │ +00252be0: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00252bf0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00252c00: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00252c10: 736c 6170 642e 7365 7276 6963 650a 2020  slapd.service.  
│ │ │ +00252c20: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00252c30: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +00252c40: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +00252c50: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00252c60: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00252c70: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00252c80: 2069 7320 7365 6172 6368 2822 736c 6170   is search("slap
│ │ │ +00252c90: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00252ca0: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00252cb0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00252cc0: 6574 2045 7869 7374 7320 2d20 736c 6170  et Exists - slap
│ │ │ +00252cd0: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ +00252ce0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00252cf0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00252d00: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00252d10: 6573 2073 6c61 7064 2e73 6f63 6b65 740a  es slapd.socket.
│ │ │ +00252d20: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +00252d30: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00252d40: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +00252d50: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +00252d60: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +00252d70: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +00252d80: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00252d90: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00252da0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00252db0: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ +00252dc0: 6572 2028 736c 6170 6429 202d 2044 6973  er (slapd) - Dis
│ │ │ +00252dd0: 6162 6c65 2053 6f63 6b65 7420 736c 6170  able Socket slap
│ │ │ +00252de0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00252df0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00252e00: 2020 2020 206e 616d 653a 2073 6c61 7064       name: slapd
│ │ │ +00252e10: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00252e20: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00252e30: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00252e40: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00252e50: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00252e60: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00252e70: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00252e80: 7320 7365 6172 6368 2822 736c 6170 642e  s search("slapd.
│ │ │ +00252e90: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +00252ea0: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +00252eb0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00252ec0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00252ed0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00252ee0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00252ef0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00252f00: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00252f10: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00252f20: 5f73 6c61 7064 5f64 6973 6162 6c65 640a  _slapd_disabled.
│ │ │ +00252f30: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +00252f40: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +00252f50: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00252f60: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00252f70: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +00253030: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00253040: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ +002528f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00252900: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00252940: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00252950: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002530f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00253110: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00253140: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002530d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002530e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00253100: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00253120: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00253130: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

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

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

│ │ │ +00253310: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00253320: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00253330: 6420 3d20 5b22 736c 6170 6422 5d0a 3c2f  d = ["slapd"].
Remed │ │ │ -00256ec0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00256ed0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00256f80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00256fa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00256fd0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00256f60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00256f70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00256f90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00256fb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00256fc0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00257000: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00257010: 6465 2072 656d 6f76 655f 7270 6362 696e de remove_rpcbin │ │ │ -00257020: 640a 0a63 6c61 7373 2072 656d 6f76 655f d..class remove_ │ │ │ -00257030: 7270 6362 696e 6420 7b0a 2020 7061 636b rpcbind {. pack │ │ │ -00257040: 6167 6520 7b20 2772 7063 6269 6e64 273a age { 'rpcbind': │ │ │ -00257050: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00257060: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a ; 'purged',. }. │ │ │ -00257070: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.< │ │ │ -00257080: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00257130: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00257140: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -002571c0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002571e0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00257230: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00257260: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00257280: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00257290: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002572a0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002572b0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002572c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002572d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002572e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002572f0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -00257300: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00257310: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00257320: 202d 2070 6163 6b61 6765 5f72 7063 6269   - package_rpcbi
│ │ │ -00257330: 6e64 5f72 656d 6f76 6564 0a0a 2d20 6e61  nd_removed..- na
│ │ │ -00257340: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2072  me: 'Uninstall r
│ │ │ -00257350: 7063 6269 6e64 2050 6163 6b61 6765 3a20  pcbind Package: 
│ │ │ -00257360: 456e 7375 7265 2072 7063 6269 6e64 2069  Ensure rpcbind i
│ │ │ -00257370: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -00257380: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00257390: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002573a0: 7270 6362 696e 640a 2020 2020 7374 6174  rpcbind.    stat
│ │ │ -002573b0: 653a 2061 6273 656e 740a 2020 7768 656e  e: absent.  when
│ │ │ -002573c0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -002573d0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002573e0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -002573f0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00257400: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00257410: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00257420: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00257430: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00257440: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00257450: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00257460: 7270 6362 696e 645f 7265 6d6f 7665 640a  rpcbind_removed.
│ │ │ +00256ec0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073  iation Ansible s
│ │ │ +00256ed0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62  nippet ...
low
Disr │ │ │ -002571f0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00257200: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00257240: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00257250: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Comp │ │ │ +00256f60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00256f70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00256f90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00256fb0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00256fc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00257000: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00257010: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00257020: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00257030: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00257040: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00257050: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00257060: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00257070: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00257080: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00257090: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +002570a0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002570b0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +002570c0: 6167 655f 7270 6362 696e 645f 7265 6d6f  age_rpcbind_remo
│ │ │ +002570d0: 7665 640a 0a2d 206e 616d 653a 2027 556e  ved..- name: 'Un
│ │ │ +002570e0: 696e 7374 616c 6c20 7270 6362 696e 6420  install rpcbind 
│ │ │ +002570f0: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00257100: 7270 6362 696e 6420 6973 2072 656d 6f76  rpcbind is remov
│ │ │ +00257110: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +00257120: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +00257130: 2020 206e 616d 653a 2072 7063 6269 6e64     name: rpcbind
│ │ │ +00257140: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00257150: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ +00257160: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00257170: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00257180: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +00257190: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002571a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002571b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +002571c0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ +002571d0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002571e0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002571f0: 2070 6163 6b61 6765 5f72 7063 6269 6e64   package_rpcbind
│ │ │ +00257200: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00257210: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +002572c0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002572d0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002572e0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002572f0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00257300: 7365 2220 6964 3d22 6964 3936 3122 3e3c se" id="id961">< │ │ │ +00257310: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00257320: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00257330: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00257340: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00257350: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00257360: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00257370: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002573b0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002573c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002573e0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002573f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +00257410: 2072 656d 6f76 655f 7270 6362 696e 640a remove_rpcbind. │ │ │ +00257420: 0a63 6c61 7373 2072 656d 6f76 655f 7270 .class remove_rp │ │ │ +00257430: 6362 696e 6420 7b0a 2020 7061 636b 6167 cbind {. packag │ │ │ +00257440: 6520 7b20 2772 7063 6269 6e64 273a 0a20 e { 'rpcbind':. │ │ │ +00257450: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ +00257460: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a 'purged',. }.}. │ │ │ 00257470: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remed │ │ │ -002582c0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -002582d0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -002582e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ -00258330: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00258340: 5d0a 6d61 736b 6564 203d 205b 2272 7063  ].masked = ["rpc
│ │ │ -00258350: 6269 6e64 225d 0a3c 2f63 6f64 653e 3c2f  bind"].
Remediati │ │ │ -00258410: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00258420: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002584a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002584b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002584d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002584e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00258500: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00258520: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00258550: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -00258560: 6162 6c65 5f72 7063 6269 6e64 0a0a 636c  able_rpcbind..cl
│ │ │ -00258570: 6173 7320 6469 7361 626c 655f 7270 6362  ass disable_rpcb
│ │ │ -00258580: 696e 6420 7b0a 2020 7365 7276 6963 6520  ind {.  service 
│ │ │ -00258590: 7b27 7270 6362 696e 6427 3a0a 2020 2020  {'rpcbind':.    
│ │ │ -002585a0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -002585b0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -002585c0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -002585d0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -00258690: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002586a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00258720: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00258730: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00258750: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00258760: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00258780: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002587a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002587d0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002587e0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002587f0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00258800: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00258810: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00258820: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ -00258830: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ -00258840: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ -00258850: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00258860: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00258870: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00258880: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -00258890: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002588a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002588b0: 7669 6365 5f72 7063 6269 6e64 5f64 6973  vice_rpcbind_dis
│ │ │ -002588c0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -002588d0: 6973 6162 6c65 2072 7063 6269 6e64 2053  isable rpcbind S
│ │ │ -002588e0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -002588f0: 2073 6572 7669 6365 2072 7063 6269 6e64   service rpcbind
│ │ │ -00258900: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -00258910: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -00258920: 6269 6e64 2053 6572 7669 6365 202d 2043  bind Service - C
│ │ │ -00258930: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ -00258940: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ -00258950: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ -00258960: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00258970: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00258980: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00258990: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -002589a0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -002589b0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -002589c0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -002589d0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -002589e0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -002589f0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -00258a00: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00258a10: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00258a20: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00258a30: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ -00258a40: 7276 6963 6520 2d20 456e 7375 7265 2072  rvice - Ensure r
│ │ │ -00258a50: 7063 6269 6e64 2e73 6572 7669 6365 2069  pcbind.service i
│ │ │ -00258a60: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ -00258a70: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00258a80: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00258a90: 3a20 7270 6362 696e 642e 7365 7276 6963  : rpcbind.servic
│ │ │ -00258aa0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00258ab0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -00258ac0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00258ad0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00258ae0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00258af0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00258b00: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00258b10: 7270 6362 696e 642e 7365 7276 6963 6522  rpcbind.service"
│ │ │ -00258b20: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00258b30: 290a 0a20 202d 206e 616d 653a 2055 6e69  )..  - name: Uni
│ │ │ -00258b40: 7420 536f 636b 6574 2045 7869 7374 7320  t Socket Exists 
│ │ │ -00258b50: 2d20 7270 6362 696e 642e 736f 636b 6574  - rpcbind.socket
│ │ │ -00258b60: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00258b70: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00258b80: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00258b90: 756e 6974 2d66 696c 6573 2072 7063 6269  unit-files rpcbi
│ │ │ -00258ba0: 6e64 2e73 6f63 6b65 740a 2020 2020 7265  nd.socket.    re
│ │ │ -00258bb0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -00258bc0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -00258bd0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00258be0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00258bf0: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00258c00: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00258c10: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00258c20: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -00258c30: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00258c40: 2072 7063 6269 6e64 2053 6572 7669 6365   rpcbind Service
│ │ │ -00258c50: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -00258c60: 7420 7270 6362 696e 640a 2020 2020 616e  t rpcbind.    an
│ │ │ -00258c70: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -00258c80: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -00258c90: 653a 2072 7063 6269 6e64 2e73 6f63 6b65  e: rpcbind.socke
│ │ │ -00258ca0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -00258cb0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -00258cc0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -00258cd0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00258ce0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -00258cf0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -00258d00: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -00258d10: 6368 2822 7270 6362 696e 642e 736f 636b  ch("rpcbind.sock
│ │ │ -00258d20: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -00258d30: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -00258d40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00258d50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00258d60: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00258d70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00258d80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00258d90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00258da0: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00258db0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00258dc0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -00258dd0: 7270 6362 696e 645f 6469 7361 626c 6564  rpcbind_disabled
│ │ │ -00258de0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00258df0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00258e00: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00258e10: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00258e20: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
Comp │ │ │ +00258360: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00258370: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00258390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002583b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002583c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00258400: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00258410: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00258420: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00258430: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00258440: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00258450: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +00258460: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00258470: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00258480: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00258490: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002584a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002584b0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +002584c0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +002584d0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +002584e0: 2d20 7365 7276 6963 655f 7270 6362 696e  - service_rpcbin
│ │ │ +002584f0: 645f 6469 7361 626c 6564 0a0a 2d20 6e61  d_disabled..- na
│ │ │ +00258500: 6d65 3a20 4469 7361 626c 6520 7270 6362  me: Disable rpcb
│ │ │ +00258510: 696e 6420 5365 7276 6963 6520 2d20 4469  ind Service - Di
│ │ │ +00258520: 7361 626c 6520 7365 7276 6963 6520 7270  sable service rp
│ │ │ +00258530: 6362 696e 640a 2020 626c 6f63 6b3a 0a0a  cbind.  block:..
│ │ │ +00258540: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00258550: 6520 7270 6362 696e 6420 5365 7276 6963  e rpcbind Servic
│ │ │ +00258560: 6520 2d20 436f 6c6c 6563 7420 7379 7374  e - Collect syst
│ │ │ +00258570: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +00258580: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +00258590: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002585a0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002585b0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002585c0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002585d0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002585e0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002585f0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00258600: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00258610: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00258620: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00258630: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00258640: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00258650: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00258660: 653a 2044 6973 6162 6c65 2072 7063 6269  e: Disable rpcbi
│ │ │ +00258670: 6e64 2053 6572 7669 6365 202d 2045 6e73  nd Service - Ens
│ │ │ +00258680: 7572 6520 7270 6362 696e 642e 7365 7276  ure rpcbind.serv
│ │ │ +00258690: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002586a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002586b0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002586c0: 206e 616d 653a 2072 7063 6269 6e64 2e73   name: rpcbind.s
│ │ │ +002586d0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002586e0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002586f0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +00258700: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00258710: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +00258720: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +00258730: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +00258740: 7263 6828 2272 7063 6269 6e64 2e73 6572  rch("rpcbind.ser
│ │ │ +00258750: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +00258760: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +00258770: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +00258780: 6973 7473 202d 2072 7063 6269 6e64 2e73  ists - rpcbind.s
│ │ │ +00258790: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +002587a0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002587b0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +002587c0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +002587d0: 7270 6362 696e 642e 736f 636b 6574 0a20  rpcbind.socket. 
│ │ │ +002587e0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ +002587f0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ +00258800: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00258810: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00258820: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ +00258830: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ +00258840: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +00258850: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +00258860: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +00258870: 7361 626c 6520 7270 6362 696e 6420 5365  sable rpcbind Se
│ │ │ +00258880: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00258890: 536f 636b 6574 2072 7063 6269 6e64 0a20  Socket rpcbind. 
│ │ │ +002588a0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002588b0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002588c0: 2020 6e61 6d65 3a20 7270 6362 696e 642e    name: rpcbind.
│ │ │ +002588d0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002588e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002588f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00258900: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00258910: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00258920: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00258930: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00258940: 2073 6561 7263 6828 2272 7063 6269 6e64   search("rpcbind
│ │ │ +00258950: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +00258960: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +00258970: 3a0a 2020 2d20 5043 492d 4453 5376 342d  :.  - PCI-DSSv4-
│ │ │ +00258980: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00258990: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +002589a0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002589b0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002589c0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002589d0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002589e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002589f0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00258a00: 7669 6365 5f72 7063 6269 6e64 5f64 6973  vice_rpcbind_dis
│ │ │ +00258a10: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00258a20: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00258a30: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00258a40: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00258a50: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00258a60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00258b20: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00258b30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ +00258c00: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00258c10: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00258c60: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ +00258c70: 7063 6269 6e64 0a0a 636c 6173 7320 6469  pcbind..class di
│ │ │ +00258c80: 7361 626c 655f 7270 6362 696e 6420 7b0a  sable_rpcbind {.
│ │ │ +00258c90: 2020 7365 7276 6963 6520 7b27 7270 6362    service {'rpcb
│ │ │ +00258ca0: 696e 6427 3a0a 2020 2020 656e 6162 6c65  ind':.    enable
│ │ │ +00258cb0: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +00258cc0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00258cd0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +00258ce0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00258d90: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00258da0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00258db0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00258e00: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00258e10: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +00258e20: 5b22 7270 6362 696e 6422 5d0a 3c2f 636f  ["rpcbind"].
< │ │ │ 00258e40: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 00258e50: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>
Complexity:low
Disrup │ │ │ +00258be0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00258bf0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00258c30: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00258c40: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ 00258e60: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td> │ │ │ -0025a430: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0025a440: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0025a450: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -0025a4a0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0025a4b0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0025a4c0: 5b22 6e66 732d 7365 7276 6572 225d 0a3c  ["nfs-server"].<
│ │ │ -0025a4d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025a580: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0025a590: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -0025a630: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025a640: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0025a690: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0025a6d0: 6c75 6465 2064 6973 6162 6c65 5f6e 6673  lude disable_nfs
│ │ │ -0025a6e0: 2d73 6572 7665 720a 0a63 6c61 7373 2064  -server..class d
│ │ │ -0025a6f0: 6973 6162 6c65 5f6e 6673 2d73 6572 7665  isable_nfs-serve
│ │ │ -0025a700: 7220 7b0a 2020 7365 7276 6963 6520 7b27  r {.  service {'
│ │ │ -0025a710: 6e66 732d 7365 7276 6572 273a 0a20 2020  nfs-server':.   
│ │ │ -0025a720: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ -0025a730: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ -0025a740: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ -0025a750: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ -0025a810: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ -0025a820: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ -0025a8a0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ -0025a930: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0025a940: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ -0025a620: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0025a650: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0025a660: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0025a6a0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0025a6b0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ -0025a8b0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0025a8c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0025a900: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0025a910: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ -0025a960: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0025a970: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0025a980: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0025a990: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0025a9a0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0025a9b0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0025a9c0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0025a9d0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0025a9e0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0025a9f0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0025aa00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0025aa10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0025aa20: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -0025aa30: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0025aa40: 6572 7669 6365 5f6e 6673 5f64 6973 6162  ervice_nfs_disab
│ │ │ -0025aa50: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ -0025aa60: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ -0025aa70: 3a20 4469 7361 626c 6520 4e65 7477 6f72  : Disable Networ
│ │ │ -0025aa80: 6b20 4669 6c65 2053 7973 7465 6d20 286e  k File System (n
│ │ │ -0025aa90: 6673 2920 2d20 4469 7361 626c 6520 7365  fs) - Disable se
│ │ │ -0025aaa0: 7276 6963 6520 6e66 732d 7365 7276 6572  rvice nfs-server
│ │ │ -0025aab0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0025aac0: 616d 653a 2044 6973 6162 6c65 204e 6574  ame: Disable Net
│ │ │ -0025aad0: 776f 726b 2046 696c 6520 5379 7374 656d  work File System
│ │ │ -0025aae0: 2028 6e66 7329 202d 2043 6f6c 6c65 6374   (nfs) - Collect
│ │ │ -0025aaf0: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0025ab00: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ -0025ab10: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ -0025ab20: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0025ab30: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0025ab40: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0025ab50: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0025ab60: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0025ab70: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0025ab80: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0025ab90: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0025aba0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0025abb0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0025abc0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0025abd0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0025abe0: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -0025abf0: 7361 626c 6520 4e65 7477 6f72 6b20 4669  sable Network Fi
│ │ │ -0025ac00: 6c65 2053 7973 7465 6d20 286e 6673 2920  le System (nfs) 
│ │ │ -0025ac10: 2d20 456e 7375 7265 206e 6673 2d73 6572  - Ensure nfs-ser
│ │ │ -0025ac20: 7665 722e 7365 7276 6963 6520 6973 204d  ver.service is M
│ │ │ -0025ac30: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0025ac40: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0025ac50: 643a 0a20 2020 2020 206e 616d 653a 206e  d:.      name: n
│ │ │ -0025ac60: 6673 2d73 6572 7665 722e 7365 7276 6963  fs-server.servic
│ │ │ -0025ac70: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0025ac80: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -0025ac90: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0025aca0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0025acb0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -0025acc0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -0025acd0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -0025ace0: 6e66 732d 7365 7276 6572 2e73 6572 7669  nfs-server.servi
│ │ │ -0025acf0: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ -0025ad00: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ -0025ad10: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ -0025ad20: 7473 202d 206e 6673 2d73 6572 7665 722e  ts - nfs-server.
│ │ │ -0025ad30: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0025ad40: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0025ad50: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0025ad60: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0025ad70: 206e 6673 2d73 6572 7665 722e 736f 636b   nfs-server.sock
│ │ │ -0025ad80: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ -0025ad90: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0025ada0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0025adb0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0025adc0: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ -0025add0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -0025ade0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0025adf0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0025ae00: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0025ae10: 3a20 4469 7361 626c 6520 4e65 7477 6f72  : Disable Networ
│ │ │ -0025ae20: 6b20 4669 6c65 2053 7973 7465 6d20 286e  k File System (n
│ │ │ -0025ae30: 6673 2920 2d20 4469 7361 626c 6520 536f  fs) - Disable So
│ │ │ -0025ae40: 636b 6574 206e 6673 2d73 6572 7665 720a  cket nfs-server.
│ │ │ -0025ae50: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0025ae60: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0025ae70: 2020 206e 616d 653a 206e 6673 2d73 6572     name: nfs-ser
│ │ │ -0025ae80: 7665 722e 736f 636b 6574 0a20 2020 2020  ver.socket.     
│ │ │ -0025ae90: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0025aea0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0025aeb0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -0025aec0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0025aed0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0025aee0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0025aef0: 7320 6973 2073 6561 7263 6828 226e 6673  s is search("nfs
│ │ │ -0025af00: 2d73 6572 7665 722e 736f 636b 6574 222c  -server.socket",
│ │ │ -0025af10: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0025af20: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -0025af30: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -0025af40: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -0025af50: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -0025af60: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -0025af70: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0025af80: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0025af90: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0025afa0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0025afb0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0025afc0: 0a20 202d 2073 6572 7669 6365 5f6e 6673  .  - service_nfs
│ │ │ -0025afd0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -0025afe0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0025aff0: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ -0025b000: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ -0025b010: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0025b020: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0025b030: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +0025a520: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0025a530: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0025a580: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0025a590: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0025a5a0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0025a5b0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0025a5c0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0025a5d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +0025a5e0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +0025a5f0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +0025a600: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +0025a610: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +0025a620: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0025a630: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0025a640: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0025a650: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0025a660: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0025a670: 6e66 735f 6469 7361 626c 6564 0a20 202d  nfs_disabled.  -
│ │ │ +0025a680: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +0025a690: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +0025a6a0: 6c65 204e 6574 776f 726b 2046 696c 6520  le Network File 
│ │ │ +0025a6b0: 5379 7374 656d 2028 6e66 7329 202d 2044  System (nfs) - D
│ │ │ +0025a6c0: 6973 6162 6c65 2073 6572 7669 6365 206e  isable service n
│ │ │ +0025a6d0: 6673 2d73 6572 7665 720a 2020 626c 6f63  fs-server.  bloc
│ │ │ +0025a6e0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ +0025a6f0: 7361 626c 6520 4e65 7477 6f72 6b20 4669  sable Network Fi
│ │ │ +0025a700: 6c65 2053 7973 7465 6d20 286e 6673 2920  le System (nfs) 
│ │ │ +0025a710: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0025a720: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0025a730: 6e74 2069 6e0a 2020 2020 2020 7468 6520  nt in.      the 
│ │ │ +0025a740: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ +0025a750: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ +0025a760: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ +0025a770: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ +0025a780: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ +0025a790: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ +0025a7a0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ +0025a7b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +0025a7c0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +0025a7d0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0025a7e0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0025a7f0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0025a800: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0025a810: 206e 616d 653a 2044 6973 6162 6c65 204e   name: Disable N
│ │ │ +0025a820: 6574 776f 726b 2046 696c 6520 5379 7374  etwork File Syst
│ │ │ +0025a830: 656d 2028 6e66 7329 202d 2045 6e73 7572  em (nfs) - Ensur
│ │ │ +0025a840: 6520 6e66 732d 7365 7276 6572 2e73 6572  e nfs-server.ser
│ │ │ +0025a850: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ +0025a860: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0025a870: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +0025a880: 2020 6e61 6d65 3a20 6e66 732d 7365 7276    name: nfs-serv
│ │ │ +0025a890: 6572 2e73 6572 7669 6365 0a20 2020 2020  er.service.     
│ │ │ +0025a8a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +0025a8b0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +0025a8c0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +0025a8d0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0025a8e0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0025a8f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0025a900: 2073 6561 7263 6828 226e 6673 2d73 6572   search("nfs-ser
│ │ │ +0025a910: 7665 722e 7365 7276 6963 6522 2c20 6d75  ver.service", mu
│ │ │ +0025a920: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0025a930: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0025a940: 636b 6574 2045 7869 7374 7320 2d20 6e66  cket Exists - nf
│ │ │ +0025a950: 732d 7365 7276 6572 2e73 6f63 6b65 740a  s-server.socket.
│ │ │ +0025a960: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0025a970: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +0025a980: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +0025a990: 6e69 742d 6669 6c65 7320 6e66 732d 7365  nit-files nfs-se
│ │ │ +0025a9a0: 7276 6572 2e73 6f63 6b65 740a 2020 2020  rver.socket.    
│ │ │ +0025a9b0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ +0025a9c0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ +0025a9d0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ +0025a9e0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ +0025a9f0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0025aa00: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0025aa10: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0025aa20: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0025aa30: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0025aa40: 6c65 204e 6574 776f 726b 2046 696c 6520  le Network File 
│ │ │ +0025aa50: 5379 7374 656d 2028 6e66 7329 202d 2044  System (nfs) - D
│ │ │ +0025aa60: 6973 6162 6c65 2053 6f63 6b65 7420 6e66  isable Socket nf
│ │ │ +0025aa70: 732d 7365 7276 6572 0a20 2020 2061 6e73  s-server.    ans
│ │ │ +0025aa80: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +0025aa90: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +0025aaa0: 3a20 6e66 732d 7365 7276 6572 2e73 6f63  : nfs-server.soc
│ │ │ +0025aab0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0025aac0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0025aad0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0025aae0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0025aaf0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0025ab00: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0025ab10: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0025ab20: 6172 6368 2822 6e66 732d 7365 7276 6572  arch("nfs-server
│ │ │ +0025ab30: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +0025ab40: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +0025ab50: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +0025ab60: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ +0025ab70: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ +0025ab80: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0025ab90: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ +0025aba0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +0025abb0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +0025abc0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +0025abd0: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +0025abe0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0025abf0: 7276 6963 655f 6e66 735f 6469 7361 626c  rvice_nfs_disabl
│ │ │ +0025ac00: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0025ac10: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ +0025ac20: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +0025ac30: 790a 2020 7768 656e 3a20 2722 6c69 6e75  y.  when: '"linu
│ │ │ +0025ac40: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0025ac50: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0025ac60: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +0025ac70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation P │ │ │ +0025ad20: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +0025ad30: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:low
Disrup │ │ │ +0025a500: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0025a510: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0025a550: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0025a560: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0025adb0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0025add0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0025ae20: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +0025ae70: 5f6e 6673 2d73 6572 7665 720a 0a63 6c61  _nfs-server..cla
│ │ │ +0025ae80: 7373 2064 6973 6162 6c65 5f6e 6673 2d73  ss disable_nfs-s
│ │ │ +0025ae90: 6572 7665 7220 7b0a 2020 7365 7276 6963  erver {.  servic
│ │ │ +0025aea0: 6520 7b27 6e66 732d 7365 7276 6572 273a  e {'nfs-server':
│ │ │ +0025aeb0: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ +0025aec0: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ +0025aed0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ +0025aee0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ +0025afa0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0025afb0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0025afc0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +0025b010: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0025b020: 5d0a 6d61 736b 6564 203d 205b 226e 6673  ].masked = ["nfs
│ │ │ +0025b030: 2d73 6572 7665 7222 5d0a 3c2f 636f 6465  -server"].
low
Disr │ │ │ +0025ade0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0025adf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0025ae30: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0025ae40: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Remediation │ │ │ -0025b890: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0025b8a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0025b920: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0025b940: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0025b990: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0025b9c0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0025b930: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0025b950: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0025b9a0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0025b9b0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0025b9e0: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ -0025b9f0: 7276 6572 0a0a 636c 6173 7320 7265 6d6f  rver..class remo
│ │ │ -0025ba00: 7665 5f6e 6673 2d6b 6572 6e65 6c2d 7365  ve_nfs-kernel-se
│ │ │ -0025ba10: 7276 6572 207b 0a20 2070 6163 6b61 6765  rver {.  package
│ │ │ -0025ba20: 207b 2027 6e66 732d 6b65 726e 656c 2d73   { 'nfs-kernel-s
│ │ │ -0025ba30: 6572 7665 7227 3a0a 2020 2020 656e 7375  erver':.    ensu
│ │ │ -0025ba40: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -0025ba50: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0025ba60: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -0025bb10: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -0025bb20: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0025bb30: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -0025bb60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0025bbd0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0025bbf0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0025bc20: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0025bbb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0025bbc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0025bc00: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0025bc10: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -0025bc60: 2027 556e 696e 7374 616c 6c20 6e66 732d 'Uninstall nfs- │ │ │ -0025bc70: 6b65 726e 656c 2d73 6572 7665 7220 5061 kernel-server Pa │ │ │ -0025bc80: 636b 6167 653a 2045 6e73 7572 6520 6e66 ckage: Ensure nf │ │ │ -0025bc90: 732d 6b65 726e 656c 2d73 6572 7665 7220 s-kernel-server │ │ │ -0025bca0: 6973 2072 656d 6f76 6564 270a 2020 616e is removed'. an │ │ │ -0025bcb0: 7369 626c 652e 6275 696c 7469 6e2e 7061 sible.builtin.pa │ │ │ -0025bcc0: 636b 6167 653a 0a20 2020 206e 616d 653a ckage:. name: │ │ │ -0025bcd0: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276 nfs-kernel-serv │ │ │ -0025bce0: 6572 0a20 2020 2073 7461 7465 3a20 6162 er. state: ab │ │ │ -0025bcf0: 7365 6e74 0a20 2074 6167 733a 0a20 202d sent. tags:. - │ │ │ -0025bd00: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -0025bd10: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -0025bd20: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -0025bd30: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f ruption. - low_ │ │ │ -0025bd40: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ -0025bd50: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -0025bd60: 2d20 7061 636b 6167 655f 6e66 732d 6b65 - package_nfs-ke │ │ │ -0025bd70: 726e 656c 2d73 6572 7665 725f 7265 6d6f rnel-server_remo │ │ │ -0025bd80: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265 ved.


Complexity: │ │ │ +0025b930: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0025b950: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0025b970: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0025b9a0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0025b9b0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ +0025b9e0: 6e73 7461 6c6c 206e 6673 2d6b 6572 6e65  nstall nfs-kerne
│ │ │ +0025b9f0: 6c2d 7365 7276 6572 2050 6163 6b61 6765  l-server Package
│ │ │ +0025ba00: 3a20 456e 7375 7265 206e 6673 2d6b 6572  : Ensure nfs-ker
│ │ │ +0025ba10: 6e65 6c2d 7365 7276 6572 2069 7320 7265  nel-server is re
│ │ │ +0025ba20: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +0025ba30: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0025ba40: 3a0a 2020 2020 6e61 6d65 3a20 6e66 732d  :.    name: nfs-
│ │ │ +0025ba50: 6b65 726e 656c 2d73 6572 7665 720a 2020  kernel-server.  
│ │ │ +0025ba60: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0025ba70: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +0025ba80: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0025ba90: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0025baa0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0025bab0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +0025bac0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +0025bad0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +0025bae0: 6b61 6765 5f6e 6673 2d6b 6572 6e65 6c2d  kage_nfs-kernel-
│ │ │ +0025baf0: 7365 7276 6572 5f72 656d 6f76 6564 0a3c  server_removed.<
│ │ │ +0025bb00: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0025bbb0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0025bbc0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +0025bc60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0025bc70: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0025bcc0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0025bd00: 6e63 6c75 6465 2072 656d 6f76 655f 6e66  nclude remove_nf
│ │ │ +0025bd10: 732d 6b65 726e 656c 2d73 6572 7665 720a  s-kernel-server.
│ │ │ +0025bd20: 0a63 6c61 7373 2072 656d 6f76 655f 6e66  .class remove_nf
│ │ │ +0025bd30: 732d 6b65 726e 656c 2d73 6572 7665 7220  s-kernel-server 
│ │ │ +0025bd40: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +0025bd50: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ +0025bd60: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0025bd70: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0025bd80: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediati │ │ │ -0025dce0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0025dcf0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0025dd00: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -0025dd50: 0a6e 616d 6520 3d20 2263 6872 6f6e 7922  .name = "chrony"
│ │ │ -0025dd60: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -0025dd70: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025de20: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0025de30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
C │ │ │ +0025bc50: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0025bc80: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0025bc90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0025bcd0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0025bce0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0025ded0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0025dee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0025df30: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0025df70: 6c75 6465 2069 6e73 7461 6c6c 5f63 6872  lude install_chr
│ │ │ -0025df80: 6f6e 790a 0a63 6c61 7373 2069 6e73 7461  ony..class insta
│ │ │ -0025df90: 6c6c 5f63 6872 6f6e 7920 7b0a 2020 7061  ll_chrony {.  pa
│ │ │ -0025dfa0: 636b 6167 6520 7b20 2763 6872 6f6e 7927  ckage { 'chrony'
│ │ │ -0025dfb0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -0025dfc0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -0025dfd0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -0025e090: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0025e0a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025e120: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -0025e160: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
C │ │ │ -0025dec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0025def0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0025df00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0025df40: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0025df50: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ -0025e130: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -0025e150: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -0025e180: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -0025e1a0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -0025e1d0: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -0025e1e0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -0025e1f0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -0025e200: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -0025e210: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -0025e220: 0a20 202d 2050 4349 2d44 5353 2d52 6571  .  - PCI-DSS-Req
│ │ │ -0025e230: 2d31 302e 340a 2020 2d20 5043 492d 4453  -10.4.  - PCI-DS
│ │ │ -0025e240: 5376 342d 3130 2e36 0a20 202d 2050 4349  Sv4-10.6.  - PCI
│ │ │ -0025e250: 2d44 5353 7634 2d31 302e 362e 310a 2020  -DSSv4-10.6.1.  
│ │ │ -0025e260: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -0025e270: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0025e280: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0025e290: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0025e2a0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0025e2b0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0025e2c0: 0a20 202d 2070 6163 6b61 6765 5f63 6872  .  - package_chr
│ │ │ -0025e2d0: 6f6e 795f 696e 7374 616c 6c65 640a 0a2d  ony_installed..-
│ │ │ -0025e2e0: 206e 616d 653a 2045 6e73 7572 6520 6368   name: Ensure ch
│ │ │ -0025e2f0: 726f 6e79 2069 7320 696e 7374 616c 6c65  rony is installe
│ │ │ -0025e300: 640a 2020 616e 7369 626c 652e 6275 696c  d.  ansible.buil
│ │ │ -0025e310: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0025e320: 206e 616d 653a 2063 6872 6f6e 790a 2020   name: chrony.  
│ │ │ -0025e330: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -0025e340: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -0025e350: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0025e360: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0025e370: 270a 2020 7461 6773 3a0a 2020 2d20 5043  '.  tags:.  - PC
│ │ │ -0025e380: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ -0025e390: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ -0025e3a0: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ -0025e3b0: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ -0025e3c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0025e3d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0025e3e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0025e3f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0025e400: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0025e410: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0025e420: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ -0025e430: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
│ │ │ +0025dd70: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0025dd80: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0025dd90: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0025ddd0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0025dde0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0025de00: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0025de20: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0025de30: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0025de40: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0025de50: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0025de60: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0025de70: 3a0a 2020 2d20 5043 492d 4453 532d 5265  :.  - PCI-DSS-Re
│ │ │ +0025de80: 712d 3130 2e34 0a20 202d 2050 4349 2d44  q-10.4.  - PCI-D
│ │ │ +0025de90: 5353 7634 2d31 302e 360a 2020 2d20 5043  SSv4-10.6.  - PC
│ │ │ +0025dea0: 492d 4453 5376 342d 3130 2e36 2e31 0a20  I-DSSv4-10.6.1. 
│ │ │ +0025deb0: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0025dec0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0025ded0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0025dee0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0025def0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0025df00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0025df10: 640a 2020 2d20 7061 636b 6167 655f 6368  d.  - package_ch
│ │ │ +0025df20: 726f 6e79 5f69 6e73 7461 6c6c 6564 0a0a  rony_installed..
│ │ │ +0025df30: 2d20 6e61 6d65 3a20 456e 7375 7265 2063  - name: Ensure c
│ │ │ +0025df40: 6872 6f6e 7920 6973 2069 6e73 7461 6c6c  hrony is install
│ │ │ +0025df50: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +0025df60: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +0025df70: 2020 6e61 6d65 3a20 6368 726f 6e79 0a20    name: chrony. 
│ │ │ +0025df80: 2020 2073 7461 7465 3a20 7072 6573 656e     state: presen
│ │ │ +0025df90: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ +0025dfa0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +0025dfb0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +0025dfc0: 7327 0a20 2074 6167 733a 0a20 202d 2050  s'.  tags:.  - P
│ │ │ +0025dfd0: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +0025dfe0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +0025dff0: 2e36 0a20 202d 2050 4349 2d44 5353 7634  .6.  - PCI-DSSv4
│ │ │ +0025e000: 2d31 302e 362e 310a 2020 2d20 656e 6162  -10.6.1.  - enab
│ │ │ +0025e010: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0025e020: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0025e030: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0025e040: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0025e050: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0025e060: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0025e070: 6163 6b61 6765 5f63 6872 6f6e 795f 696e  ackage_chrony_in
│ │ │ +0025e080: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0025e090: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0025e140: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0025e150: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0025e1d0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0025e1e0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0025e1f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0025e230: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0025e240: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0025e260: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0025e280: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +0025e290: 7374 616c 6c5f 6368 726f 6e79 0a0a 636c  stall_chrony..cl
│ │ │ +0025e2a0: 6173 7320 696e 7374 616c 6c5f 6368 726f  ass install_chro
│ │ │ +0025e2b0: 6e79 207b 0a20 2070 6163 6b61 6765 207b  ny {.  package {
│ │ │ +0025e2c0: 2027 6368 726f 6e79 273a 0a20 2020 2065   'chrony':.    e
│ │ │ +0025e2d0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ +0025e2e0: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ +0025e2f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +0025e3a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +0025e3b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +0025e3c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0025e3d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0025e400: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0025e410: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0025e420: 2263 6872 6f6e 7922 0a76 6572 7369 6f6e  "chrony".version
│ │ │ +0025e430: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation │ │ │ -0025f420: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -0025f430: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ -0025f480: 0a5b 5b70 6163 6b61 6765 735d 5d0a 6e61  .[[packages]].na
│ │ │ -0025f490: 6d65 203d 2022 7379 7374 656d 642d 7469  me = "systemd-ti
│ │ │ -0025f4a0: 6d65 7379 6e63 6422 0a76 6572 7369 6f6e  mesyncd".version
│ │ │ -0025f4b0: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediati │ │ │ -0025f570: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0025f580: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025f600: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0025f610: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0025f630: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0025f640: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0025f660: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0025f680: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -0025f6b0: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ -0025f6c0: 7461 6c6c 5f73 7973 7465 6d64 2d74 696d  tall_systemd-tim
│ │ │ -0025f6d0: 6573 796e 6364 0a0a 636c 6173 7320 696e  esyncd..class in
│ │ │ -0025f6e0: 7374 616c 6c5f 7379 7374 656d 642d 7469  stall_systemd-ti
│ │ │ -0025f6f0: 6d65 7379 6e63 6420 7b0a 2020 7061 636b  mesyncd {.  pack
│ │ │ -0025f700: 6167 6520 7b20 2773 7973 7465 6d64 2d74  age { 'systemd-t
│ │ │ -0025f710: 696d 6573 796e 6364 273a 0a20 2020 2065  imesyncd':.    e
│ │ │ -0025f720: 6e73 7572 6520 3d26 6774 3b20 2769 6e73  nsure => 'ins
│ │ │ -0025f730: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c  talled',.  }.}.<
│ │ │ -0025f740: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0025f7f0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0025f800: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0025f8a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -0025f940: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -0025f950: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -0025f960: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -0025f970: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -0025f980: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -0025f990: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0025f9a0: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0025f9b0: 712d 3130 2e34 0a20 202d 2065 6e61 626c  q-10.4.  - enabl
│ │ │ -0025f9c0: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0025f9d0: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0025f9e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0025f9f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0025fa00: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0025fa10: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0025fa20: 6167 655f 7469 6d65 7379 6e63 645f 696e  age_timesyncd_in
│ │ │ -0025fa30: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -0025fa40: 2045 6e73 7572 6520 7379 7374 656d 642d   Ensure systemd-
│ │ │ -0025fa50: 7469 6d65 7379 6e63 6420 6973 2069 6e73  timesyncd is ins
│ │ │ -0025fa60: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -0025fa70: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0025fa80: 3a0a 2020 2020 6e61 6d65 3a20 7379 7374  :.    name: syst
│ │ │ -0025fa90: 656d 642d 7469 6d65 7379 6e63 640a 2020  emd-timesyncd.  
│ │ │ -0025faa0: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ -0025fab0: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -0025fac0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0025fad0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0025fae0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -0025faf0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0025fb00: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -0025fb10: 712d 3130 2e34 0a20 202d 2065 6e61 626c  q-10.4.  - enabl
│ │ │ -0025fb20: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0025fb30: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0025fb40: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0025fb50: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0025fb60: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0025fb70: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -0025fb80: 6167 655f 7469 6d65 7379 6e63 645f 696e  age_timesyncd_in
│ │ │ -0025fb90: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c  stalled.<
│ │ │ +0025f420: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ +0025f430: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
low< │ │ │ +0025f500: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +0025f550: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
│ │ │ -0025f890: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0025f8c0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0025f8d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0025f910: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0025f920: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0025f4c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +0025f4e0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +0025f530: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0025f540: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
- name: Gathe
│ │ │ +0025f570: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +0025f580: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +0025f590: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +0025f5a0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +0025f5b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0025f5c0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0025f5d0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +0025f5e0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0025f5f0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0025f600: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0025f610: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0025f620: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0025f630: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0025f640: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ +0025f650: 6364 5f69 6e73 7461 6c6c 6564 0a0a 2d20  cd_installed..- 
│ │ │ +0025f660: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ +0025f670: 7465 6d64 2d74 696d 6573 796e 6364 2069  temd-timesyncd i
│ │ │ +0025f680: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ +0025f690: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0025f6a0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0025f6b0: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ +0025f6c0: 6364 0a20 2020 2073 7461 7465 3a20 7072  cd.    state: pr
│ │ │ +0025f6d0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +0025f6e0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0025f6f0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0025f700: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +0025f710: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0025f720: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +0025f730: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ +0025f740: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0025f750: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ +0025f760: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0025f770: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0025f780: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +0025f790: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +0025f7a0: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ +0025f7b0: 6364 5f69 6e73 7461 6c6c 6564 0a3c 2f63  cd_installed.
│ │ │ +0025f7d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274
Rem │ │ │ +0025f870: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +0025f880: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0025f890: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ +0025f910: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0025f940: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0025f960: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0025f970: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0025f990: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0025f9b0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0025f9c0: 6465 2069 6e73 7461 6c6c 5f73 7973 7465  de install_syste
│ │ │ +0025f9d0: 6d64 2d74 696d 6573 796e 6364 0a0a 636c  md-timesyncd..cl
│ │ │ +0025f9e0: 6173 7320 696e 7374 616c 6c5f 7379 7374  ass install_syst
│ │ │ +0025f9f0: 656d 642d 7469 6d65 7379 6e63 6420 7b0a  emd-timesyncd {.
│ │ │ +0025fa00: 2020 7061 636b 6167 6520 7b20 2773 7973    package { 'sys
│ │ │ +0025fa10: 7465 6d64 2d74 696d 6573 796e 6364 273a  temd-timesyncd':
│ │ │ +0025fa20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0025fa30: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +0025fa40: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ +0025fb00: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ +0025fb10: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[[packages]].n
│ │ │ +0025fb70: 616d 6520 3d20 2273 7973 7465 6d64 2d74  ame = "systemd-t
│ │ │ +0025fb80: 696d 6573 796e 6364 220a 7665 7273 696f  imesyncd".versio
│ │ │ +0025fb90: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  0025fba0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Rem │ │ │ -002609e0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -002609f0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00260a00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00260a50: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00260a60: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ -00260a70: 6368 726f 6e79 225d 0a3c 2f63 6f64 653e chrony"]. │ │ │ -00260a80: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063

Remedia │ │ │ -00260b30: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00260b40: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00260b50: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00260b60: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00260b70: 7365 2220 6964 3d22 6964 3938 3722 3e3c se" id="id987">< │ │ │ -00260b80: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00260b90: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00260ba0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00260bb0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00260bc0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00260bd0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00260be0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00260c20: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00260c30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00260c50: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00260c60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ -00260c80: 6e61 626c 655f 6368 726f 6e79 0a0a 636c  nable_chrony..cl
│ │ │ -00260c90: 6173 7320 656e 6162 6c65 5f63 6872 6f6e  ass enable_chron
│ │ │ -00260ca0: 7920 7b0a 2020 7365 7276 6963 6520 7b27  y {.  service {'
│ │ │ -00260cb0: 6368 726f 6e79 273a 0a20 2020 2065 6e61  chrony':.    ena
│ │ │ -00260cc0: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -00260cd0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00260ce0: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -00260cf0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00260d00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00260db0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00260dc0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00260e40: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00260e60: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00260eb0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -00260f00: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00260f10: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00260f20: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00260f30: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00260f40: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00260f50: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00260f60: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00260f70: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00260f80: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00260f90: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00260fa0: 2020 2d20 7365 7276 6963 655f 6368 726f    - service_chro
│ │ │ -00260fb0: 6e79 645f 656e 6162 6c65 640a 0a2d 206e  nyd_enabled..- n
│ │ │ -00260fc0: 616d 653a 2054 6865 2043 6872 6f6e 7964  ame: The Chronyd
│ │ │ -00260fd0: 2073 6572 7669 6365 2069 7320 656e 6162   service is enab
│ │ │ -00260fe0: 6c65 6420 2d20 456e 6162 6c65 2073 6572  led - Enable ser
│ │ │ -00260ff0: 7669 6365 2063 6872 6f6e 790a 2020 626c  vice chrony.  bl
│ │ │ -00261000: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00261010: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ -00261020: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ -00261030: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00261040: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ -00261050: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -00261060: 0a20 202d 206e 616d 653a 2054 6865 2043  .  - name: The C
│ │ │ -00261070: 6872 6f6e 7964 2073 6572 7669 6365 2069  hronyd service i
│ │ │ -00261080: 7320 656e 6162 6c65 6420 2d20 456e 6162  s enabled - Enab
│ │ │ -00261090: 6c65 2053 6572 7669 6365 2063 6872 6f6e  le Service chron
│ │ │ -002610a0: 790a 2020 2020 616e 7369 626c 652e 6275  y.    ansible.bu
│ │ │ -002610b0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002610c0: 2020 2020 206e 616d 653a 2063 6872 6f6e       name: chron
│ │ │ -002610d0: 790a 2020 2020 2020 656e 6162 6c65 643a  y.      enabled:
│ │ │ -002610e0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -002610f0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -00261100: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -00261110: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -00261120: 2263 6872 6f6e 7922 2069 6e20 616e 7369  "chrony" in ansi
│ │ │ -00261130: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00261140: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00261150: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00261160: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00261170: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00261180: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00261190: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002611a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002611b0: 202d 2073 6572 7669 6365 5f63 6872 6f6e   - service_chron
│ │ │ -002611c0: 7964 5f65 6e61 626c 6564 0a20 202d 2073  yd_enabled.  - s
│ │ │ -002611d0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -002611e0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -002611f0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00261200: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00261210: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ -00261220: 6368 726f 6e79 2220 696e 2061 6e73 6962  chrony" in ansib
│ │ │ -00261230: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00261240: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002609e0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +002609f0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00260a00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -00260e70: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00260e80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00260ec0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00260ed0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
low< │ │ │ +00260aa0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00260af0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00260a80: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00260ab0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00260ad0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00260ae0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00260b00: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00260b10: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +00260b30: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +00260b40: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +00260b50: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +00260b60: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00260b70: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +00260b80: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00260b90: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00260ba0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00260bb0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00260bc0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00260bd0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00260be0: 6572 7669 6365 5f63 6872 6f6e 7964 5f65  ervice_chronyd_e
│ │ │ +00260bf0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ +00260c00: 5468 6520 4368 726f 6e79 6420 7365 7276  The Chronyd serv
│ │ │ +00260c10: 6963 6520 6973 2065 6e61 626c 6564 202d  ice is enabled -
│ │ │ +00260c20: 2045 6e61 626c 6520 7365 7276 6963 6520   Enable service 
│ │ │ +00260c30: 6368 726f 6e79 0a20 2062 6c6f 636b 3a0a  chrony.  block:.
│ │ │ +00260c40: 0a20 202d 206e 616d 653a 2047 6174 6865  .  - name: Gathe
│ │ │ +00260c50: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00260c60: 6374 730a 2020 2020 616e 7369 626c 652e  cts.    ansible.
│ │ │ +00260c70: 6275 696c 7469 6e2e 7061 636b 6167 655f  builtin.package_
│ │ │ +00260c80: 6661 6374 733a 0a20 2020 2020 206d 616e  facts:.      man
│ │ │ +00260c90: 6167 6572 3a20 6175 746f 0a0a 2020 2d20  ager: auto..  - 
│ │ │ +00260ca0: 6e61 6d65 3a20 5468 6520 4368 726f 6e79  name: The Chrony
│ │ │ +00260cb0: 6420 7365 7276 6963 6520 6973 2065 6e61  d service is ena
│ │ │ +00260cc0: 626c 6564 202d 2045 6e61 626c 6520 5365  bled - Enable Se
│ │ │ +00260cd0: 7276 6963 6520 6368 726f 6e79 0a20 2020  rvice chrony.   
│ │ │ +00260ce0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00260cf0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00260d00: 6e61 6d65 3a20 6368 726f 6e79 0a20 2020  name: chrony.   
│ │ │ +00260d10: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +00260d20: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +00260d30: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +00260d40: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +00260d50: 656e 3a0a 2020 2020 2d20 2722 6368 726f  en:.    - '"chro
│ │ │ +00260d60: 6e79 2220 696e 2061 6e73 6962 6c65 5f66  ny" in ansible_f
│ │ │ +00260d70: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +00260d80: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ +00260d90: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00260da0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00260db0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00260dc0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00260dd0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00260de0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +00260df0: 7276 6963 655f 6368 726f 6e79 645f 656e  rvice_chronyd_en
│ │ │ +00260e00: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00260e10: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00260e20: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00260e30: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00260e40: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00260e50: 6765 7327 0a20 202d 2027 2263 6872 6f6e  ges'.  - '"chron
│ │ │ +00260e60: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ +00260e70: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
Re │ │ │ +00260f30: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00260f40: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00260f50: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +00260ff0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00261040: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00260fd0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00261000: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00261020: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00261030: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00261050: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00261060: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00261080: 7564 6520 656e 6162 6c65 5f63 6872 6f6e  ude enable_chron
│ │ │ +00261090: 790a 0a63 6c61 7373 2065 6e61 626c 655f  y..class enable_
│ │ │ +002610a0: 6368 726f 6e79 207b 0a20 2073 6572 7669  chrony {.  servi
│ │ │ +002610b0: 6365 207b 2763 6872 6f6e 7927 3a0a 2020  ce {'chrony':.  
│ │ │ +002610c0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +002610d0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +002610e0: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +002610f0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +002611b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +002611c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +002611d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +00261220: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +00261230: 6162 6c65 6420 3d20 5b22 6368 726f 6e79  abled = ["chrony
│ │ │ +00261240: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00261250: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00262540: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00262550: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -002625b0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -002625c0: 6c65 6420 3d20 5b22 7379 7374 656d 642d  led = ["systemd-
│ │ │ -002625d0: 7469 6d65 7379 6e63 6422 5d0a 3c2f 636f  timesyncd"].
< │ │ │ -002625f0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00262600: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00262610: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00262620: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00262630: 6439 3932 2220 7461 6269 6e64 6578 3d22 d992" tabindex=" │ │ │ -00262640: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -00262650: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -00262660: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -00262670: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -00262680: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -00262690: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002626a0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ -00262730: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00262740: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00262760: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00262780: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00262790: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -002627d0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -002627e0: 6520 656e 6162 6c65 5f73 7973 7465 6d64 e enable_systemd │ │ │ -002627f0: 2d74 696d 6573 796e 6364 0a0a 636c 6173 -timesyncd..clas │ │ │ -00262800: 7320 656e 6162 6c65 5f73 7973 7465 6d64 s enable_systemd │ │ │ -00262810: 2d74 696d 6573 796e 6364 207b 0a20 2073 -timesyncd {. s │ │ │ -00262820: 6572 7669 6365 207b 2773 7973 7465 6d64 ervice {'systemd │ │ │ -00262830: 2d74 696d 6573 796e 6364 273a 0a20 2020 -timesyncd':. │ │ │ -00262840: 2065 6e61 626c 6520 3d26 6774 3b20 7472 enable => tr │ │ │ -00262850: 7565 2c0a 2020 2020 656e 7375 7265 203d ue,. ensure = │ │ │ -00262860: 2667 743b 2027 7275 6e6e 696e 6727 2c0a > 'running',. │ │ │ -00262870: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -00262930: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -00262940: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002629c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002629d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002629f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00262a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00262a20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00262a40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -00262a70: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00262a80: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00262a90: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00262aa0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00262ab0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00262ac0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00262ad0: 2d41 552d 3828 3129 2861 290a 2020 2d20  -AU-8(1)(a).  - 
│ │ │ -00262ae0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00262af0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -00262b00: 5265 712d 3130 2e34 0a20 202d 2050 4349  Req-10.4.  - PCI
│ │ │ -00262b10: 2d44 5353 7634 2d31 302e 360a 2020 2d20  -DSSv4-10.6.  - 
│ │ │ -00262b20: 5043 492d 4453 5376 342d 3130 2e36 2e31  PCI-DSSv4-10.6.1
│ │ │ -00262b30: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -00262b40: 7465 6779 0a20 202d 2068 6967 685f 7365  tegy.  - high_se
│ │ │ -00262b50: 7665 7269 7479 0a20 202d 206c 6f77 5f63  verity.  - low_c
│ │ │ -00262b60: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00262b70: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00262b80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00262b90: 640a 2020 2d20 7365 7276 6963 655f 7469  d.  - service_ti
│ │ │ -00262ba0: 6d65 7379 6e63 645f 656e 6162 6c65 640a  mesyncd_enabled.
│ │ │ -00262bb0: 0a2d 206e 616d 653a 2045 6e61 626c 6520  .- name: Enable 
│ │ │ -00262bc0: 7379 7374 656d 645f 7469 6d65 7379 6e63  systemd_timesync
│ │ │ -00262bd0: 6420 5365 7276 6963 6520 2d20 456e 6162  d Service - Enab
│ │ │ -00262be0: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ -00262bf0: 6d64 2d74 696d 6573 796e 6364 0a20 2062  md-timesyncd.  b
│ │ │ -00262c00: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ -00262c10: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ -00262c20: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ -00262c30: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00262c40: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -00262c50: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00262c60: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ -00262c70: 6c65 2073 7973 7465 6d64 5f74 696d 6573  le systemd_times
│ │ │ -00262c80: 796e 6364 2053 6572 7669 6365 202d 2045  yncd Service - E
│ │ │ -00262c90: 6e61 626c 6520 5365 7276 6963 6520 7379  nable Service sy
│ │ │ -00262ca0: 7374 656d 642d 7469 6d65 7379 6e63 640a  stemd-timesyncd.
│ │ │ -00262cb0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00262cc0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00262cd0: 2020 206e 616d 653a 2073 7973 7465 6d64     name: systemd
│ │ │ -00262ce0: 2d74 696d 6573 796e 6364 0a20 2020 2020  -timesyncd.     
│ │ │ -00262cf0: 2065 6e61 626c 6564 3a20 7472 7565 0a20   enabled: true. 
│ │ │ -00262d00: 2020 2020 2073 7461 7465 3a20 7374 6172       state: star
│ │ │ -00262d10: 7465 640a 2020 2020 2020 6d61 736b 6564  ted.      masked
│ │ │ -00262d20: 3a20 6661 6c73 650a 2020 2020 7768 656e  : false.    when
│ │ │ -00262d30: 3a0a 2020 2020 2d20 2722 7379 7374 656d  :.    - '"system
│ │ │ -00262d40: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ -00262d50: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00262d60: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -00262d70: 3030 2d35 332d 4155 2d38 2831 2928 6129  00-53-AU-8(1)(a)
│ │ │ -00262d80: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00262d90: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ -00262da0: 2d44 5353 2d52 6571 2d31 302e 340a 2020  -DSS-Req-10.4.  
│ │ │ -00262db0: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -00262dc0: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -00262dd0: 302e 362e 310a 2020 2d20 656e 6162 6c65  0.6.1.  - enable
│ │ │ -00262de0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -00262df0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -00262e00: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00262e10: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00262e20: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -00262e30: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00262e40: 6365 5f74 696d 6573 796e 6364 5f65 6e61  ce_timesyncd_ena
│ │ │ -00262e50: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00262e60: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00262e70: 2077 6865 6e3a 0a20 202d 2027 226c 696e   when:.  - '"lin
│ │ │ -00262e80: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00262e90: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00262ea0: 6573 270a 2020 2d20 2820 6e6f 7420 2820  es'.  - ( not ( 
│ │ │ -00262eb0: 2263 6872 6f6e 7922 2069 6e20 616e 7369  "chrony" in ansi
│ │ │ -00262ec0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00262ed0: 6573 2029 2061 6e64 206e 6f74 2028 2022  es ) and not ( "
│ │ │ -00262ee0: 6e74 7022 2069 6e20 616e 7369 626c 655f  ntp" in ansible_
│ │ │ -00262ef0: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -00262f00: 2020 2029 2029 0a3c 2f63 6f64 653e 3c2f     ) ).
Complexity │ │ │ +002625e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00262600: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00262610: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00262620: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00262630: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00262650: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00262690: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +002626a0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +002626b0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +002626c0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +002626d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002626e0: 4155 2d38 2831 2928 6129 0a20 202d 204e  AU-8(1)(a).  - N
│ │ │ +002626f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00262700: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ +00262710: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ +00262720: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ +00262730: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ +00262740: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00262750: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +00262760: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +00262770: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00262780: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00262790: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002627a0: 0a20 202d 2073 6572 7669 6365 5f74 696d  .  - service_tim
│ │ │ +002627b0: 6573 796e 6364 5f65 6e61 626c 6564 0a0a  esyncd_enabled..
│ │ │ +002627c0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ +002627d0: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +002627e0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +002627f0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +00262800: 642d 7469 6d65 7379 6e63 640a 2020 626c  d-timesyncd.  bl
│ │ │ +00262810: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +00262820: 4761 7468 6572 2074 6865 2070 6163 6b61  Gather the packa
│ │ │ +00262830: 6765 2066 6163 7473 0a20 2020 2061 6e73  ge facts.    ans
│ │ │ +00262840: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00262850: 6b61 6765 5f66 6163 7473 3a0a 2020 2020  kage_facts:.    
│ │ │ +00262860: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +00262870: 0a20 202d 206e 616d 653a 2045 6e61 626c  .  - name: Enabl
│ │ │ +00262880: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +00262890: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +002628a0: 6162 6c65 2053 6572 7669 6365 2073 7973  able Service sys
│ │ │ +002628b0: 7465 6d64 2d74 696d 6573 796e 6364 0a20  temd-timesyncd. 
│ │ │ +002628c0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002628d0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +002628e0: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ +002628f0: 7469 6d65 7379 6e63 640a 2020 2020 2020  timesyncd.      
│ │ │ +00262900: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +00262910: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +00262920: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +00262930: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +00262940: 0a20 2020 202d 2027 2273 7973 7465 6d64  .    - '"systemd
│ │ │ +00262950: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00262960: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +00262970: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00262980: 302d 3533 2d41 552d 3828 3129 2861 290a  0-53-AU-8(1)(a).
│ │ │ +00262990: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002629a0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +002629b0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +002629c0: 2050 4349 2d44 5353 7634 2d31 302e 360a   PCI-DSSv4-10.6.
│ │ │ +002629d0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +002629e0: 2e36 2e31 0a20 202d 2065 6e61 626c 655f  .6.1.  - enable_
│ │ │ +002629f0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +00262a00: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +00262a10: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00262a20: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00262a30: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00262a40: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00262a50: 655f 7469 6d65 7379 6e63 645f 656e 6162  e_timesyncd_enab
│ │ │ +00262a60: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +00262a70: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +00262a80: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ +00262a90: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +00262aa0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00262ab0: 7327 0a20 202d 2028 206e 6f74 2028 2022  s'.  - ( not ( "
│ │ │ +00262ac0: 6368 726f 6e79 2220 696e 2061 6e73 6962  chrony" in ansib
│ │ │ +00262ad0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +00262ae0: 7320 2920 616e 6420 6e6f 7420 2820 226e  s ) and not ( "n
│ │ │ +00262af0: 7470 2220 696e 2061 6e73 6962 6c65 5f66  tp" in ansible_f
│ │ │ +00262b00: 6163 7473 2e70 6163 6b61 6765 730a 2020  acts.packages.  
│ │ │ +00262b10: 2020 2920 290a 3c2f 636f 6465 3e3c 2f70    ) ).

Remediatio │ │ │ +00262bd0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00262be0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00262c70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00262c90: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00262ca0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00262cb0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00262cc0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00262ce0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include enab
│ │ │ +00262d20: 6c65 5f73 7973 7465 6d64 2d74 696d 6573  le_systemd-times
│ │ │ +00262d30: 796e 6364 0a0a 636c 6173 7320 656e 6162  yncd..class enab
│ │ │ +00262d40: 6c65 5f73 7973 7465 6d64 2d74 696d 6573  le_systemd-times
│ │ │ +00262d50: 796e 6364 207b 0a20 2073 6572 7669 6365  yncd {.  service
│ │ │ +00262d60: 207b 2773 7973 7465 6d64 2d74 696d 6573   {'systemd-times
│ │ │ +00262d70: 796e 6364 273a 0a20 2020 2065 6e61 626c  yncd':.    enabl
│ │ │ +00262d80: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ +00262d90: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +00262da0: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ +00262db0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00262e60: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00262e70: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00262e80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +00262ed0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00262ee0: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +00262ef0: 205b 2273 7973 7465 6d64 2d74 696d 6573   ["systemd-times
│ │ │ +00262f00: 796e 6364 225d 0a3c 2f63 6f64 653e 3c2f  yncd"].
Rem │ │ │ -00263be0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -00263bf0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -00263c00: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ -00263c50: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00263c60: 6573 5d0a 6d61 736b 6564 203d 205b 2263 es].masked = ["c │ │ │ -00263c70: 6872 6f6e 7922 5d0a 3c2f 636f 6465 3e3c hrony"].< │ │ │ -00263c80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ -00263d30: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00263d40: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00263dc0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00263dd0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00263de0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00263e20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00263e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00263e50: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00263e70: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -00263e80: 7361 626c 655f 6368 726f 6e79 0a0a 636c  sable_chrony..cl
│ │ │ -00263e90: 6173 7320 6469 7361 626c 655f 6368 726f  ass disable_chro
│ │ │ -00263ea0: 6e79 207b 0a20 2073 6572 7669 6365 207b  ny {.  service {
│ │ │ -00263eb0: 2763 6872 6f6e 7927 3a0a 2020 2020 656e  'chrony':.    en
│ │ │ -00263ec0: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00263ed0: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00263ee0: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00263ef0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediatio │ │ │ -002651a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002651b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00265230: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00265240: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00265260: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00265270: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00265290: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002652b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -002652e0: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002652f0: 6162 6c65 5f73 7973 7465 6d64 2d74 696d  able_systemd-tim
│ │ │ -00265300: 6573 796e 6364 0a0a 636c 6173 7320 6469  esyncd..class di
│ │ │ -00265310: 7361 626c 655f 7379 7374 656d 642d 7469  sable_systemd-ti
│ │ │ -00265320: 6d65 7379 6e63 6420 7b0a 2020 7365 7276  mesyncd {.  serv
│ │ │ -00265330: 6963 6520 7b27 7379 7374 656d 642d 7469  ice {'systemd-ti
│ │ │ -00265340: 6d65 7379 6e63 6427 3a0a 2020 2020 656e  mesyncd':.    en
│ │ │ -00265350: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ -00265360: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ -00265370: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ -00265380: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00265440: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00265450: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002654d0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002654e0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00265500: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00265510: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00265530: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -00265550: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -00265580: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00265590: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002655a0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002655b0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002655c0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002655d0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002655e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002655f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00265600: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00265610: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00265620: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00265630: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00265640: 655f 7469 6d65 7379 6e63 645f 6469 7361  e_timesyncd_disa
│ │ │ -00265650: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -00265660: 7361 626c 6520 7379 7374 656d 645f 7469  sable systemd_ti
│ │ │ -00265670: 6d65 7379 6e63 6420 5365 7276 6963 6520  mesyncd Service 
│ │ │ -00265680: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -00265690: 6520 7379 7374 656d 642d 7469 6d65 7379  e systemd-timesy
│ │ │ -002656a0: 6e63 640a 2020 626c 6f63 6b3a 0a0a 2020  ncd.  block:..  
│ │ │ -002656b0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002656c0: 7379 7374 656d 645f 7469 6d65 7379 6e63  systemd_timesync
│ │ │ -002656d0: 6420 5365 7276 6963 6520 2d20 436f 6c6c  d Service - Coll
│ │ │ -002656e0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -002656f0: 6963 6573 2050 7265 7365 6e74 2069 6e0a  ices Present in.
│ │ │ -00265700: 2020 2020 2020 7468 6520 5379 7374 656d        the System
│ │ │ -00265710: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00265720: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00265730: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00265740: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -00265750: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -00265760: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -00265770: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -00265780: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -00265790: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002657a0: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -002657b0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -002657c0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -002657d0: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -002657e0: 2044 6973 6162 6c65 2073 7973 7465 6d64   Disable systemd
│ │ │ -002657f0: 5f74 696d 6573 796e 6364 2053 6572 7669  _timesyncd Servi
│ │ │ -00265800: 6365 202d 2045 6e73 7572 6520 7379 7374  ce - Ensure syst
│ │ │ -00265810: 656d 642d 7469 6d65 7379 6e63 642e 7365  emd-timesyncd.se
│ │ │ -00265820: 7276 6963 6520 6973 0a20 2020 2020 204d  rvice is.      M
│ │ │ -00265830: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -00265840: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -00265850: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -00265860: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ -00265870: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -00265880: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00265890: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002658a0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -002658b0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002658c0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -002658d0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002658e0: 6561 7263 6828 2273 7973 7465 6d64 2d74  earch("systemd-t
│ │ │ -002658f0: 696d 6573 796e 6364 2e73 6572 7669 6365  imesyncd.service
│ │ │ -00265900: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00265910: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00265920: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00265930: 202d 2073 7973 7465 6d64 2d74 696d 6573   - systemd-times
│ │ │ -00265940: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ -00265950: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00265960: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00265970: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00265980: 6669 6c65 7320 7379 7374 656d 642d 7469  files systemd-ti
│ │ │ -00265990: 6d65 7379 6e63 642e 736f 636b 6574 0a20  mesyncd.socket. 
│ │ │ -002659a0: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -002659b0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -002659c0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -002659d0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -002659e0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -002659f0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -00265a00: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -00265a10: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -00265a20: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ -00265a30: 7361 626c 6520 7379 7374 656d 645f 7469  sable systemd_ti
│ │ │ -00265a40: 6d65 7379 6e63 6420 5365 7276 6963 6520  mesyncd Service 
│ │ │ -00265a50: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -00265a60: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ -00265a70: 6364 0a20 2020 2061 6e73 6962 6c65 2e62  cd.    ansible.b
│ │ │ -00265a80: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00265a90: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ -00265aa0: 656d 642d 7469 6d65 7379 6e63 642e 736f  emd-timesyncd.so
│ │ │ -00265ab0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00265ac0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00265ad0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00265ae0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00265af0: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00265b00: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -00265b10: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00265b20: 6561 7263 6828 2273 7973 7465 6d64 2d74  earch("systemd-t
│ │ │ -00265b30: 696d 6573 796e 6364 2e73 6f63 6b65 7422  imesyncd.socket"
│ │ │ -00265b40: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -00265b50: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ -00265b60: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00265b70: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00265b80: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00265b90: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00265ba0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00265bb0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00265bc0: 2d20 7365 7276 6963 655f 7469 6d65 7379  - service_timesy
│ │ │ -00265bd0: 6e63 645f 6469 7361 626c 6564 0a20 202d  ncd_disabled.  -
│ │ │ -00265be0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00265bf0: 5f62 6c6f 636b 0a20 2077 6865 6e3a 0a20  _block.  when:. 
│ │ │ -00265c00: 202d 2027 226c 696e 7578 2d62 6173 6522   - '"linux-base"
│ │ │ -00265c10: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -00265c20: 732e 7061 636b 6167 6573 270a 2020 2d20  s.packages'.  - 
│ │ │ -00265c30: 2722 7379 7374 656d 642d 7469 6d65 7379  '"systemd-timesy
│ │ │ -00265c40: 6e63 6422 2069 6e20 616e 7369 626c 655f  ncd" in ansible_
│ │ │ -00265c50: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00265040: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +00265050: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ +002650f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00265190: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002651a0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002651b0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002651c0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002651d0: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002651e0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002651f0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00265200: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00265210: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00265220: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00265230: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00265240: 202d 2073 6572 7669 6365 5f74 696d 6573   - service_times
│ │ │ +00265250: 796e 6364 5f64 6973 6162 6c65 640a 0a2d  yncd_disabled..-
│ │ │ +00265260: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +00265270: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +00265280: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00265290: 6c65 2073 6572 7669 6365 2073 7973 7465  le service syste
│ │ │ +002652a0: 6d64 2d74 696d 6573 796e 6364 0a20 2062  md-timesyncd.  b
│ │ │ +002652b0: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +002652c0: 2044 6973 6162 6c65 2073 7973 7465 6d64   Disable systemd
│ │ │ +002652d0: 5f74 696d 6573 796e 6364 2053 6572 7669  _timesyncd Servi
│ │ │ +002652e0: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +002652f0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00265300: 6573 656e 7420 696e 0a20 2020 2020 2074  esent in.      t
│ │ │ +00265310: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00265320: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00265330: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00265340: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00265350: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00265360: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00265370: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00265380: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00265390: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +002653a0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +002653b0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +002653c0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +002653d0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +002653e0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +002653f0: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +00265400: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +00265410: 7375 7265 2073 7973 7465 6d64 2d74 696d  sure systemd-tim
│ │ │ +00265420: 6573 796e 6364 2e73 6572 7669 6365 2069  esyncd.service i
│ │ │ +00265430: 730a 2020 2020 2020 4d61 736b 6564 0a20  s.      Masked. 
│ │ │ +00265440: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +00265450: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ +00265460: 2020 6e61 6d65 3a20 7379 7374 656d 642d    name: systemd-
│ │ │ +00265470: 7469 6d65 7379 6e63 642e 7365 7276 6963  timesyncd.servic
│ │ │ +00265480: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00265490: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +002654a0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002654b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +002654c0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +002654d0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +002654e0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +002654f0: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +00265500: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00265510: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00265520: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00265530: 6574 2045 7869 7374 7320 2d20 7379 7374  et Exists - syst
│ │ │ +00265540: 656d 642d 7469 6d65 7379 6e63 642e 736f  emd-timesyncd.so
│ │ │ +00265550: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ +00265560: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +00265570: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +00265580: 6973 742d 756e 6974 2d66 696c 6573 2073  ist-unit-files s
│ │ │ +00265590: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ +002655a0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +002655b0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +002655c0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002655d0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002655e0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002655f0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00265600: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00265610: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00265620: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00265630: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +00265640: 7973 7465 6d64 5f74 696d 6573 796e 6364  ystemd_timesyncd
│ │ │ +00265650: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00265660: 6c65 2053 6f63 6b65 7420 7379 7374 656d  le Socket system
│ │ │ +00265670: 642d 7469 6d65 7379 6e63 640a 2020 2020  d-timesyncd.    
│ │ │ +00265680: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00265690: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002656a0: 616d 653a 2073 7973 7465 6d64 2d74 696d  ame: systemd-tim
│ │ │ +002656b0: 6573 796e 6364 2e73 6f63 6b65 740a 2020  esyncd.socket.  
│ │ │ +002656c0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +002656d0: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +002656e0: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +002656f0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00265700: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00265710: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00265720: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00265730: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +00265740: 642e 736f 636b 6574 222c 206d 756c 7469  d.socket", multi
│ │ │ +00265750: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ +00265760: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00265770: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00265780: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00265790: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002657a0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +002657b0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002657c0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002657d0: 6365 5f74 696d 6573 796e 6364 5f64 6973  ce_timesyncd_dis
│ │ │ +002657e0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +002657f0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00265800: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +00265810: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +00265820: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +00265830: 6765 7327 0a20 202d 2027 2273 7973 7465  ges'.  - '"syste
│ │ │ +00265840: 6d64 2d74 696d 6573 796e 6364 2220 696e  md-timesyncd" in
│ │ │ +00265850: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00265860: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00265870: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00265920: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00265930: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00265940: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002650e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00265110: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00265120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00265160: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00265170: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002659e0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00265a00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00265a30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002659c0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002659d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002659f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00265a10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00265a20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00265a70: 2064 6973 6162 6c65 5f73 7973 7465 6d64 disable_systemd │ │ │ +00265a80: 2d74 696d 6573 796e 6364 0a0a 636c 6173 -timesyncd..clas │ │ │ +00265a90: 7320 6469 7361 626c 655f 7379 7374 656d s disable_system │ │ │ +00265aa0: 642d 7469 6d65 7379 6e63 6420 7b0a 2020 d-timesyncd {. │ │ │ +00265ab0: 7365 7276 6963 6520 7b27 7379 7374 656d service {'system │ │ │ +00265ac0: 642d 7469 6d65 7379 6e63 6427 3a0a 2020 d-timesyncd':. │ │ │ +00265ad0: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ +00265ae0: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ +00265af0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ +00265b00: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +00265b10: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remedia │ │ │ +00265bc0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00265bd0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00265be0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00265c20: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00265c30: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00265c40: 0a6d 6173 6b65 6420 3d20 5b22 7379 7374  .masked = ["syst
│ │ │ +00265c50: 656d 642d 7469 6d65 7379 6e63 6422 5d0a  emd-timesyncd"].
│ │ │  00265c60: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -0026d2b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0026d2c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0026d2d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0026d2e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0026d2f0: 7365 2220 6964 3d22 6964 3130 3133 223e se" id="id1013"> │ │ │ -0026d300: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -0026d370: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0026d390: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0026d3c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -0026d350: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0026d360: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0026d3a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0026d3b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

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

│ │ │ -0026d660: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0026d670: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0026d680: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -0026d690: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -0026d6a0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -0026d6b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -0026d6c0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -0026d6d0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -0026d6e0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -0026d6f0: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -0026d700: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -0026d710: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -0026d720: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0026d730: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0026d740: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0026d750: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -0026d760: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0026d770: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -0026d780: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ -0026d790: 6d6f 7665 640a 0a2d 206e 616d 653a 2027  moved..- name: '
│ │ │ -0026d7a0: 556e 696e 7374 616c 6c20 7869 6e65 7464  Uninstall xinetd
│ │ │ -0026d7b0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -0026d7c0: 2078 696e 6574 6420 6973 2072 656d 6f76   xinetd is remov
│ │ │ -0026d7d0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -0026d7e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -0026d7f0: 2020 206e 616d 653a 2078 696e 6574 640a     name: xinetd.
│ │ │ -0026d800: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -0026d810: 740a 2020 7768 656e 3a20 2722 6c69 6e75  t.  when: '"linu
│ │ │ -0026d820: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0026d830: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0026d840: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ -0026d850: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0026d860: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0026d870: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ -0026d880: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0026d890: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ -0026d8a0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0026d8b0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0026d8c0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0026d8d0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0026d8e0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0026d8f0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0026d900: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0026d910: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0026d920: 636b 6167 655f 7869 6e65 7464 5f72 656d  ckage_xinetd_rem
│ │ │ -0026d930: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +0026d2d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ -0026d5e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026d5f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026d630: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026d640: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0026d370: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0026d390: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0026d3c0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0026d350: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0026d360: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0026d380: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0026d3a0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0026d3b0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0026d3f0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0026d400: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0026d410: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0026d420: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0026d430: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0026d440: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0026d450: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0026d460: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0026d470: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +0026d480: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +0026d490: 2d20 5043 492d 4453 5376 342d 322e 320a - PCI-DSSv4-2.2. │ │ │ +0026d4a0: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +0026d4b0: 322e 340a 2020 2d20 6469 7361 626c 655f 2.4. - disable_ │ │ │ +0026d4c0: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +0026d4d0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +0026d4e0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +0026d4f0: 202d 206c 6f77 5f73 6576 6572 6974 790a - low_severity. │ │ │ +0026d500: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +0026d510: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +0026d520: 5f78 696e 6574 645f 7265 6d6f 7665 640a _xinetd_removed. │ │ │ +0026d530: 0a2d 206e 616d 653a 2027 556e 696e 7374 .- name: 'Uninst │ │ │ +0026d540: 616c 6c20 7869 6e65 7464 2050 6163 6b61 all xinetd Packa │ │ │ +0026d550: 6765 3a20 456e 7375 7265 2078 696e 6574 ge: Ensure xinet │ │ │ +0026d560: 6420 6973 2072 656d 6f76 6564 270a 2020 d is removed'. │ │ │ +0026d570: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0026d580: 7061 636b 6167 653a 0a20 2020 206e 616d package:. nam │ │ │ +0026d590: 653a 2078 696e 6574 640a 2020 2020 7374 e: xinetd. st │ │ │ +0026d5a0: 6174 653a 2061 6273 656e 740a 2020 7768 ate: absent. wh │ │ │ +0026d5b0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +0026d5c0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +0026d5d0: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ +0026d5e0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +0026d5f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +0026d600: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +0026d610: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +0026d620: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +0026d630: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ +0026d640: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +0026d650: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ +0026d660: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0026d670: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0026d680: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0026d690: 2d20 6c6f 775f 7365 7665 7269 7479 0a20 - low_severity. │ │ │ +0026d6a0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +0026d6b0: 6465 640a 2020 2d20 7061 636b 6167 655f ded. - package_ │ │ │ +0026d6c0: 7869 6e65 7464 5f72 656d 6f76 6564 0a3c xinetd_removed.< │ │ │ +0026d6d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
│ │ │ +0026d780: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0026d790: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ +0026d870: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0026d880: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0026d8d0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0026d8e0: 7869 6e65 7464 0a0a 636c 6173 7320 7265  xinetd..class re
│ │ │ +0026d8f0: 6d6f 7665 5f78 696e 6574 6420 7b0a 2020  move_xinetd {.  
│ │ │ +0026d900: 7061 636b 6167 6520 7b20 2778 696e 6574  package { 'xinet
│ │ │ +0026d910: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +0026d920: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0026d930: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remed
│ │ │ -0026edc0: 6961 7469 6f6e 204f 5342 7569 6c64 2042  iation OSBuild B
│ │ │ -0026edd0: 6c75 6570 7269 6e74 2073 6e69 7070 6574  lueprint snippet
│ │ │ -0026ede0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
.[custom │ │ │ -0026ee30: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ -0026ee40: 735d 0a6d 6173 6b65 6420 3d20 5b22 7869 s].masked = ["xi │ │ │ -0026ee50: 6e65 7464 225d 0a3c 2f63 6f64 653e 3c2f netd"].
Remediat │ │ │ -0026ef10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0026ef20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -0026ef60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0026ef70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0026ef80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0026ef90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0026efa0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -0026f030: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -0026f040: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +0026d850: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0026d860: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0026d8a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0026d8b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -0026efb0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0026efc0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0026f000: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0026f010: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -0026f060: 6973 6162 6c65 5f78 696e 6574 640a 0a63  isable_xinetd..c
│ │ │ -0026f070: 6c61 7373 2064 6973 6162 6c65 5f78 696e  lass disable_xin
│ │ │ -0026f080: 6574 6420 7b0a 2020 7365 7276 6963 6520  etd {.  service 
│ │ │ -0026f090: 7b27 7869 6e65 7464 273a 0a20 2020 2065  {'xinetd':.    e
│ │ │ -0026f0a0: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0026f0b0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0026f0c0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0026f0d0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -0026f190: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0026f1a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0026f220: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0026f230: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0026f240: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0026f280: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0026f290: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0026f2b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0026f2c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0026f2e0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0026f2f0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0026f300: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0026f310: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0026f320: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -0026f330: 3137 312d 332e 342e 370a 2020 2d20 4e49  171-3.4.7.  - NI
│ │ │ -0026f340: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -0026f350: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0026f360: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0026f370: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0026f380: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -0026f390: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0026f3a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0026f3b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0026f3c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0026f3d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0026f3e0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -0026f3f0: 655f 7869 6e65 7464 5f64 6973 6162 6c65  e_xinetd_disable
│ │ │ -0026f400: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0026f410: 6c65 2078 696e 6574 6420 5365 7276 6963  le xinetd Servic
│ │ │ -0026f420: 6520 2d20 4469 7361 626c 6520 7365 7276  e - Disable serv
│ │ │ -0026f430: 6963 6520 7869 6e65 7464 0a20 2062 6c6f  ice xinetd.  blo
│ │ │ -0026f440: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -0026f450: 6973 6162 6c65 2078 696e 6574 6420 5365  isable xinetd Se
│ │ │ -0026f460: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -0026f470: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -0026f480: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -0026f490: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -0026f4a0: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0026f4b0: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0026f4c0: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0026f4d0: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -0026f4e0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -0026f4f0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -0026f500: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -0026f510: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -0026f520: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -0026f530: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -0026f540: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -0026f550: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -0026f560: 206e 616d 653a 2044 6973 6162 6c65 2078   name: Disable x
│ │ │ -0026f570: 696e 6574 6420 5365 7276 6963 6520 2d20  inetd Service - 
│ │ │ -0026f580: 456e 7375 7265 2078 696e 6574 642e 7365  Ensure xinetd.se
│ │ │ -0026f590: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0026f5a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0026f5b0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0026f5c0: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ -0026f5d0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0026f5e0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0026f5f0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0026f600: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0026f610: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0026f620: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0026f630: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0026f640: 6172 6368 2822 7869 6e65 7464 2e73 6572  arch("xinetd.ser
│ │ │ -0026f650: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0026f660: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0026f670: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0026f680: 6973 7473 202d 2078 696e 6574 642e 736f  ists - xinetd.so
│ │ │ -0026f690: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0026f6a0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0026f6b0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0026f6c0: 6973 742d 756e 6974 2d66 696c 6573 2078  ist-unit-files x
│ │ │ -0026f6d0: 696e 6574 642e 736f 636b 6574 0a20 2020  inetd.socket.   
│ │ │ -0026f6e0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0026f6f0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0026f700: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0026f710: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0026f720: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0026f730: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0026f740: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0026f750: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0026f760: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0026f770: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ -0026f780: 6365 202d 2044 6973 6162 6c65 2053 6f63  ce - Disable Soc
│ │ │ -0026f790: 6b65 7420 7869 6e65 7464 0a20 2020 2061  ket xinetd.    a
│ │ │ -0026f7a0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -0026f7b0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -0026f7c0: 6d65 3a20 7869 6e65 7464 2e73 6f63 6b65  me: xinetd.socke
│ │ │ -0026f7d0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0026f7e0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0026f7f0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0026f800: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0026f810: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0026f820: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0026f830: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0026f840: 6368 2822 7869 6e65 7464 2e73 6f63 6b65  ch("xinetd.socke
│ │ │ -0026f850: 7422 2c20 6d75 6c74 696c 696e 653d 5472  t", multiline=Tr
│ │ │ -0026f860: 7565 290a 2020 7461 6773 3a0a 2020 2d20  ue).  tags:.  - 
│ │ │ -0026f870: 4e49 5354 2d38 3030 2d31 3731 2d33 2e34  NIST-800-171-3.4
│ │ │ -0026f880: 2e37 0a20 202d 204e 4953 542d 3830 302d  .7.  - NIST-800-
│ │ │ -0026f890: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -0026f8a0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -0026f8b0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0026f8c0: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -0026f8d0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0026f8e0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0026f8f0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0026f900: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0026f910: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0026f920: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0026f930: 202d 2073 6572 7669 6365 5f78 696e 6574   - service_xinet
│ │ │ -0026f940: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ -0026f950: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -0026f960: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -0026f970: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -0026f980: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0026f990: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.

Com │ │ │ +0026ee60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0026ee90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0026eeb0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0026eec0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0026eee0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +0026eef0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +0026ef10: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ +0026ef20: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ +0026ef30: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ +0026ef40: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ +0026ef50: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0026ef60: 2d38 3030 2d31 3731 2d33 2e34 2e37 0a20  -800-171-3.4.7. 
│ │ │ +0026ef70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026ef80: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0026ef90: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0026efa0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0026efb0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0026efc0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0026efd0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0026efe0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0026eff0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +0026f000: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +0026f010: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +0026f020: 6572 7669 6365 5f78 696e 6574 645f 6469  ervice_xinetd_di
│ │ │ +0026f030: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +0026f040: 4469 7361 626c 6520 7869 6e65 7464 2053  Disable xinetd S
│ │ │ +0026f050: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ +0026f060: 2073 6572 7669 6365 2078 696e 6574 640a   service xinetd.
│ │ │ +0026f070: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +0026f080: 6d65 3a20 4469 7361 626c 6520 7869 6e65  me: Disable xine
│ │ │ +0026f090: 7464 2053 6572 7669 6365 202d 2043 6f6c  td Service - Col
│ │ │ +0026f0a0: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ +0026f0b0: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ +0026f0c0: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ +0026f0d0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0026f0e0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0026f0f0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0026f100: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ +0026f110: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ +0026f120: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ +0026f130: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +0026f140: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +0026f150: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ +0026f160: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ +0026f170: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +0026f180: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +0026f190: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +0026f1a0: 626c 6520 7869 6e65 7464 2053 6572 7669  ble xinetd Servi
│ │ │ +0026f1b0: 6365 202d 2045 6e73 7572 6520 7869 6e65  ce - Ensure xine
│ │ │ +0026f1c0: 7464 2e73 6572 7669 6365 2069 7320 4d61  td.service is Ma
│ │ │ +0026f1d0: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ +0026f1e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0026f1f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7869  :.      name: xi
│ │ │ +0026f200: 6e65 7464 2e73 6572 7669 6365 0a20 2020  netd.service.   
│ │ │ +0026f210: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0026f220: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +0026f230: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +0026f240: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0026f250: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0026f260: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0026f270: 6973 2073 6561 7263 6828 2278 696e 6574  is search("xinet
│ │ │ +0026f280: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +0026f290: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +0026f2a0: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +0026f2b0: 6574 2045 7869 7374 7320 2d20 7869 6e65  et Exists - xine
│ │ │ +0026f2c0: 7464 2e73 6f63 6b65 740a 2020 2020 616e  td.socket.    an
│ │ │ +0026f2d0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +0026f2e0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +0026f2f0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +0026f300: 6c65 7320 7869 6e65 7464 2e73 6f63 6b65  les xinetd.socke
│ │ │ +0026f310: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +0026f320: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +0026f330: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0026f340: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0026f350: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +0026f360: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +0026f370: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0026f380: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0026f390: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0026f3a0: 2044 6973 6162 6c65 2078 696e 6574 6420   Disable xinetd 
│ │ │ +0026f3b0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +0026f3c0: 6520 536f 636b 6574 2078 696e 6574 640a  e Socket xinetd.
│ │ │ +0026f3d0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0026f3e0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0026f3f0: 2020 206e 616d 653a 2078 696e 6574 642e     name: xinetd.
│ │ │ +0026f400: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0026f410: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0026f420: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0026f430: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0026f440: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0026f450: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0026f460: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0026f470: 2073 6561 7263 6828 2278 696e 6574 642e   search("xinetd.
│ │ │ +0026f480: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ +0026f490: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ +0026f4a0: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ +0026f4b0: 312d 332e 342e 370a 2020 2d20 4e49 5354  1-3.4.7.  - NIST
│ │ │ +0026f4c0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +0026f4d0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0026f4e0: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +0026f4f0: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +0026f500: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0026f510: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0026f520: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0026f530: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0026f540: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0026f550: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0026f560: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0026f570: 7869 6e65 7464 5f64 6973 6162 6c65 640a  xinetd_disabled.
│ │ │ +0026f580: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0026f590: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0026f5a0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +0026f5b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +0026f5c0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Reme │ │ │ +0026f680: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0026f690: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +0026f720: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +0026f750: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +0026f770: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +0026f780: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +0026f7a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +0026f7c0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +0026f7d0: 6465 2064 6973 6162 6c65 5f78 696e 6574  de disable_xinet
│ │ │ +0026f7e0: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ +0026f7f0: 5f78 696e 6574 6420 7b0a 2020 7365 7276  _xinetd {.  serv
│ │ │ +0026f800: 6963 6520 7b27 7869 6e65 7464 273a 0a20  ice {'xinetd':. 
│ │ │ +0026f810: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0026f820: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +0026f830: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +0026f840: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0026f850: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0026f900: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0026f910: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0026f920: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0026f970: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0026f980: 5d0a 6d61 736b 6564 203d 205b 2278 696e  ].masked = ["xin
│ │ │ +0026f990: 6574 6422 5d0a 3c2f 636f 6465 3e3c 2f70  etd"].

< │ │ │ 0026f9b0: 2f74 643e 3c2f 7472 3e3c 2f74 626f 6479 /td>Remediation │ │ │ -00270fb0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00270fc0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00271050: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00271070: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00271080: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00271090: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002710a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002710c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -002710f0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00271100: 6d6f 7665 5f79 7073 6572 760a 0a63 6c61  move_ypserv..cla
│ │ │ -00271110: 7373 2072 656d 6f76 655f 7970 7365 7276  ss remove_ypserv
│ │ │ -00271120: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00271130: 7970 7365 7276 273a 0a20 2020 2065 6e73  ypserv':.    ens
│ │ │ -00271140: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00271150: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00271210: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00271220: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002712b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002712e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00271300: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00271310: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00271330: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00271340: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00271360: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2079  me: 'Uninstall y
│ │ │ -00271370: 7073 6572 7620 5061 636b 6167 653a 2045  pserv Package: E
│ │ │ -00271380: 6e73 7572 6520 7970 7365 7276 2069 7320  nsure ypserv is 
│ │ │ -00271390: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -002713a0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -002713b0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7970  ge:.    name: yp
│ │ │ -002713c0: 7365 7276 0a20 2020 2073 7461 7465 3a20  serv.    state: 
│ │ │ -002713d0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ -002713e0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002713f0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -00271400: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -00271410: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00271420: 4d2d 3728 6229 0a20 202d 204e 4953 542d  M-7(b).  - NIST-
│ │ │ -00271430: 3830 302d 3533 2d49 412d 3528 3129 2863  800-53-IA-5(1)(c
│ │ │ -00271440: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -00271450: 712d 322e 322e 320a 2020 2d20 5043 492d  q-2.2.2.  - PCI-
│ │ │ -00271460: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -00271470: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -00271480: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -00271490: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ -002714a0: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ -002714b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002714c0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -002714d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002714e0: 2020 2d20 7061 636b 6167 655f 7970 7365    - package_ypse
│ │ │ -002714f0: 7276 5f72 656d 6f76 6564 0a3c 2f63 6f64  rv_removed.
< │ │ │ +00271040: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00271050: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00271070: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00271080: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002710a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002710c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +002710f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00271100: 6e69 6e73 7461 6c6c 2079 7073 6572 7620  ninstall ypserv 
│ │ │ +00271110: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ +00271120: 7970 7365 7276 2069 7320 7265 6d6f 7665  ypserv is remove
│ │ │ +00271130: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ +00271140: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +00271150: 2020 6e61 6d65 3a20 7970 7365 7276 0a20    name: ypserv. 
│ │ │ +00271160: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00271170: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00271180: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00271190: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002711a0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +002711b0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +002711c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002711d0: 2d49 412d 3528 3129 2863 290a 2020 2d20  -IA-5(1)(c).  - 
│ │ │ +002711e0: 5043 492d 4453 532d 5265 712d 322e 322e  PCI-DSS-Req-2.2.
│ │ │ +002711f0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00271200: 322e 320a 2020 2d20 5043 492d 4453 5376  2.2.  - PCI-DSSv
│ │ │ +00271210: 342d 322e 322e 340a 2020 2d20 6469 7361  4-2.2.4.  - disa
│ │ │ +00271220: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00271230: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +00271240: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +00271250: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +00271260: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +00271270: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00271280: 636b 6167 655f 7970 7365 7276 5f72 656d  ckage_ypserv_rem
│ │ │ +00271290: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +00271350: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00271360: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +002713e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002713f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00271410: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00271420: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00271440: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00271460: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00271490: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +002714a0: 656d 6f76 655f 7970 7365 7276 0a0a 636c  emove_ypserv..cl
│ │ │ +002714b0: 6173 7320 7265 6d6f 7665 5f79 7073 6572  ass remove_ypser
│ │ │ +002714c0: 7620 7b0a 2020 7061 636b 6167 6520 7b20  v {.  package { 
│ │ │ +002714d0: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ +002714e0: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002714f0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Re │ │ │ -002720a0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002720b0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002720c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002720d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002720e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002720f0: 7365 2220 6964 3d22 6964 3130 3235 223e se" id="id1025"> │ │ │ -00272100: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00272110: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00272120: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00272130: 2279 7073 6572 7622 5d0a 3c2f 636f 6465  "ypserv"].
Remed │ │ │ -002721f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00272200: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00272290: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002722a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002722c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002722e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002722f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00272330: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00272340: 6520 6469 7361 626c 655f 7970 7365 7276 e disable_ypserv │ │ │ -00272350: 0a0a 636c 6173 7320 6469 7361 626c 655f ..class disable_ │ │ │ -00272360: 7970 7365 7276 207b 0a20 2073 6572 7669 ypserv {. servi │ │ │ -00272370: 6365 207b 2779 7073 6572 7627 3a0a 2020 ce {'ypserv':. │ │ │ -00272380: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -00272390: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -002723a0: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -002723b0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -002723c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ -00272470: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00272480: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00272490: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00272530: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00272550: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00272580: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00272510: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00272520: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00272540: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00272560: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00272570: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002725b0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002725c0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -002725d0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002725e0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002725f0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00272600: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -00272610: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00272620: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00272630: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00272640: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00272650: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00272660: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ -00272670: 7276 6963 655f 7970 7365 7276 5f64 6973 rvice_ypserv_dis │ │ │ -00272680: 6162 6c65 640a 0a2d 206e 616d 653a 2044 abled..- name: D │ │ │ -00272690: 6973 6162 6c65 2079 7073 6572 7620 5365 isable ypserv Se │ │ │ -002726a0: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -002726b0: 7365 7276 6963 6520 7970 7365 7276 0a20 service ypserv. │ │ │ -002726c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -002726d0: 653a 2044 6973 6162 6c65 2079 7073 6572 e: Disable ypser │ │ │ -002726e0: 7620 5365 7276 6963 6520 2d20 436f 6c6c v Service - Coll │ │ │ -002726f0: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ -00272700: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ -00272710: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ -00272720: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -00272730: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -00272740: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -00272750: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ -00272760: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ -00272770: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -00272780: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -00272790: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -002727a0: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ -002727b0: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -002727c0: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -002727d0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -002727e0: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -002727f0: 6c65 2079 7073 6572 7620 5365 7276 6963 le ypserv Servic │ │ │ -00272800: 6520 2d20 456e 7375 7265 2079 7073 6572 e - Ensure ypser │ │ │ -00272810: 762e 7365 7276 6963 6520 6973 204d 6173 v.service is Mas │ │ │ -00272820: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ -00272830: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -00272840: 0a20 2020 2020 206e 616d 653a 2079 7073 . name: yps │ │ │ -00272850: 6572 762e 7365 7276 6963 650a 2020 2020 erv.service. │ │ │ -00272860: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -00272870: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -00272880: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -00272890: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002728a0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -002728b0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -002728c0: 7320 7365 6172 6368 2822 7970 7365 7276 s search("ypserv │ │ │ -002728d0: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ -002728e0: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ -002728f0: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ -00272900: 7420 4578 6973 7473 202d 2079 7073 6572 t Exists - ypser │ │ │ -00272910: 762e 736f 636b 6574 0a20 2020 2061 6e73 v.socket. ans │ │ │ -00272920: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00272930: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00272940: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -00272950: 6573 2079 7073 6572 762e 736f 636b 6574 es ypserv.socket │ │ │ -00272960: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -00272970: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -00272980: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -00272990: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -002729a0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ -002729b0: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ -002729c0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -002729d0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -002729e0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -002729f0: 4469 7361 626c 6520 7970 7365 7276 2053 Disable ypserv S │ │ │ -00272a00: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -00272a10: 2053 6f63 6b65 7420 7970 7365 7276 0a20 Socket ypserv. │ │ │ -00272a20: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00272a30: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -00272a40: 2020 6e61 6d65 3a20 7970 7365 7276 2e73 name: ypserv.s │ │ │ -00272a50: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ -00272a60: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -00272a70: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -00272a80: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -00272a90: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ -00272aa0: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ -00272ab0: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00272ac0: 7365 6172 6368 2822 7970 7365 7276 2e73 search("ypserv.s │ │ │ -00272ad0: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ -00272ae0: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ -00272af0: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -00272b00: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00272b10: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00272b20: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00272b30: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00272b40: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -00272b50: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -00272b60: 7970 7365 7276 5f64 6973 6162 6c65 640a ypserv_disabled. │ │ │ -00272b70: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ -00272b80: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ -00272b90: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -00272ba0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00272bb0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
│ │ │ +00272150: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002721f0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00272200: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00272210: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00272220: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00272230: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +00272240: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00272250: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00272260: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00272270: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00272280: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00272290: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002722a0: 202d 2073 6572 7669 6365 5f79 7073 6572   - service_ypser
│ │ │ +002722b0: 765f 6469 7361 626c 6564 0a0a 2d20 6e61  v_disabled..- na
│ │ │ +002722c0: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ +002722d0: 7276 2053 6572 7669 6365 202d 2044 6973  rv Service - Dis
│ │ │ +002722e0: 6162 6c65 2073 6572 7669 6365 2079 7073  able service yps
│ │ │ +002722f0: 6572 760a 2020 626c 6f63 6b3a 0a0a 2020  erv.  block:..  
│ │ │ +00272300: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00272310: 7970 7365 7276 2053 6572 7669 6365 202d  ypserv Service -
│ │ │ +00272320: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +00272330: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +00272340: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00272350: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00272360: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00272370: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00272380: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +00272390: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002723a0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002723b0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002723c0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002723d0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002723e0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002723f0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00272400: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00272410: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00272420: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ +00272430: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +00272440: 7970 7365 7276 2e73 6572 7669 6365 2069  ypserv.service i
│ │ │ +00272450: 7320 4d61 736b 6564 0a20 2020 2061 6e73  s Masked.    ans
│ │ │ +00272460: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00272470: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00272480: 3a20 7970 7365 7276 2e73 6572 7669 6365  : ypserv.service
│ │ │ +00272490: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +002724a0: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +002724b0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002724c0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002724d0: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +002724e0: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +002724f0: 6e65 7320 6973 2073 6561 7263 6828 2279  nes is search("y
│ │ │ +00272500: 7073 6572 762e 7365 7276 6963 6522 2c20  pserv.service", 
│ │ │ +00272510: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00272520: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00272530: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00272540: 7970 7365 7276 2e73 6f63 6b65 740a 2020  ypserv.socket.  
│ │ │ +00272550: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00272560: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00272570: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00272580: 742d 6669 6c65 7320 7970 7365 7276 2e73  t-files ypserv.s
│ │ │ +00272590: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ +002725a0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ +002725b0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002725c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002725d0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +002725e0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +002725f0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +00272600: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +00272610: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +00272620: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ +00272630: 6572 7620 5365 7276 6963 6520 2d20 4469  erv Service - Di
│ │ │ +00272640: 7361 626c 6520 536f 636b 6574 2079 7073  sable Socket yps
│ │ │ +00272650: 6572 760a 2020 2020 616e 7369 626c 652e  erv.    ansible.
│ │ │ +00272660: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00272670: 0a20 2020 2020 206e 616d 653a 2079 7073  .      name: yps
│ │ │ +00272680: 6572 762e 736f 636b 6574 0a20 2020 2020  erv.socket.     
│ │ │ +00272690: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002726a0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002726b0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +002726c0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002726d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002726e0: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002726f0: 7320 6973 2073 6561 7263 6828 2279 7073  s is search("yps
│ │ │ +00272700: 6572 762e 736f 636b 6574 222c 206d 756c  erv.socket", mul
│ │ │ +00272710: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00272720: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00272730: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00272740: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00272750: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00272760: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +00272770: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +00272780: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +00272790: 7669 6365 5f79 7073 6572 765f 6469 7361  vice_ypserv_disa
│ │ │ +002727a0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002727b0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +002727c0: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002727d0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002727e0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002727f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002728b0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002728c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00272140: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00272170: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00272180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002721c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002721d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ +00272990: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002729a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002729f0: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +00272a00: 7970 7365 7276 0a0a 636c 6173 7320 6469  ypserv..class di
│ │ │ +00272a10: 7361 626c 655f 7970 7365 7276 207b 0a20  sable_ypserv {. 
│ │ │ +00272a20: 2073 6572 7669 6365 207b 2779 7073 6572   service {'ypser
│ │ │ +00272a30: 7627 3a0a 2020 2020 656e 6162 6c65 203d  v':.    enable =
│ │ │ +00272a40: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00272a50: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00272a60: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +00272b20: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00272b30: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00272b40: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00272b50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +00272b90: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +00272ba0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +00272bb0: 5b22 7970 7365 7276 225d 0a3c 2f63 6f64  ["ypserv"].
low
Disru │ │ │ +00272970: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00272980: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002729c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002729d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Rem │ │ │ -00273b40: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00273b50: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00273b60: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00273c00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00273c50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -00273c90: 636c 7564 6520 7265 6d6f 7665 5f72 7368  clude remove_rsh
│ │ │ -00273ca0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f72  ..class remove_r
│ │ │ -00273cb0: 7368 207b 0a20 2070 6163 6b61 6765 207b  sh {.  package {
│ │ │ -00273cc0: 2027 7273 6827 3a0a 2020 2020 656e 7375   'rsh':.    ensu
│ │ │ -00273cd0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00273ce0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00273cf0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00273da0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00273db0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Co │ │ │ -00273be0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00273c10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00273c30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00273c40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00273c60: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00273c70: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ -00273e40: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00273e50: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00273e70: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00273e90: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00273ea0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -00273ee0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -00273ef0: 653a 2027 556e 696e 7374 616c 6c20 7273  e: 'Uninstall rs
│ │ │ -00273f00: 6820 5061 636b 6167 653a 2045 6e73 7572  h Package: Ensur
│ │ │ -00273f10: 6520 7273 6820 6973 2072 656d 6f76 6564  e rsh is removed
│ │ │ -00273f20: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00273f30: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00273f40: 206e 616d 653a 2072 7368 0a20 2020 2073   name: rsh.    s
│ │ │ -00273f50: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00273f60: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00273f70: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00273f80: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00273f90: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00273fa0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00273fb0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00273fc0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00273fd0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00273fe0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00273ff0: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ -00274000: 7368 5f72 656d 6f76 6564 0a20 202d 2075  sh_removed.  - u
│ │ │ -00274010: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ +00273b40: 6564 6961 7469 6f6e 2041 6e73 6962 6c65  ediation Ansible
│ │ │ +00273b50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e   snippet ...
│ │ │ +00273b60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +00273bf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00273c00: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00273c50: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00273c90: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +00273ca0: 2072 7368 2050 6163 6b61 6765 3a20 456e   rsh Package: En
│ │ │ +00273cb0: 7375 7265 2072 7368 2069 7320 7265 6d6f  sure rsh is remo
│ │ │ +00273cc0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00273cd0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +00273ce0: 2020 2020 6e61 6d65 3a20 7273 680a 2020      name: rsh.  
│ │ │ +00273cf0: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +00273d00: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00273d10: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ +00273d20: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00273d30: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +00273d40: 322e 322e 340a 2020 2d20 6469 7361 626c  2.2.4.  - disabl
│ │ │ +00273d50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00273d60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00273d70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00273d80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00273d90: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00273da0: 655f 7273 685f 7265 6d6f 7665 640a 2020  e_rsh_removed.  
│ │ │ +00273db0: 2d20 756e 6b6e 6f77 6e5f 7365 7665 7269  - unknown_severi
│ │ │ +00273dc0: 7479 0a3c 2f63 6f64 653e 3c2f 7072 653e  ty.
│ │ │ +00273dd0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +00273e80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00273e90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ +00273f60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ +00273be0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00273c10: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00273c20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00273c60: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00273c70: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00273f20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +00273f40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +00273f90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00273fa0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ +00273fd0: 6f76 655f 7273 680a 0a63 6c61 7373 2072  ove_rsh..class r
│ │ │ +00273fe0: 656d 6f76 655f 7273 6820 7b0a 2020 7061  emove_rsh {.  pa
│ │ │ +00273ff0: 636b 6167 6520 7b20 2772 7368 273a 0a20  ckage { 'rsh':. 
│ │ │ +00274000: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00274010: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00274020: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remedia │ │ │ -00276140: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00276150: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00276160: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00276170: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00276180: 7365 2220 6964 3d22 6964 3130 3334 223e se" id="id1034"> │ │ │ -00276190: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00276200: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00276220: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00276250: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -002761e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002761f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00276230: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00276240: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

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

Remedia │ │ │ -002763a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002763b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002763c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00276460: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00276480: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002764b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00276440: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00276450: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00276470: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00276490: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002764a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002764e0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002764f0: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ -00276500: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ -00276510: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ -00276520: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ -00276530: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00276540: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ -00276550: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ -00276560: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ -00276570: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ -00276580: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ -00276590: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ -002765a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ -002765b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ -002765c0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ -002765d0: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ -002765e0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -002765f0: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ -00276600: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
│ │ │ +00276160: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00276200: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00276220: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00276250: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +002761e0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002761f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00276210: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00276230: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00276240: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00276280: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00276290: 3a20 2755 6e69 6e73 7461 6c6c 2074 616c : 'Uninstall tal │ │ │ +002762a0: 6b20 5061 636b 6167 653a 2045 6e73 7572 k Package: Ensur │ │ │ +002762b0: 6520 7461 6c6b 2069 7320 7265 6d6f 7665 e talk is remove │ │ │ +002762c0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +002762d0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +002762e0: 2020 6e61 6d65 3a20 7461 6c6b 0a20 2020 name: talk. │ │ │ +002762f0: 2073 7461 7465 3a20 6162 7365 6e74 0a20 state: absent. │ │ │ +00276300: 2074 6167 733a 0a20 202d 2050 4349 2d44 tags:. - PCI-D │ │ │ +00276310: 5353 7634 2d32 2e32 0a20 202d 2050 4349 SSv4-2.2. - PCI │ │ │ +00276320: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d -DSSv4-2.2.4. - │ │ │ +00276330: 2064 6973 6162 6c65 5f73 7472 6174 6567 disable_strateg │ │ │ +00276340: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65 y. - low_comple │ │ │ +00276350: 7869 7479 0a20 202d 206c 6f77 5f64 6973 xity. - low_dis │ │ │ +00276360: 7275 7074 696f 6e0a 2020 2d20 6d65 6469 ruption. - medi │ │ │ +00276370: 756d 5f73 6576 6572 6974 790a 2020 2d20 um_severity. - │ │ │ +00276380: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00276390: 0a20 202d 2070 6163 6b61 6765 5f74 616c . - package_tal │ │ │ +002763a0: 6b5f 7265 6d6f 7665 640a 3c2f 636f 6465 k_removed.
Remed │ │ │ +00276460: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00276470: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +00276500: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00276510: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00276530: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00276550: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00276560: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002765a0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002765b0: 7564 6520 7265 6d6f 7665 5f74 616c 6b0a  ude remove_talk.
│ │ │ +002765c0: 0a63 6c61 7373 2072 656d 6f76 655f 7461  .class remove_ta
│ │ │ +002765d0: 6c6b 207b 0a20 2070 6163 6b61 6765 207b  lk {.  package {
│ │ │ +002765e0: 2027 7461 6c6b 273a 0a20 2020 2065 6e73   'talk':.    ens
│ │ │ +002765f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +00276600: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -002775a0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002775b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002775c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00277660: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00277680: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002776b0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00277640: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00277650: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00277670: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00277690: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002776a0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002776e0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -002776f0: 6465 2072 656d 6f76 655f 696e 6574 7574 de remove_inetut │ │ │ -00277700: 696c 732d 7465 6c6e 6574 0a0a 636c 6173 ils-telnet..clas │ │ │ -00277710: 7320 7265 6d6f 7665 5f69 6e65 7475 7469 s remove_inetuti │ │ │ -00277720: 6c73 2d74 656c 6e65 7420 7b0a 2020 7061 ls-telnet {. pa │ │ │ -00277730: 636b 6167 6520 7b20 2769 6e65 7475 7469 ckage { 'inetuti │ │ │ -00277740: 6c73 2d74 656c 6e65 7427 3a0a 2020 2020 ls-telnet':. │ │ │ -00277750: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -00277760: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.
│ │ │ -00277780: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00277820: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00277830: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002778d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -00277970: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -00277980: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ -00277990: 6e73 7572 6520 696e 6574 7574 696c 732d  nsure inetutils-
│ │ │ -002779a0: 7465 6c6e 6574 2069 7320 7265 6d6f 7665  telnet is remove
│ │ │ -002779b0: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -002779c0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -002779d0: 2020 6e61 6d65 3a20 696e 6574 7574 696c    name: inetutil
│ │ │ -002779e0: 732d 7465 6c6e 6574 0a20 2020 2073 7461  s-telnet.    sta
│ │ │ -002779f0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -00277a00: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -00277a10: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00277a20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00277a30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00277a40: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00277a50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00277a60: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00277a70: 696e 6574 7574 696c 732d 7465 6c6e 6574  inetutils-telnet
│ │ │ -00277a80: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +002775a0: 6174 696f 6e20 416e 7369 626c 6520 736e  ation Ansible sn
│ │ │ +002775b0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272  ippet ...
│ │ │ -002778c0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002778f0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00277900: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00277940: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00277950: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +00277640: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00277650: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00277670: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00277690: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002776a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002776e0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002776f0: 653a 2027 5265 6d6f 7665 2074 656c 6e65  e: 'Remove telne
│ │ │ +00277700: 7420 436c 6965 6e74 733a 2045 6e73 7572  t Clients: Ensur
│ │ │ +00277710: 6520 696e 6574 7574 696c 732d 7465 6c6e  e inetutils-teln
│ │ │ +00277720: 6574 2069 7320 7265 6d6f 7665 6427 0a20  et is removed'. 
│ │ │ +00277730: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00277740: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00277750: 6d65 3a20 696e 6574 7574 696c 732d 7465  me: inetutils-te
│ │ │ +00277760: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +00277770: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00277780: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00277790: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002777a0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002777b0: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ +002777c0: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ +002777d0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002777e0: 2020 2d20 7061 636b 6167 655f 696e 6574    - package_inet
│ │ │ +002777f0: 7574 696c 732d 7465 6c6e 6574 5f72 656d  utils-telnet_rem
│ │ │ +00277800: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +002778c0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002778d0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00277950: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00277960: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00277980: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00277990: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002779b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002779d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00277a00: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00277a10: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +00277a20: 7465 6c6e 6574 0a0a 636c 6173 7320 7265  telnet..class re
│ │ │ +00277a30: 6d6f 7665 5f69 6e65 7475 7469 6c73 2d74  move_inetutils-t
│ │ │ +00277a40: 656c 6e65 7420 7b0a 2020 7061 636b 6167  elnet {.  packag
│ │ │ +00277a50: 6520 7b20 2769 6e65 7475 7469 6c73 2d74  e { 'inetutils-t
│ │ │ +00277a60: 656c 6e65 7427 3a0a 2020 2020 656e 7375  elnet':.    ensu
│ │ │ +00277a70: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ +00277a80: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │  00277a90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Re │ │ │ -00278990: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002789a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002789b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -00278a40: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00278a50: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -00278aa0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -00278ae0: 6e63 6c75 6465 2072 656d 6f76 655f 7465  nclude remove_te
│ │ │ -00278af0: 6c6e 6574 0a0a 636c 6173 7320 7265 6d6f  lnet..class remo
│ │ │ -00278b00: 7665 5f74 656c 6e65 7420 7b0a 2020 7061  ve_telnet {.  pa
│ │ │ -00278b10: 636b 6167 6520 7b20 2774 656c 6e65 7427  ckage { 'telnet'
│ │ │ -00278b20: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -00278b30: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ -00278b40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -00278b50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ -00278c00: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00278c10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ -00278cd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00278ce0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ -00278a30: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -00278a60: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -00278a70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -00278ab0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -00278ac0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ -00278ca0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -00278cc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -00278cf0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -00278d10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00278d40: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ -00278d50: 6d6f 7665 2074 656c 6e65 7420 436c 6965  move telnet Clie
│ │ │ -00278d60: 6e74 733a 2045 6e73 7572 6520 7465 6c6e  nts: Ensure teln
│ │ │ -00278d70: 6574 2069 7320 7265 6d6f 7665 6427 0a20  et is removed'. 
│ │ │ -00278d80: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00278d90: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00278da0: 6d65 3a20 7465 6c6e 6574 0a20 2020 2073  me: telnet.    s
│ │ │ -00278db0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00278dc0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -00278dd0: 302d 3137 312d 332e 312e 3133 0a20 202d  0-171-3.1.13.  -
│ │ │ -00278de0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -00278df0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -00278e00: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -00278e10: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00278e20: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00278e30: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00278e40: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ -00278e50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00278e60: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -00278e70: 7465 6c6e 6574 5f72 656d 6f76 6564 0a3c  telnet_removed.<
│ │ │ +00278990: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002789a0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ +00278a40: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00278ae0: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ +00278af0: 656c 6e65 7420 436c 6965 6e74 733a 2045  elnet Clients: E
│ │ │ +00278b00: 6e73 7572 6520 7465 6c6e 6574 2069 7320  nsure telnet is 
│ │ │ +00278b10: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ +00278b20: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00278b30: 6765 3a0a 2020 2020 6e61 6d65 3a20 7465  ge:.    name: te
│ │ │ +00278b40: 6c6e 6574 0a20 2020 2073 7461 7465 3a20  lnet.    state: 
│ │ │ +00278b50: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +00278b60: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +00278b70: 332e 312e 3133 0a20 202d 2050 4349 2d44  3.1.13.  - PCI-D
│ │ │ +00278b80: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00278b90: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +00278ba0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +00278bb0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +00278bc0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +00278bd0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ +00278be0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +00278bf0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00278c00: 2d20 7061 636b 6167 655f 7465 6c6e 6574  - package_telnet
│ │ │ +00278c10: 5f72 656d 6f76 6564 0a3c 2f63 6f64 653e  _removed.
│ │ │ +00278c20: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00278cd0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00278ce0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00278cf0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00278a30: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00278a60: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00278a70: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00278ab0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00278ac0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00278d90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00278db0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00278de0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00278d70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00278d80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00278da0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00278dc0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00278dd0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00278e10: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ +00278e20: 6465 2072 656d 6f76 655f 7465 6c6e 6574 de remove_telnet │ │ │ +00278e30: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74 ..class remove_t │ │ │ +00278e40: 656c 6e65 7420 7b0a 2020 7061 636b 6167 elnet {. packag │ │ │ +00278e50: 6520 7b20 2774 656c 6e65 7427 3a0a 2020 e { 'telnet':. │ │ │ +00278e60: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ +00278e70: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ 00278e80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
Rem │ │ │ -0027a700: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0027a710: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0027a720: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0027a7c0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0027a810: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0027a850: 636c 7564 6520 7265 6d6f 7665 5f74 6674  clude remove_tft
│ │ │ -0027a860: 702d 7365 7276 6572 0a0a 636c 6173 7320  p-server..class 
│ │ │ -0027a870: 7265 6d6f 7665 5f74 6674 702d 7365 7276  remove_tftp-serv
│ │ │ -0027a880: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ -0027a890: 2027 7466 7470 2d73 6572 7665 7227 3a0a   'tftp-server':.
│ │ │ -0027a8a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0027a8b0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -0027a8c0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -0027a980: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0027a990: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -0027a7a0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0027a7d0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0027a7f0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0027a800: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0027a820: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0027a830: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0027aa10: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0027aa30: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0027aa80: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0027aab0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0027aa20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0027aa40: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0027aa90: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0027aaa0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -0027aad0: 7374 616c 6c20 7466 7470 2d73 6572 7665  stall tftp-serve
│ │ │ -0027aae0: 7220 5061 636b 6167 653a 2045 6e73 7572  r Package: Ensur
│ │ │ -0027aaf0: 6520 7466 7470 2d73 6572 7665 7220 6973  e tftp-server is
│ │ │ -0027ab00: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0027ab10: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0027ab20: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ -0027ab30: 6674 702d 7365 7276 6572 0a20 2020 2073  ftp-server.    s
│ │ │ -0027ab40: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0027ab50: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0027ab60: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0027ab70: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027ab80: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0027ab90: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0027aba0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -0027abb0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -0027abc0: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ -0027abd0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ -0027abe0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ -0027abf0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0027ac00: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0027ac10: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0027ac20: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0027ac30: 5f74 6674 702d 7365 7276 6572 5f72 656d  _tftp-server_rem
│ │ │ -0027ac40: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
│ │ │ +0027a720: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
< │ │ │ +0027a7b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027a7c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027a810: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0027a850: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0027a860: 2074 6674 702d 7365 7276 6572 2050 6163   tftp-server Pac
│ │ │ +0027a870: 6b61 6765 3a20 456e 7375 7265 2074 6674  kage: Ensure tft
│ │ │ +0027a880: 702d 7365 7276 6572 2069 7320 7265 6d6f  p-server is remo
│ │ │ +0027a890: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0027a8a0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0027a8b0: 2020 2020 6e61 6d65 3a20 7466 7470 2d73      name: tftp-s
│ │ │ +0027a8c0: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ +0027a8d0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +0027a8e0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0027a8f0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +0027a900: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +0027a910: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0027a920: 434d 2d37 2862 290a 2020 2d20 5043 492d  CM-7(b).  - PCI-
│ │ │ +0027a930: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +0027a940: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +0027a950: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0027a960: 6779 0a20 202d 2068 6967 685f 7365 7665  gy.  - high_seve
│ │ │ +0027a970: 7269 7479 0a20 202d 206c 6f77 5f63 6f6d  rity.  - low_com
│ │ │ +0027a980: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027a990: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +0027a9a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0027a9b0: 2020 2d20 7061 636b 6167 655f 7466 7470    - package_tftp
│ │ │ +0027a9c0: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +0027a9d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +0027aa90: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0027aaa0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +0027a7a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027a7d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027a7e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027a820: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027a830: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +0027ab70: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0027ab80: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0027abe0: 5f74 6674 702d 7365 7276 6572 0a0a 636c  _tftp-server..cl
│ │ │ +0027abf0: 6173 7320 7265 6d6f 7665 5f74 6674 702d  ass remove_tftp-
│ │ │ +0027ac00: 7365 7276 6572 207b 0a20 2070 6163 6b61  server {.  packa
│ │ │ +0027ac10: 6765 207b 2027 7466 7470 2d73 6572 7665  ge { 'tftp-serve
│ │ │ +0027ac20: 7227 3a0a 2020 2020 656e 7375 7265 203d  r':.    ensure =
│ │ │ +0027ac30: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ +0027ac40: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Re
│ │ │ -0027bdc0: 6d65 6469 6174 696f 6e20 4f53 4275 696c  mediation OSBuil
│ │ │ -0027bdd0: 6420 426c 7565 7072 696e 7420 736e 6970  d Blueprint snip
│ │ │ -0027bde0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0027bdf0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027be00: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027be10: 7365 2220 6964 3d22 6964 3130 3530 223e se" id="id1050"> │ │ │ -0027be20: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -0027be30: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -0027be40: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -0027be50: 2274 6674 7022 5d0a 3c2f 636f 6465 3e3c  "tftp"].<
│ │ │ -0027be60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -0027bf10: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ -0027bf20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -0027bf30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0027bf40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0027bf50: 7365 2220 6964 3d22 6964 3130 3531 223e se" id="id1051"> │ │ │ -0027bf60: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +0027ab50: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0027ab60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0027aba0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0027abb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0027bfd0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -0027bff0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -0027c020: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -0027c040: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -0027bfb0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -0027bfc0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -0027c000: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -0027c010: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -0027c060: 6469 7361 626c 655f 7466 7470 0a0a 636c disable_tftp..cl │ │ │ -0027c070: 6173 7320 6469 7361 626c 655f 7466 7470 ass disable_tftp │ │ │ -0027c080: 207b 0a20 2073 6572 7669 6365 207b 2774 {. service {'t │ │ │ -0027c090: 6674 7027 3a0a 2020 2020 656e 6162 6c65 ftp':. enable │ │ │ -0027c0a0: 203d 2667 743b 2066 616c 7365 2c0a 2020 => false,. │ │ │ -0027c0b0: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -0027c0c0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a stopped',. }.}. │ │ │ -0027c0d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
Remediation Ans │ │ │ -0027c190: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0027c1a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -0027c220: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0027c240: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0027c290: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0027c2c0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -0027c2e0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -0027c2f0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -0027c300: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -0027c310: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -0027c320: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027c330: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -0027c340: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -0027c350: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -0027c360: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -0027c370: 655f 7374 7261 7465 6779 0a20 202d 2068  e_strategy.  - h
│ │ │ -0027c380: 6967 685f 7365 7665 7269 7479 0a20 202d  igh_severity.  -
│ │ │ -0027c390: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0027c3a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0027c3b0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -0027c3c0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -0027c3d0: 6963 655f 7466 7470 5f64 6973 6162 6c65  ice_tftp_disable
│ │ │ -0027c3e0: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -0027c3f0: 6c65 2074 6674 7020 5365 7276 6963 6520  le tftp Service 
│ │ │ -0027c400: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0027c410: 6520 7466 7470 0a20 2062 6c6f 636b 3a0a  e tftp.  block:.
│ │ │ -0027c420: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -0027c430: 6c65 2074 6674 7020 5365 7276 6963 6520  le tftp Service 
│ │ │ -0027c440: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ -0027c450: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ -0027c460: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ -0027c470: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0027c480: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -0027c490: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -0027c4a0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ -0027c4b0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ -0027c4c0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ -0027c4d0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -0027c4e0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -0027c4f0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -0027c500: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ -0027c510: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -0027c520: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -0027c530: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -0027c540: 2044 6973 6162 6c65 2074 6674 7020 5365   Disable tftp Se
│ │ │ -0027c550: 7276 6963 6520 2d20 456e 7375 7265 2074  rvice - Ensure t
│ │ │ -0027c560: 6674 702e 7365 7276 6963 6520 6973 204d  ftp.service is M
│ │ │ -0027c570: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -0027c580: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -0027c590: 643a 0a20 2020 2020 206e 616d 653a 2074  d:.      name: t
│ │ │ -0027c5a0: 6674 702e 7365 7276 6963 650a 2020 2020  ftp.service.    
│ │ │ -0027c5b0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0027c5c0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0027c5d0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0027c5e0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0027c5f0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0027c600: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0027c610: 7320 7365 6172 6368 2822 7466 7470 2e73  s search("tftp.s
│ │ │ -0027c620: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0027c630: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0027c640: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0027c650: 4578 6973 7473 202d 2074 6674 702e 736f  Exists - tftp.so
│ │ │ -0027c660: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0027c670: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0027c680: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0027c690: 6973 742d 756e 6974 2d66 696c 6573 2074  ist-unit-files t
│ │ │ -0027c6a0: 6674 702e 736f 636b 6574 0a20 2020 2072  ftp.socket.    r
│ │ │ -0027c6b0: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -0027c6c0: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -0027c6d0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -0027c6e0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -0027c6f0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -0027c700: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0027c710: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0027c720: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0027c730: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0027c740: 6520 7466 7470 2053 6572 7669 6365 202d  e tftp Service -
│ │ │ -0027c750: 2044 6973 6162 6c65 2053 6f63 6b65 7420   Disable Socket 
│ │ │ -0027c760: 7466 7470 0a20 2020 2061 6e73 6962 6c65  tftp.    ansible
│ │ │ -0027c770: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0027c780: 3a0a 2020 2020 2020 6e61 6d65 3a20 7466  :.      name: tf
│ │ │ -0027c790: 7470 2e73 6f63 6b65 740a 2020 2020 2020  tp.socket.      
│ │ │ -0027c7a0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -0027c7b0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -0027c7c0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -0027c7d0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0027c7e0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0027c7f0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -0027c800: 2069 7320 7365 6172 6368 2822 7466 7470   is search("tftp
│ │ │ -0027c810: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -0027c820: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -0027c830: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -0027c840: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -0027c850: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -0027c860: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0027c870: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -0027c880: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -0027c890: 202d 2068 6967 685f 7365 7665 7269 7479   - high_severity
│ │ │ -0027c8a0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0027c8b0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0027c8c0: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -0027c8d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0027c8e0: 7365 7276 6963 655f 7466 7470 5f64 6973  service_tftp_dis
│ │ │ -0027c8f0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -0027c900: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -0027c910: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -0027c920: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0027c930: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0027bdc0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0027bdd0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -0027c250: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0027c260: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0027c2a0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0027c2b0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0027be70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0027bf10: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +0027bf20: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +0027bf30: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +0027bf40: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +0027bf50: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +0027bf60: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +0027bf70: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0027bf80: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +0027bf90: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +0027bfa0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +0027bfb0: 7472 6174 6567 790a 2020 2d20 6869 6768  trategy.  - high
│ │ │ +0027bfc0: 5f73 6576 6572 6974 790a 2020 2d20 6c6f  _severity.  - lo
│ │ │ +0027bfd0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +0027bfe0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +0027bff0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0027c000: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0027c010: 5f74 6674 705f 6469 7361 626c 6564 0a0a  _tftp_disabled..
│ │ │ +0027c020: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027c030: 7466 7470 2053 6572 7669 6365 202d 2044  tftp Service - D
│ │ │ +0027c040: 6973 6162 6c65 2073 6572 7669 6365 2074  isable service t
│ │ │ +0027c050: 6674 700a 2020 626c 6f63 6b3a 0a0a 2020  ftp.  block:..  
│ │ │ +0027c060: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027c070: 7466 7470 2053 6572 7669 6365 202d 2043  tftp Service - C
│ │ │ +0027c080: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +0027c090: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +0027c0a0: 696e 2074 6865 2053 7973 7465 6d0a 2020  in the System.  
│ │ │ +0027c0b0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0027c0c0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0027c0d0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0027c0e0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ +0027c0f0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ +0027c100: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ +0027c110: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +0027c120: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +0027c130: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ +0027c140: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ +0027c150: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ +0027c160: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +0027c170: 7365 0a0a 2020 2d20 6e61 6d65 3a20 4469  se..  - name: Di
│ │ │ +0027c180: 7361 626c 6520 7466 7470 2053 6572 7669  sable tftp Servi
│ │ │ +0027c190: 6365 202d 2045 6e73 7572 6520 7466 7470  ce - Ensure tftp
│ │ │ +0027c1a0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +0027c1b0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +0027c1c0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0027c1d0: 2020 2020 2020 6e61 6d65 3a20 7466 7470        name: tftp
│ │ │ +0027c1e0: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ +0027c1f0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0027c200: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0027c210: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ +0027c220: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ +0027c230: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ +0027c240: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +0027c250: 6561 7263 6828 2274 6674 702e 7365 7276  earch("tftp.serv
│ │ │ +0027c260: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ +0027c270: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ +0027c280: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ +0027c290: 7374 7320 2d20 7466 7470 2e73 6f63 6b65  sts - tftp.socke
│ │ │ +0027c2a0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +0027c2b0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +0027c2c0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +0027c2d0: 2d75 6e69 742d 6669 6c65 7320 7466 7470  -unit-files tftp
│ │ │ +0027c2e0: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0027c2f0: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0027c300: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0027c310: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0027c320: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0027c330: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0027c340: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0027c350: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0027c360: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0027c370: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +0027c380: 6674 7020 5365 7276 6963 6520 2d20 4469  ftp Service - Di
│ │ │ +0027c390: 7361 626c 6520 536f 636b 6574 2074 6674  sable Socket tft
│ │ │ +0027c3a0: 700a 2020 2020 616e 7369 626c 652e 6275  p.    ansible.bu
│ │ │ +0027c3b0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0027c3c0: 2020 2020 206e 616d 653a 2074 6674 702e       name: tftp.
│ │ │ +0027c3d0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +0027c3e0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0027c3f0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +0027c400: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +0027c410: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +0027c420: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027c430: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +0027c440: 2073 6561 7263 6828 2274 6674 702e 736f   search("tftp.so
│ │ │ +0027c450: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +0027c460: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +0027c470: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027c480: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +0027c490: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +0027c4a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +0027c4b0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +0027c4c0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0027c4d0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0027c4e0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0027c4f0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0027c500: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0027c510: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0027c520: 7669 6365 5f74 6674 705f 6469 7361 626c  vice_tftp_disabl
│ │ │ +0027c530: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0027c540: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0027c550: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0027c560: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0027c570: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +0027c630: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0027c640: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0027be60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027be90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027bea0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027bee0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027bef0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +0027c6e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0027c780: 636c 7564 6520 6469 7361 626c 655f 7466  clude disable_tf
│ │ │ +0027c790: 7470 0a0a 636c 6173 7320 6469 7361 626c  tp..class disabl
│ │ │ +0027c7a0: 655f 7466 7470 207b 0a20 2073 6572 7669  e_tftp {.  servi
│ │ │ +0027c7b0: 6365 207b 2774 6674 7027 3a0a 2020 2020  ce {'tftp':.    
│ │ │ +0027c7c0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +0027c7d0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +0027c7e0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +0027c7f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ +0027c8b0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0027c8c0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0027c8d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ +0027c920: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0027c930: 6173 6b65 6420 3d20 5b22 7466 7470 225d  asked = ["tftp"]
│ │ │  0027c940: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
< │ │ │ 0027c960: 2f74 723e 3c2f 7462 6f64 793e 3c2f 7461 /tr>
Re │ │ │ -0027d150: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0027d160: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027d170: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0027c6d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027c700: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027c710: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027c750: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0027c760: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0027d200: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027d210: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0027d260: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0027d2a0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ -0027d2b0: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ -0027d2c0: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ -0027d2d0: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ -0027d2e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0027d2f0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0027d300: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -0027d3c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0027d3d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -0027d1f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0027d220: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0027d230: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0027d270: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0027d280: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0027d450: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0027d470: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0027d4c0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0027d4f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0027d510: 7461 6c6c 2072 7379 6e63 2050 6163 6b61  tall rsync Packa
│ │ │ -0027d520: 6765 3a20 456e 7375 7265 2072 7379 6e63  ge: Ensure rsync
│ │ │ -0027d530: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -0027d540: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0027d550: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0027d560: 3a20 7273 796e 630a 2020 2020 7374 6174  : rsync.    stat
│ │ │ -0027d570: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -0027d580: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -0027d590: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -0027d5a0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -0027d5b0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -0027d5c0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -0027d5d0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -0027d5e0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -0027d5f0: 655f 7273 796e 635f 7265 6d6f 7665 640a  e_rsync_removed.
│ │ │ +0027d150: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0027d160: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -0027d480: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0027d490: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0027d4d0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0027d4e0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0027d200: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0027d2a0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0027d2b0: 6c20 7273 796e 6320 5061 636b 6167 653a  l rsync Package:
│ │ │ +0027d2c0: 2045 6e73 7572 6520 7273 796e 6320 6973   Ensure rsync is
│ │ │ +0027d2d0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0027d2e0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0027d2f0: 6167 653a 0a20 2020 206e 616d 653a 2072  age:.    name: r
│ │ │ +0027d300: 7379 6e63 0a20 2020 2073 7461 7465 3a20  sync.    state: 
│ │ │ +0027d310: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0027d320: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0027d330: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0027d340: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0027d350: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0027d360: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0027d370: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0027d380: 6564 0a20 202d 2070 6163 6b61 6765 5f72  ed.  - package_r
│ │ │ +0027d390: 7379 6e63 5f72 656d 6f76 6564 0a3c 2f63  sync_removed.
│ │ │ +0027d3b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0027d450: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0027d460: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0027d470: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ +0027d1f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027d220: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027d230: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027d270: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027d280: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0027d500: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0027d510: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0027d560: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0027d5a0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ +0027d5b0: 796e 630a 0a63 6c61 7373 2072 656d 6f76  ync..class remov
│ │ │ +0027d5c0: 655f 7273 796e 6320 7b0a 2020 7061 636b  e_rsync {.  pack
│ │ │ +0027d5d0: 6167 6520 7b20 2772 7379 6e63 273a 0a20  age { 'rsync':. 
│ │ │ +0027d5e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0027d5f0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  0027d600: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0027e180: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0027e190: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0027e1a0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0027e1b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0027e1f0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0027e200: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0027e210: 5b22 7273 796e 6364 225d 0a3c 2f63 6f64  ["rsyncd"].
Reme │ │ │ -0027e2d0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0027e2e0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ +0027d4f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0027d520: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0027d530: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0027d570: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0027d580: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -0027e370: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0027e3a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0027e3c0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0027e3d0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0027e3f0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0027e410: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0027e420: 6465 2064 6973 6162 6c65 5f72 7379 6e63  de disable_rsync
│ │ │ -0027e430: 640a 0a63 6c61 7373 2064 6973 6162 6c65  d..class disable
│ │ │ -0027e440: 5f72 7379 6e63 6420 7b0a 2020 7365 7276  _rsyncd {.  serv
│ │ │ -0027e450: 6963 6520 7b27 7273 796e 6364 273a 0a20  ice {'rsyncd':. 
│ │ │ -0027e460: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0027e470: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0027e480: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0027e490: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0027e4a0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0027e550: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0027e560: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0027e5f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0027e600: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0027e620: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0027e640: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0027e650: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0027e690: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0027e6a0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0027e6b0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0027e6c0: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0027e6d0: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0027e6e0: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ -0027e6f0: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -0027e700: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ -0027e710: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0027e720: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0027e730: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0027e740: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -0027e750: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -0027e760: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0027e770: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -0027e780: 6e63 645f 6469 7361 626c 6564 0a0a 2d20  ncd_disabled..- 
│ │ │ -0027e790: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -0027e7a0: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -0027e7b0: 6973 6162 6c65 6420 2d20 4469 7361 626c  isabled - Disabl
│ │ │ -0027e7c0: 6520 7365 7276 6963 6520 7273 796e 6364  e service rsyncd
│ │ │ -0027e7d0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ -0027e7e0: 616d 653a 2045 6e73 7572 6520 7273 796e  ame: Ensure rsyn
│ │ │ -0027e7f0: 6364 2073 6572 7669 6365 2069 7320 6469  cd service is di
│ │ │ -0027e800: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -0027e810: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0027e820: 7320 5072 6573 656e 7420 696e 0a20 2020  s Present in.   
│ │ │ -0027e830: 2020 2074 6865 2053 7973 7465 6d0a 2020     the System.  
│ │ │ -0027e840: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0027e850: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0027e860: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0027e870: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0027e880: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0027e890: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0027e8a0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0027e8b0: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0027e8c0: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0027e8d0: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0027e8e0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0027e8f0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0027e900: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0027e910: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0027e920: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0027e930: 2d20 456e 7375 7265 2072 7379 6e63 642e  - Ensure rsyncd.
│ │ │ -0027e940: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0027e950: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0027e960: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0027e970: 2020 2020 206e 616d 653a 2072 7379 6e63       name: rsync
│ │ │ -0027e980: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -0027e990: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0027e9a0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0027e9b0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0027e9c0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0027e9d0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0027e9e0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -0027e9f0: 7365 6172 6368 2822 7273 796e 6364 2e73  search("rsyncd.s
│ │ │ -0027ea00: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -0027ea10: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -0027ea20: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -0027ea30: 4578 6973 7473 202d 2072 7379 6e63 642e  Exists - rsyncd.
│ │ │ -0027ea40: 736f 636b 6574 0a20 2020 2061 6e73 6962  socket.    ansib
│ │ │ -0027ea50: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -0027ea60: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -0027ea70: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -0027ea80: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0027ea90: 2020 2072 6567 6973 7465 723a 2073 6f63     register: soc
│ │ │ -0027eaa0: 6b65 745f 6669 6c65 5f65 7869 7374 730a  ket_file_exists.
│ │ │ -0027eab0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0027eac0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0027ead0: 6564 5f77 6865 6e3a 2073 6f63 6b65 745f  ed_when: socket_
│ │ │ -0027eae0: 6669 6c65 5f65 7869 7374 732e 7263 206e  file_exists.rc n
│ │ │ -0027eaf0: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0027eb00: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0027eb10: 7365 0a0a 2020 2d20 6e61 6d65 3a20 456e  se..  - name: En
│ │ │ -0027eb20: 7375 7265 2072 7379 6e63 6420 7365 7276  sure rsyncd serv
│ │ │ -0027eb30: 6963 6520 6973 2064 6973 6162 6c65 6420  ice is disabled 
│ │ │ -0027eb40: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -0027eb50: 2072 7379 6e63 640a 2020 2020 616e 7369   rsyncd.    ansi
│ │ │ -0027eb60: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ -0027eb70: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ -0027eb80: 2072 7379 6e63 642e 736f 636b 6574 0a20   rsyncd.socket. 
│ │ │ -0027eb90: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0027eba0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -0027ebb0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -0027ebc0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -0027ebd0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -0027ebe0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -0027ebf0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -0027ec00: 2272 7379 6e63 642e 736f 636b 6574 222c  "rsyncd.socket",
│ │ │ -0027ec10: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0027ec20: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0027ec30: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0027ec40: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0027ec50: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0027ec60: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0027ec70: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0027ec80: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0027ec90: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0027eca0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0027ecb0: 6564 0a20 202d 2073 6572 7669 6365 5f72  ed.  - service_r
│ │ │ -0027ecc0: 7379 6e63 645f 6469 7361 626c 6564 0a20  syncd_disabled. 
│ │ │ -0027ecd0: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -0027ece0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -0027ecf0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -0027ed00: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -0027ed10: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
< │ │ │ +0027e270: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027e280: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0027e2d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0027e2e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0027e2f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0027e300: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0027e310: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0027e320: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +0027e330: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +0027e340: 340a 2020 2d20 6469 7361 626c 655f 7374  4.  - disable_st
│ │ │ +0027e350: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0027e360: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0027e370: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0027e380: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0027e390: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0027e3a0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0027e3b0: 655f 7273 796e 6364 5f64 6973 6162 6c65  e_rsyncd_disable
│ │ │ +0027e3c0: 640a 0a2d 206e 616d 653a 2045 6e73 7572  d..- name: Ensur
│ │ │ +0027e3d0: 6520 7273 796e 6364 2073 6572 7669 6365  e rsyncd service
│ │ │ +0027e3e0: 2069 7320 6469 7361 626c 6564 202d 2044   is disabled - D
│ │ │ +0027e3f0: 6973 6162 6c65 2073 6572 7669 6365 2072  isable service r
│ │ │ +0027e400: 7379 6e63 640a 2020 626c 6f63 6b3a 0a0a  syncd.  block:..
│ │ │ +0027e410: 2020 2d20 6e61 6d65 3a20 456e 7375 7265    - name: Ensure
│ │ │ +0027e420: 2072 7379 6e63 6420 7365 7276 6963 6520   rsyncd service 
│ │ │ +0027e430: 6973 2064 6973 6162 6c65 6420 2d20 436f  is disabled - Co
│ │ │ +0027e440: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +0027e450: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +0027e460: 6e0a 2020 2020 2020 7468 6520 5379 7374  n.      the Syst
│ │ │ +0027e470: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +0027e480: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +0027e490: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +0027e4a0: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +0027e4b0: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +0027e4c0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +0027e4d0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0027e4e0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0027e4f0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0027e500: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0027e510: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0027e520: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0027e530: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0027e540: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0027e550: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0027e560: 626c 6564 202d 2045 6e73 7572 6520 7273  bled - Ensure rs
│ │ │ +0027e570: 796e 6364 2e73 6572 7669 6365 2069 7320  yncd.service is 
│ │ │ +0027e580: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +0027e590: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0027e5a0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0027e5b0: 7273 796e 6364 2e73 6572 7669 6365 0a20  rsyncd.service. 
│ │ │ +0027e5c0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +0027e5d0: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +0027e5e0: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +0027e5f0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0027e600: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +0027e610: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0027e620: 7320 6973 2073 6561 7263 6828 2272 7379  s is search("rsy
│ │ │ +0027e630: 6e63 642e 7365 7276 6963 6522 2c20 6d75  ncd.service", mu
│ │ │ +0027e640: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0027e650: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0027e660: 636b 6574 2045 7869 7374 7320 2d20 7273  cket Exists - rs
│ │ │ +0027e670: 796e 6364 2e73 6f63 6b65 740a 2020 2020  yncd.socket.    
│ │ │ +0027e680: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027e690: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0027e6a0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0027e6b0: 6669 6c65 7320 7273 796e 6364 2e73 6f63  files rsyncd.soc
│ │ │ +0027e6c0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +0027e6d0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0027e6e0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +0027e6f0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +0027e700: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +0027e710: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +0027e720: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +0027e730: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +0027e740: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +0027e750: 653a 2045 6e73 7572 6520 7273 796e 6364  e: Ensure rsyncd
│ │ │ +0027e760: 2073 6572 7669 6365 2069 7320 6469 7361   service is disa
│ │ │ +0027e770: 626c 6564 202d 2044 6973 6162 6c65 2053  bled - Disable S
│ │ │ +0027e780: 6f63 6b65 7420 7273 796e 6364 0a20 2020  ocket rsyncd.   
│ │ │ +0027e790: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0027e7a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0027e7b0: 6e61 6d65 3a20 7273 796e 6364 2e73 6f63  name: rsyncd.soc
│ │ │ +0027e7c0: 6b65 740a 2020 2020 2020 656e 6162 6c65  ket.      enable
│ │ │ +0027e7d0: 643a 2066 616c 7365 0a20 2020 2020 2073  d: false.      s
│ │ │ +0027e7e0: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ +0027e7f0: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +0027e800: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65  .    when: socke
│ │ │ +0027e810: 745f 6669 6c65 5f65 7869 7374 732e 7374  t_file_exists.st
│ │ │ +0027e820: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ +0027e830: 6172 6368 2822 7273 796e 6364 2e73 6f63  arch("rsyncd.soc
│ │ │ +0027e840: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +0027e850: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +0027e860: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +0027e870: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +0027e880: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +0027e890: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0027e8a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0027e8b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0027e8c0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0027e8d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0027e8e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0027e8f0: 6963 655f 7273 796e 6364 5f64 6973 6162  ice_rsyncd_disab
│ │ │ +0027e900: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +0027e910: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +0027e920: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +0027e930: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0027e940: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +0027e950: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0027ea00: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0027ea10: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0027e250: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0027e260: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0027e2a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0027e2b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0027eaf0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027eb00: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +0027eb50: 6e63 6c75 6465 2064 6973 6162 6c65 5f72  nclude disable_r
│ │ │ +0027eb60: 7379 6e63 640a 0a63 6c61 7373 2064 6973  syncd..class dis
│ │ │ +0027eb70: 6162 6c65 5f72 7379 6e63 6420 7b0a 2020  able_rsyncd {.  
│ │ │ +0027eb80: 7365 7276 6963 6520 7b27 7273 796e 6364  service {'rsyncd
│ │ │ +0027eb90: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +0027eba0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ +0027ebb0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ +0027ebc0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ +0027ebe0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +0027ec80: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +0027ec90: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +0027eca0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0027ecb0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0027ecc0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0027ecd0: 7365 2220 6964 3d22 6964 3130 3630 223e se" id="id1060"> │ │ │ +0027ece0: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ +0027ecf0: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ +0027ed00: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ +0027ed10: 2272 7379 6e63 6422 5d0a 3c2f 636f 6465  "rsyncd"].
Complexity:low
Disrup │ │ │ +0027ead0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0027eae0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0027eb20: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +0027eb30: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Re │ │ │ -0027fda0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0027fdb0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027fdc0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0027fe50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0027fe60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0027feb0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0027fef0: 6e63 6c75 6465 2072 656d 6f76 655f 7371  nclude remove_sq
│ │ │ -0027ff00: 7569 640a 0a63 6c61 7373 2072 656d 6f76  uid..class remov
│ │ │ -0027ff10: 655f 7371 7569 6420 7b0a 2020 7061 636b  e_squid {.  pack
│ │ │ -0027ff20: 6167 6520 7b20 2773 7175 6964 273a 0a20  age { 'squid':. 
│ │ │ -0027ff30: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0027ff40: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0027ff50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00280010: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -00280020: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -0027fe40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0027fe70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0027fe80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0027fec0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0027fed0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002800a0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002800c0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00280110: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00280140: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -00280160: 7461 6c6c 2073 7175 6964 2050 6163 6b61  tall squid Packa
│ │ │ -00280170: 6765 3a20 456e 7375 7265 2073 7175 6964  ge: Ensure squid
│ │ │ -00280180: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00280190: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -002801a0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -002801b0: 3a20 7371 7569 640a 2020 2020 7374 6174  : squid.    stat
│ │ │ -002801c0: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002801d0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002801e0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002801f0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00280200: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00280210: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00280220: 640a 2020 2d20 7061 636b 6167 655f 7371  d.  - package_sq
│ │ │ -00280230: 7569 645f 7265 6d6f 7665 640a 2020 2d20  uid_removed.  - 
│ │ │ -00280240: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0027fda0: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0027fdb0: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -002800d0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002800e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00280120: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00280130: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +0027fe50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0027fef0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0027ff00: 6c20 7371 7569 6420 5061 636b 6167 653a  l squid Package:
│ │ │ +0027ff10: 2045 6e73 7572 6520 7371 7569 6420 6973   Ensure squid is
│ │ │ +0027ff20: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +0027ff30: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +0027ff40: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ +0027ff50: 7175 6964 0a20 2020 2073 7461 7465 3a20  quid.    state: 
│ │ │ +0027ff60: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +0027ff70: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +0027ff80: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0027ff90: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0027ffa0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +0027ffb0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0027ffc0: 202d 2070 6163 6b61 6765 5f73 7175 6964   - package_squid
│ │ │ +0027ffd0: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +0027ffe0: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
R │ │ │ +002800a0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002800b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0027fe40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027fe70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027fe80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027fec0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0027fed0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +00280150: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002801f0: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ +00280200: 7175 6964 0a0a 636c 6173 7320 7265 6d6f  quid..class remo
│ │ │ +00280210: 7665 5f73 7175 6964 207b 0a20 2070 6163  ve_squid {.  pac
│ │ │ +00280220: 6b61 6765 207b 2027 7371 7569 6427 3a0a  kage { 'squid':.
│ │ │ +00280230: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +00280240: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  00280250: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -00280db0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00280dc0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00280dd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -00280e20: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00280e30: 6173 6b65 6420 3d20 5b22 7371 7569 6422  asked = ["squid"
│ │ │ -00280e40: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ -00280e50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -00280f00: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00280f10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +00280140: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00280170: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00280180: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002801c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002801d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -00280f90: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00280fb0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00281000: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00281030: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -00281050: 655f 7371 7569 640a 0a63 6c61 7373 2064  e_squid..class d
│ │ │ -00281060: 6973 6162 6c65 5f73 7175 6964 207b 0a20  isable_squid {. 
│ │ │ -00281070: 2073 6572 7669 6365 207b 2773 7175 6964   service {'squid
│ │ │ -00281080: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -00281090: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -002810a0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -002810b0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -002810d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00281170: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00281180: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
Complexity:< │ │ │ -00280fa0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00280fc0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00281010: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00281020: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00281220: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002812c0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -002812d0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -002812e0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -002812f0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00281300: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ -00281310: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00281320: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00281330: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00281340: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -00281350: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -00281360: 6572 7669 6365 5f73 7175 6964 5f64 6973  ervice_squid_dis
│ │ │ -00281370: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ -00281380: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ -00281390: 6d65 3a20 4469 7361 626c 6520 5371 7569  me: Disable Squi
│ │ │ -002813a0: 6420 2d20 4469 7361 626c 6520 7365 7276  d - Disable serv
│ │ │ -002813b0: 6963 6520 7371 7569 640a 2020 626c 6f63  ice squid.  bloc
│ │ │ -002813c0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -002813d0: 7361 626c 6520 5371 7569 6420 2d20 436f  sable Squid - Co
│ │ │ -002813e0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ -002813f0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ -00281400: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ -00281410: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00281420: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00281430: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00281440: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ -00281450: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ -00281460: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ -00281470: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -00281480: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -00281490: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ -002814a0: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ -002814b0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ -002814c0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ -002814d0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ -002814e0: 6162 6c65 2053 7175 6964 202d 2045 6e73  able Squid - Ens
│ │ │ -002814f0: 7572 6520 7371 7569 642e 7365 7276 6963  ure squid.servic
│ │ │ -00281500: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ -00281510: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00281520: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -00281530: 616d 653a 2073 7175 6964 2e73 6572 7669  ame: squid.servi
│ │ │ -00281540: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ -00281550: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ -00281560: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ -00281570: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ -00281580: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ -00281590: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -002815a0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002815b0: 2273 7175 6964 2e73 6572 7669 6365 222c  "squid.service",
│ │ │ -002815c0: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -002815d0: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ -002815e0: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ -002815f0: 2073 7175 6964 2e73 6f63 6b65 740a 2020   squid.socket.  
│ │ │ -00281600: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00281610: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -00281620: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -00281630: 742d 6669 6c65 7320 7371 7569 642e 736f  t-files squid.so
│ │ │ -00281640: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ -00281650: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ -00281660: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -00281670: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -00281680: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -00281690: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002816a0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -002816b0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -002816c0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -002816d0: 6d65 3a20 4469 7361 626c 6520 5371 7569  me: Disable Squi
│ │ │ -002816e0: 6420 2d20 4469 7361 626c 6520 536f 636b  d - Disable Sock
│ │ │ -002816f0: 6574 2073 7175 6964 0a20 2020 2061 6e73  et squid.    ans
│ │ │ -00281700: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -00281710: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -00281720: 3a20 7371 7569 642e 736f 636b 6574 0a20  : squid.socket. 
│ │ │ -00281730: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -00281740: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ -00281750: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ -00281760: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ -00281770: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -00281780: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ -00281790: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ -002817a0: 2273 7175 6964 2e73 6f63 6b65 7422 2c20  "squid.socket", 
│ │ │ -002817b0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002817c0: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -002817d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002817e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002817f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00281800: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -00281810: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ -00281820: 6963 655f 7371 7569 645f 6469 7361 626c  ice_squid_disabl
│ │ │ -00281830: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -00281840: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ -00281850: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -00281860: 790a 2020 7768 656e 3a20 2820 2273 7175  y.  when: ( "squ
│ │ │ -00281870: 6964 2220 696e 2061 6e73 6962 6c65 5f66  id" in ansible_f
│ │ │ -00281880: 6163 7473 2e70 6163 6b61 6765 7320 616e  acts.packages an
│ │ │ -00281890: 6420 226c 696e 7578 2d62 6173 6522 2069  d "linux-base" i
│ │ │ -002818a0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -002818b0: 7061 636b 6167 6573 0a20 2020 2029 0a3c  packages.    ).<
│ │ │ +00280db0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +00280dc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +00280e00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00280e10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00280e20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00280e30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00280e40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00280ed0: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ +00280ee0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ -00281210: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00281240: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00281250: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00281290: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002812a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +00280e50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00280e60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00280ea0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00280eb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ +00280f00: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00280f10: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00280f20: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00280f30: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00280f40: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00280f50: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00280f60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00280f70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00280f80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +00280f90: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +00280fa0: 7371 7569 645f 6469 7361 626c 6564 0a20 squid_disabled. │ │ │ +00280fb0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572 - unknown_sever │ │ │ +00280fc0: 6974 790a 0a2d 206e 616d 653a 2044 6973 ity..- name: Dis │ │ │ +00280fd0: 6162 6c65 2053 7175 6964 202d 2044 6973 able Squid - Dis │ │ │ +00280fe0: 6162 6c65 2073 6572 7669 6365 2073 7175 able service squ │ │ │ +00280ff0: 6964 0a20 2062 6c6f 636b 3a0a 0a20 202d id. block:.. - │ │ │ +00281000: 206e 616d 653a 2044 6973 6162 6c65 2053 name: Disable S │ │ │ +00281010: 7175 6964 202d 2043 6f6c 6c65 6374 2073 quid - Collect s │ │ │ +00281020: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ +00281030: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ +00281040: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ +00281050: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ +00281060: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ +00281070: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ +00281080: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ +00281090: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ +002810a0: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ +002810b0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ +002810c0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ +002810d0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ +002810e0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ +002810f0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ +00281100: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ +00281110: 6e61 6d65 3a20 4469 7361 626c 6520 5371 name: Disable Sq │ │ │ +00281120: 7569 6420 2d20 456e 7375 7265 2073 7175 uid - Ensure squ │ │ │ +00281130: 6964 2e73 6572 7669 6365 2069 7320 4d61 id.service is Ma │ │ │ +00281140: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ +00281150: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +00281160: 3a0a 2020 2020 2020 6e61 6d65 3a20 7371 :. name: sq │ │ │ +00281170: 7569 642e 7365 7276 6963 650a 2020 2020 uid.service. │ │ │ +00281180: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ +00281190: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +002811a0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ +002811b0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +002811c0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ +002811d0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +002811e0: 7320 7365 6172 6368 2822 7371 7569 642e s search("squid. │ │ │ +002811f0: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ +00281200: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ +00281210: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ +00281220: 2045 7869 7374 7320 2d20 7371 7569 642e Exists - squid. │ │ │ +00281230: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ +00281240: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +00281250: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ +00281260: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ +00281270: 2073 7175 6964 2e73 6f63 6b65 740a 2020 squid.socket. │ │ │ +00281280: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ +00281290: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ +002812a0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ +002812b0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ +002812c0: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ +002812d0: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ +002812e0: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +002812f0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +00281300: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ +00281310: 6162 6c65 2053 7175 6964 202d 2044 6973 able Squid - Dis │ │ │ +00281320: 6162 6c65 2053 6f63 6b65 7420 7371 7569 able Socket squi │ │ │ +00281330: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ +00281340: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ +00281350: 2020 2020 206e 616d 653a 2073 7175 6964 name: squid │ │ │ +00281360: 2e73 6f63 6b65 740a 2020 2020 2020 656e .socket. en │ │ │ +00281370: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ +00281380: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +00281390: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ +002813a0: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ +002813b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ +002813c0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +002813d0: 7320 7365 6172 6368 2822 7371 7569 642e s search("squid. │ │ │ +002813e0: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ +002813f0: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ +00281400: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ +00281410: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00281420: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00281430: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +00281440: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ +00281450: 0a20 202d 2073 6572 7669 6365 5f73 7175 . - service_squ │ │ │ +00281460: 6964 5f64 6973 6162 6c65 640a 2020 2d20 id_disabled. - │ │ │ +00281470: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ +00281480: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ +00281490: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ +002814a0: 6e3a 2028 2022 7371 7569 6422 2069 6e20 n: ( "squid" in │ │ │ +002814b0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +002814c0: 636b 6167 6573 2061 6e64 2022 6c69 6e75 ckages and "linu │ │ │ +002814d0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ +002814e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +002814f0: 730a 2020 2020 290a 3c2f 636f 6465 3e3c s. ).< │ │ │ +00281500: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remedia │ │ │ +002815b0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +002815c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002815d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002815e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002815f0: 7365 2220 6964 3d22 6964 3130 3637 223e se" id="id1067"> │ │ │ +00281600: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00281670: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00281690: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002816c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +002816e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00281650: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00281660: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002816a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002816b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +00281700: 6469 7361 626c 655f 7371 7569 640a 0a63 disable_squid..c │ │ │ +00281710: 6c61 7373 2064 6973 6162 6c65 5f73 7175 lass disable_squ │ │ │ +00281720: 6964 207b 0a20 2073 6572 7669 6365 207b id {. service { │ │ │ +00281730: 2773 7175 6964 273a 0a20 2020 2065 6e61 'squid':. ena │ │ │ +00281740: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ +00281750: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +00281760: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ +00281770: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ +00281780: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +00281830: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00281840: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +002818a0: 732e 7365 7276 6963 6573 5d0a 6d61 736b  s.services].mask
│ │ │ +002818b0: 6564 203d 205b 2273 7175 6964 225d 0a3c  ed = ["squid"].<
│ │ │  002818c0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -00282a00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00282a10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00282aa0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00282ac0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00282ad0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00282ae0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00282af0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00282b10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00282b40: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00282b50: 6d6f 7665 5f73 616d 6261 0a0a 636c 6173  move_samba..clas
│ │ │ -00282b60: 7320 7265 6d6f 7665 5f73 616d 6261 207b  s remove_samba {
│ │ │ -00282b70: 0a20 2070 6163 6b61 6765 207b 2027 7361  .  package { 'sa
│ │ │ -00282b80: 6d62 6127 3a0a 2020 2020 656e 7375 7265  mba':.    ensure
│ │ │ -00282b90: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ -00282ba0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediat │ │ │ -00282c60: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00282c70: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00282c80: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00282c90: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00282ca0: 7365 2220 6964 3d22 6964 3130 3731 223e se" id="id1071"> │ │ │ -00282cb0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00282d20: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00282d40: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00282d70: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00282d00: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00282d10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00282d50: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00282d60: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00282db0: 2027 556e 696e 7374 616c 6c20 5361 6d62 'Uninstall Samb │ │ │ -00282dc0: 6120 5061 636b 6167 653a 2045 6e73 7572 a Package: Ensur │ │ │ -00282dd0: 6520 7361 6d62 6120 6973 2072 656d 6f76 e samba is remov │ │ │ -00282de0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -00282df0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00282e00: 2020 206e 616d 653a 2073 616d 6261 0a20 name: samba. │ │ │ -00282e10: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -00282e20: 0a20 2074 6167 733a 0a20 202d 2064 6973 . tags:. - dis │ │ │ -00282e30: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -00282e40: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -00282e50: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -00282e60: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ -00282e70: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -00282e80: 6b61 6765 5f73 616d 6261 5f72 656d 6f76 kage_samba_remov │ │ │ -00282e90: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ -00282ea0: 6576 6572 6974 790a 3c2f 636f 6465 3e3c everity.< │ │ │ +00282a00: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ +00282a10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

< │ │ │ +00282a90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00282aa0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00282ac0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00282ad0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00282af0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00282b10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00282b40: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00282b50: 6e69 6e73 7461 6c6c 2053 616d 6261 2050  ninstall Samba P
│ │ │ +00282b60: 6163 6b61 6765 3a20 456e 7375 7265 2073  ackage: Ensure s
│ │ │ +00282b70: 616d 6261 2069 7320 7265 6d6f 7665 6427  amba is removed'
│ │ │ +00282b80: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +00282b90: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +00282ba0: 6e61 6d65 3a20 7361 6d62 610a 2020 2020  name: samba.    
│ │ │ +00282bb0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +00282bc0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +00282bd0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00282be0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00282bf0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00282c00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00282c10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00282c20: 655f 7361 6d62 615f 7265 6d6f 7665 640a  e_samba_removed.
│ │ │ +00282c30: 2020 2d20 756e 6b6e 6f77 6e5f 7365 7665    - unknown_seve
│ │ │ +00282c40: 7269 7479 0a3c 2f63 6f64 653e 3c2f 7072  rity.
Remediatio │ │ │ +00282d00: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00282d10: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00282d90: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00282da0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00282dc0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00282dd0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00282df0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00282e10: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00282e40: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00282e50: 656d 6f76 655f 7361 6d62 610a 0a63 6c61  emove_samba..cla
│ │ │ +00282e60: 7373 2072 656d 6f76 655f 7361 6d62 6120  ss remove_samba 
│ │ │ +00282e70: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00282e80: 616d 6261 273a 0a20 2020 2065 6e73 7572  amba':.    ensur
│ │ │ +00282e90: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ +00282ea0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │  00282eb0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation O │ │ │ -00283990: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -002839a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002839b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -002839f0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -00283a00: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -00283a10: 6420 3d20 5b22 736d 6222 5d0a 3c2f 636f  d = ["smb"].
< │ │ │ -00283a30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -00283a40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -00283a50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -00283a60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -00283a70: 6431 3037 3522 2074 6162 696e 6465 783d d1075" tabindex= │ │ │ -00283a80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -00283a90: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -00283aa0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -00283ab0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -00283ac0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -00283ad0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -00283ae0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00283af0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00283b90: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00283be0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00283b70: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00283ba0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00283bc0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00283bd0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00283bf0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00283c00: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00283c20: 7564 6520 6469 7361 626c 655f 736d 620a  ude disable_smb.
│ │ │ -00283c30: 0a63 6c61 7373 2064 6973 6162 6c65 5f73  .class disable_s
│ │ │ -00283c40: 6d62 207b 0a20 2073 6572 7669 6365 207b  mb {.  service {
│ │ │ -00283c50: 2773 6d62 273a 0a20 2020 2065 6e61 626c  'smb':.    enabl
│ │ │ -00283c60: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -00283c70: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00283c80: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -00283c90: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -00283d50: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00283d60: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -00283de0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00283e00: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00283e50: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -00283e80: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -00283df0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00283e10: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00283e60: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -00283e70: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -00283ea0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00283eb0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00283ec0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00283ed0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00283ee0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00283ef0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00283f00: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00283f10: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00283f20: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00283f30: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00283f40: 2020 2d20 7365 7276 6963 655f 736d 625f    - service_smb_
│ │ │ -00283f50: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65  disabled..- name
│ │ │ -00283f60: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ -00283f70: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -00283f80: 6520 736d 620a 2020 626c 6f63 6b3a 0a0a  e smb.  block:..
│ │ │ -00283f90: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -00283fa0: 6520 5361 6d62 6120 2d20 436f 6c6c 6563  e Samba - Collec
│ │ │ -00283fb0: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -00283fc0: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ -00283fd0: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ -00283fe0: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -00283ff0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -00284000: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -00284010: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ -00284020: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ -00284030: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ -00284040: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ -00284050: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ -00284060: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ -00284070: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -00284080: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -00284090: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -002840a0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002840b0: 2053 616d 6261 202d 2045 6e73 7572 6520   Samba - Ensure 
│ │ │ -002840c0: 736d 622e 7365 7276 6963 6520 6973 204d  smb.service is M
│ │ │ -002840d0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ -002840e0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002840f0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ -00284100: 6d62 2e73 6572 7669 6365 0a20 2020 2020  mb.service.     
│ │ │ -00284110: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00284120: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -00284130: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -00284140: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -00284150: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00284160: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -00284170: 2073 6561 7263 6828 2273 6d62 2e73 6572   search("smb.ser
│ │ │ -00284180: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -00284190: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -002841a0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -002841b0: 6973 7473 202d 2073 6d62 2e73 6f63 6b65  ists - smb.socke
│ │ │ -002841c0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ -002841d0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002841e0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002841f0: 2d75 6e69 742d 6669 6c65 7320 736d 622e  -unit-files smb.
│ │ │ -00284200: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -00284210: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00284220: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00284230: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00284240: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00284250: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00284260: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00284270: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00284280: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00284290: 6e61 6d65 3a20 4469 7361 626c 6520 5361  name: Disable Sa
│ │ │ -002842a0: 6d62 6120 2d20 4469 7361 626c 6520 536f  mba - Disable So
│ │ │ -002842b0: 636b 6574 2073 6d62 0a20 2020 2061 6e73  cket smb.    ans
│ │ │ -002842c0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -002842d0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -002842e0: 3a20 736d 622e 736f 636b 6574 0a20 2020  : smb.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 2273  nes is search("s
│ │ │ -00284360: 6d62 2e73 6f63 6b65 7422 2c20 6d75 6c74  mb.socket", mult
│ │ │ -00284370: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00284380: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -00284390: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002843a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002843b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002843c0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002843d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002843e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -002843f0: 5f73 6d62 5f64 6973 6162 6c65 640a 2020  _smb_disabled.  
│ │ │ -00284400: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00284410: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00284420: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00284430: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00284440: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +00283980: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00283990: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +002839a0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +00283a30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +00283a50: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +00283a70: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +00283aa0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +00283ab0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +00283ae0: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00283af0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00283b00: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00283b10: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00283b20: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00283b30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00283b40: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00283b50: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00283b60: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00283b70: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00283b80: 0a20 202d 2073 6572 7669 6365 5f73 6d62  .  - service_smb
│ │ │ +00283b90: 5f64 6973 6162 6c65 640a 0a2d 206e 616d  _disabled..- nam
│ │ │ +00283ba0: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ +00283bb0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00283bc0: 6365 2073 6d62 0a20 2062 6c6f 636b 3a0a  ce smb.  block:.
│ │ │ +00283bd0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +00283be0: 6c65 2053 616d 6261 202d 2043 6f6c 6c65  le Samba - Colle
│ │ │ +00283bf0: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ +00283c00: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ +00283c10: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ +00283c20: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00283c30: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00283c40: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00283c50: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ +00283c60: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ +00283c70: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ +00283c80: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ +00283c90: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ +00283ca0: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ +00283cb0: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ +00283cc0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ +00283cd0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ +00283ce0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ +00283cf0: 6520 5361 6d62 6120 2d20 456e 7375 7265  e Samba - Ensure
│ │ │ +00283d00: 2073 6d62 2e73 6572 7669 6365 2069 7320   smb.service is 
│ │ │ +00283d10: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00283d20: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00283d30: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00283d40: 736d 622e 7365 7276 6963 650a 2020 2020  smb.service.    
│ │ │ +00283d50: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +00283d60: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +00283d70: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ +00283d80: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +00283d90: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00283da0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00283db0: 7320 7365 6172 6368 2822 736d 622e 7365  s search("smb.se
│ │ │ +00283dc0: 7276 6963 6522 2c20 6d75 6c74 696c 696e  rvice", multilin
│ │ │ +00283dd0: 653d 5472 7565 290a 0a20 202d 206e 616d  e=True)..  - nam
│ │ │ +00283de0: 653a 2055 6e69 7420 536f 636b 6574 2045  e: Unit Socket E
│ │ │ +00283df0: 7869 7374 7320 2d20 736d 622e 736f 636b  xists - smb.sock
│ │ │ +00283e00: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +00283e10: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +00283e20: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +00283e30: 742d 756e 6974 2d66 696c 6573 2073 6d62  t-unit-files smb
│ │ │ +00283e40: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +00283e50: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +00283e60: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +00283e70: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +00283e80: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +00283e90: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00283ea0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +00283eb0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +00283ec0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +00283ed0: 206e 616d 653a 2044 6973 6162 6c65 2053   name: Disable S
│ │ │ +00283ee0: 616d 6261 202d 2044 6973 6162 6c65 2053  amba - Disable S
│ │ │ +00283ef0: 6f63 6b65 7420 736d 620a 2020 2020 616e  ocket smb.    an
│ │ │ +00283f00: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +00283f10: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +00283f20: 653a 2073 6d62 2e73 6f63 6b65 740a 2020  e: smb.socket.  
│ │ │ +00283f30: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +00283f40: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +00283f50: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +00283f60: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00283f70: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +00283f80: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00283f90: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00283fa0: 736d 622e 736f 636b 6574 222c 206d 756c  smb.socket", mul
│ │ │ +00283fb0: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00283fc0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ +00283fd0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00283fe0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00283ff0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00284000: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +00284010: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00284020: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +00284030: 655f 736d 625f 6469 7361 626c 6564 0a20  e_smb_disabled. 
│ │ │ +00284040: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ +00284050: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ +00284060: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00284070: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00284080: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00284140: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00284150: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +002841e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002841f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00284210: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00284230: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00284240: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00284280: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00284290: 6520 6469 7361 626c 655f 736d 620a 0a63 e disable_smb..c │ │ │ +002842a0: 6c61 7373 2064 6973 6162 6c65 5f73 6d62 lass disable_smb │ │ │ +002842b0: 207b 0a20 2073 6572 7669 6365 207b 2773 {. service {'s │ │ │ +002842c0: 6d62 273a 0a20 2020 2065 6e61 626c 6520 mb':. enable │ │ │ +002842d0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020 => false,. │ │ │ +002842e0: 2065 6e73 7572 6520 3d26 6774 3b20 2773 ensure => 's │ │ │ +002842f0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c topped',. }.}.< │ │ │ +00284300: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>
│ │ │ +002843b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +002843c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +002843d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +00284420: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +00284430: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +00284440: 205b 2273 6d62 225d 0a3c 2f63 6f64 653e   ["smb"].
│ │ │  00284450: 3c2f 7072 653e 3c2f 6469 763e 3c2f 6469  
Remediation │ │ │ -00285560: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00285570: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00285600: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00285620: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00285640: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00285670: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00285680: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002856b0: 6f76 655f 6e65 742d 736e 6d70 0a0a 636c  ove_net-snmp..cl
│ │ │ -002856c0: 6173 7320 7265 6d6f 7665 5f6e 6574 2d73  ass remove_net-s
│ │ │ -002856d0: 6e6d 7020 7b0a 2020 7061 636b 6167 6520  nmp {.  package 
│ │ │ -002856e0: 7b20 276e 6574 2d73 6e6d 7027 3a0a 2020  { 'net-snmp':.  
│ │ │ -002856f0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00285700: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c  purged',.  }.}.<
│ │ │ -00285710: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -002857c0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -002857d0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -002857e0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002858b0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002858c0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00285920: 616c 6c20 6e65 742d 736e 6d70 2050 6163  all net-snmp Pac
│ │ │ -00285930: 6b61 6765 3a20 456e 7375 7265 206e 6574  kage: Ensure net
│ │ │ -00285940: 2d73 6e6d 7020 6973 2072 656d 6f76 6564  -snmp is removed
│ │ │ -00285950: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -00285960: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -00285970: 206e 616d 653a 206e 6574 2d73 6e6d 700a   name: net-snmp.
│ │ │ -00285980: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ -00285990: 740a 2020 7461 6773 3a0a 2020 2d20 5043  t.  tags:.  - PC
│ │ │ -002859a0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002859b0: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002859c0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002859d0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002859e0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002859f0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ -00285a00: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00285a10: 2020 2d20 7061 636b 6167 655f 6e65 742d    - package_net-
│ │ │ -00285a20: 736e 6d70 5f72 656d 6f76 6564 0a20 202d  snmp_removed.  -
│ │ │ -00285a30: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -00285a40: 790a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  y.
< │ │ │ +00285560: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ +00285570: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +00285630: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00285640: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disru │ │ │ -00285890: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002858a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002858e0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002858f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +00285600: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00285620: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00285650: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00285670: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002856a0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002856b0: 696e 7374 616c 6c20 6e65 742d 736e 6d70  install net-snmp
│ │ │ +002856c0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +002856d0: 206e 6574 2d73 6e6d 7020 6973 2072 656d   net-snmp is rem
│ │ │ +002856e0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002856f0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +00285700: 0a20 2020 206e 616d 653a 206e 6574 2d73  .    name: net-s
│ │ │ +00285710: 6e6d 700a 2020 2020 7374 6174 653a 2061  nmp.    state: a
│ │ │ +00285720: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ +00285730: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00285740: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00285750: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00285760: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00285770: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00285780: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00285790: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002857a0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002857b0: 6e65 742d 736e 6d70 5f72 656d 6f76 6564  net-snmp_removed
│ │ │ +002857c0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002857d0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +00285890: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002858a0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +00285920: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00285930: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00285940: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00285980: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00285990: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002859b0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002859c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002859e0: 7265 6d6f 7665 5f6e 6574 2d73 6e6d 700a  remove_net-snmp.
│ │ │ +002859f0: 0a63 6c61 7373 2072 656d 6f76 655f 6e65  .class remove_ne
│ │ │ +00285a00: 742d 736e 6d70 207b 0a20 2070 6163 6b61  t-snmp {.  packa
│ │ │ +00285a10: 6765 207b 2027 6e65 742d 736e 6d70 273a  ge { 'net-snmp':
│ │ │ +00285a20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00285a30: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +00285a40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 00285a50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -002865b0: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -002865c0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -00286620: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00286630: 6b65 6420 3d20 5b22 736e 6d70 6422 5d0a  ked = ["snmpd"].
│ │ │ -00286640: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -00286700: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00286710: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -002867e0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002867f0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00286840: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00286850: 736e 6d70 640a 0a63 6c61 7373 2064 6973  snmpd..class dis
│ │ │ -00286860: 6162 6c65 5f73 6e6d 7064 207b 0a20 2073  able_snmpd {.  s
│ │ │ -00286870: 6572 7669 6365 207b 2773 6e6d 7064 273a  ervice {'snmpd':
│ │ │ -00286880: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00286890: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -002868a0: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -002868b0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -00286970: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00286980: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00286990: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -002867c0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -002867d0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00286810: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00286820: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00286a30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00286a80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00286ac0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00286ad0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00286ae0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00286af0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00286b00: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -00286b10: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00286b20: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00286b30: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00286b40: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -00286b50: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00286b60: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00286b70: 7276 6963 655f 736e 6d70 645f 6469 7361  rvice_snmpd_disa
│ │ │ -00286b80: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -00286b90: 7361 626c 6520 736e 6d70 6420 5365 7276  sable snmpd Serv
│ │ │ -00286ba0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00286bb0: 7276 6963 6520 736e 6d70 640a 2020 626c  rvice snmpd.  bl
│ │ │ -00286bc0: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00286bd0: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ -00286be0: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00286bf0: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00286c00: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00286c10: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00286c20: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00286c30: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00286c40: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00286c50: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -00286c60: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -00286c70: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -00286c80: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -00286c90: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -00286ca0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -00286cb0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00286cc0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00286cd0: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00286ce0: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ -00286cf0: 6e6d 7064 2053 6572 7669 6365 202d 2045  nmpd Service - E
│ │ │ -00286d00: 6e73 7572 6520 736e 6d70 642e 7365 7276  nsure snmpd.serv
│ │ │ -00286d10: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00286d20: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00286d30: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00286d40: 206e 616d 653a 2073 6e6d 7064 2e73 6572   name: snmpd.ser
│ │ │ -00286d50: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -00286d60: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -00286d70: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -00286d80: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00286d90: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -00286da0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -00286db0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00286dc0: 6828 2273 6e6d 7064 2e73 6572 7669 6365  h("snmpd.service
│ │ │ -00286dd0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00286de0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00286df0: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00286e00: 202d 2073 6e6d 7064 2e73 6f63 6b65 740a   - snmpd.socket.
│ │ │ -00286e10: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00286e20: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00286e30: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -00286e40: 6e69 742d 6669 6c65 7320 736e 6d70 642e  nit-files snmpd.
│ │ │ -00286e50: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -00286e60: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -00286e70: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -00286e80: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -00286e90: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -00286ea0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -00286eb0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00286ec0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00286ed0: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00286ee0: 6e61 6d65 3a20 4469 7361 626c 6520 736e  name: Disable sn
│ │ │ -00286ef0: 6d70 6420 5365 7276 6963 6520 2d20 4469  mpd Service - Di
│ │ │ -00286f00: 7361 626c 6520 536f 636b 6574 2073 6e6d  sable Socket snm
│ │ │ -00286f10: 7064 0a20 2020 2061 6e73 6962 6c65 2e62  pd.    ansible.b
│ │ │ -00286f20: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00286f30: 2020 2020 2020 6e61 6d65 3a20 736e 6d70        name: snmp
│ │ │ -00286f40: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -00286f50: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00286f60: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -00286f70: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -00286f80: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00286f90: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -00286fa0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -00286fb0: 6973 2073 6561 7263 6828 2273 6e6d 7064  is search("snmpd
│ │ │ -00286fc0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00286fd0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00286fe0: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00286ff0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00287000: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00287010: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00287020: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -00287030: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00287040: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -00287050: 6e6d 7064 5f64 6973 6162 6c65 640a 2020  nmpd_disabled.  
│ │ │ -00287060: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00287070: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ -00287080: 2820 2273 6e6d 7064 2220 696e 2061 6e73  ( "snmpd" in ans
│ │ │ -00287090: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002870a0: 6765 7320 616e 6420 226c 696e 7578 2d62  ges and "linux-b
│ │ │ -002870b0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -002870c0: 6661 6374 732e 7061 636b 6167 6573 0a20  facts.packages. 
│ │ │ -002870d0: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072     ).
< │ │ │ +00286640: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00286680: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -00286a10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00286a40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00286a60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00286a70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00286a90: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00286aa0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00286650: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00286670: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +002866a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +002866c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +002866f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00286700: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00286710: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00286720: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00286730: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00286740: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00286750: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00286760: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00286770: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00286780: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ +00286790: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +002867a0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ +002867b0: 6e6d 7064 5f64 6973 6162 6c65 640a 0a2d  nmpd_disabled..-
│ │ │ +002867c0: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ +002867d0: 6e6d 7064 2053 6572 7669 6365 202d 2044  nmpd Service - D
│ │ │ +002867e0: 6973 6162 6c65 2073 6572 7669 6365 2073  isable service s
│ │ │ +002867f0: 6e6d 7064 0a20 2062 6c6f 636b 3a0a 0a20  nmpd.  block:.. 
│ │ │ +00286800: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00286810: 2073 6e6d 7064 2053 6572 7669 6365 202d   snmpd Service -
│ │ │ +00286820: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ +00286830: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ +00286840: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ +00286850: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00286860: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +00286870: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +00286880: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ +00286890: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ +002868a0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ +002868b0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002868c0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002868d0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002868e0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ +002868f0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +00286900: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +00286910: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +00286920: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ +00286930: 7276 6963 6520 2d20 456e 7375 7265 2073  rvice - Ensure s
│ │ │ +00286940: 6e6d 7064 2e73 6572 7669 6365 2069 7320  nmpd.service is 
│ │ │ +00286950: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +00286960: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +00286970: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +00286980: 736e 6d70 642e 7365 7276 6963 650a 2020  snmpd.service.  
│ │ │ +00286990: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +002869a0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +002869b0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +002869c0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +002869d0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +002869e0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +002869f0: 2069 7320 7365 6172 6368 2822 736e 6d70   is search("snmp
│ │ │ +00286a00: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ +00286a10: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ +00286a20: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ +00286a30: 6574 2045 7869 7374 7320 2d20 736e 6d70  et Exists - snmp
│ │ │ +00286a40: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ +00286a50: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00286a60: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00286a70: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00286a80: 6573 2073 6e6d 7064 2e73 6f63 6b65 740a  es snmpd.socket.
│ │ │ +00286a90: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ +00286aa0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00286ab0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +00286ac0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +00286ad0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ +00286ae0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ +00286af0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +00286b00: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +00286b10: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +00286b20: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ +00286b30: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ +00286b40: 6f63 6b65 7420 736e 6d70 640a 2020 2020  ocket snmpd.    
│ │ │ +00286b50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00286b60: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00286b70: 616d 653a 2073 6e6d 7064 2e73 6f63 6b65  ame: snmpd.socke
│ │ │ +00286b80: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00286b90: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +00286ba0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00286bb0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00286bc0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +00286bd0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +00286be0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +00286bf0: 6368 2822 736e 6d70 642e 736f 636b 6574  ch("snmpd.socket
│ │ │ +00286c00: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +00286c10: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ +00286c20: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00286c30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00286c40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00286c50: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +00286c60: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00286c70: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00286c80: 7365 7276 6963 655f 736e 6d70 645f 6469  service_snmpd_di
│ │ │ +00286c90: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +00286ca0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +00286cb0: 0a20 2077 6865 6e3a 2028 2022 736e 6d70  .  when: ( "snmp
│ │ │ +00286cc0: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ +00286cd0: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ +00286ce0: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ +00286cf0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +00286d00: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
R │ │ │ +00286dc0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00286dd0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +00286e70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +00286f10: 636c 7564 6520 6469 7361 626c 655f 736e  clude disable_sn
│ │ │ +00286f20: 6d70 640a 0a63 6c61 7373 2064 6973 6162  mpd..class disab
│ │ │ +00286f30: 6c65 5f73 6e6d 7064 207b 0a20 2073 6572  le_snmpd {.  ser
│ │ │ +00286f40: 7669 6365 207b 2773 6e6d 7064 273a 0a20  vice {'snmpd':. 
│ │ │ +00286f50: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +00286f60: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +00286f70: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +00286f80: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +00286f90: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00287040: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00287050: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00287060: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +002870b0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +002870c0: 5d0a 6d61 736b 6564 203d 205b 2273 6e6d  ].masked = ["snm
│ │ │ +002870d0: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
│ │ │ 00287100: 3c2f 7461 626c 653e 3c2f 7464 3e3c 2f74
│ │ │ +00286e60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00286e90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00286ea0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00286ee0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00286ef0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Remediation │ │ │ -002af600: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002af610: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
include s
│ │ │ -002af660: 7368 5f70 7269 7661 7465 5f6b 6579 5f70  sh_private_key_p
│ │ │ -002af670: 6572 6d73 0a0a 636c 6173 7320 7373 685f  erms..class ssh_
│ │ │ -002af680: 7072 6976 6174 655f 6b65 795f 7065 726d  private_key_perm
│ │ │ -002af690: 7320 7b0a 2020 6578 6563 207b 2027 7373  s {.  exec { 'ss
│ │ │ -002af6a0: 6864 5f70 7269 765f 6b65 7927 3a0a 2020  hd_priv_key':.  
│ │ │ -002af6b0: 2020 636f 6d6d 616e 6420 3d26 6774 3b20    command => 
│ │ │ -002af6c0: 2263 686d 6f64 2030 3634 3020 2f65 7463  "chmod 0640 /etc
│ │ │ -002af6d0: 2f73 7368 2f2a 5f6b 6579 222c 0a20 2020  /ssh/*_key",.   
│ │ │ -002af6e0: 2070 6174 6820 2020 203d 2667 743b 2027   path    => '
│ │ │ -002af6f0: 2f62 696e 3a2f 7573 722f 6269 6e27 0a20  /bin:/usr/bin'. 
│ │ │ -002af700: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -002af7c0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002af7d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002af850: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -002af860: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002af870: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -002af8b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002af8c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -002af8e0: 7464 3e63 6f6e 6669 6775 7265 3c2f 7464 td>configure

- name: │ │ │ -002af910: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -002af920: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -002af930: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -002af940: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -002af950: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002af960: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002af970: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002af980: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002af990: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002af9a0: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002af9b0: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002af9c0: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002af9d0: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002af9e0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002af9f0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002afa00: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002afa10: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002afa20: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002afa30: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002afa40: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002afa50: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002afa60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002afa70: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002afa80: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002afa90: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002afaa0: 4669 6e64 2072 6f6f 743a 726f 6f74 2d6f Find root:root-o │ │ │ -002afab0: 776e 6564 206b 6579 730a 2020 616e 7369 wned keys. ansi │ │ │ -002afac0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -002afad0: 616e 643a 2066 696e 6420 2d48 202f 6574 and: find -H /et │ │ │ -002afae0: 632f 7373 682f 202d 6d61 7864 6570 7468 c/ssh/ -maxdepth │ │ │ -002afaf0: 2031 202d 7573 6572 2072 6f6f 7420 2d72 1 -user root -r │ │ │ -002afb00: 6567 6578 2022 2e2a 5f6b 6579 2422 0a20 egex ".*_key$". │ │ │ -002afb10: 2020 202d 7479 7065 2066 202d 6772 6f75 -type f -grou │ │ │ -002afb20: 7020 726f 6f74 202d 7065 726d 202f 752b p root -perm /u+ │ │ │ -002afb30: 7873 2c67 2b78 7772 732c 6f2b 7877 7274 xs,g+xwrs,o+xwrt │ │ │ -002afb40: 0a20 2072 6567 6973 7465 723a 2072 6f6f . register: roo │ │ │ -002afb50: 745f 6f77 6e65 645f 6b65 7973 0a20 2063 t_owned_keys. c │ │ │ -002afb60: 6861 6e67 6564 5f77 6865 6e3a 2066 616c hanged_when: fal │ │ │ -002afb70: 7365 0a20 2066 6169 6c65 645f 7768 656e se. failed_when │ │ │ -002afb80: 3a20 6661 6c73 650a 2020 6368 6563 6b5f : false. check_ │ │ │ -002afb90: 6d6f 6465 3a20 6661 6c73 650a 2020 7768 mode: false. wh │ │ │ -002afba0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002afbb0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002afbc0: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002afbd0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002afbe0: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002afbf0: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002afc00: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002afc10: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002afc20: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002afc30: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002afc40: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002afc50: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002afc60: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002afc70: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002afc80: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002afc90: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002afca0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002afcb0: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002afcc0: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002afcd0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002afce0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002afcf0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002afd00: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002afd10: 6e65 6564 6564 0a0a 2d20 6e61 6d65 3a20 needed..- name: │ │ │ -002afd20: 5365 7420 7065 726d 6973 7369 6f6e 7320 Set permissions │ │ │ -002afd30: 666f 7220 726f 6f74 3a72 6f6f 742d 6f77 for root:root-ow │ │ │ -002afd40: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ -002afd50: 6c65 2e62 7569 6c74 696e 2e66 696c 653a le.builtin.file: │ │ │ -002afd60: 0a20 2020 2070 6174 683a 2027 7b7b 2069 . path: '{{ i │ │ │ -002afd70: 7465 6d20 7d7d 270a 2020 2020 6d6f 6465 tem }}'. mode │ │ │ -002afd80: 3a20 752d 7873 2c67 2d78 7772 732c 6f2d : u-xs,g-xwrs,o- │ │ │ -002afd90: 7877 7274 0a20 2020 2073 7461 7465 3a20 xwrt. state: │ │ │ -002afda0: 6669 6c65 0a20 2077 6974 685f 6974 656d file. with_item │ │ │ -002afdb0: 733a 0a20 202d 2027 7b7b 2072 6f6f 745f s:. - '{{ root_ │ │ │ -002afdc0: 6f77 6e65 645f 6b65 7973 2e73 7464 6f75 owned_keys.stdou │ │ │ -002afdd0: 745f 6c69 6e65 7320 7d7d 270a 2020 7768 t_lines }}'. wh │ │ │ -002afde0: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -002afdf0: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -002afe00: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -002afe10: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -002afe20: 302d 3137 312d 332e 312e 3133 0a20 202d 0-171-3.1.13. - │ │ │ -002afe30: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -002afe40: 3133 2e31 300a 2020 2d20 4e49 5354 2d38 13.10. - NIST-8 │ │ │ -002afe50: 3030 2d35 332d 4143 2d31 3728 6129 0a20 00-53-AC-17(a). │ │ │ -002afe60: 202d 204e 4953 542d 3830 302d 3533 2d41 - NIST-800-53-A │ │ │ -002afe70: 432d 3628 3129 0a20 202d 204e 4953 542d C-6(1). - NIST- │ │ │ -002afe80: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -002afe90: 202d 2050 4349 2d44 5353 2d52 6571 2d32 - PCI-DSS-Req-2 │ │ │ -002afea0: 2e32 2e34 0a20 202d 2050 4349 2d44 5353 .2.4. - PCI-DSS │ │ │ -002afeb0: 7634 2d32 2e32 0a20 202d 2050 4349 2d44 v4-2.2. - PCI-D │ │ │ -002afec0: 5353 7634 2d32 2e32 2e36 0a20 202d 2063 SSv4-2.2.6. - c │ │ │ -002afed0: 6f6e 6669 6775 7265 5f73 7472 6174 6567 onfigure_strateg │ │ │ -002afee0: 790a 2020 2d20 6669 6c65 5f70 6572 6d69 y. - file_permi │ │ │ -002afef0: 7373 696f 6e73 5f73 7368 645f 7072 6976 ssions_sshd_priv │ │ │ -002aff00: 6174 655f 6b65 790a 2020 2d20 6c6f 775f ate_key. - low_ │ │ │ -002aff10: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -002aff20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -002aff30: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -002aff40: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -002aff50: 6e65 6564 6564 0a3c 2f63 6f64 653e 3c2f needed.

< │ │ │ +002af690: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +002af6a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +002af6c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +002af6d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +002af6f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +002af710: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:configure │ │ │ +002af730: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002af750: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +002af760: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +002af770: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +002af780: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +002af790: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002af7a0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002af7b0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002af7c0: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002af7d0: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002af7e0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002af7f0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002af800: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002af810: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002af820: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002af830: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002af840: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002af850: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002af860: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002af870: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002af880: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002af890: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002af8a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002af8b0: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002af8c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002af8d0: 6565 6465 640a 0a2d 206e 616d 653a 2046 eeded..- name: F │ │ │ +002af8e0: 696e 6420 726f 6f74 3a72 6f6f 742d 6f77 ind root:root-ow │ │ │ +002af8f0: 6e65 6420 6b65 7973 0a20 2061 6e73 6962 ned keys. ansib │ │ │ +002af900: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ +002af910: 6e64 3a20 6669 6e64 202d 4820 2f65 7463 nd: find -H /etc │ │ │ +002af920: 2f73 7368 2f20 2d6d 6178 6465 7074 6820 /ssh/ -maxdepth │ │ │ +002af930: 3120 2d75 7365 7220 726f 6f74 202d 7265 1 -user root -re │ │ │ +002af940: 6765 7820 222e 2a5f 6b65 7924 220a 2020 gex ".*_key$". │ │ │ +002af950: 2020 2d74 7970 6520 6620 2d67 726f 7570 -type f -group │ │ │ +002af960: 2072 6f6f 7420 2d70 6572 6d20 2f75 2b78 root -perm /u+x │ │ │ +002af970: 732c 672b 7877 7273 2c6f 2b78 7772 740a s,g+xwrs,o+xwrt. │ │ │ +002af980: 2020 7265 6769 7374 6572 3a20 726f 6f74 register: root │ │ │ +002af990: 5f6f 776e 6564 5f6b 6579 730a 2020 6368 _owned_keys. ch │ │ │ +002af9a0: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +002af9b0: 650a 2020 6661 696c 6564 5f77 6865 6e3a e. failed_when: │ │ │ +002af9c0: 2066 616c 7365 0a20 2063 6865 636b 5f6d false. check_m │ │ │ +002af9d0: 6f64 653a 2066 616c 7365 0a20 2077 6865 ode: false. whe │ │ │ +002af9e0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +002af9f0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +002afa00: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +002afa10: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002afa20: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002afa30: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002afa40: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002afa50: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002afa60: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002afa70: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002afa80: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002afa90: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002afaa0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002afab0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002afac0: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002afad0: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002afae0: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002afaf0: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002afb00: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002afb10: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002afb20: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002afb30: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002afb40: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002afb50: 6565 6465 640a 0a2d 206e 616d 653a 2053 eeded..- name: S │ │ │ +002afb60: 6574 2070 6572 6d69 7373 696f 6e73 2066 et permissions f │ │ │ +002afb70: 6f72 2072 6f6f 743a 726f 6f74 2d6f 776e or root:root-own │ │ │ +002afb80: 6564 206b 6579 730a 2020 616e 7369 626c ed keys. ansibl │ │ │ +002afb90: 652e 6275 696c 7469 6e2e 6669 6c65 3a0a e.builtin.file:. │ │ │ +002afba0: 2020 2020 7061 7468 3a20 277b 7b20 6974 path: '{{ it │ │ │ +002afbb0: 656d 207d 7d27 0a20 2020 206d 6f64 653a em }}'. mode: │ │ │ +002afbc0: 2075 2d78 732c 672d 7877 7273 2c6f 2d78 u-xs,g-xwrs,o-x │ │ │ +002afbd0: 7772 740a 2020 2020 7374 6174 653a 2066 wrt. state: f │ │ │ +002afbe0: 696c 650a 2020 7769 7468 5f69 7465 6d73 ile. with_items │ │ │ +002afbf0: 3a0a 2020 2d20 277b 7b20 726f 6f74 5f6f :. - '{{ root_o │ │ │ +002afc00: 776e 6564 5f6b 6579 732e 7374 646f 7574 wned_keys.stdout │ │ │ +002afc10: 5f6c 696e 6573 207d 7d27 0a20 2077 6865 _lines }}'. whe │ │ │ +002afc20: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ +002afc30: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ +002afc40: 732e 7061 636b 6167 6573 270a 2020 7461 s.packages'. ta │ │ │ +002afc50: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002afc60: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20 -171-3.1.13. - │ │ │ +002afc70: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31 NIST-800-171-3.1 │ │ │ +002afc80: 332e 3130 0a20 202d 204e 4953 542d 3830 3.10. - NIST-80 │ │ │ +002afc90: 302d 3533 2d41 432d 3137 2861 290a 2020 0-53-AC-17(a). │ │ │ +002afca0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143 - NIST-800-53-AC │ │ │ +002afcb0: 2d36 2831 290a 2020 2d20 4e49 5354 2d38 -6(1). - NIST-8 │ │ │ +002afcc0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002afcd0: 2d20 5043 492d 4453 532d 5265 712d 322e - PCI-DSS-Req-2. │ │ │ +002afce0: 322e 340a 2020 2d20 5043 492d 4453 5376 2.4. - PCI-DSSv │ │ │ +002afcf0: 342d 322e 320a 2020 2d20 5043 492d 4453 4-2.2. - PCI-DS │ │ │ +002afd00: 5376 342d 322e 322e 360a 2020 2d20 636f Sv4-2.2.6. - co │ │ │ +002afd10: 6e66 6967 7572 655f 7374 7261 7465 6779 nfigure_strategy │ │ │ +002afd20: 0a20 202d 2066 696c 655f 7065 726d 6973 . - file_permis │ │ │ +002afd30: 7369 6f6e 735f 7373 6864 5f70 7269 7661 sions_sshd_priva │ │ │ +002afd40: 7465 5f6b 6579 0a20 202d 206c 6f77 5f63 te_key. - low_c │ │ │ +002afd50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ +002afd60: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ +002afd70: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ +002afd80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ +002afd90: 6565 6465 640a 3c2f 636f 6465 3e3c 2f70 eeded.

Remediati │ │ │ +002afe50: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002afe60: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

include │ │ │ +002afeb0: 2073 7368 5f70 7269 7661 7465 5f6b 6579 ssh_private_key │ │ │ +002afec0: 5f70 6572 6d73 0a0a 636c 6173 7320 7373 _perms..class ss │ │ │ +002afed0: 685f 7072 6976 6174 655f 6b65 795f 7065 h_private_key_pe │ │ │ +002afee0: 726d 7320 7b0a 2020 6578 6563 207b 2027 rms {. exec { ' │ │ │ +002afef0: 7373 6864 5f70 7269 765f 6b65 7927 3a0a sshd_priv_key':. │ │ │ +002aff00: 2020 2020 636f 6d6d 616e 6420 3d26 6774 command => │ │ │ +002aff10: 3b20 2263 686d 6f64 2030 3634 3020 2f65 ; "chmod 0640 /e │ │ │ +002aff20: 7463 2f73 7368 2f2a 5f6b 6579 222c 0a20 tc/ssh/*_key",. │ │ │ +002aff30: 2020 2070 6174 6820 2020 203d 2667 743b path => │ │ │ +002aff40: 2027 2f62 696e 3a2f 7573 722f 6269 6e27 '/bin:/usr/bin' │ │ │ +002aff50: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remed │ │ │ -002b13c0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002b13d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
inc
│ │ │ -002b1420: 6c75 6465 2073 7368 5f70 7562 6c69 635f  lude ssh_public_
│ │ │ -002b1430: 6b65 795f 7065 726d 730a 0a63 6c61 7373  key_perms..class
│ │ │ -002b1440: 2073 7368 5f70 7562 6c69 635f 6b65 795f   ssh_public_key_
│ │ │ -002b1450: 7065 726d 7320 7b0a 2020 6578 6563 207b  perms {.  exec {
│ │ │ -002b1460: 2027 7373 6864 5f70 7562 5f6b 6579 273a   'sshd_pub_key':
│ │ │ -002b1470: 0a20 2020 2063 6f6d 6d61 6e64 203d 2667  .    command =&g
│ │ │ -002b1480: 743b 2022 6368 6d6f 6420 3036 3434 202f  t; "chmod 0644 /
│ │ │ -002b1490: 6574 632f 7373 682f 2a2e 7075 6222 2c0a  etc/ssh/*.pub",.
│ │ │ -002b14a0: 2020 2020 7061 7468 2020 2020 3d26 6774      path    =>
│ │ │ -002b14b0: 3b20 272f 6269 6e3a 2f75 7372 2f62 696e  ; '/bin:/usr/bin
│ │ │ -002b14c0: 270a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  '.  }.}.<
│ │ │ -002b14d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002b1580: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002b1590: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b15a0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -002b1640: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b1660: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b1690: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b1620: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b1630: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b1650: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b1670: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b1680: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:configure< │ │ │ -002b16b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b16d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002b16e0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002b16f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002b1700: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002b1710: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -002b1720: 2d38 3030 2d31 3731 2d33 2e31 2e31 330a  -800-171-3.1.13.
│ │ │ -002b1730: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -002b1740: 2d33 2e31 332e 3130 0a20 202d 204e 4953  -3.13.10.  - NIS
│ │ │ -002b1750: 542d 3830 302d 3533 2d41 432d 3137 2861  T-800-53-AC-17(a
│ │ │ -002b1760: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002b1770: 332d 4143 2d36 2831 290a 2020 2d20 4e49  3-AC-6(1).  - NI
│ │ │ -002b1780: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002b1790: 290a 2020 2d20 5043 492d 4453 532d 5265  ).  - PCI-DSS-Re
│ │ │ -002b17a0: 712d 322e 322e 340a 2020 2d20 5043 492d  q-2.2.4.  - PCI-
│ │ │ -002b17b0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002b17c0: 492d 4453 5376 342d 322e 322e 360a 2020  I-DSSv4-2.2.6.  
│ │ │ -002b17d0: 2d20 636f 6e66 6967 7572 655f 7374 7261  - configure_stra
│ │ │ -002b17e0: 7465 6779 0a20 202d 2066 696c 655f 7065  tegy.  - file_pe
│ │ │ -002b17f0: 726d 6973 7369 6f6e 735f 7373 6864 5f70  rmissions_sshd_p
│ │ │ -002b1800: 7562 5f6b 6579 0a20 202d 206c 6f77 5f63  ub_key.  - low_c
│ │ │ -002b1810: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002b1820: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002b1830: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -002b1840: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002b1850: 6565 6465 640a 0a2d 206e 616d 653a 2046  eeded..- name: F
│ │ │ -002b1860: 696e 6420 2f65 7463 2f73 7368 2f20 6669  ind /etc/ssh/ fi
│ │ │ -002b1870: 6c65 2873 290a 2020 616e 7369 626c 652e  le(s).  ansible.
│ │ │ -002b1880: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -002b1890: 2066 696e 6420 2d50 202f 6574 632f 7373   find -P /etc/ss
│ │ │ -002b18a0: 682f 202d 6d61 7864 6570 7468 2031 202d  h/ -maxdepth 1 -
│ │ │ -002b18b0: 7065 726d 202f 752b 7873 2c67 2b78 7773  perm /u+xs,g+xws
│ │ │ -002b18c0: 2c6f 2b78 7774 2020 2d74 7970 650a 2020  ,o+xwt  -type.  
│ │ │ -002b18d0: 2020 6620 2d72 6567 6578 7479 7065 2070    f -regextype p
│ │ │ -002b18e0: 6f73 6978 2d65 7874 656e 6465 6420 2d72  osix-extended -r
│ │ │ -002b18f0: 6567 6578 2022 5e2e 2a5c 2e70 7562 2422  egex "^.*\.pub$"
│ │ │ -002b1900: 0a20 2072 6567 6973 7465 723a 2066 696c  .  register: fil
│ │ │ -002b1910: 6573 5f66 6f75 6e64 0a20 2063 6861 6e67  es_found.  chang
│ │ │ -002b1920: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002b1930: 2066 6169 6c65 645f 7768 656e 3a20 6661   failed_when: fa
│ │ │ -002b1940: 6c73 650a 2020 6368 6563 6b5f 6d6f 6465  lse.  check_mode
│ │ │ -002b1950: 3a20 6661 6c73 650a 2020 7768 656e 3a20  : false.  when: 
│ │ │ -002b1960: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -002b1970: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002b1980: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -002b1990: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002b19a0: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002b19b0: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002b19c0: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002b19d0: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002b19e0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002b19f0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002b1a00: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002b1a10: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002b1a20: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002b1a30: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002b1a40: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002b1a50: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002b1a60: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002b1a70: 6e73 5f73 7368 645f 7075 625f 6b65 790a  ns_sshd_pub_key.
│ │ │ -002b1a80: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002b1a90: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002b1aa0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002b1ab0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002b1ac0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -002b1ad0: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ -002b1ae0: 6973 7369 6f6e 7320 666f 7220 2f65 7463  issions for /etc
│ │ │ -002b1af0: 2f73 7368 2f20 6669 6c65 2873 290a 2020  /ssh/ file(s).  
│ │ │ -002b1b00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b1b10: 6669 6c65 3a0a 2020 2020 7061 7468 3a20  file:.    path: 
│ │ │ -002b1b20: 277b 7b20 6974 656d 207d 7d27 0a20 2020  '{{ item }}'.   
│ │ │ -002b1b30: 206d 6f64 653a 2075 2d78 732c 672d 7877   mode: u-xs,g-xw
│ │ │ -002b1b40: 732c 6f2d 7877 740a 2020 2020 7374 6174  s,o-xwt.    stat
│ │ │ -002b1b50: 653a 2066 696c 650a 2020 7769 7468 5f69  e: file.  with_i
│ │ │ -002b1b60: 7465 6d73 3a0a 2020 2d20 277b 7b20 6669  tems:.  - '{{ fi
│ │ │ -002b1b70: 6c65 735f 666f 756e 642e 7374 646f 7574  les_found.stdout
│ │ │ -002b1b80: 5f6c 696e 6573 207d 7d27 0a20 2077 6865  _lines }}'.  whe
│ │ │ -002b1b90: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -002b1ba0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -002b1bb0: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ -002b1bc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -002b1bd0: 2d31 3731 2d33 2e31 2e31 330a 2020 2d20  -171-3.1.13.  - 
│ │ │ -002b1be0: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -002b1bf0: 332e 3130 0a20 202d 204e 4953 542d 3830  3.10.  - NIST-80
│ │ │ -002b1c00: 302d 3533 2d41 432d 3137 2861 290a 2020  0-53-AC-17(a).  
│ │ │ -002b1c10: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -002b1c20: 2d36 2831 290a 2020 2d20 4e49 5354 2d38  -6(1).  - NIST-8
│ │ │ -002b1c30: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -002b1c40: 2d20 5043 492d 4453 532d 5265 712d 322e  - PCI-DSS-Req-2.
│ │ │ -002b1c50: 322e 340a 2020 2d20 5043 492d 4453 5376  2.4.  - PCI-DSSv
│ │ │ -002b1c60: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -002b1c70: 5376 342d 322e 322e 360a 2020 2d20 636f  Sv4-2.2.6.  - co
│ │ │ -002b1c80: 6e66 6967 7572 655f 7374 7261 7465 6779  nfigure_strategy
│ │ │ -002b1c90: 0a20 202d 2066 696c 655f 7065 726d 6973  .  - file_permis
│ │ │ -002b1ca0: 7369 6f6e 735f 7373 6864 5f70 7562 5f6b  sions_sshd_pub_k
│ │ │ -002b1cb0: 6579 0a20 202d 206c 6f77 5f63 6f6d 706c  ey.  - low_compl
│ │ │ -002b1cc0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002b1cd0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002b1ce0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002b1cf0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002b1d00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002b13c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ +002b13d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
- 
│ │ │ +002b1510: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +002b1520: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +002b1530: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +002b1540: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +002b1550: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ +002b1560: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ +002b1570: 330a 2020 2d20 4e49 5354 2d38 3030 2d31  3.  - NIST-800-1
│ │ │ +002b1580: 3731 2d33 2e31 332e 3130 0a20 202d 204e  71-3.13.10.  - N
│ │ │ +002b1590: 4953 542d 3830 302d 3533 2d41 432d 3137  IST-800-53-AC-17
│ │ │ +002b15a0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002b15b0: 2d35 332d 4143 2d36 2831 290a 2020 2d20  -53-AC-6(1).  - 
│ │ │ +002b15c0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002b15d0: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ +002b15e0: 5265 712d 322e 322e 340a 2020 2d20 5043  Req-2.2.4.  - PC
│ │ │ +002b15f0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +002b1600: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ +002b1610: 2020 2d20 636f 6e66 6967 7572 655f 7374    - configure_st
│ │ │ +002b1620: 7261 7465 6779 0a20 202d 2066 696c 655f  rategy.  - file_
│ │ │ +002b1630: 7065 726d 6973 7369 6f6e 735f 7373 6864  permissions_sshd
│ │ │ +002b1640: 5f70 7562 5f6b 6579 0a20 202d 206c 6f77  _pub_key.  - low
│ │ │ +002b1650: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002b1660: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002b1670: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +002b1680: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +002b1690: 5f6e 6565 6465 640a 0a2d 206e 616d 653a  _needed..- name:
│ │ │ +002b16a0: 2046 696e 6420 2f65 7463 2f73 7368 2f20   Find /etc/ssh/ 
│ │ │ +002b16b0: 6669 6c65 2873 290a 2020 616e 7369 626c  file(s).  ansibl
│ │ │ +002b16c0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +002b16d0: 643a 2066 696e 6420 2d50 202f 6574 632f  d: find -P /etc/
│ │ │ +002b16e0: 7373 682f 202d 6d61 7864 6570 7468 2031  ssh/ -maxdepth 1
│ │ │ +002b16f0: 202d 7065 726d 202f 752b 7873 2c67 2b78   -perm /u+xs,g+x
│ │ │ +002b1700: 7773 2c6f 2b78 7774 2020 2d74 7970 650a  ws,o+xwt  -type.
│ │ │ +002b1710: 2020 2020 6620 2d72 6567 6578 7479 7065      f -regextype
│ │ │ +002b1720: 2070 6f73 6978 2d65 7874 656e 6465 6420   posix-extended 
│ │ │ +002b1730: 2d72 6567 6578 2022 5e2e 2a5c 2e70 7562  -regex "^.*\.pub
│ │ │ +002b1740: 2422 0a20 2072 6567 6973 7465 723a 2066  $".  register: f
│ │ │ +002b1750: 696c 6573 5f66 6f75 6e64 0a20 2063 6861  iles_found.  cha
│ │ │ +002b1760: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002b1770: 0a20 2066 6169 6c65 645f 7768 656e 3a20  .  failed_when: 
│ │ │ +002b1780: 6661 6c73 650a 2020 6368 6563 6b5f 6d6f  false.  check_mo
│ │ │ +002b1790: 6465 3a20 6661 6c73 650a 2020 7768 656e  de: false.  when
│ │ │ +002b17a0: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002b17b0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002b17c0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +002b17d0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002b17e0: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ +002b17f0: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ +002b1800: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ +002b1810: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ +002b1820: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +002b1830: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ +002b1840: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002b1850: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +002b1860: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +002b1870: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002b1880: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ +002b1890: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ +002b18a0: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ +002b18b0: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ +002b18c0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002b18d0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002b18e0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002b18f0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002b1900: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002b1910: 0a0a 2d20 6e61 6d65 3a20 5365 7420 7065  ..- name: Set pe
│ │ │ +002b1920: 726d 6973 7369 6f6e 7320 666f 7220 2f65  rmissions for /e
│ │ │ +002b1930: 7463 2f73 7368 2f20 6669 6c65 2873 290a  tc/ssh/ file(s).
│ │ │ +002b1940: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002b1950: 6e2e 6669 6c65 3a0a 2020 2020 7061 7468  n.file:.    path
│ │ │ +002b1960: 3a20 277b 7b20 6974 656d 207d 7d27 0a20  : '{{ item }}'. 
│ │ │ +002b1970: 2020 206d 6f64 653a 2075 2d78 732c 672d     mode: u-xs,g-
│ │ │ +002b1980: 7877 732c 6f2d 7877 740a 2020 2020 7374  xws,o-xwt.    st
│ │ │ +002b1990: 6174 653a 2066 696c 650a 2020 7769 7468  ate: file.  with
│ │ │ +002b19a0: 5f69 7465 6d73 3a0a 2020 2d20 277b 7b20  _items:.  - '{{ 
│ │ │ +002b19b0: 6669 6c65 735f 666f 756e 642e 7374 646f  files_found.stdo
│ │ │ +002b19c0: 7574 5f6c 696e 6573 207d 7d27 0a20 2077  ut_lines }}'.  w
│ │ │ +002b19d0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +002b19e0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +002b19f0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +002b1a00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +002b1a10: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ +002b1a20: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +002b1a30: 2e31 332e 3130 0a20 202d 204e 4953 542d  .13.10.  - NIST-
│ │ │ +002b1a40: 3830 302d 3533 2d41 432d 3137 2861 290a  800-53-AC-17(a).
│ │ │ +002b1a50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002b1a60: 4143 2d36 2831 290a 2020 2d20 4e49 5354  AC-6(1).  - NIST
│ │ │ +002b1a70: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +002b1a80: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +002b1a90: 322e 322e 340a 2020 2d20 5043 492d 4453  2.2.4.  - PCI-DS
│ │ │ +002b1aa0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ +002b1ab0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ +002b1ac0: 636f 6e66 6967 7572 655f 7374 7261 7465  configure_strate
│ │ │ +002b1ad0: 6779 0a20 202d 2066 696c 655f 7065 726d  gy.  - file_perm
│ │ │ +002b1ae0: 6973 7369 6f6e 735f 7373 6864 5f70 7562  issions_sshd_pub
│ │ │ +002b1af0: 5f6b 6579 0a20 202d 206c 6f77 5f63 6f6d  _key.  - low_com
│ │ │ +002b1b00: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002b1b10: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002b1b20: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002b1b30: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002b1b40: 6465 640a 3c2f 636f 6465 3e3c 2f70 7265  ded.
Remediation │ │ │ +002b1c00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +002b1c10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
include s
│ │ │ +002b1c60: 7368 5f70 7562 6c69 635f 6b65 795f 7065  sh_public_key_pe
│ │ │ +002b1c70: 726d 730a 0a63 6c61 7373 2073 7368 5f70  rms..class ssh_p
│ │ │ +002b1c80: 7562 6c69 635f 6b65 795f 7065 726d 7320  ublic_key_perms 
│ │ │ +002b1c90: 7b0a 2020 6578 6563 207b 2027 7373 6864  {.  exec { 'sshd
│ │ │ +002b1ca0: 5f70 7562 5f6b 6579 273a 0a20 2020 2063  _pub_key':.    c
│ │ │ +002b1cb0: 6f6d 6d61 6e64 203d 2667 743b 2022 6368  ommand => "ch
│ │ │ +002b1cc0: 6d6f 6420 3036 3434 202f 6574 632f 7373  mod 0644 /etc/ss
│ │ │ +002b1cd0: 682f 2a2e 7075 6222 2c0a 2020 2020 7061  h/*.pub",.    pa
│ │ │ +002b1ce0: 7468 2020 2020 3d26 6774 3b20 272f 6269  th    => '/bi
│ │ │ +002b1cf0: 6e3a 2f75 7372 2f62 696e 270a 2020 7d0a  n:/usr/bin'.  }.
│ │ │ +002b1d00: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 002b1d10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div> '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: │ │ │ │ @@ -168,14 +151,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 │ │ │ │ @@ -1162,31 +1162,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: │ │ │ │ @@ -1213,14 +1196,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 │ │ │ │ @@ -5539,31 +5539,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: │ │ │ │ @@ -5584,14 +5567,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 │ │ │ │ @@ -5608,31 +5608,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -5653,14 +5636,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -5673,31 +5673,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: │ │ │ │ @@ -5706,14 +5689,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" │ │ │ │ @@ -8217,31 +8217,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: │ │ │ │ @@ -8251,14 +8234,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 │ │ │ │ @@ -8274,31 +8274,14 @@ │ │ │ │ system will be available. │ │ │ │ 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- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _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" │ │ │ │ -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: │ │ │ │ @@ -8308,14 +8291,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -8748,31 +8748,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: │ │ │ │ @@ -8793,14 +8776,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$'; then │ │ │ │ @@ -8825,31 +8825,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: │ │ │ │ @@ -8885,14 +8868,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$' && { ( ( │ │ │ │ @@ -8917,31 +8917,14 @@ │ │ │ │ Rationale: 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: │ │ │ │ @@ -8976,14 +8959,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 │ │ │ │ @@ -9942,31 +9942,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: │ │ │ │ @@ -9989,14 +9972,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 │ │ │ │ @@ -10024,31 +10024,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -10085,14 +10068,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$'; then │ │ │ │ @@ -10438,31 +10438,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -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_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - 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: │ │ │ │ @@ -10483,14 +10466,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_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_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + 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 = "iptables-persistent" │ │ │ │ +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}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -10507,31 +10507,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -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_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - 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: │ │ │ │ @@ -10556,14 +10539,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_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_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + 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 = "iptables" │ │ │ │ +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 ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -10577,27 +10577,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: │ │ │ │ @@ -10618,14 +10605,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 │ │ │ │ @@ -16416,31 +16416,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -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_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - 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: │ │ │ │ @@ -16465,14 +16448,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_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_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + 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 = "nftables" │ │ │ │ +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 ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -16488,31 +16488,14 @@ │ │ │ │ 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.3.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: │ │ │ │ @@ -16546,14 +16529,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 -q '^installed$' && ! │ │ │ │ @@ -16576,31 +16576,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.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_ _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: │ │ │ │ @@ -16656,14 +16639,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "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 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"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree nnffttaabblleess DDeeffaauulltt DDeennyy FFiirreewwaallll PPoolliiccyy ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Base chain policy is the default verdict that will be applied to packets reaching the end of the chain. There are │ │ │ │ two policies: accept (Default) and drop. If the policy is set to accept, the firewall will accept any packet that │ │ │ │ is not configured to be denied and the packet will continue traversing the network stack. Run the following │ │ │ │ commands and verify that base chains contain a policy of DROP. │ │ │ │ $ nft list ruleset | grep 'hook input' │ │ │ │ type filter hook input priority 0; policy drop; │ │ │ │ @@ -17125,31 +17125,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = "ufw" │ │ │ │ -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_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17170,14 +17153,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 = "ufw" │ │ │ │ +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 │ │ │ │ @@ -17190,27 +17190,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17231,14 +17218,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 │ │ │ │ @@ -17259,31 +17259,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - 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: │ │ │ │ @@ -17318,14 +17301,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" 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_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + 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 = ["ufw"] │ │ │ │ _R_e_m_e_d_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$' && { ( │ │ │ │ @@ -30660,31 +30660,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: │ │ │ │ @@ -30711,14 +30694,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 │ │ │ │ @@ -30745,31 +30745,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: │ │ │ │ @@ -30804,14 +30787,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 │ │ │ │ @@ -32585,27 +32585,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: │ │ │ │ @@ -32614,14 +32601,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 │ │ │ │ @@ -32660,27 +32660,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32694,14 +32681,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -32717,31 +32717,14 @@ │ │ │ │ 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_ _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: │ │ │ │ @@ -32791,14 +32774,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDiissaabbllee DDHHCCPP SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd.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 │ │ │ │ @@ -32810,31 +32810,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 = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -32890,14 +32873,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   DNS Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   Most organizations have an operational need to run at least one nameserver. However, there are many common │ │ │ │ attacks involving DNS server software, and this server software should be disabled on any system on which it is not │ │ │ │ needed. │ │ │ │ Group   Disable DNS Server   Group contains 2 rules │ │ │ │ _[_r_e_f_]   DNS software should be disabled on any systems which does not need to be a nameserver. Note that the BIND │ │ │ │ DNS server software is not installed on Debian 12 by default. The remainder of this section discusses secure │ │ │ │ @@ -32916,27 +32916,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_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - 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 bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -32948,14 +32935,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_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + 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 bind │ │ │ │ @@ -32980,31 +32980,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_ _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: │ │ │ │ @@ -33060,37 +33043,41 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddnnssmmaassqq PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ dnsmasq is a lightweight tool that provides DNS caching, DNS forwarding and DHCP (Dynamic Host Configuration │ │ │ │ Protocol) services. │ │ │ │ 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: │ │ │ │ @@ -33099,14 +33086,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 │ │ │ │ @@ -33121,31 +33121,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_ _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: │ │ │ │ @@ -33195,14 +33178,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   FTP Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   FTP is a common method for allowing remote access to files. Like telnet, the FTP protocol is unencrypted, │ │ │ │ which means that passwords and other data transmitted during the session can be captured and that the session is │ │ │ │ vulnerable to hijacking. Therefore, running the FTP server software is not recommended. │ │ │ │ │ │ │ │ However, there are some FTP server configurations which may be appropriate for some environments, particularly │ │ │ │ those which allow only read-only anonymous access as a means of downloading data available to the public. │ │ │ │ @@ -33222,27 +33222,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: │ │ │ │ @@ -33258,14 +33245,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 │ │ │ │ @@ -33291,31 +33291,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_ _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: │ │ │ │ @@ -33371,41 +33354,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  RReemmoovvee ffttpp PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ FTP (File Transfer Protocol) is a traditional and widely used standard tool for transferring files between a │ │ │ │ server and clients over a network, especially where no authentication is necessary (permits anonymous users to │ │ │ │ connect to a server). │ │ │ │ The ftp package can be removed with the following command: │ │ │ │ $ apt-get remove ftp │ │ │ │ FTP does not protect the confidentiality of data or authentication credentials. It is recommended SFTP │ │ │ │ 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: │ │ │ │ @@ -33416,14 +33403,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 │ │ │ │ @@ -33441,27 +33441,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: │ │ │ │ @@ -33470,14 +33457,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 │ │ │ │ @@ -33515,27 +33515,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_httpd │ │ │ │ - │ │ │ │ -class remove_httpd { │ │ │ │ - package { 'httpd': │ │ │ │ - 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 httpd Package: Ensure httpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33547,14 +33534,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_httpd │ │ │ │ + │ │ │ │ +class remove_httpd { │ │ │ │ + package { 'httpd': │ │ │ │ + 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 httpd │ │ │ │ @@ -33579,31 +33579,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 = ["httpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_httpd │ │ │ │ - │ │ │ │ -class disable_httpd { │ │ │ │ - service {'httpd': │ │ │ │ - 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: │ │ │ │ @@ -33659,14 +33642,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_httpd │ │ │ │ + │ │ │ │ +class disable_httpd { │ │ │ │ + service {'httpd': │ │ │ │ + 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 = ["httpd"] │ │ │ │ Group   Disable NGINX if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If NGINX was installed and activated, but the system does not need to act as a web server, then it should │ │ │ │ be removed from the system. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnggiinnxx PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nginx package can be removed with the following command: │ │ │ │ $ apt-get remove nginx │ │ │ │ Rationale: If there is no need to make the web server software available, removing it provides a safeguard against │ │ │ │ @@ -33679,27 +33679,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: │ │ │ │ @@ -33711,14 +33698,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 │ │ │ │ @@ -33733,31 +33733,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_ _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: │ │ │ │ @@ -33807,41 +33790,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   IMAP and POP3 Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Dovecot provides IMAP and POP3 services. It is not installed by default. The project page at _h_t_t_p_:_/_/ │ │ │ │ _w_w_w_._d_o_v_e_c_o_t_._o_r_g contains more detailed information about Dovecot configuration. │ │ │ │ Group   Disable Dovecot   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If the system does not need to operate as an IMAP or POP3 server, the dovecot software should be disabled │ │ │ │ and removed. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddoovveeccoott PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dovecot package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot │ │ │ │ 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 │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33850,14 +33837,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 │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + 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 │ │ │ │ @@ -33872,31 +33872,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_ _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: │ │ │ │ @@ -33946,14 +33929,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   LDAP   Group contains 2 groups and 3 rules │ │ │ │ _[_r_e_f_]   LDAP is a popular directory service, that is, a standardized way of looking up information from a central │ │ │ │ database. Debian 12 includes software that enables a system to act as both an LDAP client and server. │ │ │ │ Group   Configure OpenLDAP Clients   Group contains 1 rule │ │ │ │ _[_r_e_f_]   This section provides information on which security settings are important to configure in OpenLDAP clients │ │ │ │ by manually editing the appropriate configuration files. Debian 12 provides an automated configuration tool called │ │ │ │ authconfig and a graphical wrapper for authconfig called system-config-authentication. However, these tools do not │ │ │ │ @@ -33967,27 +33967,14 @@ │ │ │ │ from a central database. The openldap-clients package can be removed with the following command: │ │ │ │ $ apt-get remove openldap-clients │ │ │ │ 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_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - 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 openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -33996,14 +33983,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_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + 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 openldap-clients │ │ │ │ @@ -34032,27 +34032,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_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - 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 openldap-servers Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34064,14 +34051,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_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + 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 openldap-servers │ │ │ │ @@ -34086,31 +34086,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_ _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: │ │ │ │ @@ -34160,14 +34143,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Mail Server Software   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Mail servers are used to send and receive email over the network. Mail is a very common service, and Mail │ │ │ │ Transfer Agents (MTAs) are obvious targets of network attack. Ensure that systems are not running MTAs │ │ │ │ unnecessarily, and configure needed MTAs as defensively as possible. │ │ │ │ │ │ │ │ Very few systems at any site should be configured to directly receive email over the network. Users should instead │ │ │ │ use mail client programs to retrieve email from a central server that supports protocols such as IMAP or POP3. │ │ │ │ @@ -34236,27 +34236,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: │ │ │ │ @@ -34277,14 +34264,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 │ │ │ │ @@ -34310,31 +34310,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_ _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: │ │ │ │ @@ -34388,14 +34371,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Configure NFS Clients   Group contains 1 group and 1 rule │ │ │ │ _[_r_e_f_]   The steps in this section are appropriate for systems which operate as NFS clients. │ │ │ │ Group   Disable NFS Server Daemons   Group contains 1 rule │ │ │ │ _[_r_e_f_]   There is no need to run the NFS server daemons nfs and rpcsvcgssd except on a small number of properly │ │ │ │ secured systems designated as NFS servers. Ensure that these daemons are turned off on clients. │ │ │ │ ****** RRuullee? ?  DDiissaabbllee NNeettwwoorrkk FFiillee SSyysstteemm ((nnffss)) ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the │ │ │ │ @@ -34412,31 +34412,14 @@ │ │ │ │ 4.3.3.6.8, 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 │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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_ _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: │ │ │ │ @@ -34493,35 +34476,39 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnffss--kkeerrnneell--sseerrvveerr PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -34530,14 +34517,27 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -34600,31 +34600,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -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_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - 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: │ │ │ │ @@ -34651,14 +34634,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_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_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + 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 = "chrony" │ │ │ │ +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 │ │ │ │ @@ -34680,31 +34680,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, 4.4.2.4 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.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 = "systemd-timesyncd" │ │ │ │ -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-timesyncd │ │ │ │ - │ │ │ │ -class install_systemd-timesyncd { │ │ │ │ - package { 'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -34729,14 +34712,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_timesyncd_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-timesyncd │ │ │ │ + │ │ │ │ +class install_systemd-timesyncd { │ │ │ │ + package { 'systemd-timesyncd': │ │ │ │ + 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-timesyncd" │ │ │ │ +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 │ │ │ │ @@ -34756,31 +34756,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -34815,14 +34798,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" 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_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + 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 = ["chrony"] │ │ │ │ _R_e_m_e_d_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$' && │ │ │ │ @@ -34855,31 +34855,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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -34925,14 +34908,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" 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-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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-timesyncd"] │ │ │ │ _R_e_m_e_d_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$' && { ( ( ! │ │ │ │ @@ -34952,31 +34952,14 @@ │ │ │ │ ****** RRuullee? ?  TThhee CChhrroonnyydd sseerrvviiccee iiss ddiissaabblleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The chrony service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now chrony.service │ │ │ │ Rationale: Disabling the chrony service ensures that there is only single one time service running. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_disabled │ │ │ │ References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class disable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -35029,41 +35012,41 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ -****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ -The systemd_timesyncd service can be disabled with the following command: │ │ │ │ -$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ - Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ -Rationale: │ │ │ │ - Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ - _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ -Severity:  medium │ │ │ │ -Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ -References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_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_systemd-timesyncd │ │ │ │ +include disable_chrony │ │ │ │ │ │ │ │ -class disable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ +class disable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ 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 = ["chrony"] │ │ │ │ +****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ +The systemd_timesyncd service can be disabled with the following command: │ │ │ │ +$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ + Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ +Rationale: │ │ │ │ + Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ + _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ +Severity:  medium │ │ │ │ +Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ +References: _c_i_s 2.3.1.1 │ │ │ │ _R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -35117,14 +35100,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"systemd-timesyncd" 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 disable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class disable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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 = ["systemd-timesyncd"] │ │ │ │ ****** RRuullee? ?  CChhrroonnyy CCoonnffiigguurree PPooooll aanndd SSeerrvveerr ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Chrony is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks │ │ │ │ across a variety of systems and use a source that is highly accurate. More information on chrony can be found at │ │ │ │ _h_t_t_p_s_:_/_/_c_h_r_o_n_y_-_p_r_o_j_e_c_t_._o_r_g_/. Chrony can be configured to be a client and/or a server. Add or edit server or pool │ │ │ │ lines to /etc/chrony/chrony.conf as appropriate: │ │ │ │ server │ │ │ │ Multiple servers may be configured. │ │ │ │ @@ -35519,27 +35519,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: │ │ │ │ @@ -35570,14 +35557,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 │ │ │ │ @@ -35616,31 +35616,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_ _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: │ │ │ │ @@ -35698,14 +35681,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   NIS   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Network Information Service (NIS), also known as 'Yellow Pages' (YP), and its successor NIS+ have been │ │ │ │ made obsolete by Kerberos, LDAP, and other modern centralized authentication services. NIS should not be used │ │ │ │ because it suffers from security problems inherent in its design, such as inadequate protection of important │ │ │ │ authentication information. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll yyppsseerrvv PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ypserv package can be removed with the following command: │ │ │ │ @@ -35731,27 +35731,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: │ │ │ │ @@ -35767,14 +35754,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 │ │ │ │ @@ -35790,31 +35790,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_ _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: │ │ │ │ @@ -35864,14 +35847,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Rlogin, Rsh, and Rexec   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Berkeley r-commands are legacy services which allow cleartext remote access and have an insecure trust │ │ │ │ model. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrsshh PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The rsh package contains the client commands for the rsh services │ │ │ │ These legacy clients contain numerous security exposures and have been replaced with the more secure │ │ │ │ Rationale: SSH package. Even if the server is removed, it is best to ensure the clients are also removed to │ │ │ │ @@ -35882,27 +35882,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35914,14 +35901,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -35971,27 +35971,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: │ │ │ │ @@ -36002,14 +35989,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 │ │ │ │ @@ -36028,27 +36028,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 Debian 12. │ │ │ │ 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: │ │ │ │ @@ -36057,14 +36044,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 │ │ │ │ @@ -36086,27 +36086,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: │ │ │ │ @@ -36118,14 +36105,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 │ │ │ │ @@ -36165,27 +36165,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36199,14 +36186,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -36234,31 +36234,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 = ["tftp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_tftp │ │ │ │ - │ │ │ │ -class disable_tftp { │ │ │ │ - service {'tftp': │ │ │ │ - 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: │ │ │ │ @@ -36314,35 +36297,39 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftp │ │ │ │ + │ │ │ │ +class disable_tftp { │ │ │ │ + service {'tftp': │ │ │ │ + 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 = ["tftp"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrssyynncc PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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: │ │ │ │ @@ -36351,14 +36338,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 │ │ │ │ @@ -36373,31 +36373,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 = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -36452,14 +36435,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Proxy Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   A proxy server is a very desirable target for a potential adversary because much (or all) sensitive data │ │ │ │ for a given infrastructure may flow through it. Therefore, if one is required, the system acting as a proxy server │ │ │ │ should be dedicated to that purpose alone and be stored in a physically secure location. The system's default proxy │ │ │ │ server software is Squid, and provided in an RPM package of the same name. │ │ │ │ Group   Disable Squid if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If Squid was installed and activated, but the system does not need to act as a proxy server, then it should │ │ │ │ @@ -36469,27 +36469,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: │ │ │ │ @@ -36498,14 +36485,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 │ │ │ │ @@ -36521,31 +36521,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_ _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: │ │ │ │ @@ -36596,14 +36579,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Samba(SMB) Microsoft Windows File Sharing Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   When properly configured, the Samba service allows Linux systems to provide file and print sharing to │ │ │ │ Microsoft Windows systems. There are two software packages that provide Samba support. The first, samba-client, │ │ │ │ provides a series of command line tools that enable a client system to access Samba shares. The second, simply │ │ │ │ labeled samba, provides the Samba service. It is this second package that allows a Linux system to act as an Active │ │ │ │ Directory server, a domain controller, or as a domain member. Only the samba-client package is installed by │ │ │ │ default. │ │ │ │ @@ -36614,27 +36614,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: │ │ │ │ @@ -36643,14 +36630,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 │ │ │ │ @@ -36664,31 +36664,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 = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - 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: │ │ │ │ @@ -36738,14 +36721,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + 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 = ["smb"] │ │ │ │ Group   SNMP Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   The Simple Network Management Protocol allows administrators to monitor the state of network devices, │ │ │ │ including computers. Older versions of SNMP were well-known for weak security, such as plaintext transmission of │ │ │ │ the community string (used for authentication) and usage of easily-guessable choices for the community string. │ │ │ │ Group   Disable SNMP Server if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The system includes an SNMP daemon that allows for its remote monitoring, though it not installed by │ │ │ │ default. If it was installed and activated but is not needed, the software should be disabled and removed. │ │ │ │ @@ -36754,27 +36754,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_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-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 net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36785,14 +36772,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_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-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 net-snmp │ │ │ │ @@ -36807,31 +36807,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_ _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: │ │ │ │ @@ -36882,14 +36865,31 @@ │ │ │ │ - low_disruption │ │ │ │ - low_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_snmpd_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "snmpd" 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 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"] │ │ │ │ Group   SSH Server   Group contains 1 group and 25 rules │ │ │ │ _[_r_e_f_]   The SSH protocol is recommended for remote login and remote file transfer. SSH provides confidentiality and │ │ │ │ integrity for data exchanged between two systems, as well as server authentication, through the use of public key │ │ │ │ cryptography. The implementation included with the system is called OpenSSH, and more detailed documentation is │ │ │ │ available from its website, _h_t_t_p_s_:_/_/_w_w_w_._o_p_e_n_s_s_h_._c_o_m. Its server program is called sshd and provided by the RPM │ │ │ │ package openssh-server. │ │ │ │ Group   Configure OpenSSH Server if Necessary   Group contains 20 rules │ │ │ │ @@ -39440,23 +39440,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 0640 /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: │ │ │ │ @@ -39520,14 +39511,23 @@ │ │ │ │ - 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 0640 /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 │ │ │ │ @@ -39564,23 +39564,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: │ │ │ │ @@ -39644,14 +39635,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-debian/ssg-debian12-guide-cis_level2_server.html │ │ │ @@ -15110,134 +15110,134 @@ │ │ │ 0003b050: 2220 6461 7461 2d74 6172 6765 743d 2223 " data-target="# │ │ │ 0003b060: 6964 3135 2220 7461 6269 6e64 6578 3d22 id15" tabindex=" │ │ │ 0003b070: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ 0003b080: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ 0003b090: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ 0003b0a0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ 0003b0b0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0003b0c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -0003b0d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -0003b0e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packag
│ │ │ -0003b130: 6573 5d5d 0a6e 616d 6520 3d20 2261 6964  es]].name = "aid
│ │ │ -0003b140: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │ -0003b150: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -0003b200: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0003b210: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Com │ │ │ +002b1460: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002b1490: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002b14b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002b14c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002b14e0: 2f74 683e 3c74 643e 636f 6e66 6967 7572 /th>configur │ │ │ +002b14f0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0003b2b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b2c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0003b310: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -0003b350: 6c75 6465 2069 6e73 7461 6c6c 5f61 6964  lude install_aid
│ │ │ -0003b360: 650a 0a63 6c61 7373 2069 6e73 7461 6c6c  e..class install
│ │ │ -0003b370: 5f61 6964 6520 7b0a 2020 7061 636b 6167  _aide {.  packag
│ │ │ -0003b380: 6520 7b20 2761 6964 6527 3a0a 2020 2020  e { 'aide':.    
│ │ │ -0003b390: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -0003b3a0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -0003b3b0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -0003b460: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0003b470: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
C │ │ │ -0003b2a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0003b2d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0003b2e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0003b320: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0003b330: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0003b510: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0003b520: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0003b570: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0003b5b0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0003b5c0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0003b5d0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0003b5e0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0003b5f0: 0a20 2074 6167 733a 0a20 202d 2043 4a49  .  tags:.  - CJI
│ │ │ -0003b600: 532d 352e 3130 2e31 2e33 0a20 202d 204e  S-5.10.1.3.  - N
│ │ │ -0003b610: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -0003b620: 6129 0a20 202d 2050 4349 2d44 5353 2d52  a).  - PCI-DSS-R
│ │ │ -0003b630: 6571 2d31 312e 350a 2020 2d20 5043 492d  eq-11.5.  - PCI-
│ │ │ -0003b640: 4453 5376 342d 3131 2e35 2e32 0a20 202d  DSSv4-11.5.2.  -
│ │ │ -0003b650: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0003b660: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0003b670: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0003b680: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0003b690: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0003b6a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0003b6b0: 2020 2d20 7061 636b 6167 655f 6169 6465    - package_aide
│ │ │ -0003b6c0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ -0003b6d0: 6d65 3a20 456e 7375 7265 2061 6964 6520  me: Ensure aide 
│ │ │ -0003b6e0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -0003b6f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -0003b700: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -0003b710: 3a20 6169 6465 0a20 2020 2073 7461 7465  : aide.    state
│ │ │ -0003b720: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ -0003b730: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -0003b740: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0003b750: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ -0003b760: 733a 0a20 202d 2043 4a49 532d 352e 3130  s:.  - CJIS-5.10
│ │ │ -0003b770: 2e31 2e33 0a20 202d 204e 4953 542d 3830  .1.3.  - NIST-80
│ │ │ -0003b780: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0003b790: 2050 4349 2d44 5353 2d52 6571 2d31 312e   PCI-DSS-Req-11.
│ │ │ -0003b7a0: 350a 2020 2d20 5043 492d 4453 5376 342d  5.  - PCI-DSSv4-
│ │ │ -0003b7b0: 3131 2e35 2e32 0a20 202d 2065 6e61 626c  11.5.2.  - enabl
│ │ │ -0003b7c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -0003b7d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -0003b7e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -0003b7f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -0003b800: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0003b810: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0003b820: 636b 6167 655f 6169 6465 5f69 6e73 7461  ckage_aide_insta
│ │ │ -0003b830: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.<
│ │ │ +0003b0e0: 6272 3e3c 6469 7620 636c 6173 733d 2270  br>
C │ │ │ -0003b500: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0003b530: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0003b540: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0003b580: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0003b590: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +0003b160: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0003b170: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0003b190: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0003b1b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0003b1c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0003b200: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0003b210: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0003b220: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0003b230: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0003b240: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0003b250: 7461 6773 3a0a 2020 2d20 434a 4953 2d35 tags:. - CJIS-5 │ │ │ +0003b260: 2e31 302e 312e 330a 2020 2d20 4e49 5354 .10.1.3. - NIST │ │ │ +0003b270: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0003b280: 2020 2d20 5043 492d 4453 532d 5265 712d - PCI-DSS-Req- │ │ │ +0003b290: 3131 2e35 0a20 202d 2050 4349 2d44 5353 11.5. - PCI-DSS │ │ │ +0003b2a0: 7634 2d31 312e 352e 320a 2020 2d20 656e v4-11.5.2. - en │ │ │ +0003b2b0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +0003b2c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +0003b2d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +0003b2e0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +0003b2f0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +0003b300: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +0003b310: 2070 6163 6b61 6765 5f61 6964 655f 696e package_aide_in │ │ │ +0003b320: 7374 616c 6c65 640a 0a2d 206e 616d 653a stalled..- name: │ │ │ +0003b330: 2045 6e73 7572 6520 6169 6465 2069 7320 Ensure aide is │ │ │ +0003b340: 696e 7374 616c 6c65 640a 2020 616e 7369 installed. ansi │ │ │ +0003b350: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +0003b360: 6167 653a 0a20 2020 206e 616d 653a 2061 age:. name: a │ │ │ +0003b370: 6964 650a 2020 2020 7374 6174 653a 2070 ide. state: p │ │ │ +0003b380: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +0003b390: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +0003b3a0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +0003b3b0: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ +0003b3c0: 2020 2d20 434a 4953 2d35 2e31 302e 312e - CJIS-5.10.1. │ │ │ +0003b3d0: 330a 2020 2d20 4e49 5354 2d38 3030 2d35 3. - NIST-800-5 │ │ │ +0003b3e0: 332d 434d 2d36 2861 290a 2020 2d20 5043 3-CM-6(a). - PC │ │ │ +0003b3f0: 492d 4453 532d 5265 712d 3131 2e35 0a20 I-DSS-Req-11.5. │ │ │ +0003b400: 202d 2050 4349 2d44 5353 7634 2d31 312e - PCI-DSSv4-11. │ │ │ +0003b410: 352e 320a 2020 2d20 656e 6162 6c65 5f73 5.2. - enable_s │ │ │ +0003b420: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0003b430: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0003b440: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0003b450: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0003b460: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0003b470: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0003b480: 6765 5f61 6964 655f 696e 7374 616c 6c65 ge_aide_installe │ │ │ +0003b490: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c d.< │ │ │ +0003b4a0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pup │ │ │ +0003b550: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0003b560: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +0003b5f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0003b690: 636c 7564 6520 696e 7374 616c 6c5f 6169  clude install_ai
│ │ │ +0003b6a0: 6465 0a0a 636c 6173 7320 696e 7374 616c  de..class instal
│ │ │ +0003b6b0: 6c5f 6169 6465 207b 0a20 2070 6163 6b61  l_aide {.  packa
│ │ │ +0003b6c0: 6765 207b 2027 6169 6465 273a 0a20 2020  ge { 'aide':.   
│ │ │ +0003b6d0: 2065 6e73 7572 6520 3d26 6774 3b20 2769   ensure => 'i
│ │ │ +0003b6e0: 6e73 7461 6c6c 6564 272c 0a20 207d 0a7d  nstalled',.  }.}
│ │ │ +0003b6f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ +0003b7a0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0003b7b0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0003b7c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0003b800: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ +0003b810: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ +0003b820: 2261 6964 6522 0a76 6572 7369 6f6e 203d  "aide".version =
│ │ │ +0003b830: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072   "*".
Remediation │ │ │ -00056000: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00056010: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0003b5e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0003b610: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0003b620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0003b660: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0003b670: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -00056090: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -000560b0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00056100: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00056130: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -00056150: 655f 6764 6d0a 0a63 6c61 7373 2072 656d  e_gdm..class rem
│ │ │ -00056160: 6f76 655f 6764 6d20 7b0a 2020 7061 636b  ove_gdm {.  pack
│ │ │ -00056170: 6167 6520 7b20 2767 646d 273a 0a20 2020  age { 'gdm':.   
│ │ │ -00056180: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00056190: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Rem │ │ │ -00056250: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -00056260: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00056270: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disr │ │ │ -000560c0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -000560d0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00056110: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00056120: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Com │ │ │ -000562f0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -00056320: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -00056340: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00056350: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00056370: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00056380: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000563a0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -000563b0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -000563c0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -000563d0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -000563e0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -000563f0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -00056400: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -00056410: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ -00056420: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ -00056430: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00056440: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00056450: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00056460: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -00056470: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -00056480: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -00056490: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000564a0: 6764 6d5f 7265 6d6f 7665 640a 0a2d 206e  gdm_removed..- n
│ │ │ -000564b0: 616d 653a 2027 5265 6d6f 7665 2074 6865  ame: 'Remove the
│ │ │ -000564c0: 2047 444d 2050 6163 6b61 6765 2047 726f   GDM Package Gro
│ │ │ -000564d0: 7570 3a20 456e 7375 7265 2067 646d 2069  up: Ensure gdm i
│ │ │ -000564e0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -000564f0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -00056500: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -00056510: 6764 6d0a 2020 2020 7374 6174 653a 2061  gdm.    state: a
│ │ │ -00056520: 6273 656e 740a 2020 7768 656e 3a20 2722  bsent.  when: '"
│ │ │ -00056530: 6764 6d33 2220 696e 2061 6e73 6962 6c65  gdm3" in ansible
│ │ │ -00056540: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00056550: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00056560: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00056570: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00056580: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00056590: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -000565a0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -000565b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -000565c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -000565d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -000565e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -000565f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00056600: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00056610: 5f67 646d 5f72 656d 6f76 6564 0a3c 2f63  _gdm_removed.
│ │ │ +00056090: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000560b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00056100: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00056130: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +000560a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000560c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00056110: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00056120: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00056150: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00056160: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00056170: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00056180: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00056190: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000561a0: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +000561b0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +000561c0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +000561d0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +000561e0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000561f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00056200: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00056210: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +00056220: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00056230: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +00056240: 6163 6b61 6765 5f67 646d 5f72 656d 6f76  ackage_gdm_remov
│ │ │ +00056250: 6564 0a0a 2d20 6e61 6d65 3a20 2752 656d  ed..- name: 'Rem
│ │ │ +00056260: 6f76 6520 7468 6520 4744 4d20 5061 636b  ove the GDM Pack
│ │ │ +00056270: 6167 6520 4772 6f75 703a 2045 6e73 7572  age Group: Ensur
│ │ │ +00056280: 6520 6764 6d20 6973 2072 656d 6f76 6564  e gdm is removed
│ │ │ +00056290: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +000562a0: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +000562b0: 206e 616d 653a 2067 646d 0a20 2020 2073   name: gdm.    s
│ │ │ +000562c0: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ +000562d0: 6865 6e3a 2027 2267 646d 3322 2069 6e20  hen: '"gdm3" in 
│ │ │ +000562e0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +000562f0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00056300: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00056310: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00056320: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00056330: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00056340: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00056350: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00056360: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00056370: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00056380: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00056390: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +000563a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +000563b0: 7061 636b 6167 655f 6764 6d5f 7265 6d6f  package_gdm_remo
│ │ │ +000563c0: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation P │ │ │ +00056480: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ +00056490: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity: │ │ │ +00056560: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00056570: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +000565d0: 5f67 646d 0a0a 636c 6173 7320 7265 6d6f  _gdm..class remo
│ │ │ +000565e0: 7665 5f67 646d 207b 0a20 2070 6163 6b61  ve_gdm {.  packa
│ │ │ +000565f0: 6765 207b 2027 6764 6d27 3a0a 2020 2020  ge { 'gdm':.    
│ │ │ +00056600: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +00056610: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 00056630: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediation OSB │ │ │ -00057a50: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00057a60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[p
│ │ │ -00057ab0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ -00057ac0: 2022 7375 646f 220a 7665 7273 696f 6e20   "sudo".version 
│ │ │ -00057ad0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediation │ │ │ -00057b90: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00057ba0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low
Disru │ │ │ +00056540: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00056550: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00056590: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +000565a0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -00057c20: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00057c40: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00057c90: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00057cc0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -00057ce0: 6c5f 7375 646f 0a0a 636c 6173 7320 696e  l_sudo..class in
│ │ │ -00057cf0: 7374 616c 6c5f 7375 646f 207b 0a20 2070  stall_sudo {.  p
│ │ │ -00057d00: 6163 6b61 6765 207b 2027 7375 646f 273a  ackage { 'sudo':
│ │ │ -00057d10: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00057d20: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -00057d30: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation 
│ │ │ -00057df0: 416e 7369 626c 6520 736e 6970 7065 7420  Ansible snippet 
│ │ │ -00057e00: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620  ...
Complexity:< │ │ │ -00057c30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00057c50: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00057ca0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00057cb0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00057e80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00057ea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00057ef0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -00057f20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00057f40: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00057f50: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00057f60: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00057f70: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00057f80: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00057f90: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ -00057fa0: 5376 342d 322e 320a 2020 2d20 5043 492d  Sv4-2.2.  - PCI-
│ │ │ -00057fb0: 4453 5376 342d 322e 322e 360a 2020 2d20  DSSv4-2.2.6.  - 
│ │ │ -00057fc0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -00057fd0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00057fe0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00057ff0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -00058000: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -00058010: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -00058020: 202d 2070 6163 6b61 6765 5f73 7564 6f5f   - package_sudo_
│ │ │ -00058030: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -00058040: 653a 2045 6e73 7572 6520 7375 646f 2069  e: Ensure sudo i
│ │ │ -00058050: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -00058060: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -00058070: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -00058080: 2073 7564 6f0a 2020 2020 7374 6174 653a   sudo.    state:
│ │ │ -00058090: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -000580a0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000580b0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000580c0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -000580d0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -000580e0: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ -000580f0: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -00058100: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -00058110: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -00058120: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00058130: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00058140: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -00058150: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -00058160: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -00058170: 6564 0a20 202d 2070 6163 6b61 6765 5f73  ed.  - package_s
│ │ │ -00058180: 7564 6f5f 696e 7374 616c 6c65 640a 3c2f  udo_installed.Remediation Ans
│ │ │ +00057a50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00057a60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity:< │ │ │ -00057e90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00057eb0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00057f00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -00057f10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ +00057b30: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00057b40: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ +00057b90: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00057ba0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00057bb0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00057bc0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00057bd0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00057be0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00057bf0: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ +00057c00: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00057c10: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ +00057c20: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00057c30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00057c40: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00057c50: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00057c60: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00057c70: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00057c80: 7061 636b 6167 655f 7375 646f 5f69 6e73  package_sudo_ins
│ │ │ +00057c90: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00057ca0: 456e 7375 7265 2073 7564 6f20 6973 2069  Ensure sudo is i
│ │ │ +00057cb0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +00057cc0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +00057cd0: 6765 3a0a 2020 2020 6e61 6d65 3a20 7375  ge:.    name: su
│ │ │ +00057ce0: 646f 0a20 2020 2073 7461 7465 3a20 7072  do.    state: pr
│ │ │ +00057cf0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00057d00: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00057d10: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00057d20: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00057d30: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00057d40: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +00057d50: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +00057d60: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ +00057d70: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00057d80: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +00057d90: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00057da0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +00057db0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +00057dc0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00057dd0: 2020 2d20 7061 636b 6167 655f 7375 646f    - package_sudo
│ │ │ +00057de0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remedi │ │ │ +00057ea0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +00057eb0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00057ec0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
< │ │ │ +00057ef0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00057f00: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00057f10: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00057f20: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00057f30: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +00057fc0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +00057fd0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ +00057b10: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00057b20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00057b60: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00057b70: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +00057f40: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00057f50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00057f90: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00057fa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ +00057ff0: 6e73 7461 6c6c 5f73 7564 6f0a 0a63 6c61  nstall_sudo..cla
│ │ │ +00058000: 7373 2069 6e73 7461 6c6c 5f73 7564 6f20  ss install_sudo 
│ │ │ +00058010: 7b0a 2020 7061 636b 6167 6520 7b20 2773  {.  package { 's
│ │ │ +00058020: 7564 6f27 3a0a 2020 2020 656e 7375 7265  udo':.    ensure
│ │ │ +00058030: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +00058040: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedia │ │ │ +00058100: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +00058110: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +00058120: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
.[[packages]
│ │ │ +00058170: 5d0a 6e61 6d65 203d 2022 7375 646f 220a  ].name = "sudo".
│ │ │ +00058180: 7665 7273 696f 6e20 3d20 222a 220a 3c2f  version = "*".
Remedia │ │ │ -000a46b0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000a46c0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000a46d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000a4710: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000a4720: 5d5d 0a6e 616d 6520 3d20 226c 6962 7061  ]].name = "libpa
│ │ │ -000a4730: 6d2d 6d6f 6475 6c65 7322 0a76 6572 7369  m-modules".versi
│ │ │ -000a4740: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -000a4750: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000a4800: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000a4810: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000a4820: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000a4830: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000a4840: 7365 2220 6964 3d22 6964 3137 3222 3e3c se" id="id172">< │ │ │ -000a4850: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000a4860: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000a4870: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000a4880: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000a4890: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000a48a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000a48b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000a48f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000a4900: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000a4920: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000a4930: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -000a4950: 6e73 7461 6c6c 5f6c 6962 7061 6d2d 6d6f  nstall_libpam-mo
│ │ │ -000a4960: 6475 6c65 730a 0a63 6c61 7373 2069 6e73  dules..class ins
│ │ │ -000a4970: 7461 6c6c 5f6c 6962 7061 6d2d 6d6f 6475  tall_libpam-modu
│ │ │ -000a4980: 6c65 7320 7b0a 2020 7061 636b 6167 6520  les {.  package 
│ │ │ -000a4990: 7b20 276c 6962 7061 6d2d 6d6f 6475 6c65  { 'libpam-module
│ │ │ -000a49a0: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ -000a49b0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -000a49c0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000a49d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ -000a4a80: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -000a4a90: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000a4aa0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000a4ab0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000a4ac0: 7365 2220 6964 3d22 6964 3137 3322 3e3c se" id="id173">< │ │ │ -000a4ad0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000a4ae0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000a4af0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000a4b00: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000a4b10: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000a4b20: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000a4b30: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000a4b70: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000a4b80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000a4ba0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000a4bb0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -000a4bd0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000a4be0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000a4bf0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000a4c00: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000a4c10: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000a4c20: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000a4c30: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000a4c40: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000a4c50: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000a4c60: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000a4c70: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000a4c80: 655f 7061 6d5f 6d6f 6475 6c65 735f 696e  e_pam_modules_in
│ │ │ -000a4c90: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -000a4ca0: 2045 6e73 7572 6520 6c69 6270 616d 2d6d   Ensure libpam-m
│ │ │ -000a4cb0: 6f64 756c 6573 2069 7320 696e 7374 616c  odules is instal
│ │ │ -000a4cc0: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ -000a4cd0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -000a4ce0: 2020 206e 616d 653a 206c 6962 7061 6d2d     name: libpam-
│ │ │ -000a4cf0: 6d6f 6475 6c65 730a 2020 2020 7374 6174  modules.    stat
│ │ │ -000a4d00: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -000a4d10: 6e3a 2027 226c 6962 7061 6d2d 7275 6e74  n: '"libpam-runt
│ │ │ -000a4d20: 696d 6522 2069 6e20 616e 7369 626c 655f  ime" in ansible_
│ │ │ -000a4d30: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000a4d40: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ -000a4d50: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -000a4d60: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -000a4d70: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -000a4d80: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -000a4d90: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -000a4da0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -000a4db0: 6163 6b61 6765 5f70 616d 5f6d 6f64 756c  ackage_pam_modul
│ │ │ -000a4dc0: 6573 5f69 6e73 7461 6c6c 6564 0a3c 2f63  es_installed.
│ │ │ +000a46d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000a4700: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000a4770: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000a4790: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000a47c0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000a47e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000a4750: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000a4760: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000a47a0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000a47b0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000a4800: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000a4810: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000a4820: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000a4830: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000a4840: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +000a4850: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +000a4860: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +000a4870: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +000a4880: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +000a4890: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +000a48a0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +000a48b0: 6765 5f70 616d 5f6d 6f64 756c 6573 5f69 ge_pam_modules_i │ │ │ +000a48c0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65 nstalled..- name │ │ │ +000a48d0: 3a20 456e 7375 7265 206c 6962 7061 6d2d : Ensure libpam- │ │ │ +000a48e0: 6d6f 6475 6c65 7320 6973 2069 6e73 7461 modules is insta │ │ │ +000a48f0: 6c6c 6564 0a20 2061 6e73 6962 6c65 2e62 lled. ansible.b │ │ │ +000a4900: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a uiltin.package:. │ │ │ +000a4910: 2020 2020 6e61 6d65 3a20 6c69 6270 616d name: libpam │ │ │ +000a4920: 2d6d 6f64 756c 6573 0a20 2020 2073 7461 -modules. sta │ │ │ +000a4930: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ +000a4940: 656e 3a20 2722 6c69 6270 616d 2d72 756e en: '"libpam-run │ │ │ +000a4950: 7469 6d65 2220 696e 2061 6e73 6962 6c65 time" in ansible │ │ │ +000a4960: 5f66 6163 7473 2e70 6163 6b61 6765 7327 _facts.packages' │ │ │ +000a4970: 0a20 2074 6167 733a 0a20 202d 2065 6e61 . tags:. - ena │ │ │ +000a4980: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +000a4990: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +000a49a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +000a49b0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ +000a49c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ +000a49d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ +000a49e0: 7061 636b 6167 655f 7061 6d5f 6d6f 6475 package_pam_modu │ │ │ +000a49f0: 6c65 735f 696e 7374 616c 6c65 640a 3c2f les_installed.
Re │ │ │ +000a4ab0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000a4ac0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000a4ad0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ +000a4b70: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000a4bc0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000a4b50: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000a4b80: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000a4ba0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000a4bb0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000a4bd0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000a4be0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000a4c00: 7564 6520 696e 7374 616c 6c5f 6c69 6270  ude install_libp
│ │ │ +000a4c10: 616d 2d6d 6f64 756c 6573 0a0a 636c 6173  am-modules..clas
│ │ │ +000a4c20: 7320 696e 7374 616c 6c5f 6c69 6270 616d  s install_libpam
│ │ │ +000a4c30: 2d6d 6f64 756c 6573 207b 0a20 2070 6163  -modules {.  pac
│ │ │ +000a4c40: 6b61 6765 207b 2027 6c69 6270 616d 2d6d  kage { 'libpam-m
│ │ │ +000a4c50: 6f64 756c 6573 273a 0a20 2020 2065 6e73  odules':.    ens
│ │ │ +000a4c60: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +000a4c70: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +000a4c90: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000a4d30: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +000a4d40: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +000a4d50: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +000a4da0: 6167 6573 5d5d 0a6e 616d 6520 3d20 226c ages]].name = "l │ │ │ +000a4db0: 6962 7061 6d2d 6d6f 6475 6c65 7322 0a76 ibpam-modules".v │ │ │ +000a4dc0: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".

│ │ │ 000a4de0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -000a5af0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -000a5b00: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -000a5b10: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ -000a5b60: 5d0a 6e61 6d65 203d 2022 6c69 6270 616d  ].name = "libpam
│ │ │ -000a5b70: 2d70 7771 7561 6c69 7479 220a 7665 7273  -pwquality".vers
│ │ │ -000a5b80: 696f 6e20 3d20 222a 220a 3c2f 636f 6465  ion = "*".
Remedi │ │ │ -000a5c40: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -000a5c50: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a5c60: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a5c90: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -000a5d00: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -000a5d20: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -000a5d50: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -000a5d70: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -000a5ce0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -000a5cf0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -000a5d30: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -000a5d40: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -000a5d90: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -000a5da0: 7771 7561 6c69 7479 0a0a 636c 6173 7320 wquality..class │ │ │ -000a5db0: 696e 7374 616c 6c5f 6c69 6270 616d 2d70 install_libpam-p │ │ │ -000a5dc0: 7771 7561 6c69 7479 207b 0a20 2070 6163 wquality {. pac │ │ │ -000a5dd0: 6b61 6765 207b 2027 6c69 6270 616d 2d70 kage { 'libpam-p │ │ │ -000a5de0: 7771 7561 6c69 7479 273a 0a20 2020 2065 wquality':. e │ │ │ -000a5df0: 6e73 7572 6520 3d26 6774 3b20 2769 6e73 nsure => 'ins │ │ │ -000a5e00: 7461 6c6c 6564 272c 0a20 207d 0a7d 0a3c talled',. }.}.< │ │ │ -000a5e10: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ -000a5ec0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -000a5ed0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -000a5f70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ -000a6010: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000a6020: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000a6030: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -000a6040: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -000a6050: 6f0a 2020 7461 6773 3a0a 2020 2d20 656e  o.  tags:.  - en
│ │ │ -000a6060: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -000a6070: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -000a6080: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -000a6090: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -000a60a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -000a60b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -000a60c0: 2070 6163 6b61 6765 5f70 616d 5f70 7771   package_pam_pwq
│ │ │ -000a60d0: 7561 6c69 7479 5f69 6e73 7461 6c6c 6564  uality_installed
│ │ │ -000a60e0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -000a60f0: 206c 6962 7061 6d2d 7077 7175 616c 6974   libpam-pwqualit
│ │ │ -000a6100: 7920 6973 2069 6e73 7461 6c6c 6564 0a20  y is installed. 
│ │ │ -000a6110: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -000a6120: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -000a6130: 6d65 3a20 6c69 6270 616d 2d70 7771 7561  me: libpam-pwqua
│ │ │ -000a6140: 6c69 7479 0a20 2020 2073 7461 7465 3a20  lity.    state: 
│ │ │ -000a6150: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ -000a6160: 2722 6c69 6270 616d 2d72 756e 7469 6d65  '"libpam-runtime
│ │ │ -000a6170: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -000a6180: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ -000a6190: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ -000a61a0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -000a61b0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -000a61c0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -000a61d0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -000a61e0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -000a61f0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -000a6200: 6167 655f 7061 6d5f 7077 7175 616c 6974  age_pam_pwqualit
│ │ │ -000a6210: 795f 696e 7374 616c 6c65 640a 3c2f 636f  y_installed.
< │ │ │ +000a5b10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +000a5b20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +000a5b30: 7365 2220 6964 3d22 6964 3137 3622 3e3c se" id="id176">< │ │ │ +000a5b40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +000a5b50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +000a5b60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +000a5b70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +000a5b80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +000a5c10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +000a5c20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ -000a5f60: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -000a5f90: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -000a5fa0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -000a5fe0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -000a5ff0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ +000a5b90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +000a5ba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +000a5be0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +000a5bf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ +000a5c40: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +000a5c50: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +000a5c60: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +000a5c70: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +000a5c80: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ +000a5c90: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +000a5ca0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +000a5cb0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +000a5cc0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +000a5cd0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +000a5ce0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +000a5cf0: 655f 7061 6d5f 7077 7175 616c 6974 795f  e_pam_pwquality_
│ │ │ +000a5d00: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +000a5d10: 653a 2045 6e73 7572 6520 6c69 6270 616d  e: Ensure libpam
│ │ │ +000a5d20: 2d70 7771 7561 6c69 7479 2069 7320 696e  -pwquality is in
│ │ │ +000a5d30: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +000a5d40: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000a5d50: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ +000a5d60: 7061 6d2d 7077 7175 616c 6974 790a 2020  pam-pwquality.  
│ │ │ +000a5d70: 2020 7374 6174 653a 2070 7265 7365 6e74    state: present
│ │ │ +000a5d80: 0a20 2077 6865 6e3a 2027 226c 6962 7061  .  when: '"libpa
│ │ │ +000a5d90: 6d2d 7275 6e74 696d 6522 2069 6e20 616e  m-runtime" in an
│ │ │ +000a5da0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +000a5db0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ +000a5dc0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +000a5dd0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +000a5de0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +000a5df0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +000a5e00: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +000a5e10: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +000a5e20: 0a20 202d 2070 6163 6b61 6765 5f70 616d  .  - package_pam
│ │ │ +000a5e30: 5f70 7771 7561 6c69 7479 5f69 6e73 7461  _pwquality_insta
│ │ │ +000a5e40: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediation │ │ │ +000a5f00: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +000a5f10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ +000a5fa0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +000a5fc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +000a5fe0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +000a6010: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +000a6020: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +000a6030: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include insta
│ │ │ +000a6050: 6c6c 5f6c 6962 7061 6d2d 7077 7175 616c  ll_libpam-pwqual
│ │ │ +000a6060: 6974 790a 0a63 6c61 7373 2069 6e73 7461  ity..class insta
│ │ │ +000a6070: 6c6c 5f6c 6962 7061 6d2d 7077 7175 616c  ll_libpam-pwqual
│ │ │ +000a6080: 6974 7920 7b0a 2020 7061 636b 6167 6520  ity {.  package 
│ │ │ +000a6090: 7b20 276c 6962 7061 6d2d 7077 7175 616c  { 'libpam-pwqual
│ │ │ +000a60a0: 6974 7927 3a0a 2020 2020 656e 7375 7265  ity':.    ensure
│ │ │ +000a60b0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +000a60c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +000a6180: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +000a6190: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +000a61a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +000a61e0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +000a61f0: 735d 5d0a 6e61 6d65 203d 2022 6c69 6270  s]].name = "libp
│ │ │ +000a6200: 616d 2d70 7771 7561 6c69 7479 220a 7665  am-pwquality".ve
│ │ │ +000a6210: 7273 696f 6e20 3d20 222a 220a 3c2f 636f  rsion = "*".
< │ │ │ 000a6230: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000a6240: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000a6250: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000a6260: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000a6270: 6431 3739 2220 7461 6269 6e64 6578 3d22 d179" tabindex=" │ │ │ 000a6280: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -42705,112 +42705,112 @@ │ │ │ 000a6d00: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 000a6d10: 2223 6964 3138 3122 2074 6162 696e 6465 "#id181" tabinde │ │ │ 000a6d20: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 000a6d30: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 000a6d40: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 000a6d50: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 000a6d60: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -000a6d70: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000a6d80: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000a6d90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000a6da0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000a6dd0: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000a6de0: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000a6df0: 226c 6962 7061 6d2d 7275 6e74 696d 6522  "libpam-runtime"
│ │ │ -000a6e00: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -000a6e10: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -000a6ec0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -000a6ed0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -000a6f70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000a6f80: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000a6fd0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -000a7010: 6c75 6465 2069 6e73 7461 6c6c 5f6c 6962  lude install_lib
│ │ │ -000a7020: 7061 6d2d 7275 6e74 696d 650a 0a63 6c61  pam-runtime..cla
│ │ │ -000a7030: 7373 2069 6e73 7461 6c6c 5f6c 6962 7061  ss install_libpa
│ │ │ -000a7040: 6d2d 7275 6e74 696d 6520 7b0a 2020 7061  m-runtime {.  pa
│ │ │ -000a7050: 636b 6167 6520 7b20 276c 6962 7061 6d2d  ckage { 'libpam-
│ │ │ -000a7060: 7275 6e74 696d 6527 3a0a 2020 2020 656e  runtime':.    en
│ │ │ -000a7070: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -000a7080: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -000a7140: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000a7150: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
C │ │ │ -000a6f60: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000a6f90: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000a6fa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000a6fe0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000a6ff0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -000a71f0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000a7200: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000a7250: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000a7290: 616d 653a 2045 6e73 7572 6520 6c69 6270  ame: Ensure libp
│ │ │ -000a72a0: 616d 2d72 756e 7469 6d65 2069 7320 696e  am-runtime is in
│ │ │ -000a72b0: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ -000a72c0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ -000a72d0: 653a 0a20 2020 206e 616d 653a 206c 6962  e:.    name: lib
│ │ │ -000a72e0: 7061 6d2d 7275 6e74 696d 650a 2020 2020  pam-runtime.    
│ │ │ -000a72f0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -000a7300: 2074 6167 733a 0a20 202d 2065 6e61 626c   tags:.  - enabl
│ │ │ -000a7310: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -000a7320: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -000a7330: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -000a7340: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -000a7350: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -000a7360: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -000a7370: 636b 6167 655f 7061 6d5f 7275 6e74 696d  ckage_pam_runtim
│ │ │ -000a7380: 655f 696e 7374 616c 6c65 640a 3c2f 636f  e_installed.
C │ │ │ -000a71e0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000a7210: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000a7220: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000a7260: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000a7270: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +000a6e20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000a6ec0: 6e61 6d65 3a20 456e 7375 7265 206c 6962  name: Ensure lib
│ │ │ +000a6ed0: 7061 6d2d 7275 6e74 696d 6520 6973 2069  pam-runtime is i
│ │ │ +000a6ee0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ +000a6ef0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +000a6f00: 6765 3a0a 2020 2020 6e61 6d65 3a20 6c69  ge:.    name: li
│ │ │ +000a6f10: 6270 616d 2d72 756e 7469 6d65 0a20 2020  bpam-runtime.   
│ │ │ +000a6f20: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +000a6f30: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000a6f40: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000a6f50: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000a6f60: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000a6f70: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000a6f80: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000a6f90: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +000a6fa0: 6163 6b61 6765 5f70 616d 5f72 756e 7469  ackage_pam_runti
│ │ │ +000a6fb0: 6d65 5f69 6e73 7461 6c6c 6564 0a3c 2f63  me_installed.
│ │ │ +000a6fd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000a7070: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000a7080: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000a7090: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +000a6e10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000a6e40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000a6e50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000a6e90: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000a6ea0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ +000a7110: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000a7140: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000a7160: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000a7170: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000a7190: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000a71b0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000a71c0: 6465 2069 6e73 7461 6c6c 5f6c 6962 7061  de install_libpa
│ │ │ +000a71d0: 6d2d 7275 6e74 696d 650a 0a63 6c61 7373  m-runtime..class
│ │ │ +000a71e0: 2069 6e73 7461 6c6c 5f6c 6962 7061 6d2d   install_libpam-
│ │ │ +000a71f0: 7275 6e74 696d 6520 7b0a 2020 7061 636b  runtime {.  pack
│ │ │ +000a7200: 6167 6520 7b20 276c 6962 7061 6d2d 7275  age { 'libpam-ru
│ │ │ +000a7210: 6e74 696d 6527 3a0a 2020 2020 656e 7375  ntime':.    ensu
│ │ │ +000a7220: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000a7230: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000a7250: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000a7260: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000a7270: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000a7280: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000a7290: 6431 3833 2220 7461 6269 6e64 6578 3d22 d183" tabindex=" │ │ │ +000a72a0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000a72b0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000a72c0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000a72d0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000a72e0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000a72f0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000a7300: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000a7310: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +000a7360: 6765 735d 5d0a 6e61 6d65 203d 2022 6c69 ges]].name = "li │ │ │ +000a7370: 6270 616d 2d72 756e 7469 6d65 220a 7665 bpam-runtime".ve │ │ │ +000a7380: 7273 696f 6e20 3d20 222a 220a 3c2f 636f rsion = "*".
< │ │ │ 000a73a0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000a73b0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000a73c0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000a73d0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000a73e0: 6431 3834 2220 7461 6269 6e64 6578 3d22 d184" tabindex=" │ │ │ 000a73f0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -57404,118 +57404,118 @@ │ │ │ 000e03b0: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 000e03c0: 2369 6432 3739 2220 7461 6269 6e64 6578 #id279" tabindex │ │ │ 000e03d0: 3d22 3022 2072 6f6c 653d 2262 7574 746f ="0" role="butto │ │ │ 000e03e0: 6e22 2061 7269 612d 6578 7061 6e64 6564 n" aria-expanded │ │ │ 000e03f0: 3d22 6661 6c73 6522 2074 6974 6c65 3d22 ="false" title=" │ │ │ 000e0400: 4163 7469 7661 7465 2074 6f20 7265 7665 Activate to reve │ │ │ 000e0410: 616c 2220 6872 6566 3d22 2321 223e 5265 al" href="#!">Re │ │ │ -000e0420: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -000e0430: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -000e0440: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000e0450: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000e0460: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000e0470: 7365 2220 6964 3d22 6964 3237 3922 3e3c se" id="id279">< │ │ │ -000e0480: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -000e0490: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -000e04a0: 6170 7061 726d 6f72 2d75 7469 6c73 220a apparmor-utils". │ │ │ -000e04b0: 7665 7273 696f 6e20 3d20 222a 220a 3c2f version = "*".
Re │ │ │ -000e0570: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -000e0580: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000e0590: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000e0630: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000e0680: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000e0610: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000e0640: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000e0660: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000e0670: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000e0690: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000e06a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -000e06c0: 7564 6520 696e 7374 616c 6c5f 6170 7061  ude install_appa
│ │ │ -000e06d0: 726d 6f72 2d75 7469 6c73 0a0a 636c 6173  rmor-utils..clas
│ │ │ -000e06e0: 7320 696e 7374 616c 6c5f 6170 7061 726d  s install_apparm
│ │ │ -000e06f0: 6f72 2d75 7469 6c73 207b 0a20 2070 6163  or-utils {.  pac
│ │ │ -000e0700: 6b61 6765 207b 2027 6170 7061 726d 6f72  kage { 'apparmor
│ │ │ -000e0710: 2d75 7469 6c73 273a 0a20 2020 2065 6e73  -utils':.    ens
│ │ │ -000e0720: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ -000e0730: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ -000e0750: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000e07f0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -000e0800: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -000e0810: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -000e08b0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -000e0900: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -000e0890: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -000e08c0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -000e08e0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -000e08f0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -000e0910: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -000e0920: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -000e0940: 6d65 3a20 456e 7375 7265 2061 7070 6172  me: Ensure appar
│ │ │ -000e0950: 6d6f 722d 7574 696c 7320 6973 2069 6e73  mor-utils is ins
│ │ │ -000e0960: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000e0970: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000e0980: 3a0a 2020 2020 6e61 6d65 3a20 6170 7061  :.    name: appa
│ │ │ -000e0990: 726d 6f72 2d75 7469 6c73 0a20 2020 2073  rmor-utils.    s
│ │ │ -000e09a0: 7461 7465 3a20 7072 6573 656e 740a 2020  tate: present.  
│ │ │ -000e09b0: 7768 656e 3a20 616e 7369 626c 655f 7669  when: ansible_vi
│ │ │ -000e09c0: 7274 7561 6c69 7a61 7469 6f6e 5f74 7970  rtualization_typ
│ │ │ -000e09d0: 6520 6e6f 7420 696e 205b 2264 6f63 6b65  e not in ["docke
│ │ │ -000e09e0: 7222 2c20 226c 7863 222c 2022 6f70 656e  r", "lxc", "open
│ │ │ -000e09f0: 767a 222c 2022 706f 646d 616e 222c 2022  vz", "podman", "
│ │ │ -000e0a00: 636f 6e74 6169 6e65 7222 5d0a 2020 7461  container"].  ta
│ │ │ -000e0a10: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73  gs:.  - enable_s
│ │ │ -000e0a20: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -000e0a30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -000e0a40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -000e0a50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -000e0a60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -000e0a70: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -000e0a80: 6765 5f61 7070 6172 6d6f 722d 7574 696c  ge_apparmor-util
│ │ │ -000e0a90: 735f 696e 7374 616c 6c65 640a 3c2f 636f  s_installed.
< │ │ │ +000e04d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +000e04e0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +000e0530: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +000e0570: 616d 653a 2045 6e73 7572 6520 6170 7061  ame: Ensure appa
│ │ │ +000e0580: 726d 6f72 2d75 7469 6c73 2069 7320 696e  rmor-utils is in
│ │ │ +000e0590: 7374 616c 6c65 640a 2020 616e 7369 626c  stalled.  ansibl
│ │ │ +000e05a0: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +000e05b0: 653a 0a20 2020 206e 616d 653a 2061 7070  e:.    name: app
│ │ │ +000e05c0: 6172 6d6f 722d 7574 696c 730a 2020 2020  armor-utils.    
│ │ │ +000e05d0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +000e05e0: 2077 6865 6e3a 2061 6e73 6962 6c65 5f76   when: ansible_v
│ │ │ +000e05f0: 6972 7475 616c 697a 6174 696f 6e5f 7479  irtualization_ty
│ │ │ +000e0600: 7065 206e 6f74 2069 6e20 5b22 646f 636b  pe not in ["dock
│ │ │ +000e0610: 6572 222c 2022 6c78 6322 2c20 226f 7065  er", "lxc", "ope
│ │ │ +000e0620: 6e76 7a22 2c20 2270 6f64 6d61 6e22 2c20  nvz", "podman", 
│ │ │ +000e0630: 2263 6f6e 7461 696e 6572 225d 0a20 2074  "container"].  t
│ │ │ +000e0640: 6167 733a 0a20 202d 2065 6e61 626c 655f  ags:.  - enable_
│ │ │ +000e0650: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +000e0660: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +000e0670: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +000e0680: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +000e0690: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +000e06a0: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +000e06b0: 6167 655f 6170 7061 726d 6f72 2d75 7469  age_apparmor-uti
│ │ │ +000e06c0: 6c73 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ls_installed.
│ │ │ +000e06e0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +000e0780: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +000e0790: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +000e07a0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +000e04c0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +000e04f0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +000e0500: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +000e0540: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +000e0550: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +000e0820: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +000e0850: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +000e0870: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +000e0880: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +000e08a0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +000e08c0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +000e08d0: 6465 2069 6e73 7461 6c6c 5f61 7070 6172  de install_appar
│ │ │ +000e08e0: 6d6f 722d 7574 696c 730a 0a63 6c61 7373  mor-utils..class
│ │ │ +000e08f0: 2069 6e73 7461 6c6c 5f61 7070 6172 6d6f   install_apparmo
│ │ │ +000e0900: 722d 7574 696c 7320 7b0a 2020 7061 636b  r-utils {.  pack
│ │ │ +000e0910: 6167 6520 7b20 2761 7070 6172 6d6f 722d  age { 'apparmor-
│ │ │ +000e0920: 7574 696c 7327 3a0a 2020 2020 656e 7375  utils':.    ensu
│ │ │ +000e0930: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +000e0940: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +000e0960: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000e0970: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000e0980: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000e0990: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000e09a0: 6432 3831 2220 7461 6269 6e64 6578 3d22 d281" tabindex=" │ │ │ +000e09b0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000e09c0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000e09d0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000e09e0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000e09f0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000e0a00: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +000e0a10: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +000e0a20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +000e0a70: 6765 735d 5d0a 6e61 6d65 203d 2022 6170 ges]].name = "ap │ │ │ +000e0a80: 7061 726d 6f72 2d75 7469 6c73 220a 7665 parmor-utils".ve │ │ │ +000e0a90: 7273 696f 6e20 3d20 222a 220a 3c2f 636f rsion = "*".
< │ │ │ 000e0ab0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 000e0ac0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 000e0ad0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 000e0ae0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 000e0af0: 6432 3832 2220 7461 6269 6e64 6578 3d22 d282" tabindex=" │ │ │ 000e0b00: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ @@ -57707,116 +57707,116 @@ │ │ │ 000e16a0: 7365 2220 6461 7461 2d74 6172 6765 743d se" data-target= │ │ │ 000e16b0: 2223 6964 3238 3422 2074 6162 696e 6465 "#id284" tabinde │ │ │ 000e16c0: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 000e16d0: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 000e16e0: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 000e16f0: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 000e1700: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -000e1710: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -000e1720: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -000e1730: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -000e1740: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -000e1770: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -000e1780: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -000e1790: 2261 7070 6172 6d6f 7222 0a76 6572 7369  "apparmor".versi
│ │ │ -000e17a0: 6f6e 203d 2022 2a22 0a3c 2f63 6f64 653e  on = "*".
│ │ │ -000e17b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -000e1860: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -000e1870: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -000e1880: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000e1890: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000e18a0: 7365 2220 6964 3d22 6964 3238 3522 3e3c se" id="id285">< │ │ │ -000e18b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000e18c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000e18d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000e18e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000e18f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -000e1900: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000e1910: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -000e1950: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000e1960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -000e1980: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -000e1990: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include i
│ │ │ -000e19b0: 6e73 7461 6c6c 5f61 7070 6172 6d6f 720a  nstall_apparmor.
│ │ │ -000e19c0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f61  .class install_a
│ │ │ -000e19d0: 7070 6172 6d6f 7220 7b0a 2020 7061 636b  pparmor {.  pack
│ │ │ -000e19e0: 6167 6520 7b20 2761 7070 6172 6d6f 7227  age { 'apparmor'
│ │ │ -000e19f0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -000e1a00: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -000e1a10: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000e1ad0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000e1ae0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000e1b60: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000e1b70: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000e1b90: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000e1ba0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000e1bc0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000e1be0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000e1c10: 636f 6465 3e2d 206e 616d 653a 2045 6e73  code>- name: Ens
│ │ │ -000e1c20: 7572 6520 6170 7061 726d 6f72 2069 7320  ure apparmor is 
│ │ │ -000e1c30: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ -000e1c40: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -000e1c50: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ -000e1c60: 7070 6172 6d6f 720a 2020 2020 7374 6174  pparmor.    stat
│ │ │ -000e1c70: 653a 2070 7265 7365 6e74 0a20 2077 6865  e: present.  whe
│ │ │ -000e1c80: 6e3a 2061 6e73 6962 6c65 5f76 6972 7475  n: ansible_virtu
│ │ │ -000e1c90: 616c 697a 6174 696f 6e5f 7479 7065 206e  alization_type n
│ │ │ -000e1ca0: 6f74 2069 6e20 5b22 646f 636b 6572 222c  ot in ["docker",
│ │ │ -000e1cb0: 2022 6c78 6322 2c20 226f 7065 6e76 7a22   "lxc", "openvz"
│ │ │ -000e1cc0: 2c20 2270 6f64 6d61 6e22 2c20 2263 6f6e  , "podman", "con
│ │ │ -000e1cd0: 7461 696e 6572 225d 0a20 2074 6167 733a  tainer"].  tags:
│ │ │ -000e1ce0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000e1cf0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000e1d00: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000e1d10: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000e1d20: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000e1d30: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000e1d40: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -000e1d50: 6170 7061 726d 6f72 5f69 6e73 7461 6c6c  apparmor_install
│ │ │ -000e1d60: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +000e1710: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +000e1720: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ +000e17c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +000e1860: 6e61 6d65 3a20 456e 7375 7265 2061 7070  name: Ensure app
│ │ │ +000e1870: 6172 6d6f 7220 6973 2069 6e73 7461 6c6c  armor is install
│ │ │ +000e1880: 6564 0a20 2061 6e73 6962 6c65 2e62 7569  ed.  ansible.bui
│ │ │ +000e1890: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ +000e18a0: 2020 6e61 6d65 3a20 6170 7061 726d 6f72    name: apparmor
│ │ │ +000e18b0: 0a20 2020 2073 7461 7465 3a20 7072 6573  .    state: pres
│ │ │ +000e18c0: 656e 740a 2020 7768 656e 3a20 616e 7369  ent.  when: ansi
│ │ │ +000e18d0: 626c 655f 7669 7274 7561 6c69 7a61 7469  ble_virtualizati
│ │ │ +000e18e0: 6f6e 5f74 7970 6520 6e6f 7420 696e 205b  on_type not in [
│ │ │ +000e18f0: 2264 6f63 6b65 7222 2c20 226c 7863 222c  "docker", "lxc",
│ │ │ +000e1900: 2022 6f70 656e 767a 222c 2022 706f 646d   "openvz", "podm
│ │ │ +000e1910: 616e 222c 2022 636f 6e74 6169 6e65 7222  an", "container"
│ │ │ +000e1920: 5d0a 2020 7461 6773 3a0a 2020 2d20 656e  ].  tags:.  - en
│ │ │ +000e1930: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +000e1940: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +000e1950: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +000e1960: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +000e1970: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +000e1980: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +000e1990: 2070 6163 6b61 6765 5f61 7070 6172 6d6f   package_apparmo
│ │ │ +000e19a0: 725f 696e 7374 616c 6c65 640a 3c2f 636f  r_installed.
< │ │ │ +000e19c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +000e19d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +000e19e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +000e19f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +000e1a00: 6432 3835 2220 7461 6269 6e64 6578 3d22 d285" tabindex=" │ │ │ +000e1a10: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +000e1a20: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +000e1a30: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +000e1a40: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +000e1a50: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +000e1a60: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +000e1a70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +000e17b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000e17e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000e17f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000e1830: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000e1840: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +000e1b00: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +000e1b10: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +000e1b30: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +000e1b50: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +000e1b60: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +000e1ba0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +000e1bb0: 6520 696e 7374 616c 6c5f 6170 7061 726d e install_apparm │ │ │ +000e1bc0: 6f72 0a0a 636c 6173 7320 696e 7374 616c or..class instal │ │ │ +000e1bd0: 6c5f 6170 7061 726d 6f72 207b 0a20 2070 l_apparmor {. p │ │ │ +000e1be0: 6163 6b61 6765 207b 2027 6170 7061 726d ackage { 'apparm │ │ │ +000e1bf0: 6f72 273a 0a20 2020 2065 6e73 7572 6520 or':. ensure │ │ │ +000e1c00: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564 => 'installed │ │ │ +000e1c10: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +000e1c20: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +000e1cd0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +000e1ce0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +000e1cf0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +000e1d30: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ +000e1d40: 5d5d 0a6e 616d 6520 3d20 2261 7070 6172  ]].name = "appar
│ │ │ +000e1d50: 6d6f 7222 0a76 6572 7369 6f6e 203d 2022  mor".version = "
│ │ │ +000e1d60: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 000e1d70: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remedia │ │ │ -000ef3c0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -000ef3d0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -000ef3e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -000ef420: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -000ef430: 5d5d 0a6e 616d 6520 3d20 2273 7973 7465  ]].name = "syste
│ │ │ -000ef440: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000ef450: 6522 0a76 6572 7369 6f6e 203d 2022 2a22  e".version = "*"
│ │ │ -000ef460: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -000ef520: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -000ef530: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -000ef600: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -000ef610: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -000ef660: 6e63 6c75 6465 2069 6e73 7461 6c6c 5f73  nclude install_s
│ │ │ -000ef670: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ -000ef680: 656d 6f74 650a 0a63 6c61 7373 2069 6e73  emote..class ins
│ │ │ -000ef690: 7461 6c6c 5f73 7973 7465 6d64 2d6a 6f75  tall_systemd-jou
│ │ │ -000ef6a0: 726e 616c 2d72 656d 6f74 6520 7b0a 2020  rnal-remote {.  
│ │ │ -000ef6b0: 7061 636b 6167 6520 7b20 2773 7973 7465  package { 'syste
│ │ │ -000ef6c0: 6d64 2d6a 6f75 726e 616c 2d72 656d 6f74  md-journal-remot
│ │ │ -000ef6d0: 6527 3a0a 2020 2020 656e 7375 7265 203d  e':.    ensure =
│ │ │ -000ef6e0: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ -000ef6f0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -000ef700: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -000ef7b0: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -000ef7c0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -000ef7d0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -000ef7e0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -000ef7f0: 7365 2220 6964 3d22 6964 3330 3722 3e3c se" id="id307">< │ │ │ -000ef800: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -000ef810: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -000ef820: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -000ef830: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -000ef840: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -000ef8d0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -000ef8e0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -000ef5e0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -000ef5f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -000ef630: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -000ef640: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ -000ef850: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -000ef860: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -000ef8a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -000ef8b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -000ef900: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -000ef910: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -000ef920: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -000ef930: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -000ef940: 733a 0a20 202d 2065 6e61 626c 655f 7374  s:.  - enable_st
│ │ │ -000ef950: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -000ef960: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -000ef970: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -000ef980: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -000ef990: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -000ef9a0: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -000ef9b0: 655f 7379 7374 656d 642d 6a6f 7572 6e61  e_systemd-journa
│ │ │ -000ef9c0: 6c2d 7265 6d6f 7465 5f69 6e73 7461 6c6c  l-remote_install
│ │ │ -000ef9d0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ -000ef9e0: 7265 2073 7973 7465 6d64 2d6a 6f75 726e  re systemd-journ
│ │ │ -000ef9f0: 616c 2d72 656d 6f74 6520 6973 2069 6e73  al-remote is ins
│ │ │ -000efa00: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -000efa10: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -000efa20: 3a0a 2020 2020 6e61 6d65 3a20 7379 7374  :.    name: syst
│ │ │ -000efa30: 656d 642d 6a6f 7572 6e61 6c2d 7265 6d6f  emd-journal-remo
│ │ │ -000efa40: 7465 0a20 2020 2073 7461 7465 3a20 7072  te.    state: pr
│ │ │ -000efa50: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -000efa60: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -000efa70: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -000efa80: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -000efa90: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000efaa0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000efab0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000efac0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000efad0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000efae0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000efaf0: 640a 2020 2d20 7061 636b 6167 655f 7379  d.  - package_sy
│ │ │ -000efb00: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ -000efb10: 6d6f 7465 5f69 6e73 7461 6c6c 6564 0a3c  mote_installed.<
│ │ │ +000ef3c0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +000ef3d0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +000ef3e0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +000ef410: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +000ef480: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +000ef4a0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +000ef4d0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +000ef4f0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +000ef460: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +000ef470: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +000ef4b0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +000ef4c0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +000ef510: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +000ef520: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +000ef530: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +000ef540: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +000ef550: 6773 3a0a 2020 2d20 656e 6162 6c65 5f73 gs:. - enable_s │ │ │ +000ef560: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +000ef570: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +000ef580: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +000ef590: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +000ef5a0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +000ef5b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +000ef5c0: 6765 5f73 7973 7465 6d64 2d6a 6f75 726e ge_systemd-journ │ │ │ +000ef5d0: 616c 2d72 656d 6f74 655f 696e 7374 616c al-remote_instal │ │ │ +000ef5e0: 6c65 640a 0a2d 206e 616d 653a 2045 6e73 led..- name: Ens │ │ │ +000ef5f0: 7572 6520 7379 7374 656d 642d 6a6f 7572 ure systemd-jour │ │ │ +000ef600: 6e61 6c2d 7265 6d6f 7465 2069 7320 696e nal-remote is in │ │ │ +000ef610: 7374 616c 6c65 640a 2020 616e 7369 626c stalled. ansibl │ │ │ +000ef620: 652e 6275 696c 7469 6e2e 7061 636b 6167 e.builtin.packag │ │ │ +000ef630: 653a 0a20 2020 206e 616d 653a 2073 7973 e:. name: sys │ │ │ +000ef640: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d temd-journal-rem │ │ │ +000ef650: 6f74 650a 2020 2020 7374 6174 653a 2070 ote. state: p │ │ │ +000ef660: 7265 7365 6e74 0a20 2077 6865 6e3a 2027 resent. when: ' │ │ │ +000ef670: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +000ef680: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +000ef690: 636b 6167 6573 270a 2020 7461 6773 3a0a ckages'. tags:. │ │ │ +000ef6a0: 2020 2d20 656e 6162 6c65 5f73 7472 6174 - enable_strat │ │ │ +000ef6b0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ +000ef6c0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ +000ef6d0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65 isruption. - me │ │ │ +000ef6e0: 6469 756d 5f73 6576 6572 6974 790a 2020 dium_severity. │ │ │ +000ef6f0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ +000ef700: 6564 0a20 202d 2070 6163 6b61 6765 5f73 ed. - package_s │ │ │ +000ef710: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72 ystemd-journal-r │ │ │ +000ef720: 656d 6f74 655f 696e 7374 616c 6c65 640a emote_installed. │ │ │ +000ef730: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64
│ │ │ +000ef7e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +000ef7f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +000ef890: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +000ef930: 636c 7564 6520 696e 7374 616c 6c5f 7379  clude install_sy
│ │ │ +000ef940: 7374 656d 642d 6a6f 7572 6e61 6c2d 7265  stemd-journal-re
│ │ │ +000ef950: 6d6f 7465 0a0a 636c 6173 7320 696e 7374  mote..class inst
│ │ │ +000ef960: 616c 6c5f 7379 7374 656d 642d 6a6f 7572  all_systemd-jour
│ │ │ +000ef970: 6e61 6c2d 7265 6d6f 7465 207b 0a20 2070  nal-remote {.  p
│ │ │ +000ef980: 6163 6b61 6765 207b 2027 7379 7374 656d  ackage { 'system
│ │ │ +000ef990: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000ef9a0: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +000ef9b0: 6774 3b20 2769 6e73 7461 6c6c 6564 272c  gt; 'installed',
│ │ │ +000ef9c0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediati
│ │ │ +000efa80: 6f6e 204f 5342 7569 6c64 2042 6c75 6570  on OSBuild Bluep
│ │ │ +000efa90: 7269 6e74 2073 6e69 7070 6574 20e2 87b2  rint snippet ...
│ │ │ +000efaa0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
.[[packages]]
│ │ │ +000efaf0: 0a6e 616d 6520 3d20 2273 7973 7465 6d64  .name = "systemd
│ │ │ +000efb00: 2d6a 6f75 726e 616c 2d72 656d 6f74 6522  -journal-remote"
│ │ │ +000efb10: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  000efb20: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation OSB │ │ │ -000f0c50: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000f0c60: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -000f0cb0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -000f0cc0: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -000f0cd0: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ -000f0ce0: 6e61 6c2d 7570 6c6f 6164 225d 0a3c 2f63  nal-upload"].
│ │ │ -000f0d00: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -000f0da0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -000f0db0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -000f0dc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +000ef880: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +000ef8b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +000ef8c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +000ef900: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +000ef910: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -000f0e40: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -000f0e70: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -000f0e90: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -000f0ea0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -000f0ec0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -000f0ee0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -000f0ef0: 6465 2065 6e61 626c 655f 7379 7374 656d  de enable_system
│ │ │ -000f0f00: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ -000f0f10: 0a0a 636c 6173 7320 656e 6162 6c65 5f73  ..class enable_s
│ │ │ -000f0f20: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -000f0f30: 706c 6f61 6420 7b0a 2020 7365 7276 6963  pload {.  servic
│ │ │ -000f0f40: 6520 7b27 7379 7374 656d 642d 6a6f 7572  e {'systemd-jour
│ │ │ -000f0f50: 6e61 6c2d 7570 6c6f 6164 273a 0a20 2020  nal-upload':.   
│ │ │ -000f0f60: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -000f0f70: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -000f0f80: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -000f0f90: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -000f1050: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -000f1060: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f10e0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f10f0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f1110: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f1120: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f1140: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f1160: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f1190: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -000f11a0: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -000f11b0: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -000f11c0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -000f11d0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -000f11e0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -000f11f0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -000f1200: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -000f1210: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -000f1220: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -000f1230: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -000f1240: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -000f1250: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ -000f1260: 7570 6c6f 6164 5f65 6e61 626c 6564 0a0a  upload_enabled..
│ │ │ -000f1270: 2d20 6e61 6d65 3a20 456e 6162 6c65 2073  - name: Enable s
│ │ │ -000f1280: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -000f1290: 706c 6f61 6420 5365 7276 6963 6520 2d20  pload Service - 
│ │ │ -000f12a0: 456e 6162 6c65 2073 6572 7669 6365 2073  Enable service s
│ │ │ -000f12b0: 7973 7465 6d64 2d6a 6f75 726e 616c 2d75  ystemd-journal-u
│ │ │ -000f12c0: 706c 6f61 640a 2020 626c 6f63 6b3a 0a0a  pload.  block:..
│ │ │ -000f12d0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -000f12e0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -000f12f0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -000f1300: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -000f1310: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -000f1320: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -000f1330: 616d 653a 2045 6e61 626c 6520 7379 7374  ame: Enable syst
│ │ │ -000f1340: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000f1350: 6164 2053 6572 7669 6365 202d 2045 6e61  ad Service - Ena
│ │ │ -000f1360: 626c 6520 5365 7276 6963 6520 7379 7374  ble Service syst
│ │ │ -000f1370: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000f1380: 6164 0a20 2020 2061 6e73 6962 6c65 2e62  ad.    ansible.b
│ │ │ -000f1390: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -000f13a0: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ -000f13b0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000f13c0: 6164 0a20 2020 2020 2065 6e61 626c 6564  ad.      enabled
│ │ │ -000f13d0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -000f13e0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -000f13f0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -000f1400: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -000f1410: 2722 7379 7374 656d 642d 6a6f 7572 6e61  '"systemd-journa
│ │ │ -000f1420: 6c2d 7265 6d6f 7465 2220 696e 2061 6e73  l-remote" in ans
│ │ │ -000f1430: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -000f1440: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -000f1450: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -000f1460: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -000f1470: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -000f1480: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -000f1490: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -000f14a0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -000f14b0: 2020 2d20 7365 7276 6963 655f 7379 7374    - service_syst
│ │ │ -000f14c0: 656d 642d 6a6f 7572 6e61 6c2d 7570 6c6f  emd-journal-uplo
│ │ │ -000f14d0: 6164 5f65 6e61 626c 6564 0a20 202d 2073  ad_enabled.  - s
│ │ │ -000f14e0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -000f14f0: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ -000f1500: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -000f1510: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -000f1520: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ -000f1530: 616e 7369 626c 655f 7669 7274 7561 6c69  ansible_virtuali
│ │ │ -000f1540: 7a61 7469 6f6e 5f74 7970 6520 6e6f 7420  zation_type not 
│ │ │ -000f1550: 696e 205b 2264 6f63 6b65 7222 2c20 226c  in ["docker", "l
│ │ │ -000f1560: 7863 222c 2022 6f70 656e 767a 222c 2022  xc", "openvz", "
│ │ │ -000f1570: 706f 646d 616e 222c 2022 636f 6e74 6169  podman", "contai
│ │ │ -000f1580: 6e65 7222 5d0a 2020 2020 616e 6420 2273  ner"].    and "s
│ │ │ -000f1590: 7973 7465 6d64 2d6a 6f75 726e 616c 2d72  ystemd-journal-r
│ │ │ -000f15a0: 656d 6f74 6522 2069 6e20 616e 7369 626c  emote" in ansibl
│ │ │ -000f15b0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -000f15c0: 2029 0a3c 2f63 6f64 653e 3c2f 7072 653e   ).
│ │ │ +000f0c40: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +000f0c50: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +000f0c60: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +000f0d30: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000f0d40: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000f0d90: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000f0da0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000f0db0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000f0dc0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000f0dd0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000f0de0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +000f0df0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +000f0e00: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +000f0e10: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +000f0e20: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +000f0e30: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +000f0e40: 202d 2073 6572 7669 6365 5f73 7973 7465   - service_syste
│ │ │ +000f0e50: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +000f0e60: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ +000f0e70: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ +000f0e80: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000f0e90: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ +000f0ea0: 6520 7365 7276 6963 6520 7379 7374 656d  e service system
│ │ │ +000f0eb0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000f0ec0: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +000f0ed0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +000f0ee0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +000f0ef0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f0f00: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +000f0f10: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +000f0f20: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +000f0f30: 456e 6162 6c65 2073 7973 7465 6d64 2d6a  Enable systemd-j
│ │ │ +000f0f40: 6f75 726e 616c 2d75 706c 6f61 6420 5365  ournal-upload Se
│ │ │ +000f0f50: 7276 6963 6520 2d20 456e 6162 6c65 2053  rvice - Enable S
│ │ │ +000f0f60: 6572 7669 6365 2073 7973 7465 6d64 2d6a  ervice systemd-j
│ │ │ +000f0f70: 6f75 726e 616c 2d75 706c 6f61 640a 2020  ournal-upload.  
│ │ │ +000f0f80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +000f0f90: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +000f0fa0: 206e 616d 653a 2073 7973 7465 6d64 2d6a   name: systemd-j
│ │ │ +000f0fb0: 6f75 726e 616c 2d75 706c 6f61 640a 2020  ournal-upload.  
│ │ │ +000f0fc0: 2020 2020 656e 6162 6c65 643a 2074 7275      enabled: tru
│ │ │ +000f0fd0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +000f0fe0: 7461 7274 6564 0a20 2020 2020 206d 6173  tarted.      mas
│ │ │ +000f0ff0: 6b65 643a 2066 616c 7365 0a20 2020 2077  ked: false.    w
│ │ │ +000f1000: 6865 6e3a 0a20 2020 202d 2027 2273 7973  hen:.    - '"sys
│ │ │ +000f1010: 7465 6d64 2d6a 6f75 726e 616c 2d72 656d  temd-journal-rem
│ │ │ +000f1020: 6f74 6522 2069 6e20 616e 7369 626c 655f  ote" in ansible_
│ │ │ +000f1030: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +000f1040: 2020 7461 6773 3a0a 2020 2d20 656e 6162    tags:.  - enab
│ │ │ +000f1050: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +000f1060: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +000f1070: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +000f1080: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +000f1090: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +000f10a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +000f10b0: 6572 7669 6365 5f73 7973 7465 6d64 2d6a  ervice_systemd-j
│ │ │ +000f10c0: 6f75 726e 616c 2d75 706c 6f61 645f 656e  ournal-upload_en
│ │ │ +000f10d0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +000f10e0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +000f10f0: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ +000f1100: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +000f1110: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +000f1120: 6765 7327 0a20 202d 2028 2061 6e73 6962  ges'.  - ( ansib
│ │ │ +000f1130: 6c65 5f76 6972 7475 616c 697a 6174 696f  le_virtualizatio
│ │ │ +000f1140: 6e5f 7479 7065 206e 6f74 2069 6e20 5b22  n_type not in ["
│ │ │ +000f1150: 646f 636b 6572 222c 2022 6c78 6322 2c20  docker", "lxc", 
│ │ │ +000f1160: 226f 7065 6e76 7a22 2c20 2270 6f64 6d61  "openvz", "podma
│ │ │ +000f1170: 6e22 2c20 2263 6f6e 7461 696e 6572 225d  n", "container"]
│ │ │ +000f1180: 0a20 2020 2061 6e64 2022 7379 7374 656d  .    and "system
│ │ │ +000f1190: 642d 6a6f 7572 6e61 6c2d 7265 6d6f 7465  d-journal-remote
│ │ │ +000f11a0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +000f11b0: 7473 2e70 6163 6b61 6765 7320 290a 3c2f  ts.packages ).
Re │ │ │ +000f1270: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +000f1280: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +000f1290: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low
Disru │ │ │ +000f0d10: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000f0d20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000f0d60: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000f0d70: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +000f1330: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +000f1380: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +000f1310: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +000f1340: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +000f1360: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +000f1370: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +000f1390: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +000f13a0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +000f13c0: 7564 6520 656e 6162 6c65 5f73 7973 7465  ude enable_syste
│ │ │ +000f13d0: 6d64 2d6a 6f75 726e 616c 2d75 706c 6f61  md-journal-uploa
│ │ │ +000f13e0: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +000f13f0: 7379 7374 656d 642d 6a6f 7572 6e61 6c2d  systemd-journal-
│ │ │ +000f1400: 7570 6c6f 6164 207b 0a20 2073 6572 7669  upload {.  servi
│ │ │ +000f1410: 6365 207b 2773 7973 7465 6d64 2d6a 6f75  ce {'systemd-jou
│ │ │ +000f1420: 726e 616c 2d75 706c 6f61 6427 3a0a 2020  rnal-upload':.  
│ │ │ +000f1430: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ +000f1440: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ +000f1450: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ +000f1460: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +000f1520: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +000f1530: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +000f1540: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +000f1590: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +000f15a0: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ +000f15b0: 642d 6a6f 7572 6e61 6c2d 7570 6c6f 6164  d-journal-upload
│ │ │ +000f15c0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 000f15d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation OSB │ │ │ -000f24b0: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -000f24c0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[c
│ │ │ -000f2510: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -000f2520: 7276 6963 6573 5d0a 656e 6162 6c65 6420  rvices].enabled 
│ │ │ -000f2530: 3d20 5b22 7379 7374 656d 642d 6a6f 7572  = ["systemd-jour
│ │ │ -000f2540: 6e61 6c64 225d 0a3c 2f63 6f64 653e 3c2f  nald"].
Remediati │ │ │ -000f2600: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -000f2610: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -000f2690: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -000f26a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -000f26c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -000f26d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -000f26f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -000f2710: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ -000f2740: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -000f2750: 626c 655f 7379 7374 656d 642d 6a6f 7572  ble_systemd-jour
│ │ │ -000f2760: 6e61 6c64 0a0a 636c 6173 7320 656e 6162  nald..class enab
│ │ │ -000f2770: 6c65 5f73 7973 7465 6d64 2d6a 6f75 726e  le_systemd-journ
│ │ │ -000f2780: 616c 6420 7b0a 2020 7365 7276 6963 6520  ald {.  service 
│ │ │ -000f2790: 7b27 7379 7374 656d 642d 6a6f 7572 6e61  {'systemd-journa
│ │ │ -000f27a0: 6c64 273a 0a20 2020 2065 6e61 626c 6520  ld':.    enable 
│ │ │ -000f27b0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -000f27c0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -000f27d0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
Re │ │ │ -000f2890: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -000f28a0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ -000f2940: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -000f2950: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -000f29a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -000f29e0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -000f29f0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -000f2a00: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -000f2a10: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -000f2a20: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -000f2a30: 542d 3830 302d 3533 2d53 432d 3234 0a20  T-800-53-SC-24. 
│ │ │ -000f2a40: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -000f2a50: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -000f2a60: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -000f2a70: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -000f2a80: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -000f2a90: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -000f2aa0: 640a 2020 2d20 7365 7276 6963 655f 7379  d.  - service_sy
│ │ │ -000f2ab0: 7374 656d 642d 6a6f 7572 6e61 6c64 5f65  stemd-journald_e
│ │ │ -000f2ac0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -000f2ad0: 456e 6162 6c65 2073 7973 7465 6d64 2d6a  Enable systemd-j
│ │ │ -000f2ae0: 6f75 726e 616c 6420 5365 7276 6963 6520  ournald Service 
│ │ │ -000f2af0: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ -000f2b00: 2073 7973 7465 6d64 2d6a 6f75 726e 616c   systemd-journal
│ │ │ -000f2b10: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -000f2b20: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -000f2b30: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -000f2b40: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -000f2b50: 696e 2e70 6163 6b61 6765 5f66 6163 7473  in.package_facts
│ │ │ -000f2b60: 3a0a 2020 2020 2020 6d61 6e61 6765 723a  :.      manager:
│ │ │ -000f2b70: 2061 7574 6f0a 0a20 202d 206e 616d 653a   auto..  - name:
│ │ │ -000f2b80: 2045 6e61 626c 6520 7379 7374 656d 642d   Enable systemd-
│ │ │ -000f2b90: 6a6f 7572 6e61 6c64 2053 6572 7669 6365  journald Service
│ │ │ -000f2ba0: 202d 2045 6e61 626c 6520 5365 7276 6963   - Enable Servic
│ │ │ -000f2bb0: 6520 7379 7374 656d 642d 6a6f 7572 6e61  e systemd-journa
│ │ │ -000f2bc0: 6c64 0a20 2020 2061 6e73 6962 6c65 2e62  ld.    ansible.b
│ │ │ -000f2bd0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -000f2be0: 2020 2020 2020 6e61 6d65 3a20 7379 7374        name: syst
│ │ │ -000f2bf0: 656d 642d 6a6f 7572 6e61 6c64 0a20 2020  emd-journald.   
│ │ │ -000f2c00: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ -000f2c10: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -000f2c20: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ -000f2c30: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ -000f2c40: 656e 3a0a 2020 2020 2d20 2722 7379 7374  en:.    - '"syst
│ │ │ -000f2c50: 656d 6422 2069 6e20 616e 7369 626c 655f  emd" in ansible_
│ │ │ -000f2c60: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ -000f2c70: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -000f2c80: 2d38 3030 2d35 332d 5343 2d32 340a 2020  -800-53-SC-24.  
│ │ │ -000f2c90: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -000f2ca0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -000f2cb0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -000f2cc0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -000f2cd0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -000f2ce0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -000f2cf0: 0a20 202d 2073 6572 7669 6365 5f73 7973  .  - service_sys
│ │ │ -000f2d00: 7465 6d64 2d6a 6f75 726e 616c 645f 656e  temd-journald_en
│ │ │ -000f2d10: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -000f2d20: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -000f2d30: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -000f2d40: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -000f2d50: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +000f24a0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +000f24b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +000f24c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
C │ │ │ -000f2930: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -000f2960: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -000f2970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -000f29b0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -000f29c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +000f2590: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +000f25a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +000f25f0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +000f2600: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +000f2610: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +000f2620: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +000f2630: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +000f2640: 4e49 5354 2d38 3030 2d35 332d 5343 2d32  NIST-800-53-SC-2
│ │ │ +000f2650: 340a 2020 2d20 656e 6162 6c65 5f73 7472  4.  - enable_str
│ │ │ +000f2660: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +000f2670: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +000f2680: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +000f2690: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +000f26a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +000f26b0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +000f26c0: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000f26d0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ +000f26e0: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ +000f26f0: 642d 6a6f 7572 6e61 6c64 2053 6572 7669  d-journald Servi
│ │ │ +000f2700: 6365 202d 2045 6e61 626c 6520 7365 7276  ce - Enable serv
│ │ │ +000f2710: 6963 6520 7379 7374 656d 642d 6a6f 7572  ice systemd-jour
│ │ │ +000f2720: 6e61 6c64 0a20 2062 6c6f 636b 3a0a 0a20  nald.  block:.. 
│ │ │ +000f2730: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +000f2740: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +000f2750: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +000f2760: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +000f2770: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +000f2780: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +000f2790: 6d65 3a20 456e 6162 6c65 2073 7973 7465  me: Enable syste
│ │ │ +000f27a0: 6d64 2d6a 6f75 726e 616c 6420 5365 7276  md-journald Serv
│ │ │ +000f27b0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ +000f27c0: 7669 6365 2073 7973 7465 6d64 2d6a 6f75  vice systemd-jou
│ │ │ +000f27d0: 726e 616c 640a 2020 2020 616e 7369 626c  rnald.    ansibl
│ │ │ +000f27e0: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +000f27f0: 643a 0a20 2020 2020 206e 616d 653a 2073  d:.      name: s
│ │ │ +000f2800: 7973 7465 6d64 2d6a 6f75 726e 616c 640a  ystemd-journald.
│ │ │ +000f2810: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ +000f2820: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ +000f2830: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ +000f2840: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ +000f2850: 2077 6865 6e3a 0a20 2020 202d 2027 2273   when:.    - '"s
│ │ │ +000f2860: 7973 7465 6d64 2220 696e 2061 6e73 6962  ystemd" in ansib
│ │ │ +000f2870: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +000f2880: 7327 0a20 2074 6167 733a 0a20 202d 204e  s'.  tags:.  - N
│ │ │ +000f2890: 4953 542d 3830 302d 3533 2d53 432d 3234  IST-800-53-SC-24
│ │ │ +000f28a0: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +000f28b0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +000f28c0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +000f28d0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +000f28e0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +000f28f0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +000f2900: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +000f2910: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000f2920: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ +000f2930: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +000f2940: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +000f2950: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +000f2960: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +000f2970: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +000f2a30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +000f2a40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +000f2570: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +000f2580: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +000f25c0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +000f25d0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +000f2ac0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +000f2ae0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +000f2b30: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +000f2b60: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ +000f2b80: 5f73 7973 7465 6d64 2d6a 6f75 726e 616c  _systemd-journal
│ │ │ +000f2b90: 640a 0a63 6c61 7373 2065 6e61 626c 655f  d..class enable_
│ │ │ +000f2ba0: 7379 7374 656d 642d 6a6f 7572 6e61 6c64  systemd-journald
│ │ │ +000f2bb0: 207b 0a20 2073 6572 7669 6365 207b 2773   {.  service {'s
│ │ │ +000f2bc0: 7973 7465 6d64 2d6a 6f75 726e 616c 6427  ystemd-journald'
│ │ │ +000f2bd0: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +000f2be0: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +000f2bf0: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +000f2c00: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ +000f2cc0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +000f2cd0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +000f2ce0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +000f2d30: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +000f2d40: 5d0a 656e 6162 6c65 6420 3d20 5b22 7379  ].enabled = ["sy
│ │ │ +000f2d50: 7374 656d 642d 6a6f 7572 6e61 6c64 225d  stemd-journald"]
│ │ │  000f2d60: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -001007a0: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -001007b0: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -001007c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]]
│ │ │ -00100810: 0a6e 616d 6520 3d20 2272 7379 736c 6f67  .name = "rsyslog
│ │ │ -00100820: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -00100830: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001008e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -001008f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:< │ │ │ +000f2ad0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +000f2af0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +000f2b40: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +000f2b50: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -00100990: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -00100a30: 636c 7564 6520 696e 7374 616c 6c5f 7273  clude install_rs
│ │ │ -00100a40: 7973 6c6f 670a 0a63 6c61 7373 2069 6e73  yslog..class ins
│ │ │ -00100a50: 7461 6c6c 5f72 7379 736c 6f67 207b 0a20  tall_rsyslog {. 
│ │ │ -00100a60: 2070 6163 6b61 6765 207b 2027 7273 7973   package { 'rsys
│ │ │ -00100a70: 6c6f 6727 3a0a 2020 2020 656e 7375 7265  log':.    ensure
│ │ │ -00100a80: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -00100a90: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00100b50: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00100b60: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00100980: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -001009b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -001009c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00100a00: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -00100a10: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -00100c10: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00100c30: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00100c60: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00100bf0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00100c00: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00100c20: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00100c40: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00100c50: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -00100ca0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -00100cb0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -00100cc0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -00100cd0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -00100ce0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -00100cf0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -00100d00: 2065 6e61 626c 655f 7374 7261 7465 6779 enable_strategy │ │ │ -00100d10: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -00100d20: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -00100d30: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -00100d40: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -00100d50: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -00100d60: 2020 2d20 7061 636b 6167 655f 7273 7973 - package_rsys │ │ │ -00100d70: 6c6f 675f 696e 7374 616c 6c65 640a 0a2d log_installed..- │ │ │ -00100d80: 206e 616d 653a 2045 6e73 7572 6520 7273 name: Ensure rs │ │ │ -00100d90: 7973 6c6f 6720 6973 2069 6e73 7461 6c6c yslog is install │ │ │ -00100da0: 6564 0a20 2061 6e73 6962 6c65 2e62 7569 ed. ansible.bui │ │ │ -00100db0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ -00100dc0: 2020 6e61 6d65 3a20 7273 7973 6c6f 670a name: rsyslog. │ │ │ -00100dd0: 2020 2020 7374 6174 653a 2070 7265 7365 state: prese │ │ │ -00100de0: 6e74 0a20 2077 6865 6e3a 2027 226c 696e nt. when: '"lin │ │ │ -00100df0: 7578 2d62 6173 6522 2069 6e20 616e 7369 ux-base" in ansi │ │ │ -00100e00: 626c 655f 6661 6374 732e 7061 636b 6167 ble_facts.packag │ │ │ -00100e10: 6573 270a 2020 7461 6773 3a0a 2020 2d20 es'. tags:. - │ │ │ -00100e20: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ -00100e30: 2861 290a 2020 2d20 656e 6162 6c65 5f73 (a). - enable_s │ │ │ -00100e40: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00100e50: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00100e60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00100e70: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00100e80: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00100e90: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ -00100ea0: 6765 5f72 7379 736c 6f67 5f69 6e73 7461 ge_rsyslog_insta │ │ │ -00100eb0: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072 lled.
│ │ │ +00100830: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00100840: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00100850: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00100890: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +001008a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +001008c0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable

│ │ │ +001008e0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +001008f0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00100900: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00100910: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00100920: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00100930: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +00100940: 332d 434d 2d36 2861 290a 2020 2d20 656e  3-CM-6(a).  - en
│ │ │ +00100950: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00100960: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00100970: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00100980: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00100990: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +001009a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +001009b0: 2070 6163 6b61 6765 5f72 7379 736c 6f67   package_rsyslog
│ │ │ +001009c0: 5f69 6e73 7461 6c6c 6564 0a0a 2d20 6e61  _installed..- na
│ │ │ +001009d0: 6d65 3a20 456e 7375 7265 2072 7379 736c  me: Ensure rsysl
│ │ │ +001009e0: 6f67 2069 7320 696e 7374 616c 6c65 640a  og is installed.
│ │ │ +001009f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00100a00: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00100a10: 616d 653a 2072 7379 736c 6f67 0a20 2020  ame: rsyslog.   
│ │ │ +00100a20: 2073 7461 7465 3a20 7072 6573 656e 740a   state: present.
│ │ │ +00100a30: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00100a40: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00100a50: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00100a60: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00100a70: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00100a80: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +00100a90: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00100aa0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00100ab0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00100ac0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00100ad0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00100ae0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +00100af0: 7273 7973 6c6f 675f 696e 7374 616c 6c65  rsyslog_installe
│ │ │ +00100b00: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00100b10: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00100bc0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00100bd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00100ca0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00100cb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00100d00: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00100d10: 7273 7973 6c6f 670a 0a63 6c61 7373 2069  rsyslog..class i
│ │ │ +00100d20: 6e73 7461 6c6c 5f72 7379 736c 6f67 207b  nstall_rsyslog {
│ │ │ +00100d30: 0a20 2070 6163 6b61 6765 207b 2027 7273  .  package { 'rs
│ │ │ +00100d40: 7973 6c6f 6727 3a0a 2020 2020 656e 7375  yslog':.    ensu
│ │ │ +00100d50: 7265 203d 2667 743b 2027 696e 7374 616c  re => 'instal
│ │ │ +00100d60: 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  led',.  }.}.
< │ │ │ +00100d80: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00100d90: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00100da0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00100db0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00100dc0: 6433 3433 2220 7461 6269 6e64 6578 3d22 d343" tabindex=" │ │ │ +00100dd0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00100de0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00100df0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00100e00: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00100e10: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00100e20: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +00100e30: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +00100e40: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[[packa │ │ │ +00100e90: 6765 735d 5d0a 6e61 6d65 203d 2022 7273 ges]].name = "rs │ │ │ +00100ea0: 7973 6c6f 6722 0a76 6572 7369 6f6e 203d yslog".version = │ │ │ +00100eb0: 2022 2a22 0a3c 2f63 6f64 653e 3c2f 7072 "*".Remediati │ │ │ -00102130: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00102140: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00102150: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -001021a0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -001021b0: 6162 6c65 6420 3d20 5b22 7273 7973 6c6f  abled = ["rsyslo
│ │ │ -001021c0: 6722 5d0a 3c2f 636f 6465 3e3c 2f70 7265  g"].
Remediation │ │ │ -00102280: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00102290: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +00100c80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00100c90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00100cd0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00100ce0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -00102310: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00102330: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -00102380: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -001023b0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include enable
│ │ │ -001023d0: 5f72 7379 736c 6f67 0a0a 636c 6173 7320  _rsyslog..class 
│ │ │ -001023e0: 656e 6162 6c65 5f72 7379 736c 6f67 207b  enable_rsyslog {
│ │ │ -001023f0: 0a20 2073 6572 7669 6365 207b 2772 7379  .  service {'rsy
│ │ │ -00102400: 736c 6f67 273a 0a20 2020 2065 6e61 626c  slog':.    enabl
│ │ │ -00102410: 6520 3d26 6774 3b20 7472 7565 2c0a 2020  e => true,.  
│ │ │ -00102420: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ -00102430: 7275 6e6e 696e 6727 2c0a 2020 7d0a 7d0a  running',.  }.}.
│ │ │ -00102440: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -001024f0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00102500: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00102510: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:< │ │ │ -00102320: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00102340: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -00102390: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -001023a0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -001025e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001025f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00102640: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00102650: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00102660: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00102670: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00102680: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00102690: 4953 542d 3830 302d 3533 2d41 552d 3428  IST-800-53-AU-4(
│ │ │ -001026a0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -001026b0: 3533 2d43 4d2d 3628 6129 0a20 202d 2065  53-CM-6(a).  - e
│ │ │ -001026c0: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -001026d0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -001026e0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -001026f0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -00102700: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -00102710: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -00102720: 2d20 7365 7276 6963 655f 7273 7973 6c6f  - service_rsyslo
│ │ │ -00102730: 675f 656e 6162 6c65 640a 0a2d 206e 616d  g_enabled..- nam
│ │ │ -00102740: 653a 2045 6e61 626c 6520 7273 7973 6c6f  e: Enable rsyslo
│ │ │ -00102750: 6720 5365 7276 6963 6520 2d20 456e 6162  g Service - Enab
│ │ │ -00102760: 6c65 2073 6572 7669 6365 2072 7379 736c  le service rsysl
│ │ │ -00102770: 6f67 0a20 2062 6c6f 636b 3a0a 0a20 202d  og.  block:..  -
│ │ │ -00102780: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00102790: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -001027a0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -001027b0: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -001027c0: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -001027d0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -001027e0: 3a20 456e 6162 6c65 2072 7379 736c 6f67  : Enable rsyslog
│ │ │ -001027f0: 2053 6572 7669 6365 202d 2045 6e61 626c   Service - Enabl
│ │ │ -00102800: 6520 5365 7276 6963 6520 7273 7973 6c6f  e Service rsyslo
│ │ │ -00102810: 670a 2020 2020 616e 7369 626c 652e 6275  g.    ansible.bu
│ │ │ -00102820: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00102830: 2020 2020 206e 616d 653a 2072 7379 736c       name: rsysl
│ │ │ -00102840: 6f67 0a20 2020 2020 2065 6e61 626c 6564  og.      enabled
│ │ │ -00102850: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -00102860: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -00102870: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -00102880: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -00102890: 2722 7273 7973 6c6f 6722 2069 6e20 616e  '"rsyslog" in an
│ │ │ -001028a0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -001028b0: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -001028c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -001028d0: 2d34 2831 290a 2020 2d20 4e49 5354 2d38  -4(1).  - NIST-8
│ │ │ -001028e0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -001028f0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -00102900: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -00102910: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -00102920: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -00102930: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -00102940: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00102950: 0a20 202d 2073 6572 7669 6365 5f72 7379  .  - service_rsy
│ │ │ -00102960: 736c 6f67 5f65 6e61 626c 6564 0a20 202d  slog_enabled.  -
│ │ │ -00102970: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -00102980: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027  _block.  when: '
│ │ │ -00102990: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -001029a0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -001029b0: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00102130: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070  on Ansible snipp
│ │ │ +00102140: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
│ │ │ +001021c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +00102250: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ -001025c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001025d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00102610: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00102620: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +001021d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +001021e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00102220: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00102230: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +00102270: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00102280: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00102290: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +001022a0: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +001022b0: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +001022c0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +001022d0: 332d 4155 2d34 2831 290a 2020 2d20 4e49  3-AU-4(1).  - NI
│ │ │ +001022e0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +001022f0: 290a 2020 2d20 656e 6162 6c65 5f73 7472  ).  - enable_str
│ │ │ +00102300: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00102310: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00102320: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00102330: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00102340: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00102350: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00102360: 5f72 7379 736c 6f67 5f65 6e61 626c 6564  _rsyslog_enabled
│ │ │ +00102370: 0a0a 2d20 6e61 6d65 3a20 456e 6162 6c65  ..- name: Enable
│ │ │ +00102380: 2072 7379 736c 6f67 2053 6572 7669 6365   rsyslog Service
│ │ │ +00102390: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ +001023a0: 6520 7273 7973 6c6f 670a 2020 626c 6f63  e rsyslog.  bloc
│ │ │ +001023b0: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ +001023c0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +001023d0: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ +001023e0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ +001023f0: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ +00102400: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ +00102410: 202d 206e 616d 653a 2045 6e61 626c 6520   - name: Enable 
│ │ │ +00102420: 7273 7973 6c6f 6720 5365 7276 6963 6520  rsyslog Service 
│ │ │ +00102430: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ +00102440: 2072 7379 736c 6f67 0a20 2020 2061 6e73   rsyslog.    ans
│ │ │ +00102450: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00102460: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00102470: 3a20 7273 7973 6c6f 670a 2020 2020 2020  : rsyslog.      
│ │ │ +00102480: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +00102490: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +001024a0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +001024b0: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +001024c0: 0a20 2020 202d 2027 2272 7379 736c 6f67  .    - '"rsyslog
│ │ │ +001024d0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +001024e0: 7473 2e70 6163 6b61 6765 7327 0a20 2074  ts.packages'.  t
│ │ │ +001024f0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ +00102500: 302d 3533 2d41 552d 3428 3129 0a20 202d  0-53-AU-4(1).  -
│ │ │ +00102510: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ +00102520: 3628 6129 0a20 202d 2065 6e61 626c 655f  6(a).  - enable_
│ │ │ +00102530: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00102540: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00102550: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00102560: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +00102570: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00102580: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +00102590: 6963 655f 7273 7973 6c6f 675f 656e 6162  ice_rsyslog_enab
│ │ │ +001025a0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +001025b0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +001025c0: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +001025d0: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +001025e0: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +001025f0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ +001026a0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +001026b0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +00102750: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00102760: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +001027b0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +001027f0: 6c75 6465 2065 6e61 626c 655f 7273 7973  lude enable_rsys
│ │ │ +00102800: 6c6f 670a 0a63 6c61 7373 2065 6e61 626c  log..class enabl
│ │ │ +00102810: 655f 7273 7973 6c6f 6720 7b0a 2020 7365  e_rsyslog {.  se
│ │ │ +00102820: 7276 6963 6520 7b27 7273 7973 6c6f 6727  rvice {'rsyslog'
│ │ │ +00102830: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +00102840: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ +00102850: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ +00102860: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Remed │ │ │ +00102920: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +00102930: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +00102940: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[customi
│ │ │ +00102990: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +001029a0: 5d0a 656e 6162 6c65 6420 3d20 5b22 7273  ].enabled = ["rs
│ │ │ +001029b0: 7973 6c6f 6722 5d0a 3c2f 636f 6465 3e3c  yslog"].<
│ │ │  001029c0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remed │ │ │ -0010c250: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ -0010c260: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ -0010c270: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packag
│ │ │ -0010c2c0: 6573 5d5d 0a6e 616d 6520 3d20 2269 7074  es]].name = "ipt
│ │ │ -0010c2d0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -0010c2e0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -0010c2f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0010c3a0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0010c3b0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +00102740: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00102770: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00102780: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +001027c0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +001027d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -0010c450: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0010c4f0: 636c 7564 6520 696e 7374 616c 6c5f 6970  clude install_ip
│ │ │ -0010c500: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ -0010c510: 740a 0a63 6c61 7373 2069 6e73 7461 6c6c  t..class install
│ │ │ -0010c520: 5f69 7074 6162 6c65 732d 7065 7273 6973  _iptables-persis
│ │ │ -0010c530: 7465 6e74 207b 0a20 2070 6163 6b61 6765  tent {.  package
│ │ │ -0010c540: 207b 2027 6970 7461 626c 6573 2d70 6572   { 'iptables-per
│ │ │ -0010c550: 7369 7374 656e 7427 3a0a 2020 2020 656e  sistent':.    en
│ │ │ -0010c560: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ -0010c570: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
Re │ │ │ -0010c630: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -0010c640: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -0010c440: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0010c470: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0010c480: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0010c4c0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0010c4d0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0010c6e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0010c6f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0010c740: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ -0010c780: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -0010c790: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -0010c7a0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -0010c7b0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -0010c7c0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -0010c7d0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -0010c7e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -0010c7f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -0010c800: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -0010c810: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -0010c820: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -0010c830: 7061 636b 6167 655f 6970 7461 626c 6573  package_iptables
│ │ │ -0010c840: 2d70 6572 7369 7374 656e 745f 696e 7374  -persistent_inst
│ │ │ -0010c850: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ -0010c860: 6e73 7572 6520 6970 7461 626c 6573 2d70  nsure iptables-p
│ │ │ -0010c870: 6572 7369 7374 656e 7420 6973 2069 6e73  ersistent is ins
│ │ │ -0010c880: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ -0010c890: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -0010c8a0: 3a0a 2020 2020 6e61 6d65 3a20 6970 7461  :.    name: ipta
│ │ │ -0010c8b0: 626c 6573 2d70 6572 7369 7374 656e 740a  bles-persistent.
│ │ │ -0010c8c0: 2020 2020 7374 6174 653a 2070 7265 7365      state: prese
│ │ │ -0010c8d0: 6e74 0a20 2077 6865 6e3a 2027 2269 7074  nt.  when: '"ipt
│ │ │ -0010c8e0: 6162 6c65 7322 2069 6e20 616e 7369 626c  ables" in ansibl
│ │ │ -0010c8f0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0010c900: 270a 2020 7461 6773 3a0a 2020 2d20 656e  '.  tags:.  - en
│ │ │ -0010c910: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0010c920: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0010c930: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0010c940: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0010c950: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0010c960: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0010c970: 2070 6163 6b61 6765 5f69 7074 6162 6c65   package_iptable
│ │ │ -0010c980: 732d 7065 7273 6973 7465 6e74 5f69 6e73  s-persistent_ins
│ │ │ -0010c990: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f  talled.
C │ │ │ -0010c6d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0010c700: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0010c710: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0010c750: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -0010c760: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Comp │ │ │ +0010c2f0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0010c300: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0010c320: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0010c340: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0010c350: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +0010c390: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0010c3a0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0010c3b0: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0010c3c0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0010c3d0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0010c3e0: 7461 6773 3a0a 2020 2d20 656e 6162 6c65 tags:. - enable │ │ │ +0010c3f0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0010c400: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0010c410: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0010c420: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0010c430: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0010c440: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0010c450: 6b61 6765 5f69 7074 6162 6c65 732d 7065 kage_iptables-pe │ │ │ +0010c460: 7273 6973 7465 6e74 5f69 6e73 7461 6c6c rsistent_install │ │ │ +0010c470: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375 ed..- name: Ensu │ │ │ +0010c480: 7265 2069 7074 6162 6c65 732d 7065 7273 re iptables-pers │ │ │ +0010c490: 6973 7465 6e74 2069 7320 696e 7374 616c istent is instal │ │ │ +0010c4a0: 6c65 640a 2020 616e 7369 626c 652e 6275 led. ansible.bu │ │ │ +0010c4b0: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ +0010c4c0: 2020 206e 616d 653a 2069 7074 6162 6c65 name: iptable │ │ │ +0010c4d0: 732d 7065 7273 6973 7465 6e74 0a20 2020 s-persistent. │ │ │ +0010c4e0: 2073 7461 7465 3a20 7072 6573 656e 740a state: present. │ │ │ +0010c4f0: 2020 7768 656e 3a20 2722 6970 7461 626c when: '"iptabl │ │ │ +0010c500: 6573 2220 696e 2061 6e73 6962 6c65 5f66 es" in ansible_f │ │ │ +0010c510: 6163 7473 2e70 6163 6b61 6765 7327 0a20 acts.packages'. │ │ │ +0010c520: 2074 6167 733a 0a20 202d 2065 6e61 626c tags:. - enabl │ │ │ +0010c530: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ +0010c540: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ +0010c550: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ +0010c560: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ +0010c570: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ +0010c580: 6f74 5f6e 6565 6465 640a 2020 2d20 7061 ot_needed. - pa │ │ │ +0010c590: 636b 6167 655f 6970 7461 626c 6573 2d70 ckage_iptables-p │ │ │ +0010c5a0: 6572 7369 7374 656e 745f 696e 7374 616c ersistent_instal │ │ │ +0010c5b0: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
Remediation │ │ │ +0010c670: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0010c680: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +0010c700: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0010c720: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0010c770: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0010c7a0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +0010c7c0: 6c5f 6970 7461 626c 6573 2d70 6572 7369  l_iptables-persi
│ │ │ +0010c7d0: 7374 656e 740a 0a63 6c61 7373 2069 6e73  stent..class ins
│ │ │ +0010c7e0: 7461 6c6c 5f69 7074 6162 6c65 732d 7065  tall_iptables-pe
│ │ │ +0010c7f0: 7273 6973 7465 6e74 207b 0a20 2070 6163  rsistent {.  pac
│ │ │ +0010c800: 6b61 6765 207b 2027 6970 7461 626c 6573  kage { 'iptables
│ │ │ +0010c810: 2d70 6572 7369 7374 656e 7427 3a0a 2020  -persistent':.  
│ │ │ +0010c820: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +0010c830: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a  installed',.  }.
│ │ │ +0010c840: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +0010c850: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation OS │ │ │ +0010c900: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0010c910: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0010c920: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.[
│ │ │ +0010c960: 5b70 6163 6b61 6765 735d 5d0a 6e61 6d65  [packages]].name
│ │ │ +0010c970: 203d 2022 6970 7461 626c 6573 2d70 6572   = "iptables-per
│ │ │ +0010c980: 7369 7374 656e 7422 0a76 6572 7369 6f6e  sistent".version
│ │ │ +0010c990: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".
Remediation O │ │ │ -0010d6c0: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0010d6d0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0010d6e0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -0010d720: 5b5b 7061 636b 6167 6573 5d5d 0a6e 616d  [[packages]].nam
│ │ │ -0010d730: 6520 3d20 2269 7074 6162 6c65 7322 0a76  e = "iptables".v
│ │ │ -0010d740: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ -0010d760: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0010d800: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0010d810: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0010d820: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:< │ │ │ +0010c710: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0010c730: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0010c780: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0010c790: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Com │ │ │ -0010d8a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0010d8d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0010d8f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0010d900: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0010d920: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0010d940: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0010d950: 6465 2069 6e73 7461 6c6c 5f69 7074 6162  de install_iptab
│ │ │ -0010d960: 6c65 730a 0a63 6c61 7373 2069 6e73 7461  les..class insta
│ │ │ -0010d970: 6c6c 5f69 7074 6162 6c65 7320 7b0a 2020  ll_iptables {.  
│ │ │ -0010d980: 7061 636b 6167 6520 7b20 2769 7074 6162  package { 'iptab
│ │ │ -0010d990: 6c65 7327 3a0a 2020 2020 656e 7375 7265  les':.    ensure
│ │ │ -0010d9a0: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ -0010d9b0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -0010da70: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0010da80: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0010db30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0010db50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0010db80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0010db10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0010db20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0010db40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0010db60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0010db70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

- name: │ │ │ -0010dbc0: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ -0010dbd0: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ -0010dbe0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ -0010dbf0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ -0010dc00: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -0010dc10: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -0010dc20: 2050 4349 2d44 5353 2d52 6571 2d31 2e34 PCI-DSS-Req-1.4 │ │ │ -0010dc30: 2e31 0a20 202d 2065 6e61 626c 655f 7374 .1. - enable_st │ │ │ -0010dc40: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -0010dc50: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -0010dc60: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -0010dc70: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -0010dc80: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -0010dc90: 6565 6465 640a 2020 2d20 7061 636b 6167 eeded. - packag │ │ │ -0010dca0: 655f 6970 7461 626c 6573 5f69 6e73 7461 e_iptables_insta │ │ │ -0010dcb0: 6c6c 6564 0a0a 2d20 6e61 6d65 3a20 456e lled..- name: En │ │ │ -0010dcc0: 7375 7265 2069 7074 6162 6c65 7320 6973 sure iptables is │ │ │ -0010dcd0: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73 installed. ans │ │ │ -0010dce0: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -0010dcf0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -0010dd00: 6970 7461 626c 6573 0a20 2020 2073 7461 iptables. sta │ │ │ -0010dd10: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ -0010dd20: 656e 3a20 2820 226c 696e 7578 2d62 6173 en: ( "linux-bas │ │ │ -0010dd30: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -0010dd40: 6374 732e 7061 636b 6167 6573 2029 0a20 cts.packages ). │ │ │ -0010dd50: 2074 6167 733a 0a20 202d 204e 4953 542d tags:. - NIST- │ │ │ -0010dd60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20 800-53-CM-6(a). │ │ │ -0010dd70: 202d 2050 4349 2d44 5353 2d52 6571 2d31 - PCI-DSS-Req-1 │ │ │ -0010dd80: 2e34 2e31 0a20 202d 2065 6e61 626c 655f .4.1. - enable_ │ │ │ -0010dd90: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -0010dda0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -0010ddb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -0010ddc0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ -0010ddd0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ -0010dde0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ -0010ddf0: 6167 655f 6970 7461 626c 6573 5f69 6e73 age_iptables_ins │ │ │ -0010de00: 7461 6c6c 6564 0a3c 2f63 6f64 653e 3c2f talled.Remediation A │ │ │ +0010d6c0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +0010d6d0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..

│ │ │ +0010d750: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +0010d770: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +0010d7c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +0010d7f0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ +0010d810: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0010d820: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ +0010d830: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ +0010d840: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ +0010d850: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0010d860: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0010d870: 532d 5265 712d 312e 342e 310a 2020 2d20  S-Req-1.4.1.  - 
│ │ │ +0010d880: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +0010d890: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0010d8a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0010d8b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +0010d8c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0010d8d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0010d8e0: 202d 2070 6163 6b61 6765 5f69 7074 6162   - package_iptab
│ │ │ +0010d8f0: 6c65 735f 696e 7374 616c 6c65 640a 0a2d  les_installed..-
│ │ │ +0010d900: 206e 616d 653a 2045 6e73 7572 6520 6970   name: Ensure ip
│ │ │ +0010d910: 7461 626c 6573 2069 7320 696e 7374 616c  tables is instal
│ │ │ +0010d920: 6c65 640a 2020 616e 7369 626c 652e 6275  led.  ansible.bu
│ │ │ +0010d930: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0010d940: 2020 206e 616d 653a 2069 7074 6162 6c65     name: iptable
│ │ │ +0010d950: 730a 2020 2020 7374 6174 653a 2070 7265  s.    state: pre
│ │ │ +0010d960: 7365 6e74 0a20 2077 6865 6e3a 2028 2022  sent.  when: ( "
│ │ │ +0010d970: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +0010d980: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +0010d990: 6b61 6765 7320 290a 2020 7461 6773 3a0a  kages ).  tags:.
│ │ │ +0010d9a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +0010d9b0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +0010d9c0: 4453 532d 5265 712d 312e 342e 310a 2020  DSS-Req-1.4.1.  
│ │ │ +0010d9d0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ +0010d9e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +0010d9f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +0010da00: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +0010da10: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +0010da20: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +0010da30: 0a20 202d 2070 6163 6b61 6765 5f69 7074  .  - package_ipt
│ │ │ +0010da40: 6162 6c65 735f 696e 7374 616c 6c65 640a  ables_installed.
│ │ │ +0010da50: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +0010db00: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0010db10: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:< │ │ │ +0010d760: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +0010d780: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +0010d7d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +0010d7e0: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ +0010dbb0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0010dc50: 636c 7564 6520 696e 7374 616c 6c5f 6970  clude install_ip
│ │ │ +0010dc60: 7461 626c 6573 0a0a 636c 6173 7320 696e  tables..class in
│ │ │ +0010dc70: 7374 616c 6c5f 6970 7461 626c 6573 207b  stall_iptables {
│ │ │ +0010dc80: 0a20 2070 6163 6b61 6765 207b 2027 6970  .  package { 'ip
│ │ │ +0010dc90: 7461 626c 6573 273a 0a20 2020 2065 6e73  tables':.    ens
│ │ │ +0010dca0: 7572 6520 3d26 6774 3b20 2769 6e73 7461  ure => 'insta
│ │ │ +0010dcb0: 6c6c 6564 272c 0a20 207d 0a7d 0a3c 2f63  lled',.  }.}.
│ │ │ +0010dcd0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +0010dd70: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +0010dd80: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +0010dd90: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[[pack │ │ │ +0010dde0: 6167 6573 5d5d 0a6e 616d 6520 3d20 2269 ages]].name = "i │ │ │ +0010ddf0: 7074 6162 6c65 7322 0a76 6572 7369 6f6e ptables".version │ │ │ +0010de00: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f = "*".Remedia │ │ │ -0010ea20: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -0010ea30: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0010ea40: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0010ea50: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0010ea60: 7365 2220 6964 3d22 6964 3337 3322 3e3c se" id="id373">< │ │ │ -0010ea70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -0010ea80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -0010ea90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -0010eaa0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -0010eab0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >

Disruption:Strategy: │ │ │ -0010eb40: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -0010eb50: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
│ │ │ +0010dba0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0010dbd0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0010dbe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0010dc20: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0010dc30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -0010eac0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -0010ead0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -0010eb10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -0010eb20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
.include │ │ │ -0010eb70: 2072 656d 6f76 655f 6970 7461 626c 6573 remove_iptables │ │ │ -0010eb80: 2d70 6572 7369 7374 656e 740a 0a63 6c61 -persistent..cla │ │ │ -0010eb90: 7373 2072 656d 6f76 655f 6970 7461 626c ss remove_iptabl │ │ │ -0010eba0: 6573 2d70 6572 7369 7374 656e 7420 7b0a es-persistent {. │ │ │ -0010ebb0: 2020 7061 636b 6167 6520 7b20 2769 7074 package { 'ipt │ │ │ -0010ebc0: 6162 6c65 732d 7065 7273 6973 7465 6e74 ables-persistent │ │ │ -0010ebd0: 273a 0a20 2020 2065 6e73 7572 6520 3d26 ':. ensure =& │ │ │ -0010ebe0: 6774 3b20 2770 7572 6765 6427 2c0a 2020 gt; 'purged',. │ │ │ -0010ebf0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.
Remediation │ │ │ -0010ecb0: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -0010ecc0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -0010ed50: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0010ed70: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0010ed90: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0010edc0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0010edd0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -0010ee00: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0010ee10: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0010ee20: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0010ee30: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0010ee40: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0010ee50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0010ee60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0010ee70: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0010ee80: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0010ee90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0010eea0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0010eeb0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ -0010eec0: 656e 745f 7265 6d6f 7665 640a 0a2d 206e  ent_removed..- n
│ │ │ -0010eed0: 616d 653a 2027 5265 6d6f 7665 2069 7074  ame: 'Remove ipt
│ │ │ -0010eee0: 6162 6c65 732d 7065 7273 6973 7465 6e74  ables-persistent
│ │ │ -0010eef0: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -0010ef00: 2069 7074 6162 6c65 732d 7065 7273 6973   iptables-persis
│ │ │ -0010ef10: 7465 6e74 2069 7320 7265 6d6f 7665 6427  tent is removed'
│ │ │ -0010ef20: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0010ef30: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0010ef40: 6e61 6d65 3a20 6970 7461 626c 6573 2d70  name: iptables-p
│ │ │ -0010ef50: 6572 7369 7374 656e 740a 2020 2020 7374  ersistent.    st
│ │ │ -0010ef60: 6174 653a 2061 6273 656e 740a 2020 7768  ate: absent.  wh
│ │ │ -0010ef70: 656e 3a20 2722 7566 7722 2069 6e20 616e  en: '"ufw" in an
│ │ │ -0010ef80: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -0010ef90: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -0010efa0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0010efb0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0010efc0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0010efd0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -0010efe0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -0010eff0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -0010f000: 640a 2020 2d20 7061 636b 6167 655f 6970  d.  - package_ip
│ │ │ -0010f010: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ -0010f020: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
│ │ │ +0010ea40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0010ea70: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0010eae0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0010eb00: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0010eb30: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0010eac0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0010ead0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0010eb10: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0010eb20: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0010eb70: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0010eb80: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0010eb90: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0010eba0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0010ebb0: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ +0010ebc0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0010ebd0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0010ebe0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0010ebf0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0010ec00: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0010ec10: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +0010ec20: 6b61 6765 5f69 7074 6162 6c65 732d 7065 kage_iptables-pe │ │ │ +0010ec30: 7273 6973 7465 6e74 5f72 656d 6f76 6564 rsistent_removed │ │ │ +0010ec40: 0a0a 2d20 6e61 6d65 3a20 2752 656d 6f76 ..- name: 'Remov │ │ │ +0010ec50: 6520 6970 7461 626c 6573 2d70 6572 7369 e iptables-persi │ │ │ +0010ec60: 7374 656e 7420 5061 636b 6167 653a 2045 stent Package: E │ │ │ +0010ec70: 6e73 7572 6520 6970 7461 626c 6573 2d70 nsure iptables-p │ │ │ +0010ec80: 6572 7369 7374 656e 7420 6973 2072 656d ersistent is rem │ │ │ +0010ec90: 6f76 6564 270a 2020 616e 7369 626c 652e oved'. ansible. │ │ │ +0010eca0: 6275 696c 7469 6e2e 7061 636b 6167 653a builtin.package: │ │ │ +0010ecb0: 0a20 2020 206e 616d 653a 2069 7074 6162 . name: iptab │ │ │ +0010ecc0: 6c65 732d 7065 7273 6973 7465 6e74 0a20 les-persistent. │ │ │ +0010ecd0: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ +0010ece0: 0a20 2077 6865 6e3a 2027 2275 6677 2220 . when: '"ufw" │ │ │ +0010ecf0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0010ed00: 2e70 6163 6b61 6765 7327 0a20 2074 6167 .packages'. tag │ │ │ +0010ed10: 733a 0a20 202d 2064 6973 6162 6c65 5f73 s:. - disable_s │ │ │ +0010ed20: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +0010ed30: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +0010ed40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +0010ed50: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +0010ed60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +0010ed70: 6e65 6564 6564 0a20 202d 2070 6163 6b61 needed. - packa │ │ │ +0010ed80: 6765 5f69 7074 6162 6c65 732d 7065 7273 ge_iptables-pers │ │ │ +0010ed90: 6973 7465 6e74 5f72 656d 6f76 6564 0a3c istent_removed.< │ │ │ +0010eda0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>

R │ │ │ +0010ee50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0010ee60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ +0010ef00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0010ef10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0010ef60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +0010efa0: 6e63 6c75 6465 2072 656d 6f76 655f 6970  nclude remove_ip
│ │ │ +0010efb0: 7461 626c 6573 2d70 6572 7369 7374 656e  tables-persisten
│ │ │ +0010efc0: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ +0010efd0: 6970 7461 626c 6573 2d70 6572 7369 7374  iptables-persist
│ │ │ +0010efe0: 656e 7420 7b0a 2020 7061 636b 6167 6520  ent {.  package 
│ │ │ +0010eff0: 7b20 2769 7074 6162 6c65 732d 7065 7273  { 'iptables-pers
│ │ │ +0010f000: 6973 7465 6e74 273a 0a20 2020 2065 6e73  istent':.    ens
│ │ │ +0010f010: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +0010f020: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Re │ │ │ -0015a570: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -0015a580: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -0015a590: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -0015a5a0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -0015a5b0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -0015a5c0: 7365 2220 6964 3d22 6964 3434 3622 3e3c se" id="id446">< │ │ │ -0015a5d0: 7072 653e 3c63 6f64 653e 0a5b 5b70 6163 pre>.[[pac │ │ │ -0015a5e0: 6b61 6765 735d 5d0a 6e61 6d65 203d 2022 kages]].name = " │ │ │ -0015a5f0: 6e66 7461 626c 6573 220a 7665 7273 696f nftables".versio │ │ │ -0015a600: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c n = "*".< │ │ │ -0015a610: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remediat │ │ │ -0015a6c0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -0015a6d0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -0015a750: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -0015a7e0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
C │ │ │ +0010eef0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0010ef20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0010ef30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0010ef70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0010ef80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexi │ │ │ -0015a760: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0015a770: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -0015a7b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0015a7c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ -0015a800: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ -0015a810: 7374 616c 6c5f 6e66 7461 626c 6573 0a0a  stall_nftables..
│ │ │ -0015a820: 636c 6173 7320 696e 7374 616c 6c5f 6e66  class install_nf
│ │ │ -0015a830: 7461 626c 6573 207b 0a20 2070 6163 6b61  tables {.  packa
│ │ │ -0015a840: 6765 207b 2027 6e66 7461 626c 6573 273a  ge { 'nftables':
│ │ │ -0015a850: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0015a860: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ -0015a870: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0015a930: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0015a940: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0015a9d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0015a9f0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0015aa00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0015aa10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0015aa20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0015aa40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ -0015aa80: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0015aa90: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0015aaa0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0015aab0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0015aac0: 2020 2d20 5043 492d 4453 5376 342d 312e    - PCI-DSSv4-1.
│ │ │ -0015aad0: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ -0015aae0: 312e 322e 310a 2020 2d20 656e 6162 6c65  1.2.1.  - enable
│ │ │ -0015aaf0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0015ab00: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0015ab10: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0015ab20: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0015ab30: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0015ab40: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ -0015ab50: 6b61 6765 5f6e 6674 6162 6c65 735f 696e  kage_nftables_in
│ │ │ -0015ab60: 7374 616c 6c65 640a 0a2d 206e 616d 653a  stalled..- name:
│ │ │ -0015ab70: 2045 6e73 7572 6520 6e66 7461 626c 6573   Ensure nftables
│ │ │ -0015ab80: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -0015ab90: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0015aba0: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0015abb0: 653a 206e 6674 6162 6c65 730a 2020 2020  e: nftables.    
│ │ │ -0015abc0: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ -0015abd0: 2077 6865 6e3a 2028 2022 6c69 6e75 782d   when: ( "linux-
│ │ │ -0015abe0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -0015abf0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ -0015ac00: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ -0015ac10: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ -0015ac20: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ -0015ac30: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ -0015ac40: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0015ac50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0015ac60: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0015ac70: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0015ac80: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0015ac90: 6564 0a20 202d 2070 6163 6b61 6765 5f6e  ed.  - package_n
│ │ │ -0015aca0: 6674 6162 6c65 735f 696e 7374 616c 6c65  ftables_installe
│ │ │ -0015acb0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0015a570: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0015a580: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
< │ │ │ +0015a620: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0015a630: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0015a680: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +0015a6c0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0015a6d0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0015a6e0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0015a6f0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +0015a700: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ +0015a710: 2d44 5353 7634 2d31 2e32 0a20 202d 2050  -DSSv4-1.2.  - P
│ │ │ +0015a720: 4349 2d44 5353 7634 2d31 2e32 2e31 0a20  CI-DSSv4-1.2.1. 
│ │ │ +0015a730: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +0015a740: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0015a750: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0015a760: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0015a770: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0015a780: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0015a790: 640a 2020 2d20 7061 636b 6167 655f 6e66  d.  - package_nf
│ │ │ +0015a7a0: 7461 626c 6573 5f69 6e73 7461 6c6c 6564  tables_installed
│ │ │ +0015a7b0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ +0015a7c0: 206e 6674 6162 6c65 7320 6973 2069 6e73   nftables is ins
│ │ │ +0015a7d0: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +0015a7e0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +0015a7f0: 3a0a 2020 2020 6e61 6d65 3a20 6e66 7461  :.    name: nfta
│ │ │ +0015a800: 626c 6573 0a20 2020 2073 7461 7465 3a20  bles.    state: 
│ │ │ +0015a810: 7072 6573 656e 740a 2020 7768 656e 3a20  present.  when: 
│ │ │ +0015a820: 2820 226c 696e 7578 2d62 6173 6522 2069  ( "linux-base" i
│ │ │ +0015a830: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0015a840: 7061 636b 6167 6573 2029 0a20 2074 6167  packages ).  tag
│ │ │ +0015a850: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ +0015a860: 2d31 2e32 0a20 202d 2050 4349 2d44 5353  -1.2.  - PCI-DSS
│ │ │ +0015a870: 7634 2d31 2e32 2e31 0a20 202d 2065 6e61  v4-1.2.1.  - ena
│ │ │ +0015a880: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +0015a890: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +0015a8a0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +0015a8b0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +0015a8c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +0015a8d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +0015a8e0: 7061 636b 6167 655f 6e66 7461 626c 6573  package_nftables
│ │ │ +0015a8f0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
Remed │ │ │ +0015a9b0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0015a9c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ +0015a610: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0015a640: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0015a650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0015a690: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +0015a6a0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ +0015aa70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0015aa90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0015aac0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0015aa50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0015aa60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0015aa80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0015aaa0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0015aab0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0015ab00: 2069 6e73 7461 6c6c 5f6e 6674 6162 6c65 install_nftable │ │ │ +0015ab10: 730a 0a63 6c61 7373 2069 6e73 7461 6c6c s..class install │ │ │ +0015ab20: 5f6e 6674 6162 6c65 7320 7b0a 2020 7061 _nftables {. pa │ │ │ +0015ab30: 636b 6167 6520 7b20 276e 6674 6162 6c65 ckage { 'nftable │ │ │ +0015ab40: 7327 3a0a 2020 2020 656e 7375 7265 203d s':. ensure = │ │ │ +0015ab50: 2667 743b 2027 696e 7374 616c 6c65 6427 > 'installed' │ │ │ +0015ab60: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ +0015ab70: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>

Remediat │ │ │ +0015ac20: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0015ac30: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0015ac40: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[[packages]
│ │ │ +0015ac90: 5d0a 6e61 6d65 203d 2022 6e66 7461 626c  ].name = "nftabl
│ │ │ +0015aca0: 6573 220a 7665 7273 696f 6e20 3d20 222a  es".version = "*
│ │ │ +0015acb0: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ 0015acc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0015b940: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -0015b950: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customization
│ │ │ -0015b9b0: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ -0015b9c0: 6c65 6420 3d20 5b22 6e66 7461 626c 6573  led = ["nftables
│ │ │ -0015b9d0: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0015b9e0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -0015ba90: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -0015baa0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -0015bb20: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0015bb40: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0015bb90: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -0015bbe0: 6e66 7461 626c 6573 0a0a 636c 6173 7320  nftables..class 
│ │ │ -0015bbf0: 656e 6162 6c65 5f6e 6674 6162 6c65 7320  enable_nftables 
│ │ │ -0015bc00: 7b0a 2020 7365 7276 6963 6520 7b27 6e66  {.  service {'nf
│ │ │ -0015bc10: 7461 626c 6573 273a 0a20 2020 2065 6e61  tables':.    ena
│ │ │ -0015bc20: 626c 6520 3d26 6774 3b20 7472 7565 2c0a  ble => true,.
│ │ │ -0015bc30: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0015bc40: 2027 7275 6e6e 696e 6727 2c0a 2020 7d0a   'running',.  }.
│ │ │ -0015bc50: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0015bc60: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0015bd10: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0015bd20: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -0015bb50: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0015bb60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0015bba0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0015bbb0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -0015bda0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0015bdc0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0015be10: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -0015be60: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0015be70: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0015be80: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0015be90: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0015bea0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0015beb0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0015bec0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0015bed0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0015bee0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0015bef0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0015bf00: 2020 2d20 7365 7276 6963 655f 6e66 7461    - service_nfta
│ │ │ -0015bf10: 626c 6573 5f65 6e61 626c 6564 0a0a 2d20  bles_enabled..- 
│ │ │ -0015bf20: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ -0015bf30: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ -0015bf40: 2045 6e61 626c 6564 202d 2045 6e61 626c   Enabled - Enabl
│ │ │ -0015bf50: 6520 7365 7276 6963 6520 6e66 7461 626c  e service nftabl
│ │ │ -0015bf60: 6573 0a20 2062 6c6f 636b 3a0a 0a20 202d  es.  block:..  -
│ │ │ -0015bf70: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0015bf80: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0015bf90: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0015bfa0: 7469 6e2e 7061 636b 6167 655f 6661 6374  tin.package_fact
│ │ │ -0015bfb0: 733a 0a20 2020 2020 206d 616e 6167 6572  s:.      manager
│ │ │ -0015bfc0: 3a20 6175 746f 0a0a 2020 2d20 6e61 6d65  : auto..  - name
│ │ │ -0015bfd0: 3a20 5665 7269 6679 206e 6674 6162 6c65  : Verify nftable
│ │ │ -0015bfe0: 7320 5365 7276 6963 6520 6973 2045 6e61  s Service is Ena
│ │ │ -0015bff0: 626c 6564 202d 2045 6e61 626c 6520 5365  bled - Enable Se
│ │ │ -0015c000: 7276 6963 6520 6e66 7461 626c 6573 0a20  rvice nftables. 
│ │ │ -0015c010: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -0015c020: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -0015c030: 2020 6e61 6d65 3a20 6e66 7461 626c 6573    name: nftables
│ │ │ -0015c040: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0015c050: 7472 7565 0a20 2020 2020 2073 7461 7465  true.      state
│ │ │ -0015c060: 3a20 7374 6172 7465 640a 2020 2020 2020  : started.      
│ │ │ -0015c070: 6d61 736b 6564 3a20 6661 6c73 650a 2020  masked: false.  
│ │ │ -0015c080: 2020 7768 656e 3a0a 2020 2020 2d20 2722    when:.    - '"
│ │ │ -0015c090: 6e66 7461 626c 6573 2220 696e 2061 6e73  nftables" in ans
│ │ │ -0015c0a0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0015c0b0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0015c0c0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0015c0d0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -0015c0e0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -0015c0f0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -0015c100: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -0015c110: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -0015c120: 2020 2d20 7365 7276 6963 655f 6e66 7461    - service_nfta
│ │ │ -0015c130: 626c 6573 5f65 6e61 626c 6564 0a20 202d  bles_enabled.  -
│ │ │ -0015c140: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ -0015c150: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2028  _block.  when: (
│ │ │ -0015c160: 2022 6e66 7461 626c 6573 2220 696e 2061   "nftables" in a
│ │ │ -0015c170: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0015c180: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ -0015c190: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0015c1a0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0015c1b0: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
< │ │ │ +0015ba10: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0015ba20: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
low
Disr │ │ │ -0015bdd0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0015bde0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0015be20: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -0015be30: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity │ │ │ +0015b9e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0015ba00: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0015ba30: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0015ba50: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +0015ba90: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0015baa0: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0015bab0: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0015bac0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0015bad0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0015bae0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0015baf0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0015bb00: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0015bb10: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0015bb20: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0015bb30: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +0015bb40: 6674 6162 6c65 735f 656e 6162 6c65 640a  ftables_enabled.
│ │ │ +0015bb50: 0a2d 206e 616d 653a 2056 6572 6966 7920  .- name: Verify 
│ │ │ +0015bb60: 6e66 7461 626c 6573 2053 6572 7669 6365  nftables Service
│ │ │ +0015bb70: 2069 7320 456e 6162 6c65 6420 2d20 456e   is Enabled - En
│ │ │ +0015bb80: 6162 6c65 2073 6572 7669 6365 206e 6674  able service nft
│ │ │ +0015bb90: 6162 6c65 730a 2020 626c 6f63 6b3a 0a0a  ables.  block:..
│ │ │ +0015bba0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ +0015bbb0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ +0015bbc0: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ +0015bbd0: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ +0015bbe0: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ +0015bbf0: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ +0015bc00: 616d 653a 2056 6572 6966 7920 6e66 7461  ame: Verify nfta
│ │ │ +0015bc10: 626c 6573 2053 6572 7669 6365 2069 7320  bles Service is 
│ │ │ +0015bc20: 456e 6162 6c65 6420 2d20 456e 6162 6c65  Enabled - Enable
│ │ │ +0015bc30: 2053 6572 7669 6365 206e 6674 6162 6c65   Service nftable
│ │ │ +0015bc40: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +0015bc50: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0015bc60: 2020 2020 206e 616d 653a 206e 6674 6162       name: nftab
│ │ │ +0015bc70: 6c65 730a 2020 2020 2020 656e 6162 6c65  les.      enable
│ │ │ +0015bc80: 643a 2074 7275 650a 2020 2020 2020 7374  d: true.      st
│ │ │ +0015bc90: 6174 653a 2073 7461 7274 6564 0a20 2020  ate: started.   
│ │ │ +0015bca0: 2020 206d 6173 6b65 643a 2066 616c 7365     masked: false
│ │ │ +0015bcb0: 0a20 2020 2077 6865 6e3a 0a20 2020 202d  .    when:.    -
│ │ │ +0015bcc0: 2027 226e 6674 6162 6c65 7322 2069 6e20   '"nftables" in 
│ │ │ +0015bcd0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0015bce0: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +0015bcf0: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +0015bd00: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +0015bd10: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +0015bd20: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +0015bd30: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +0015bd40: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0015bd50: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ +0015bd60: 6674 6162 6c65 735f 656e 6162 6c65 640a  ftables_enabled.
│ │ │ +0015bd70: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0015bd80: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0015bd90: 3a20 2820 226e 6674 6162 6c65 7322 2069  : ( "nftables" i
│ │ │ +0015bda0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0015bdb0: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ +0015bdc0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0015bdd0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0015bde0: 6765 730a 2020 2020 290a 3c2f 636f 6465  ges.    ).
Remedi │ │ │ +0015bea0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0015beb0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0015bec0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0015bef0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0015bf60: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0015bf80: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0015bfb0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0015bfd0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0015bf40: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0015bf50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0015bf90: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0015bfa0: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0015bff0: 656e 6162 6c65 5f6e 6674 6162 6c65 730a enable_nftables. │ │ │ +0015c000: 0a63 6c61 7373 2065 6e61 626c 655f 6e66 .class enable_nf │ │ │ +0015c010: 7461 626c 6573 207b 0a20 2073 6572 7669 tables {. servi │ │ │ +0015c020: 6365 207b 276e 6674 6162 6c65 7327 3a0a ce {'nftables':. │ │ │ +0015c030: 2020 2020 656e 6162 6c65 203d 2667 743b enable => │ │ │ +0015c040: 2074 7275 652c 0a20 2020 2065 6e73 7572 true,. ensur │ │ │ +0015c050: 6520 3d26 6774 3b20 2772 756e 6e69 6e67 e => 'running │ │ │ +0015c060: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +0015c070: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +0015c120: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +0015c130: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +0015c140: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ +0015c180: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +0015c190: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +0015c1a0: 656e 6162 6c65 6420 3d20 5b22 6e66 7461  enabled = ["nfta
│ │ │ +0015c1b0: 626c 6573 225d 0a3c 2f63 6f64 653e 3c2f  bles"].
│ │ │ -0015cfb0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -0015cfc0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -0015cfd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ -0015d020: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0015d030: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0015d040: 5b22 6e66 7461 626c 6573 225d 0a3c 2f63  ["nftables"].
│ │ │ -0015d060: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -0015d100: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -0015d110: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0015d120: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Com │ │ │ -0015d1a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0015d1d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0015d1f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0015d200: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0015d220: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0015d240: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0015d250: 6465 2064 6973 6162 6c65 5f6e 6674 6162  de disable_nftab
│ │ │ -0015d260: 6c65 730a 0a63 6c61 7373 2064 6973 6162  les..class disab
│ │ │ -0015d270: 6c65 5f6e 6674 6162 6c65 7320 7b0a 2020  le_nftables {.  
│ │ │ -0015d280: 7365 7276 6963 6520 7b27 6e66 7461 626c  service {'nftabl
│ │ │ -0015d290: 6573 273a 0a20 2020 2065 6e61 626c 6520  es':.    enable 
│ │ │ -0015d2a0: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ -0015d2b0: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ -0015d2c0: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ -0015d2d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -0015d380: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0015d390: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
│ │ │ -0015d430: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -0015d4d0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0015d4e0: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0015d4f0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0015d500: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0015d510: 746f 0a20 2074 6167 733a 0a20 202d 2050  to.  tags:.  - P
│ │ │ -0015d520: 4349 2d44 5353 7634 2d31 2e32 0a20 202d  CI-DSSv4-1.2.  -
│ │ │ -0015d530: 2050 4349 2d44 5353 7634 2d31 2e32 2e31   PCI-DSSv4-1.2.1
│ │ │ -0015d540: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0015d550: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0015d560: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0015d570: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0015d580: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0015d590: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0015d5a0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0015d5b0: 5f6e 6674 6162 6c65 735f 6469 7361 626c  _nftables_disabl
│ │ │ -0015d5c0: 6564 0a0a 2d20 6e61 6d65 3a20 5665 7269  ed..- name: Veri
│ │ │ -0015d5d0: 6679 206e 6674 6162 6c65 7320 5365 7276  fy nftables Serv
│ │ │ -0015d5e0: 6963 6520 6973 2044 6973 6162 6c65 6420  ice is Disabled 
│ │ │ -0015d5f0: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ -0015d600: 6520 6e66 7461 626c 6573 0a20 2062 6c6f  e nftables.  blo
│ │ │ -0015d610: 636b 3a0a 0a20 202d 206e 616d 653a 2056  ck:..  - name: V
│ │ │ -0015d620: 6572 6966 7920 6e66 7461 626c 6573 2053  erify nftables S
│ │ │ -0015d630: 6572 7669 6365 2069 7320 4469 7361 626c  ervice is Disabl
│ │ │ -0015d640: 6564 202d 2043 6f6c 6c65 6374 2073 7973  ed - Collect sys
│ │ │ -0015d650: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0015d660: 6573 656e 7420 696e 0a20 2020 2020 2074  esent in.      t
│ │ │ -0015d670: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -0015d680: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0015d690: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0015d6a0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0015d6b0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -0015d6c0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -0015d6d0: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -0015d6e0: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0015d6f0: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0015d700: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -0015d710: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0015d720: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0015d730: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0015d740: 2020 2d20 6e61 6d65 3a20 5665 7269 6679    - name: Verify
│ │ │ -0015d750: 206e 6674 6162 6c65 7320 5365 7276 6963   nftables Servic
│ │ │ -0015d760: 6520 6973 2044 6973 6162 6c65 6420 2d20  e is Disabled - 
│ │ │ -0015d770: 456e 7375 7265 206e 6674 6162 6c65 732e  Ensure nftables.
│ │ │ -0015d780: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -0015d790: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -0015d7a0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -0015d7b0: 2020 2020 206e 616d 653a 206e 6674 6162       name: nftab
│ │ │ -0015d7c0: 6c65 732e 7365 7276 6963 650a 2020 2020  les.service.    
│ │ │ -0015d7d0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0015d7e0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0015d7f0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0015d800: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0015d810: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0015d820: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0015d830: 7320 7365 6172 6368 2822 6e66 7461 626c  s search("nftabl
│ │ │ -0015d840: 6573 2e73 6572 7669 6365 222c 206d 756c  es.service", mul
│ │ │ -0015d850: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ -0015d860: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ -0015d870: 6b65 7420 4578 6973 7473 202d 206e 6674  ket Exists - nft
│ │ │ -0015d880: 6162 6c65 732e 736f 636b 6574 0a20 2020  ables.socket.   
│ │ │ -0015d890: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0015d8a0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -0015d8b0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -0015d8c0: 2d66 696c 6573 206e 6674 6162 6c65 732e  -files nftables.
│ │ │ -0015d8d0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -0015d8e0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -0015d8f0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0015d900: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0015d910: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0015d920: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -0015d930: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -0015d940: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -0015d950: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -0015d960: 6e61 6d65 3a20 5665 7269 6679 206e 6674  name: Verify nft
│ │ │ -0015d970: 6162 6c65 7320 5365 7276 6963 6520 6973  ables Service is
│ │ │ -0015d980: 2044 6973 6162 6c65 6420 2d20 4469 7361   Disabled - Disa
│ │ │ -0015d990: 626c 6520 536f 636b 6574 206e 6674 6162  ble Socket nftab
│ │ │ -0015d9a0: 6c65 730a 2020 2020 616e 7369 626c 652e  les.    ansible.
│ │ │ -0015d9b0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0015d9c0: 0a20 2020 2020 206e 616d 653a 206e 6674  .      name: nft
│ │ │ -0015d9d0: 6162 6c65 732e 736f 636b 6574 0a20 2020  ables.socket.   
│ │ │ -0015d9e0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0015d9f0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -0015da00: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -0015da10: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0015da20: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0015da30: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -0015da40: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ -0015da50: 6674 6162 6c65 732e 736f 636b 6574 222c  ftables.socket",
│ │ │ -0015da60: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ -0015da70: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -0015da80: 2d44 5353 7634 2d31 2e32 0a20 202d 2050  -DSSv4-1.2.  - P
│ │ │ -0015da90: 4349 2d44 5353 7634 2d31 2e32 2e31 0a20  CI-DSSv4-1.2.1. 
│ │ │ -0015daa0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0015dab0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0015dac0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0015dad0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0015dae0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0015daf0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0015db00: 6564 0a20 202d 2073 6572 7669 6365 5f6e  ed.  - service_n
│ │ │ -0015db10: 6674 6162 6c65 735f 6469 7361 626c 6564  ftables_disabled
│ │ │ -0015db20: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0015db30: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -0015db40: 6e3a 2028 2022 6669 7265 7761 6c6c 6422  n: ( "firewalld"
│ │ │ -0015db50: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0015db60: 732e 7061 636b 6167 6573 2061 6e64 2022  s.packages and "
│ │ │ -0015db70: 6e66 7461 626c 6573 2220 696e 2061 6e73  nftables" in ans
│ │ │ -0015db80: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0015db90: 6765 730a 2020 2020 616e 6420 226c 696e  ges.    and "lin
│ │ │ -0015dba0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -0015dbb0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -0015dbc0: 6573 2029 0a3c 2f63 6f64 653e 3c2f 7072  es ).
│ │ │ -0015d420: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0015d450: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0015d460: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0015d4a0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0015d4b0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +0015d0a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0015d0b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0015d100: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0015d110: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0015d120: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0015d130: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0015d140: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0015d150: 5043 492d 4453 5376 342d 312e 320a 2020  PCI-DSSv4-1.2.  
│ │ │ +0015d160: 2d20 5043 492d 4453 5376 342d 312e 322e  - PCI-DSSv4-1.2.
│ │ │ +0015d170: 310a 2020 2d20 6469 7361 626c 655f 7374  1.  - disable_st
│ │ │ +0015d180: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +0015d190: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +0015d1a0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +0015d1b0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ +0015d1c0: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +0015d1d0: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +0015d1e0: 655f 6e66 7461 626c 6573 5f64 6973 6162  e_nftables_disab
│ │ │ +0015d1f0: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ +0015d200: 6966 7920 6e66 7461 626c 6573 2053 6572  ify nftables Ser
│ │ │ +0015d210: 7669 6365 2069 7320 4469 7361 626c 6564  vice is Disabled
│ │ │ +0015d220: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +0015d230: 6365 206e 6674 6162 6c65 730a 2020 626c  ce nftables.  bl
│ │ │ +0015d240: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +0015d250: 5665 7269 6679 206e 6674 6162 6c65 7320  Verify nftables 
│ │ │ +0015d260: 5365 7276 6963 6520 6973 2044 6973 6162  Service is Disab
│ │ │ +0015d270: 6c65 6420 2d20 436f 6c6c 6563 7420 7379  led - Collect sy
│ │ │ +0015d280: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +0015d290: 7265 7365 6e74 2069 6e0a 2020 2020 2020  resent in.      
│ │ │ +0015d2a0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +0015d2b0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0015d2c0: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0015d2d0: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0015d2e0: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +0015d2f0: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +0015d300: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0015d310: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0015d320: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0015d330: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +0015d340: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0015d350: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0015d360: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0015d370: 0a20 202d 206e 616d 653a 2056 6572 6966  .  - name: Verif
│ │ │ +0015d380: 7920 6e66 7461 626c 6573 2053 6572 7669  y nftables Servi
│ │ │ +0015d390: 6365 2069 7320 4469 7361 626c 6564 202d  ce is Disabled -
│ │ │ +0015d3a0: 2045 6e73 7572 6520 6e66 7461 626c 6573   Ensure nftables
│ │ │ +0015d3b0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ +0015d3c0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ +0015d3d0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +0015d3e0: 2020 2020 2020 6e61 6d65 3a20 6e66 7461        name: nfta
│ │ │ +0015d3f0: 626c 6573 2e73 6572 7669 6365 0a20 2020  bles.service.   
│ │ │ +0015d400: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +0015d410: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ +0015d420: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ +0015d430: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ +0015d440: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +0015d450: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ +0015d460: 6973 2073 6561 7263 6828 226e 6674 6162  is search("nftab
│ │ │ +0015d470: 6c65 732e 7365 7276 6963 6522 2c20 6d75  les.service", mu
│ │ │ +0015d480: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +0015d490: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +0015d4a0: 636b 6574 2045 7869 7374 7320 2d20 6e66  cket Exists - nf
│ │ │ +0015d4b0: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ +0015d4c0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0015d4d0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +0015d4e0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +0015d4f0: 742d 6669 6c65 7320 6e66 7461 626c 6573  t-files nftables
│ │ │ +0015d500: 2e73 6f63 6b65 740a 2020 2020 7265 6769  .socket.    regi
│ │ │ +0015d510: 7374 6572 3a20 736f 636b 6574 5f66 696c  ster: socket_fil
│ │ │ +0015d520: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +0015d530: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +0015d540: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +0015d550: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0015d560: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ +0015d570: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ +0015d580: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ +0015d590: 206e 616d 653a 2056 6572 6966 7920 6e66   name: Verify nf
│ │ │ +0015d5a0: 7461 626c 6573 2053 6572 7669 6365 2069  tables Service i
│ │ │ +0015d5b0: 7320 4469 7361 626c 6564 202d 2044 6973  s Disabled - Dis
│ │ │ +0015d5c0: 6162 6c65 2053 6f63 6b65 7420 6e66 7461  able Socket nfta
│ │ │ +0015d5d0: 626c 6573 0a20 2020 2061 6e73 6962 6c65  bles.    ansible
│ │ │ +0015d5e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0015d5f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6e66  :.      name: nf
│ │ │ +0015d600: 7461 626c 6573 2e73 6f63 6b65 740a 2020  tables.socket.  
│ │ │ +0015d610: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ +0015d620: 7365 0a20 2020 2020 2073 7461 7465 3a20  se.      state: 
│ │ │ +0015d630: 7374 6f70 7065 640a 2020 2020 2020 6d61  stopped.      ma
│ │ │ +0015d640: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +0015d650: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ +0015d660: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0015d670: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0015d680: 6e66 7461 626c 6573 2e73 6f63 6b65 7422  nftables.socket"
│ │ │ +0015d690: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +0015d6a0: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ +0015d6b0: 492d 4453 5376 342d 312e 320a 2020 2d20  I-DSSv4-1.2.  - 
│ │ │ +0015d6c0: 5043 492d 4453 5376 342d 312e 322e 310a  PCI-DSSv4-1.2.1.
│ │ │ +0015d6d0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0015d6e0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0015d6f0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0015d700: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0015d710: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0015d720: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0015d730: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0015d740: 6e66 7461 626c 6573 5f64 6973 6162 6c65  nftables_disable
│ │ │ +0015d750: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +0015d760: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +0015d770: 656e 3a20 2820 2266 6972 6577 616c 6c64  en: ( "firewalld
│ │ │ +0015d780: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +0015d790: 7473 2e70 6163 6b61 6765 7320 616e 6420  ts.packages and 
│ │ │ +0015d7a0: 226e 6674 6162 6c65 7322 2069 6e20 616e  "nftables" in an
│ │ │ +0015d7b0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0015d7c0: 6167 6573 0a20 2020 2061 6e64 2022 6c69  ages.    and "li
│ │ │ +0015d7d0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +0015d7e0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +0015d7f0: 6765 7320 290a 3c2f 636f 6465 3e3c 2f70  ges ).

Remediatio │ │ │ +0015d8b0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +0015d8c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +0015d980: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0015d990: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ +0015d080: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0015d090: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0015d0d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0015d0e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +0015d950: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0015d970: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0015d9a0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0015d9c0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +0015da00: 626c 655f 6e66 7461 626c 6573 0a0a 636c  ble_nftables..cl
│ │ │ +0015da10: 6173 7320 6469 7361 626c 655f 6e66 7461  ass disable_nfta
│ │ │ +0015da20: 626c 6573 207b 0a20 2073 6572 7669 6365  bles {.  service
│ │ │ +0015da30: 207b 276e 6674 6162 6c65 7327 3a0a 2020   {'nftables':.  
│ │ │ +0015da40: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +0015da50: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +0015da60: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +0015da70: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0015da80: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediat │ │ │ +0015db30: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ +0015db40: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ +0015db50: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ +0015dba0: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ +0015dbb0: 6173 6b65 6420 3d20 5b22 6e66 7461 626c  asked = ["nftabl
│ │ │ +0015dbc0: 6573 225d 0a3c 2f63 6f64 653e 3c2f 7072  es"].
│ │ │ 0015dbf0: 3c2f 7461 626c 653e 3c2f 7464 3e3c 2f74 Remediation OSB │ │ │ -00165c60: 7569 6c64 2042 6c75 6570 7269 6e74 2073 uild Blueprint s │ │ │ -00165c70: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
.[[
│ │ │ -00165cc0: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -00165cd0: 3d20 2275 6677 220a 7665 7273 696f 6e20  = "ufw".version 
│ │ │ -00165ce0: 3d20 222a 220a 3c2f 636f 6465 3e3c 2f70  = "*".

Remediatio │ │ │ -00165da0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -00165db0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00165e40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00165e60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00165e70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00165e80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00165e90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00165eb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include inst
│ │ │ -00165ef0: 616c 6c5f 7566 770a 0a63 6c61 7373 2069  all_ufw..class i
│ │ │ -00165f00: 6e73 7461 6c6c 5f75 6677 207b 0a20 2070  nstall_ufw {.  p
│ │ │ -00165f10: 6163 6b61 6765 207b 2027 7566 7727 3a0a  ackage { 'ufw':.
│ │ │ -00165f20: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00165f30: 2027 696e 7374 616c 6c65 6427 2c0a 2020   'installed',.  
│ │ │ -00165f40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -00166000: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00166010: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -001660a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -001660c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -001660e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00166110: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00166120: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -00166130: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -00166150: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -00166160: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -00166170: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -00166180: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -00166190: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -001661a0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -001661b0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -001661c0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -001661d0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -001661e0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -001661f0: 640a 2020 2d20 7061 636b 6167 655f 7566  d.  - package_uf
│ │ │ -00166200: 775f 696e 7374 616c 6c65 640a 0a2d 206e  w_installed..- n
│ │ │ -00166210: 616d 653a 2045 6e73 7572 6520 7566 7720  ame: Ensure ufw 
│ │ │ -00166220: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ -00166230: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00166240: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00166250: 3a20 7566 770a 2020 2020 7374 6174 653a  : ufw.    state:
│ │ │ -00166260: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ -00166270: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ -00166280: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00166290: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ -001662a0: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -001662b0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -001662c0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -001662d0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001662e0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001662f0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00166300: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00166310: 5f75 6677 5f69 6e73 7461 6c6c 6564 0a3c  _ufw_installed.<
│ │ │ +00165c50: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +00165c60: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +00165c70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +00165d40: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00165d50: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00165da0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +00165db0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +00165dc0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +00165dd0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +00165de0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +00165df0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ +00165e00: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00165e10: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00165e20: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00165e30: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00165e40: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00165e50: 202d 2070 6163 6b61 6765 5f75 6677 5f69   - package_ufw_i
│ │ │ +00165e60: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65  nstalled..- name
│ │ │ +00165e70: 3a20 456e 7375 7265 2075 6677 2069 7320  : Ensure ufw is 
│ │ │ +00165e80: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +00165e90: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +00165ea0: 6167 653a 0a20 2020 206e 616d 653a 2075  age:.    name: u
│ │ │ +00165eb0: 6677 0a20 2020 2073 7461 7465 3a20 7072  fw.    state: pr
│ │ │ +00165ec0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ +00165ed0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +00165ee0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +00165ef0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +00165f00: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ +00165f10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +00165f20: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00165f30: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +00165f40: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +00165f50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00165f60: 640a 2020 2d20 7061 636b 6167 655f 7566  d.  - package_uf
│ │ │ +00165f70: 775f 696e 7374 616c 6c65 640a 3c2f 636f  w_installed.
< │ │ │ +00165f90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00165fa0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00165fb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00165fc0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00165fd0: 6434 3732 2220 7461 6269 6e64 6578 3d22 d472" tabindex=" │ │ │ +00165fe0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00165ff0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00166000: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00166010: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00166020: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +00166030: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +00166040: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
low
Disru │ │ │ +00165d20: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00165d30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00165d70: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00165d80: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +001660d0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +001660e0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00166100: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00166120: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00166130: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00166170: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00166180: 6520 696e 7374 616c 6c5f 7566 770a 0a63 e install_ufw..c │ │ │ +00166190: 6c61 7373 2069 6e73 7461 6c6c 5f75 6677 lass install_ufw │ │ │ +001661a0: 207b 0a20 2070 6163 6b61 6765 207b 2027 {. package { ' │ │ │ +001661b0: 7566 7727 3a0a 2020 2020 656e 7375 7265 ufw':. ensure │ │ │ +001661c0: 203d 2667 743b 2027 696e 7374 616c 6c65 => 'installe │ │ │ +001661d0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
Remedi │ │ │ +00166290: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +001662a0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +001662b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +001662f0: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +00166300: 735d 5d0a 6e61 6d65 203d 2022 7566 7722  s]].name = "ufw"
│ │ │ +00166310: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │  00166320: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
Remediation │ │ │ -00166e30: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00166e40: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity: │ │ │ -00166ed0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00166ef0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00166f10: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00166f40: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00166f50: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -00166f80: 6f76 655f 7566 770a 0a63 6c61 7373 2072  ove_ufw..class r
│ │ │ -00166f90: 656d 6f76 655f 7566 7720 7b0a 2020 7061  emove_ufw {.  pa
│ │ │ -00166fa0: 636b 6167 6520 7b20 2775 6677 273a 0a20  ckage { 'ufw':. 
│ │ │ -00166fb0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -00166fc0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -00166fd0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00167080: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00167090: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -001670a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00167170: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00167180: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001671d0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -001671e0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -001671f0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00167200: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00167210: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00167220: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00167230: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00167240: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00167250: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00167260: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00167270: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00167280: 2020 2d20 7061 636b 6167 655f 7566 775f    - package_ufw_
│ │ │ -00167290: 7265 6d6f 7665 640a 0a2d 206e 616d 653a  removed..- name:
│ │ │ -001672a0: 2027 5265 6d6f 7665 2075 6677 2050 6163   'Remove ufw Pac
│ │ │ -001672b0: 6b61 6765 3a20 456e 7375 7265 2075 6677  kage: Ensure ufw
│ │ │ -001672c0: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -001672d0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -001672e0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -001672f0: 3a20 7566 770a 2020 2020 7374 6174 653a  : ufw.    state:
│ │ │ -00167300: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00167310: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00167320: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00167330: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00167340: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00167350: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00167360: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00167370: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00167380: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -00167390: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001673a0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -001673b0: 5f75 6677 5f72 656d 6f76 6564 0a3c 2f63  _ufw_removed.
< │ │ │ +00166f00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00166f10: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -00167150: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00167160: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001671a0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001671b0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ +00166ed0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +00166ef0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +00166f20: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00166f40: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00166f70: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ +00166f80: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ +00166f90: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ +00166fa0: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ +00166fb0: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ +00166fc0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00166fd0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00166fe0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00166ff0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00167000: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00167010: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00167020: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00167030: 5f75 6677 5f72 656d 6f76 6564 0a0a 2d20  _ufw_removed..- 
│ │ │ +00167040: 6e61 6d65 3a20 2752 656d 6f76 6520 7566  name: 'Remove uf
│ │ │ +00167050: 7720 5061 636b 6167 653a 2045 6e73 7572  w Package: Ensur
│ │ │ +00167060: 6520 7566 7720 6973 2072 656d 6f76 6564  e ufw is removed
│ │ │ +00167070: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ +00167080: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ +00167090: 206e 616d 653a 2075 6677 0a20 2020 2073   name: ufw.    s
│ │ │ +001670a0: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ +001670b0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +001670c0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +001670d0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +001670e0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +001670f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +00167100: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +00167110: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +00167120: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +00167130: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00167140: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00167150: 636b 6167 655f 7566 775f 7265 6d6f 7665  ckage_ufw_remove
│ │ │ +00167160: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +00167170: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>
Remediation Pu │ │ │ +00167220: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +00167230: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00167300: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00167310: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00167370: 5f75 6677 0a0a 636c 6173 7320 7265 6d6f  _ufw..class remo
│ │ │ +00167380: 7665 5f75 6677 207b 0a20 2070 6163 6b61  ve_ufw {.  packa
│ │ │ +00167390: 6765 207b 2027 7566 7727 3a0a 2020 2020  ge { 'ufw':.    
│ │ │ +001673a0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +001673b0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 001673d0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00168010: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -00168020: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -00168030: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00168040: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00168050: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00168060: 7365 2220 6964 3d22 6964 3438 3022 3e3c se" id="id480">< │ │ │ -00168070: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00168080: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00168090: 6365 735d 0a65 6e61 626c 6564 203d 205b ces].enabled = [ │ │ │ -001680a0: 2275 6677 225d 0a3c 2f63 6f64 653e 3c2f "ufw"].Remediati │ │ │ -00168160: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00168170: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -001681f0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00168230: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disru │ │ │ +001672e0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001672f0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00167330: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00167340: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -00168200: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00168220: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00168250: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00168270: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -001682a0: 636f 6465 3e69 6e63 6c75 6465 2065 6e61  code>include ena
│ │ │ -001682b0: 626c 655f 7566 770a 0a63 6c61 7373 2065  ble_ufw..class e
│ │ │ -001682c0: 6e61 626c 655f 7566 7720 7b0a 2020 7365  nable_ufw {.  se
│ │ │ -001682d0: 7276 6963 6520 7b27 7566 7727 3a0a 2020  rvice {'ufw':.  
│ │ │ -001682e0: 2020 656e 6162 6c65 203d 2667 743b 2074    enable => t
│ │ │ -001682f0: 7275 652c 0a20 2020 2065 6e73 7572 6520  rue,.    ensure 
│ │ │ -00168300: 3d26 6774 3b20 2772 756e 6e69 6e67 272c  => 'running',
│ │ │ -00168310: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ -001683d0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -001683e0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00168460: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00168470: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00168480: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -001684c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -001684d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -001684f0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -00168510: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -00168520: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -00168530: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -00168540: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -00168550: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -00168560: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ -00168570: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00168580: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00168590: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -001685a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -001685b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -001685c0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -001685d0: 5f75 6677 5f65 6e61 626c 6564 0a0a 2d20  _ufw_enabled..- 
│ │ │ -001685e0: 6e61 6d65 3a20 5665 7269 6679 2075 6677  name: Verify ufw
│ │ │ -001685f0: 2045 6e61 626c 6564 202d 2045 6e61 626c   Enabled - Enabl
│ │ │ -00168600: 6520 7365 7276 6963 6520 7566 770a 2020  e service ufw.  
│ │ │ -00168610: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -00168620: 3a20 4761 7468 6572 2074 6865 2070 6163  : Gather the pac
│ │ │ -00168630: 6b61 6765 2066 6163 7473 0a20 2020 2061  kage facts.    a
│ │ │ -00168640: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00168650: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -00168660: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -00168670: 6f0a 0a20 202d 206e 616d 653a 2056 6572  o..  - name: Ver
│ │ │ -00168680: 6966 7920 7566 7720 456e 6162 6c65 6420  ify ufw Enabled 
│ │ │ -00168690: 2d20 456e 6162 6c65 2053 6572 7669 6365  - Enable Service
│ │ │ -001686a0: 2075 6677 0a20 2020 2061 6e73 6962 6c65   ufw.    ansible
│ │ │ -001686b0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -001686c0: 3a0a 2020 2020 2020 6e61 6d65 3a20 7566  :.      name: uf
│ │ │ -001686d0: 770a 2020 2020 2020 656e 6162 6c65 643a  w.      enabled:
│ │ │ -001686e0: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -001686f0: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -00168700: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -00168710: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -00168720: 2275 6677 2220 696e 2061 6e73 6962 6c65  "ufw" in ansible
│ │ │ -00168730: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ -00168740: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ -00168750: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00168760: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00168770: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00168780: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00168790: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -001687a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -001687b0: 7365 7276 6963 655f 7566 775f 656e 6162  service_ufw_enab
│ │ │ -001687c0: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -001687d0: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -001687e0: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ -001687f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00168800: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00168810: 7327 0a20 202d 2028 2022 7566 7722 2069  s'.  - ( "ufw" i
│ │ │ -00168820: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ -00168830: 7061 636b 6167 6573 2061 6e64 2022 6c69  packages and "li
│ │ │ -00168840: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -00168850: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -00168860: 6765 7320 290a 3c2f 636f 6465 3e3c 2f70  ges ).


< │ │ │ +001680c0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +001680d0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00168120: 3c74 723e 3c74 683e 5374 7261 7465 6779
- n
│ │ │ +00168160: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00168170: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00168180: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00168190: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +001681a0: 0a20 2074 6167 733a 0a20 202d 2065 6e61  .  tags:.  - ena
│ │ │ +001681b0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001681c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001681d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001681e0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +001681f0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00168200: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00168210: 7365 7276 6963 655f 7566 775f 656e 6162  service_ufw_enab
│ │ │ +00168220: 6c65 640a 0a2d 206e 616d 653a 2056 6572  led..- name: Ver
│ │ │ +00168230: 6966 7920 7566 7720 456e 6162 6c65 6420  ify ufw Enabled 
│ │ │ +00168240: 2d20 456e 6162 6c65 2073 6572 7669 6365  - Enable service
│ │ │ +00168250: 2075 6677 0a20 2062 6c6f 636b 3a0a 0a20   ufw.  block:.. 
│ │ │ +00168260: 202d 206e 616d 653a 2047 6174 6865 7220   - name: Gather 
│ │ │ +00168270: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +00168280: 730a 2020 2020 616e 7369 626c 652e 6275  s.    ansible.bu
│ │ │ +00168290: 696c 7469 6e2e 7061 636b 6167 655f 6661  iltin.package_fa
│ │ │ +001682a0: 6374 733a 0a20 2020 2020 206d 616e 6167  cts:.      manag
│ │ │ +001682b0: 6572 3a20 6175 746f 0a0a 2020 2d20 6e61  er: auto..  - na
│ │ │ +001682c0: 6d65 3a20 5665 7269 6679 2075 6677 2045  me: Verify ufw E
│ │ │ +001682d0: 6e61 626c 6564 202d 2045 6e61 626c 6520  nabled - Enable 
│ │ │ +001682e0: 5365 7276 6963 6520 7566 770a 2020 2020  Service ufw.    
│ │ │ +001682f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00168300: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00168310: 616d 653a 2075 6677 0a20 2020 2020 2065  ame: ufw.      e
│ │ │ +00168320: 6e61 626c 6564 3a20 7472 7565 0a20 2020  nabled: true.   
│ │ │ +00168330: 2020 2073 7461 7465 3a20 7374 6172 7465     state: starte
│ │ │ +00168340: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00168350: 6661 6c73 650a 2020 2020 7768 656e 3a0a  false.    when:.
│ │ │ +00168360: 2020 2020 2d20 2722 7566 7722 2069 6e20      - '"ufw" in 
│ │ │ +00168370: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00168380: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00168390: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +001683a0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +001683b0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +001683c0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +001683d0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +001683e0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +001683f0: 6564 0a20 202d 2073 6572 7669 6365 5f75  ed.  - service_u
│ │ │ +00168400: 6677 5f65 6e61 626c 6564 0a20 202d 2073  fw_enabled.  - s
│ │ │ +00168410: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +00168420: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ +00168430: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +00168440: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +00168450: 7061 636b 6167 6573 270a 2020 2d20 2820  packages'.  - ( 
│ │ │ +00168460: 2275 6677 2220 696e 2061 6e73 6962 6c65  "ufw" in ansible
│ │ │ +00168470: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +00168480: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +00168490: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +001684a0: 732e 7061 636b 6167 6573 2029 0a3c 2f63  s.packages ).
│ │ │ +001684c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00168560: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00168570: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00168580: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
C │ │ │ +001680b0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +001680e0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +001680f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00168130: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00168140: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Com │ │ │ +00168600: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00168630: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00168650: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00168660: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00168680: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +001686a0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +001686b0: 6465 2065 6e61 626c 655f 7566 770a 0a63  de enable_ufw..c
│ │ │ +001686c0: 6c61 7373 2065 6e61 626c 655f 7566 7720  lass enable_ufw 
│ │ │ +001686d0: 7b0a 2020 7365 7276 6963 6520 7b27 7566  {.  service {'uf
│ │ │ +001686e0: 7727 3a0a 2020 2020 656e 6162 6c65 203d  w':.    enable =
│ │ │ +001686f0: 2667 743b 2074 7275 652c 0a20 2020 2065  > true,.    e
│ │ │ +00168700: 6e73 7572 6520 3d26 6774 3b20 2772 756e  nsure => 'run
│ │ │ +00168710: 6e69 6e67 272c 0a20 207d 0a7d 0a3c 2f63  ning',.  }.}.
│ │ │ +00168730: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001687d0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +001687e0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +001687f0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...

.[custo │ │ │ +00168840: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ +00168850: 6573 5d0a 656e 6162 6c65 6420 3d20 5b22 es].enabled = [" │ │ │ +00168860: 7566 7722 5d0a 3c2f 636f 6465 3e3c 2f70 ufw"].

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

.[custo │ │ │ -00172a80: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00172a90: 6573 5d0a 6d61 736b 6564 203d 205b 2262 es].masked = ["b │ │ │ -00172aa0: 6c75 6574 6f6f 7468 225d 0a3c 2f63 6f64 luetooth"].

Remed │ │ │ -00172b60: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00172b70: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00172c20: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00172c40: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00172c70: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00172c00: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00172c10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00172c30: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00172c50: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00172c60: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00172cb0: 2064 6973 6162 6c65 5f62 6c75 6574 6f6f disable_bluetoo │ │ │ -00172cc0: 7468 0a0a 636c 6173 7320 6469 7361 626c th..class disabl │ │ │ -00172cd0: 655f 626c 7565 746f 6f74 6820 7b0a 2020 e_bluetooth {. │ │ │ -00172ce0: 7365 7276 6963 6520 7b27 626c 7565 746f service {'blueto │ │ │ -00172cf0: 6f74 6827 3a0a 2020 2020 656e 6162 6c65 oth':. enable │ │ │ -00172d00: 203d 2667 743b 2066 616c 7365 2c0a 2020 => false,. │ │ │ -00172d10: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00172d20: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a stopped',. }.}. │ │ │ -00172d30: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 │ │ │ -00172de0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00172df0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00172e00: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>

< │ │ │ -00172ed0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00172ee0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00172f30: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00172f40: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00172f50: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00172f60: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00172f70: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -00172f80: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ -00172f90: 2e31 360a 2020 2d20 4e49 5354 2d38 3030  .16.  - NIST-800
│ │ │ -00172fa0: 2d35 332d 4143 2d31 3828 3329 0a20 202d  -53-AC-18(3).  -
│ │ │ -00172fb0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ -00172fc0: 3138 2861 290a 2020 2d20 4e49 5354 2d38  18(a).  - NIST-8
│ │ │ -00172fd0: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -00172fe0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00172ff0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -00173000: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -00173010: 2d20 4e49 5354 2d38 3030 2d35 332d 4d50  - NIST-800-53-MP
│ │ │ -00173020: 2d37 0a20 202d 2064 6973 6162 6c65 5f73  -7.  - disable_s
│ │ │ -00173030: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -00173040: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -00173050: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -00173060: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -00173070: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00173080: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -00173090: 6365 5f62 6c75 6574 6f6f 7468 5f64 6973  ce_bluetooth_dis
│ │ │ -001730a0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -001730b0: 6973 6162 6c65 2042 6c75 6574 6f6f 7468  isable Bluetooth
│ │ │ -001730c0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ -001730d0: 6c65 2073 6572 7669 6365 2062 6c75 6574  le service bluet
│ │ │ -001730e0: 6f6f 7468 0a20 2062 6c6f 636b 3a0a 0a20  ooth.  block:.. 
│ │ │ -001730f0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -00173100: 2042 6c75 6574 6f6f 7468 2053 6572 7669   Bluetooth Servi
│ │ │ -00173110: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ -00173120: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -00173130: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -00173140: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -00173150: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00173160: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00173170: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -00173180: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -00173190: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -001731a0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -001731b0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -001731c0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -001731d0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -001731e0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -001731f0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -00173200: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -00173210: 6d65 3a20 4469 7361 626c 6520 426c 7565  me: Disable Blue
│ │ │ -00173220: 746f 6f74 6820 5365 7276 6963 6520 2d20  tooth Service - 
│ │ │ -00173230: 456e 7375 7265 2062 6c75 6574 6f6f 7468  Ensure bluetooth
│ │ │ -00173240: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -00173250: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -00173260: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00173270: 2020 2020 2020 6e61 6d65 3a20 626c 7565        name: blue
│ │ │ -00173280: 746f 6f74 682e 7365 7276 6963 650a 2020  tooth.service.  
│ │ │ -00173290: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -001732a0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -001732b0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -001732c0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -001732d0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -001732e0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -001732f0: 2069 7320 7365 6172 6368 2822 626c 7565   is search("blue
│ │ │ -00173300: 746f 6f74 682e 7365 7276 6963 6522 2c20  tooth.service", 
│ │ │ -00173310: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00173320: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -00173330: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -00173340: 626c 7565 746f 6f74 682e 736f 636b 6574  bluetooth.socket
│ │ │ -00173350: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00173360: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ -00173370: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ -00173380: 756e 6974 2d66 696c 6573 2062 6c75 6574  unit-files bluet
│ │ │ -00173390: 6f6f 7468 2e73 6f63 6b65 740a 2020 2020  ooth.socket.    
│ │ │ -001733a0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -001733b0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -001733c0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -001733d0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -001733e0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -001733f0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -00173400: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -00173410: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -00173420: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -00173430: 6c65 2042 6c75 6574 6f6f 7468 2053 6572  le Bluetooth Ser
│ │ │ -00173440: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -00173450: 6f63 6b65 7420 626c 7565 746f 6f74 680a  ocket bluetooth.
│ │ │ -00173460: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00173470: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00173480: 2020 206e 616d 653a 2062 6c75 6574 6f6f     name: bluetoo
│ │ │ -00173490: 7468 2e73 6f63 6b65 740a 2020 2020 2020  th.socket.      
│ │ │ -001734a0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -001734b0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ -001734c0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ -001734d0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -001734e0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -001734f0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -00173500: 2069 7320 7365 6172 6368 2822 626c 7565   is search("blue
│ │ │ -00173510: 746f 6f74 682e 736f 636b 6574 222c 206d  tooth.socket", m
│ │ │ -00173520: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00173530: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00173540: 3830 302d 3137 312d 332e 312e 3136 0a20  800-171-3.1.16. 
│ │ │ -00173550: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -00173560: 432d 3138 2833 290a 2020 2d20 4e49 5354  C-18(3).  - NIST
│ │ │ -00173570: 2d38 3030 2d35 332d 4143 2d31 3828 6129  -800-53-AC-18(a)
│ │ │ -00173580: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00173590: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -001735a0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -001735b0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -001735c0: 2d43 4d2d 3728 6229 0a20 202d 204e 4953  -CM-7(b).  - NIS
│ │ │ -001735d0: 542d 3830 302d 3533 2d4d 502d 370a 2020  T-800-53-MP-7.  
│ │ │ -001735e0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -001735f0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00173600: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -00173610: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -00173620: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -00173630: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00173640: 640a 2020 2d20 7365 7276 6963 655f 626c  d.  - service_bl
│ │ │ -00173650: 7565 746f 6f74 685f 6469 7361 626c 6564  uetooth_disabled
│ │ │ -00173660: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00173670: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -00173680: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -00173690: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -001736a0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
│ │ │ +00172a30: 3c62 723e 3c64 6976 2063 6c61 7373 3d22  
Complexity:low
Disrup │ │ │ -00172eb0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00172ec0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00172f00: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00172f10: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ +00172ad0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00172b20: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00172b60: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00172b70: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00172b80: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00172b90: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00172ba0: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00172bb0: 542d 3830 302d 3137 312d 332e 312e 3136  T-800-171-3.1.16
│ │ │ +00172bc0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00172bd0: 2d41 432d 3138 2833 290a 2020 2d20 4e49  -AC-18(3).  - NI
│ │ │ +00172be0: 5354 2d38 3030 2d35 332d 4143 2d31 3828  ST-800-53-AC-18(
│ │ │ +00172bf0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00172c00: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00172c10: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00172c20: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00172c30: 3533 2d43 4d2d 3728 6229 0a20 202d 204e  53-CM-7(b).  - N
│ │ │ +00172c40: 4953 542d 3830 302d 3533 2d4d 502d 370a  IST-800-53-MP-7.
│ │ │ +00172c50: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00172c60: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00172c70: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00172c80: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +00172c90: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +00172ca0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00172cb0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +00172cc0: 626c 7565 746f 6f74 685f 6469 7361 626c  bluetooth_disabl
│ │ │ +00172cd0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +00172ce0: 626c 6520 426c 7565 746f 6f74 6820 5365  ble Bluetooth Se
│ │ │ +00172cf0: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +00172d00: 7365 7276 6963 6520 626c 7565 746f 6f74  service bluetoot
│ │ │ +00172d10: 680a 2020 626c 6f63 6b3a 0a0a 2020 2d20  h.  block:..  - 
│ │ │ +00172d20: 6e61 6d65 3a20 4469 7361 626c 6520 426c  name: Disable Bl
│ │ │ +00172d30: 7565 746f 6f74 6820 5365 7276 6963 6520  uetooth Service 
│ │ │ +00172d40: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +00172d50: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +00172d60: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +00172d70: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00172d80: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +00172d90: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +00172da0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +00172db0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +00172dc0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +00172dd0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +00172de0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00172df0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00172e00: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +00172e10: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00172e20: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00172e30: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00172e40: 2044 6973 6162 6c65 2042 6c75 6574 6f6f   Disable Bluetoo
│ │ │ +00172e50: 7468 2053 6572 7669 6365 202d 2045 6e73  th Service - Ens
│ │ │ +00172e60: 7572 6520 626c 7565 746f 6f74 682e 7365  ure bluetooth.se
│ │ │ +00172e70: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +00172e80: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00172e90: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00172ea0: 2020 206e 616d 653a 2062 6c75 6574 6f6f     name: bluetoo
│ │ │ +00172eb0: 7468 2e73 6572 7669 6365 0a20 2020 2020  th.service.     
│ │ │ +00172ec0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00172ed0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +00172ee0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +00172ef0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +00172f00: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +00172f10: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00172f20: 2073 6561 7263 6828 2262 6c75 6574 6f6f   search("bluetoo
│ │ │ +00172f30: 7468 2e73 6572 7669 6365 222c 206d 756c  th.service", mul
│ │ │ +00172f40: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +00172f50: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +00172f60: 6b65 7420 4578 6973 7473 202d 2062 6c75  ket Exists - blu
│ │ │ +00172f70: 6574 6f6f 7468 2e73 6f63 6b65 740a 2020  etooth.socket.  
│ │ │ +00172f80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00172f90: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ +00172fa0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ +00172fb0: 742d 6669 6c65 7320 626c 7565 746f 6f74  t-files bluetoot
│ │ │ +00172fc0: 682e 736f 636b 6574 0a20 2020 2072 6567  h.socket.    reg
│ │ │ +00172fd0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +00172fe0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +00172ff0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00173000: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00173010: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +00173020: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +00173030: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +00173040: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +00173050: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00173060: 426c 7565 746f 6f74 6820 5365 7276 6963  Bluetooth Servic
│ │ │ +00173070: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00173080: 6574 2062 6c75 6574 6f6f 7468 0a20 2020  et bluetooth.   
│ │ │ +00173090: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001730a0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +001730b0: 6e61 6d65 3a20 626c 7565 746f 6f74 682e  name: bluetooth.
│ │ │ +001730c0: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +001730d0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +001730e0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +001730f0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +00173100: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +00173110: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00173120: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00173130: 2073 6561 7263 6828 2262 6c75 6574 6f6f   search("bluetoo
│ │ │ +00173140: 7468 2e73 6f63 6b65 7422 2c20 6d75 6c74  th.socket", mult
│ │ │ +00173150: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +00173160: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +00173170: 2d31 3731 2d33 2e31 2e31 360a 2020 2d20  -171-3.1.16.  - 
│ │ │ +00173180: 4e49 5354 2d38 3030 2d35 332d 4143 2d31  NIST-800-53-AC-1
│ │ │ +00173190: 3828 3329 0a20 202d 204e 4953 542d 3830  8(3).  - NIST-80
│ │ │ +001731a0: 302d 3533 2d41 432d 3138 2861 290a 2020  0-53-AC-18(a).  
│ │ │ +001731b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001731c0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +001731d0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +001731e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +001731f0: 2d37 2862 290a 2020 2d20 4e49 5354 2d38  -7(b).  - NIST-8
│ │ │ +00173200: 3030 2d35 332d 4d50 2d37 0a20 202d 2064  00-53-MP-7.  - d
│ │ │ +00173210: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00173220: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00173230: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00173240: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +00173250: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +00173260: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00173270: 202d 2073 6572 7669 6365 5f62 6c75 6574   - service_bluet
│ │ │ +00173280: 6f6f 7468 5f64 6973 6162 6c65 640a 2020  ooth_disabled.  
│ │ │ +00173290: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ +001732a0: 655f 626c 6f63 6b0a 2020 7768 656e 3a20  e_block.  when: 
│ │ │ +001732b0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ +001732c0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +001732d0: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e  ackages'.
│ │ │ +001732e0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ +00173390: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +001733a0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +001733b0: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +001733c0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +001733d0: 7365 2220 6964 3d22 6964 3439 3822 3e3c se" id="id498">< │ │ │ +001733e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +001733f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00173400: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00173410: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00173420: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +001734b0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +001734c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ +00172ab0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00172ae0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00172b00: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00172b10: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00172b30: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00172b40: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complex │ │ │ +00173430: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00173440: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +00173480: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00173490: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ +001734e0: 6973 6162 6c65 5f62 6c75 6574 6f6f 7468  isable_bluetooth
│ │ │ +001734f0: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +00173500: 626c 7565 746f 6f74 6820 7b0a 2020 7365  bluetooth {.  se
│ │ │ +00173510: 7276 6963 6520 7b27 626c 7565 746f 6f74  rvice {'bluetoot
│ │ │ +00173520: 6827 3a0a 2020 2020 656e 6162 6c65 203d  h':.    enable =
│ │ │ +00173530: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00173540: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00173550: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
Re │ │ │ +00173610: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ +00173620: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ +00173630: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00173640: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00173650: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00173660: 7365 2220 6964 3d22 6964 3439 3922 3e3c se" id="id499">< │ │ │ +00173670: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +00173680: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +00173690: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +001736a0: 626c 7565 746f 6f74 6822 5d0a 3c2f 636f bluetooth"].
< │ │ │ 001736c0: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 001736d0: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>< │ │ │ 001736e0: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediation Pup │ │ │ -001dbbc0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001dbbd0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001dbca0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001dbcb0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -001dbd00: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -001dbd10: 6175 746f 6673 0a0a 636c 6173 7320 7265  autofs..class re
│ │ │ -001dbd20: 6d6f 7665 5f61 7574 6f66 7320 7b0a 2020  move_autofs {.  
│ │ │ -001dbd30: 7061 636b 6167 6520 7b20 2761 7574 6f66  package { 'autof
│ │ │ -001dbd40: 7327 3a0a 2020 2020 656e 7375 7265 203d  s':.    ensure =
│ │ │ -001dbd50: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -001dbd60: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ -001dbe20: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ -001dbe30: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ -001dbef0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -001dbf00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
Complexity:low
Disrup │ │ │ -001dbc80: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001dbc90: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001dbcd0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -001dbce0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity │ │ │ -001dbec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ -001dbee0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ -001dbf10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ -001dbf30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -001dbf60: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ -001dbf70: 6d6f 7665 2061 7574 6f66 7320 5061 636b  move autofs Pack
│ │ │ -001dbf80: 6167 653a 2045 6e73 7572 6520 6175 746f  age: Ensure auto
│ │ │ -001dbf90: 6673 2069 7320 7265 6d6f 7665 6427 0a20  fs is removed'. 
│ │ │ -001dbfa0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -001dbfb0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -001dbfc0: 6d65 3a20 6175 746f 6673 0a20 2020 2073  me: autofs.    s
│ │ │ -001dbfd0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -001dbfe0: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -001dbff0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -001dc000: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -001dc010: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -001dc020: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ -001dc030: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -001dc040: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -001dc050: 655f 6175 746f 6673 5f72 656d 6f76 6564  e_autofs_removed
│ │ │ +001dbbb0: 3e52 656d 6564 6961 7469 6f6e 2041 6e73  >Remediation Ans
│ │ │ +001dbbc0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2  ible snippet ...
│ │ │ +001dbbd0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61  
Complexity: │ │ │ +001dbca0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +001dbcb0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +001dbd10: 2061 7574 6f66 7320 5061 636b 6167 653a   autofs Package:
│ │ │ +001dbd20: 2045 6e73 7572 6520 6175 746f 6673 2069   Ensure autofs i
│ │ │ +001dbd30: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +001dbd40: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +001dbd50: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +001dbd60: 6175 746f 6673 0a20 2020 2073 7461 7465  autofs.    state
│ │ │ +001dbd70: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +001dbd80: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +001dbd90: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +001dbda0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +001dbdb0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +001dbdc0: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +001dbdd0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +001dbde0: 640a 2020 2d20 7061 636b 6167 655f 6175  d.  - package_au
│ │ │ +001dbdf0: 746f 6673 5f72 656d 6f76 6564 0a3c 2f63  tofs_removed.
│ │ │ +001dbe10: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +001dbeb0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +001dbec0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +001dbed0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ +001dbc80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +001dbc90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +001dbcd0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +001dbce0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Com │ │ │ +001dbf50: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +001dbf80: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +001dbfa0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +001dbfb0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +001dbfd0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +001dbfe0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +001dc000: 6c75 6465 2072 656d 6f76 655f 6175 746f  lude remove_auto
│ │ │ +001dc010: 6673 0a0a 636c 6173 7320 7265 6d6f 7665  fs..class remove
│ │ │ +001dc020: 5f61 7574 6f66 7320 7b0a 2020 7061 636b  _autofs {.  pack
│ │ │ +001dc030: 6167 6520 7b20 2761 7574 6f66 7327 3a0a  age { 'autofs':.
│ │ │ +001dc040: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +001dc050: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  001dc060: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediatio │ │ │ -001dd5e0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -001dd5f0: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -001dd600: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ -001dd650: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -001dd660: 6b65 6420 3d20 5b22 6175 746f 6673 225d  ked = ["autofs"]
│ │ │ -001dd670: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -001dd730: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -001dd740: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -001dd810: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -001dd820: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -001dd870: 6e63 6c75 6465 2064 6973 6162 6c65 5f61  nclude disable_a
│ │ │ -001dd880: 7574 6f66 730a 0a63 6c61 7373 2064 6973  utofs..class dis
│ │ │ -001dd890: 6162 6c65 5f61 7574 6f66 7320 7b0a 2020  able_autofs {.  
│ │ │ -001dd8a0: 7365 7276 6963 6520 7b27 6175 746f 6673  service {'autofs
│ │ │ -001dd8b0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ -001dd8c0: 6774 3b20 6661 6c73 652c 0a20 2020 2065  gt; false,.    e
│ │ │ -001dd8d0: 6e73 7572 6520 3d26 6774 3b20 2773 746f  nsure => 'sto
│ │ │ -001dd8e0: 7070 6564 272c 0a20 207d 0a7d 0a3c 2f63  pped',.  }.}.
│ │ │ -001dd900: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ -001dd9a0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -001dd9b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -001dd9c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Complexity:low
Disrup │ │ │ -001dd7f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -001dd800: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -001dd840: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -001dd850: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -001dda60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -001ddab0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -001ddaf0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -001ddb00: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -001ddb10: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -001ddb20: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -001ddb30: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -001ddb40: 542d 3830 302d 3137 312d 332e 342e 360a  T-800-171-3.4.6.
│ │ │ -001ddb50: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001ddb60: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -001ddb70: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -001ddb80: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -001ddb90: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ -001ddba0: 2d38 3030 2d35 332d 4d50 2d37 0a20 202d  -800-53-MP-7.  -
│ │ │ -001ddbb0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -001ddbc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -001ddbd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -001ddbe0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -001ddbf0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -001ddc00: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -001ddc10: 0a20 202d 2073 6572 7669 6365 5f61 7574  .  - service_aut
│ │ │ -001ddc20: 6f66 735f 6469 7361 626c 6564 0a0a 2d20  ofs_disabled..- 
│ │ │ -001ddc30: 6e61 6d65 3a20 4469 7361 626c 6520 7468  name: Disable th
│ │ │ -001ddc40: 6520 4175 746f 6d6f 756e 7465 7220 2d20  e Automounter - 
│ │ │ -001ddc50: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -001ddc60: 6175 746f 6673 0a20 2062 6c6f 636b 3a0a  autofs.  block:.
│ │ │ -001ddc70: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -001ddc80: 6c65 2074 6865 2041 7574 6f6d 6f75 6e74  le the Automount
│ │ │ -001ddc90: 6572 202d 2043 6f6c 6c65 6374 2073 7973  er - Collect sys
│ │ │ -001ddca0: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -001ddcb0: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -001ddcc0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -001ddcd0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -001ddce0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -001ddcf0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -001ddd00: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -001ddd10: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -001ddd20: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -001ddd30: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -001ddd40: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -001ddd50: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -001ddd60: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -001ddd70: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -001ddd80: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -001ddd90: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ -001ddda0: 4175 746f 6d6f 756e 7465 7220 2d20 456e  Automounter - En
│ │ │ -001dddb0: 7375 7265 2061 7574 6f66 732e 7365 7276  sure autofs.serv
│ │ │ -001dddc0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -001dddd0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -001ddde0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -001dddf0: 206e 616d 653a 2061 7574 6f66 732e 7365   name: autofs.se
│ │ │ -001dde00: 7276 6963 650a 2020 2020 2020 7374 6174  rvice.      stat
│ │ │ -001dde10: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -001dde20: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -001dde30: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -001dde40: 7565 0a20 2020 2077 6865 6e3a 2073 6572  ue.    when: ser
│ │ │ -001dde50: 7669 6365 5f65 7869 7374 732e 7374 646f  vice_exists.stdo
│ │ │ -001dde60: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -001dde70: 6368 2822 6175 746f 6673 2e73 6572 7669  ch("autofs.servi
│ │ │ -001dde80: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ -001dde90: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ -001ddea0: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ -001ddeb0: 7473 202d 2061 7574 6f66 732e 736f 636b  ts - autofs.sock
│ │ │ -001ddec0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -001dded0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -001ddee0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -001ddef0: 742d 756e 6974 2d66 696c 6573 2061 7574  t-unit-files aut
│ │ │ -001ddf00: 6f66 732e 736f 636b 6574 0a20 2020 2072  ofs.socket.    r
│ │ │ -001ddf10: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -001ddf20: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -001ddf30: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -001ddf40: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -001ddf50: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -001ddf60: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -001ddf70: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -001ddf80: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -001ddf90: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -001ddfa0: 6520 7468 6520 4175 746f 6d6f 756e 7465  e the Automounte
│ │ │ -001ddfb0: 7220 2d20 4469 7361 626c 6520 536f 636b  r - Disable Sock
│ │ │ -001ddfc0: 6574 2061 7574 6f66 730a 2020 2020 616e  et autofs.    an
│ │ │ -001ddfd0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ -001ddfe0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ -001ddff0: 653a 2061 7574 6f66 732e 736f 636b 6574  e: autofs.socket
│ │ │ -001de000: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -001de010: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ -001de020: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ -001de030: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ -001de040: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ -001de050: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ -001de060: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -001de070: 6828 2261 7574 6f66 732e 736f 636b 6574  h("autofs.socket
│ │ │ -001de080: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -001de090: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ -001de0a0: 4953 542d 3830 302d 3137 312d 332e 342e  IST-800-171-3.4.
│ │ │ -001de0b0: 360a 2020 2d20 4e49 5354 2d38 3030 2d35  6.  - NIST-800-5
│ │ │ -001de0c0: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -001de0d0: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -001de0e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -001de0f0: 332d 434d 2d37 2862 290a 2020 2d20 4e49  3-CM-7(b).  - NI
│ │ │ -001de100: 5354 2d38 3030 2d35 332d 4d50 2d37 0a20  ST-800-53-MP-7. 
│ │ │ -001de110: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -001de120: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -001de130: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -001de140: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -001de150: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -001de160: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -001de170: 6564 0a20 202d 2073 6572 7669 6365 5f61  ed.  - service_a
│ │ │ -001de180: 7574 6f66 735f 6469 7361 626c 6564 0a20  utofs_disabled. 
│ │ │ -001de190: 202d 2073 7065 6369 616c 5f73 6572 7669   - special_servi
│ │ │ -001de1a0: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a  ce_block.  when:
│ │ │ -001de1b0: 2028 2022 6175 746f 6673 2220 696e 2061   ( "autofs" in a
│ │ │ -001de1c0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -001de1d0: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ -001de1e0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -001de1f0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -001de200: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).
< │ │ │ +001dd670: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +001dd6b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -001dda40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -001dda70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -001dda90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -001ddaa0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -001ddac0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -001ddad0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +001dd680: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +001dd6a0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +001dd6d0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +001dd6f0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +001dd720: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +001dd730: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +001dd740: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +001dd750: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +001dd760: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +001dd770: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +001dd780: 3731 2d33 2e34 2e36 0a20 202d 204e 4953  71-3.4.6.  - NIS
│ │ │ +001dd790: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +001dd7a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001dd7b0: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +001dd7c0: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +001dd7d0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +001dd7e0: 2d4d 502d 370a 2020 2d20 6469 7361 626c  -MP-7.  - disabl
│ │ │ +001dd7f0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +001dd800: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +001dd810: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +001dd820: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +001dd830: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +001dd840: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +001dd850: 7276 6963 655f 6175 746f 6673 5f64 6973  rvice_autofs_dis
│ │ │ +001dd860: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ +001dd870: 6973 6162 6c65 2074 6865 2041 7574 6f6d  isable the Autom
│ │ │ +001dd880: 6f75 6e74 6572 202d 2044 6973 6162 6c65  ounter - Disable
│ │ │ +001dd890: 2073 6572 7669 6365 2061 7574 6f66 730a   service autofs.
│ │ │ +001dd8a0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +001dd8b0: 6d65 3a20 4469 7361 626c 6520 7468 6520  me: Disable the 
│ │ │ +001dd8c0: 4175 746f 6d6f 756e 7465 7220 2d20 436f  Automounter - Co
│ │ │ +001dd8d0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +001dd8e0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +001dd8f0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +001dd900: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +001dd910: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +001dd920: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +001dd930: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +001dd940: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +001dd950: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +001dd960: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +001dd970: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +001dd980: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +001dd990: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +001dd9a0: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +001dd9b0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +001dd9c0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +001dd9d0: 6162 6c65 2074 6865 2041 7574 6f6d 6f75  able the Automou
│ │ │ +001dd9e0: 6e74 6572 202d 2045 6e73 7572 6520 6175  nter - Ensure au
│ │ │ +001dd9f0: 746f 6673 2e73 6572 7669 6365 2069 7320  tofs.service is 
│ │ │ +001dda00: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ +001dda10: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +001dda20: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +001dda30: 6175 746f 6673 2e73 6572 7669 6365 0a20  autofs.service. 
│ │ │ +001dda40: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +001dda50: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +001dda60: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +001dda70: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +001dda80: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +001dda90: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +001ddaa0: 7320 6973 2073 6561 7263 6828 2261 7574  s is search("aut
│ │ │ +001ddab0: 6f66 732e 7365 7276 6963 6522 2c20 6d75  ofs.service", mu
│ │ │ +001ddac0: 6c74 696c 696e 653d 5472 7565 290a 0a20  ltiline=True).. 
│ │ │ +001ddad0: 202d 206e 616d 653a 2055 6e69 7420 536f   - name: Unit So
│ │ │ +001ddae0: 636b 6574 2045 7869 7374 7320 2d20 6175  cket Exists - au
│ │ │ +001ddaf0: 746f 6673 2e73 6f63 6b65 740a 2020 2020  tofs.socket.    
│ │ │ +001ddb00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +001ddb10: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +001ddb20: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +001ddb30: 6669 6c65 7320 6175 746f 6673 2e73 6f63  files autofs.soc
│ │ │ +001ddb40: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +001ddb50: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +001ddb60: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +001ddb70: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +001ddb80: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +001ddb90: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +001ddba0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +001ddbb0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +001ddbc0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +001ddbd0: 653a 2044 6973 6162 6c65 2074 6865 2041  e: Disable the A
│ │ │ +001ddbe0: 7574 6f6d 6f75 6e74 6572 202d 2044 6973  utomounter - Dis
│ │ │ +001ddbf0: 6162 6c65 2053 6f63 6b65 7420 6175 746f  able Socket auto
│ │ │ +001ddc00: 6673 0a20 2020 2061 6e73 6962 6c65 2e62  fs.    ansible.b
│ │ │ +001ddc10: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +001ddc20: 2020 2020 2020 6e61 6d65 3a20 6175 746f        name: auto
│ │ │ +001ddc30: 6673 2e73 6f63 6b65 740a 2020 2020 2020  fs.socket.      
│ │ │ +001ddc40: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +001ddc50: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +001ddc60: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +001ddc70: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +001ddc80: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +001ddc90: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +001ddca0: 2069 7320 7365 6172 6368 2822 6175 746f   is search("auto
│ │ │ +001ddcb0: 6673 2e73 6f63 6b65 7422 2c20 6d75 6c74  fs.socket", mult
│ │ │ +001ddcc0: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +001ddcd0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ +001ddce0: 2d31 3731 2d33 2e34 2e36 0a20 202d 204e  -171-3.4.6.  - N
│ │ │ +001ddcf0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +001ddd00: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +001ddd10: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +001ddd20: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +001ddd30: 6229 0a20 202d 204e 4953 542d 3830 302d  b).  - NIST-800-
│ │ │ +001ddd40: 3533 2d4d 502d 370a 2020 2d20 6469 7361  53-MP-7.  - disa
│ │ │ +001ddd50: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +001ddd60: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +001ddd70: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +001ddd80: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +001ddd90: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +001ddda0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +001dddb0: 7365 7276 6963 655f 6175 746f 6673 5f64  service_autofs_d
│ │ │ +001dddc0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +001dddd0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +001ddde0: 6b0a 2020 7768 656e 3a20 2820 2261 7574  k.  when: ( "aut
│ │ │ +001dddf0: 6f66 7322 2069 6e20 616e 7369 626c 655f  ofs" in ansible_
│ │ │ +001dde00: 6661 6374 732e 7061 636b 6167 6573 2061  facts.packages a
│ │ │ +001dde10: 6e64 2022 6c69 6e75 782d 6261 7365 2220  nd "linux-base" 
│ │ │ +001dde20: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +001dde30: 2e70 6163 6b61 6765 730a 2020 2020 290a  .packages.    ).
│ │ │ +001dde40: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +001ddef0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +001ddf00: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
│ │ │ +001ddfa0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +001de040: 636c 7564 6520 6469 7361 626c 655f 6175  clude disable_au
│ │ │ +001de050: 746f 6673 0a0a 636c 6173 7320 6469 7361  tofs..class disa
│ │ │ +001de060: 626c 655f 6175 746f 6673 207b 0a20 2073  ble_autofs {.  s
│ │ │ +001de070: 6572 7669 6365 207b 2761 7574 6f66 7327  ervice {'autofs'
│ │ │ +001de080: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +001de090: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +001de0a0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +001de0b0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +001de0d0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +001de0e0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +001de0f0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +001de100: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +001de110: 6437 3438 2220 7461 6269 6e64 6578 3d22 d748" tabindex=" │ │ │ +001de120: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +001de130: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +001de140: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +001de150: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +001de160: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +001de170: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +001de180: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +001de190: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +001de1e0: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +001de1f0: 735d 0a6d 6173 6b65 6420 3d20 5b22 6175 s].masked = ["au │ │ │ +001de200: 746f 6673 225d 0a3c 2f63 6f64 653e 3c2f tofs"]. │ │ │ 001de220: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64
│ │ │ +001ddf90: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +001ddfc0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +001ddfd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +001de010: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +001de020: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ 001de240: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>R │ │ │ -0022f350: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0022f360: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

< │ │ │ -0022f400: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0022f410: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0022f460: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0022f4a0: 6e63 6c75 6465 2072 656d 6f76 655f 6176  nclude remove_av
│ │ │ -0022f4b0: 6168 690a 0a63 6c61 7373 2072 656d 6f76  ahi..class remov
│ │ │ -0022f4c0: 655f 6176 6168 6920 7b0a 2020 7061 636b  e_avahi {.  pack
│ │ │ -0022f4d0: 6167 6520 7b20 2761 7661 6869 273a 0a20  age { 'avahi':. 
│ │ │ -0022f4e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0022f4f0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -0022f500: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -0022f5b0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -0022f5c0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -0022f5d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -0022f3f0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0022f420: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0022f430: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0022f470: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0022f480: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -0022f6a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0022f6b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0022f700: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ -0022f710: 6c6c 2061 7661 6869 2053 6572 7665 7220  ll avahi Server 
│ │ │ -0022f720: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -0022f730: 6176 6168 6920 6973 2072 656d 6f76 6564  avahi is removed
│ │ │ -0022f740: 270a 2020 616e 7369 626c 652e 6275 696c  '.  ansible.buil
│ │ │ -0022f750: 7469 6e2e 7061 636b 6167 653a 0a20 2020  tin.package:.   
│ │ │ -0022f760: 206e 616d 653a 2061 7661 6869 0a20 2020   name: avahi.   
│ │ │ -0022f770: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ -0022f780: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -0022f790: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -0022f7a0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0022f7b0: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -0022f7c0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -0022f7d0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0022f7e0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0022f7f0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0022f800: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0022f810: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0022f820: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0022f830: 6564 0a20 202d 2070 6163 6b61 6765 5f61  ed.  - package_a
│ │ │ -0022f840: 7661 6869 5f72 656d 6f76 6564 0a3c 2f63  vahi_removed.
Complexity:low
Disrup │ │ │ -0022f680: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0022f690: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0022f6d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0022f6e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +0022f400: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0022f4a0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0022f4b0: 6c20 6176 6168 6920 5365 7276 6572 2050  l avahi Server P
│ │ │ +0022f4c0: 6163 6b61 6765 3a20 456e 7375 7265 2061  ackage: Ensure a
│ │ │ +0022f4d0: 7661 6869 2069 7320 7265 6d6f 7665 6427  vahi is removed'
│ │ │ +0022f4e0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0022f4f0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0022f500: 6e61 6d65 3a20 6176 6168 690a 2020 2020  name: avahi.    
│ │ │ +0022f510: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ +0022f520: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +0022f530: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +0022f540: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0022f550: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0022f560: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0022f570: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0022f580: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0022f590: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0022f5a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +0022f5b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +0022f5c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0022f5d0: 640a 2020 2d20 7061 636b 6167 655f 6176  d.  - package_av
│ │ │ +0022f5e0: 6168 695f 7265 6d6f 7665 640a 3c2f 636f  ahi_removed.
< │ │ │ +0022f600: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0022f610: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0022f620: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0022f630: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0022f640: 6438 3336 2220 7461 6269 6e64 6578 3d22 d836" tabindex=" │ │ │ +0022f650: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0022f660: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0022f670: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0022f680: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0022f690: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0022f6a0: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0022f6b0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
│ │ │ +0022f3f0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0022f420: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0022f430: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0022f470: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0022f480: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Comp │ │ │ +0022f740: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0022f750: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0022f770: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0022f790: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0022f7a0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0022f7e0: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +0022f7f0: 7564 6520 7265 6d6f 7665 5f61 7661 6869  ude remove_avahi
│ │ │ +0022f800: 0a0a 636c 6173 7320 7265 6d6f 7665 5f61  ..class remove_a
│ │ │ +0022f810: 7661 6869 207b 0a20 2070 6163 6b61 6765  vahi {.  package
│ │ │ +0022f820: 207b 2027 6176 6168 6927 3a0a 2020 2020   { 'avahi':.    
│ │ │ +0022f830: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0022f840: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0022f860: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remedia │ │ │ -00230a30: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00230a40: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00230a50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00230a90: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00230aa0: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00230ab0: 6d61 736b 6564 203d 205b 2261 7661 6869  masked = ["avahi
│ │ │ -00230ac0: 2d64 6165 6d6f 6e22 5d0a 3c2f 636f 6465  -daemon"].
Remedi │ │ │ -00230b80: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00230b90: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00230ba0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00230bd0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00230c40: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00230c60: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00230c90: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00230cb0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00230c20: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00230c30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00230c70: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00230c80: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00230cd0: 6469 7361 626c 655f 6176 6168 692d 6461 disable_avahi-da │ │ │ -00230ce0: 656d 6f6e 0a0a 636c 6173 7320 6469 7361 emon..class disa │ │ │ -00230cf0: 626c 655f 6176 6168 692d 6461 656d 6f6e ble_avahi-daemon │ │ │ -00230d00: 207b 0a20 2073 6572 7669 6365 207b 2761 {. service {'a │ │ │ -00230d10: 7661 6869 2d64 6165 6d6f 6e27 3a0a 2020 vahi-daemon':. │ │ │ -00230d20: 2020 656e 6162 6c65 203d 2667 743b 2066 enable => f │ │ │ -00230d30: 616c 7365 2c0a 2020 2020 656e 7375 7265 alse,. ensure │ │ │ -00230d40: 203d 2667 743b 2027 7374 6f70 7065 6427 => 'stopped' │ │ │ -00230d50: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c ,. }.}.< │ │ │ -00230d60: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ -00230e10: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ -00230e20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00230e30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00230e40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00230e50: 7365 2220 6964 3d22 6964 3834 3122 3e3c se" id="id841">< │ │ │ -00230e60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00230e70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00230e80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00230e90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00230ea0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00230eb0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00230ec0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00230f00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00230f10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00230f30: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -00230f40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00230f60: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00230f70: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00230f80: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00230f90: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00230fa0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00230fb0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00230fc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00230fd0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00230fe0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -00230ff0: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ -00231000: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ -00231010: 340a 2020 2d20 6469 7361 626c 655f 7374 4. - disable_st │ │ │ -00231020: 7261 7465 6779 0a20 202d 206c 6f77 5f63 rategy. - low_c │ │ │ -00231030: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f omplexity. - lo │ │ │ -00231040: 775f 6469 7372 7570 7469 6f6e 0a20 202d w_disruption. - │ │ │ -00231050: 206d 6564 6975 6d5f 7365 7665 7269 7479 medium_severity │ │ │ -00231060: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00231070: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00231080: 655f 6176 6168 692d 6461 656d 6f6e 5f64 e_avahi-daemon_d │ │ │ -00231090: 6973 6162 6c65 640a 0a2d 206e 616d 653a isabled..- name: │ │ │ -002310a0: 2044 6973 6162 6c65 2041 7661 6869 2053 Disable Avahi S │ │ │ -002310b0: 6572 7665 7220 536f 6674 7761 7265 202d erver Software - │ │ │ -002310c0: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ -002310d0: 2061 7661 6869 2d64 6165 6d6f 6e0a 2020 avahi-daemon. │ │ │ -002310e0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 block:.. - name │ │ │ -002310f0: 3a20 4469 7361 626c 6520 4176 6168 6920 : Disable Avahi │ │ │ -00231100: 5365 7276 6572 2053 6f66 7477 6172 6520 Server Software │ │ │ -00231110: 2d20 436f 6c6c 6563 7420 7379 7374 656d - Collect system │ │ │ -00231120: 6420 5365 7276 6963 6573 2050 7265 7365 d Services Prese │ │ │ -00231130: 6e74 2069 6e20 7468 650a 2020 2020 2020 nt in the. │ │ │ -00231140: 5379 7374 656d 0a20 2020 2061 6e73 6962 System. ansib │ │ │ -00231150: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -00231160: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -00231170: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -00231180: 202d 2d74 7970 6520 7365 7276 6963 650a --type service. │ │ │ -00231190: 2020 2020 7265 6769 7374 6572 3a20 7365 register: se │ │ │ -002311a0: 7276 6963 655f 6578 6973 7473 0a20 2020 rvice_exists. │ │ │ -002311b0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -002311c0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -002311d0: 7768 656e 3a20 7365 7276 6963 655f 6578 when: service_ex │ │ │ -002311e0: 6973 7473 2e72 6320 6e6f 7420 696e 205b ists.rc not in [ │ │ │ -002311f0: 302c 2031 5d0a 2020 2020 6368 6563 6b5f 0, 1]. check_ │ │ │ -00231200: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d mode: false.. - │ │ │ -00231210: 206e 616d 653a 2044 6973 6162 6c65 2041 name: Disable A │ │ │ -00231220: 7661 6869 2053 6572 7665 7220 536f 6674 vahi Server Soft │ │ │ -00231230: 7761 7265 202d 2045 6e73 7572 6520 6176 ware - Ensure av │ │ │ -00231240: 6168 692d 6461 656d 6f6e 2e73 6572 7669 ahi-daemon.servi │ │ │ -00231250: 6365 2069 7320 4d61 736b 6564 0a20 2020 ce is Masked. │ │ │ -00231260: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00231270: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -00231280: 6e61 6d65 3a20 6176 6168 692d 6461 656d name: avahi-daem │ │ │ -00231290: 6f6e 2e73 6572 7669 6365 0a20 2020 2020 on.service. │ │ │ -002312a0: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -002312b0: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ -002312c0: 616c 7365 0a20 2020 2020 206d 6173 6b65 alse. maske │ │ │ -002312d0: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ -002312e0: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -002312f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973 .stdout_lines is │ │ │ -00231300: 2073 6561 7263 6828 2261 7661 6869 2d64 search("avahi-d │ │ │ -00231310: 6165 6d6f 6e2e 7365 7276 6963 6522 2c20 aemon.service", │ │ │ -00231320: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ -00231330: 0a20 202d 206e 616d 653a 2055 6e69 7420 . - name: Unit │ │ │ -00231340: 536f 636b 6574 2045 7869 7374 7320 2d20 Socket Exists - │ │ │ -00231350: 6176 6168 692d 6461 656d 6f6e 2e73 6f63 avahi-daemon.soc │ │ │ -00231360: 6b65 740a 2020 2020 616e 7369 626c 652e ket. ansible. │ │ │ -00231370: 6275 696c 7469 6e2e 636f 6d6d 616e 643a builtin.command: │ │ │ -00231380: 2073 7973 7465 6d63 746c 202d 7120 6c69 systemctl -q li │ │ │ -00231390: 7374 2d75 6e69 742d 6669 6c65 7320 6176 st-unit-files av │ │ │ -002313a0: 6168 692d 6461 656d 6f6e 2e73 6f63 6b65 ahi-daemon.socke │ │ │ -002313b0: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ -002313c0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ -002313d0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ -002313e0: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ -002313f0: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ -00231400: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ -00231410: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ -00231420: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ -00231430: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ -00231440: 2044 6973 6162 6c65 2041 7661 6869 2053 Disable Avahi S │ │ │ -00231450: 6572 7665 7220 536f 6674 7761 7265 202d erver Software - │ │ │ -00231460: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ -00231470: 6176 6168 692d 6461 656d 6f6e 0a20 2020 avahi-daemon. │ │ │ -00231480: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ -00231490: 2e73 7973 7465 6d64 3a0a 2020 2020 2020 .systemd:. │ │ │ -002314a0: 6e61 6d65 3a20 6176 6168 692d 6461 656d name: avahi-daem │ │ │ -002314b0: 6f6e 2e73 6f63 6b65 740a 2020 2020 2020 on.socket. │ │ │ -002314c0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ -002314d0: 2020 2020 2073 7461 7465 3a20 7374 6f70 state: stop │ │ │ -002314e0: 7065 640a 2020 2020 2020 6d61 736b 6564 ped. masked │ │ │ -002314f0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a : true. when: │ │ │ -00231500: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ -00231510: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ -00231520: 2069 7320 7365 6172 6368 2822 6176 6168 is search("avah │ │ │ -00231530: 692d 6461 656d 6f6e 2e73 6f63 6b65 7422 i-daemon.socket" │ │ │ -00231540: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ -00231550: 290a 2020 7461 6773 3a0a 2020 2d20 4e49 ). tags:. - NI │ │ │ -00231560: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ -00231570: 290a 2020 2d20 4e49 5354 2d38 3030 2d35 ). - NIST-800-5 │ │ │ -00231580: 332d 434d 2d37 2861 290a 2020 2d20 4e49 3-CM-7(a). - NI │ │ │ -00231590: 5354 2d38 3030 2d35 332d 434d 2d37 2862 ST-800-53-CM-7(b │ │ │ -002315a0: 290a 2020 2d20 5043 492d 4453 5376 342d ). - PCI-DSSv4- │ │ │ -002315b0: 322e 320a 2020 2d20 5043 492d 4453 5376 2.2. - PCI-DSSv │ │ │ -002315c0: 342d 322e 322e 340a 2020 2d20 6469 7361 4-2.2.4. - disa │ │ │ -002315d0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -002315e0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -002315f0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -00231600: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -00231610: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -00231620: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -00231630: 7365 7276 6963 655f 6176 6168 692d 6461 service_avahi-da │ │ │ -00231640: 656d 6f6e 5f64 6973 6162 6c65 640a 2020 emon_disabled. │ │ │ -00231650: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -00231660: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ -00231670: 2820 2261 7661 6869 2220 696e 2061 6e73 ( "avahi" in ans │ │ │ -00231680: 6962 6c65 5f66 6163 7473 2e70 6163 6b61 ible_facts.packa │ │ │ -00231690: 6765 7320 616e 6420 226c 696e 7578 2d62 ges and "linux-b │ │ │ -002316a0: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ -002316b0: 6661 6374 732e 7061 636b 6167 6573 0a20 facts.packages. │ │ │ -002316c0: 2020 2029 0a3c 2f63 6f64 653e 3c2f 7072 ).
│ │ │ +00230a50: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00230a80: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00230af0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00230b10: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00230b40: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +00230ad0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00230ae0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00230b20: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00230b30: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +00230b80: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +00230b90: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +00230ba0: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +00230bb0: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +00230bc0: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ +00230bd0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ +00230be0: 204e 4953 542d 3830 302d 3533 2d43 4d2d NIST-800-53-CM- │ │ │ +00230bf0: 3728 6129 0a20 202d 204e 4953 542d 3830 7(a). - NIST-80 │ │ │ +00230c00: 302d 3533 2d43 4d2d 3728 6229 0a20 202d 0-53-CM-7(b). - │ │ │ +00230c10: 2050 4349 2d44 5353 7634 2d32 2e32 0a20 PCI-DSSv4-2.2. │ │ │ +00230c20: 202d 2050 4349 2d44 5353 7634 2d32 2e32 - PCI-DSSv4-2.2 │ │ │ +00230c30: 2e34 0a20 202d 2064 6973 6162 6c65 5f73 .4. - disable_s │ │ │ +00230c40: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ +00230c50: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ +00230c60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ +00230c70: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ +00230c80: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ +00230c90: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ +00230ca0: 6365 5f61 7661 6869 2d64 6165 6d6f 6e5f ce_avahi-daemon_ │ │ │ +00230cb0: 6469 7361 626c 6564 0a0a 2d20 6e61 6d65 disabled..- name │ │ │ +00230cc0: 3a20 4469 7361 626c 6520 4176 6168 6920 : Disable Avahi │ │ │ +00230cd0: 5365 7276 6572 2053 6f66 7477 6172 6520 Server Software │ │ │ +00230ce0: 2d20 4469 7361 626c 6520 7365 7276 6963 - Disable servic │ │ │ +00230cf0: 6520 6176 6168 692d 6461 656d 6f6e 0a20 e avahi-daemon. │ │ │ +00230d00: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ +00230d10: 653a 2044 6973 6162 6c65 2041 7661 6869 e: Disable Avahi │ │ │ +00230d20: 2053 6572 7665 7220 536f 6674 7761 7265 Server Software │ │ │ +00230d30: 202d 2043 6f6c 6c65 6374 2073 7973 7465 - Collect syste │ │ │ +00230d40: 6d64 2053 6572 7669 6365 7320 5072 6573 md Services Pres │ │ │ +00230d50: 656e 7420 696e 2074 6865 0a20 2020 2020 ent in the. │ │ │ +00230d60: 2053 7973 7465 6d0a 2020 2020 616e 7369 System. ansi │ │ │ +00230d70: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ +00230d80: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ +00230d90: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ +00230da0: 7320 2d2d 7479 7065 2073 6572 7669 6365 s --type service │ │ │ +00230db0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ +00230dc0: 6572 7669 6365 5f65 7869 7374 730a 2020 ervice_exists. │ │ │ +00230dd0: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ +00230de0: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ +00230df0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65 _when: service_e │ │ │ +00230e00: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ +00230e10: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ +00230e20: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ +00230e30: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +00230e40: 4176 6168 6920 5365 7276 6572 2053 6f66 Avahi Server Sof │ │ │ +00230e50: 7477 6172 6520 2d20 456e 7375 7265 2061 tware - Ensure a │ │ │ +00230e60: 7661 6869 2d64 6165 6d6f 6e2e 7365 7276 vahi-daemon.serv │ │ │ +00230e70: 6963 6520 6973 204d 6173 6b65 640a 2020 ice is Masked. │ │ │ +00230e80: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +00230e90: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ +00230ea0: 206e 616d 653a 2061 7661 6869 2d64 6165 name: avahi-dae │ │ │ +00230eb0: 6d6f 6e2e 7365 7276 6963 650a 2020 2020 mon.service. │ │ │ +00230ec0: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ +00230ed0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +00230ee0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ +00230ef0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ +00230f00: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ +00230f10: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ +00230f20: 7320 7365 6172 6368 2822 6176 6168 692d s search("avahi- │ │ │ +00230f30: 6461 656d 6f6e 2e73 6572 7669 6365 222c daemon.service", │ │ │ +00230f40: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ +00230f50: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ +00230f60: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ +00230f70: 2061 7661 6869 2d64 6165 6d6f 6e2e 736f avahi-daemon.so │ │ │ +00230f80: 636b 6574 0a20 2020 2061 6e73 6962 6c65 cket. ansible │ │ │ +00230f90: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64 .builtin.command │ │ │ +00230fa0: 3a20 7379 7374 656d 6374 6c20 2d71 206c : systemctl -q l │ │ │ +00230fb0: 6973 742d 756e 6974 2d66 696c 6573 2061 ist-unit-files a │ │ │ +00230fc0: 7661 6869 2d64 6165 6d6f 6e2e 736f 636b vahi-daemon.sock │ │ │ +00230fd0: 6574 0a20 2020 2072 6567 6973 7465 723a et. register: │ │ │ +00230fe0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869 socket_file_exi │ │ │ +00230ff0: 7374 730a 2020 2020 6368 616e 6765 645f sts. changed_ │ │ │ +00231000: 7768 656e 3a20 6661 6c73 650a 2020 2020 when: false. │ │ │ +00231010: 6661 696c 6564 5f77 6865 6e3a 2073 6f63 failed_when: soc │ │ │ +00231020: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ +00231030: 7263 206e 6f74 2069 6e20 5b30 2c20 315d rc not in [0, 1] │ │ │ +00231040: 0a20 2020 2063 6865 636b 5f6d 6f64 653a . check_mode: │ │ │ +00231050: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65 false.. - name │ │ │ +00231060: 3a20 4469 7361 626c 6520 4176 6168 6920 : Disable Avahi │ │ │ +00231070: 5365 7276 6572 2053 6f66 7477 6172 6520 Server Software │ │ │ +00231080: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ +00231090: 2061 7661 6869 2d64 6165 6d6f 6e0a 2020 avahi-daemon. │ │ │ +002310a0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +002310b0: 6e2e 7379 7374 656d 643a 0a20 2020 2020 n.systemd:. │ │ │ +002310c0: 206e 616d 653a 2061 7661 6869 2d64 6165 name: avahi-dae │ │ │ +002310d0: 6d6f 6e2e 736f 636b 6574 0a20 2020 2020 mon.socket. │ │ │ +002310e0: 2065 6e61 626c 6564 3a20 6661 6c73 650a enabled: false. │ │ │ +002310f0: 2020 2020 2020 7374 6174 653a 2073 746f state: sto │ │ │ +00231100: 7070 6564 0a20 2020 2020 206d 6173 6b65 pped. maske │ │ │ +00231110: 643a 2074 7275 650a 2020 2020 7768 656e d: true. when │ │ │ +00231120: 3a20 736f 636b 6574 5f66 696c 655f 6578 : socket_file_ex │ │ │ +00231130: 6973 7473 2e73 7464 6f75 745f 6c69 6e65 ists.stdout_line │ │ │ +00231140: 7320 6973 2073 6561 7263 6828 2261 7661 s is search("ava │ │ │ +00231150: 6869 2d64 6165 6d6f 6e2e 736f 636b 6574 hi-daemon.socket │ │ │ +00231160: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ +00231170: 6529 0a20 2074 6167 733a 0a20 202d 204e e). tags:. - N │ │ │ +00231180: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ +00231190: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ +002311a0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ +002311b0: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ +002311c0: 6229 0a20 202d 2050 4349 2d44 5353 7634 b). - PCI-DSSv4 │ │ │ +002311d0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353 -2.2. - PCI-DSS │ │ │ +002311e0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973 v4-2.2.4. - dis │ │ │ +002311f0: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ +00231200: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ +00231210: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ +00231220: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ +00231230: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ +00231240: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ +00231250: 2073 6572 7669 6365 5f61 7661 6869 2d64 service_avahi-d │ │ │ +00231260: 6165 6d6f 6e5f 6469 7361 626c 6564 0a20 aemon_disabled. │ │ │ +00231270: 202d 2073 7065 6369 616c 5f73 6572 7669 - special_servi │ │ │ +00231280: 6365 5f62 6c6f 636b 0a20 2077 6865 6e3a ce_block. when: │ │ │ +00231290: 2028 2022 6176 6168 6922 2069 6e20 616e ( "avahi" in an │ │ │ +002312a0: 7369 626c 655f 6661 6374 732e 7061 636b sible_facts.pack │ │ │ +002312b0: 6167 6573 2061 6e64 2022 6c69 6e75 782d ages and "linux- │ │ │ +002312c0: 6261 7365 2220 696e 2061 6e73 6962 6c65 base" in ansible │ │ │ +002312d0: 5f66 6163 7473 2e70 6163 6b61 6765 730a _facts.packages. │ │ │ +002312e0: 2020 2020 290a 3c2f 636f 6465 3e3c 2f70 ).

Remediatio │ │ │ +002313a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002313b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00231440: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00231460: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00231470: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00231480: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00231490: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002314b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +002314f0: 626c 655f 6176 6168 692d 6461 656d 6f6e  ble_avahi-daemon
│ │ │ +00231500: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +00231510: 6176 6168 692d 6461 656d 6f6e 207b 0a20  avahi-daemon {. 
│ │ │ +00231520: 2073 6572 7669 6365 207b 2761 7661 6869   service {'avahi
│ │ │ +00231530: 2d64 6165 6d6f 6e27 3a0a 2020 2020 656e  -daemon':.    en
│ │ │ +00231540: 6162 6c65 203d 2667 743b 2066 616c 7365  able => false
│ │ │ +00231550: 2c0a 2020 2020 656e 7375 7265 203d 2667  ,.    ensure =&g
│ │ │ +00231560: 743b 2027 7374 6f70 7065 6427 2c0a 2020  t; 'stopped',.  
│ │ │ +00231570: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ +00231630: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +00231640: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

│ │ │ +00231690: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002316a0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002316b0: 6420 3d20 5b22 6176 6168 692d 6461 656d  d = ["avahi-daem
│ │ │ +002316c0: 6f6e 225d 0a3c 2f63 6f64 653e 3c2f 7072  on"].
│ │ │ 002316f0: 3c2f 7461 626c 653e 3c2f 7464 3e3c 2f74 Remedia │ │ │ -00241590: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -002415a0: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -002415b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -002415f0: 636f 6465 3e0a 5b5b 7061 636b 6167 6573  code>.[[packages
│ │ │ -00241600: 5d5d 0a6e 616d 6520 3d20 2263 726f 6e22  ]].name = "cron"
│ │ │ -00241610: 0a76 6572 7369 6f6e 203d 2022 2a22 0a3c  .version = "*".<
│ │ │ -00241620: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
R │ │ │ -002416d0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002416e0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
< │ │ │ -00241780: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00241790: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002417e0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ -00241820: 6c75 6465 2069 6e73 7461 6c6c 5f63 726f  lude install_cro
│ │ │ -00241830: 6e0a 0a63 6c61 7373 2069 6e73 7461 6c6c  n..class install
│ │ │ -00241840: 5f63 726f 6e20 7b0a 2020 7061 636b 6167  _cron {.  packag
│ │ │ -00241850: 6520 7b20 2763 726f 6e27 3a0a 2020 2020  e { 'cron':.    
│ │ │ -00241860: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -00241870: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -00241880: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ -00241930: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00241940: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00241950: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ -00241770: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002417a0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002417b0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002417f0: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ -00241800: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -00241a20: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00241a30: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -00241a80: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -00241a90: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -00241aa0: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -00241ab0: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -00241ac0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ -00241ad0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ -00241ae0: 6129 0a20 202d 2050 4349 2d44 5353 7634  a).  - PCI-DSSv4
│ │ │ -00241af0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -00241b00: 7634 2d32 2e32 2e36 0a20 202d 2065 6e61  v4-2.2.6.  - ena
│ │ │ -00241b10: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00241b20: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00241b30: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -00241b40: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -00241b50: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00241b60: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00241b70: 7061 636b 6167 655f 6372 6f6e 5f69 6e73  package_cron_ins
│ │ │ -00241b80: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ -00241b90: 456e 7375 7265 2063 726f 6e20 6973 2069  Ensure cron is i
│ │ │ -00241ba0: 6e73 7461 6c6c 6564 0a20 2061 6e73 6962  nstalled.  ansib
│ │ │ -00241bb0: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00241bc0: 6765 3a0a 2020 2020 6e61 6d65 3a20 6372  ge:.    name: cr
│ │ │ -00241bd0: 6f6e 0a20 2020 2073 7461 7465 3a20 7072  on.    state: pr
│ │ │ -00241be0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -00241bf0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -00241c00: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -00241c10: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -00241c20: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00241c30: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -00241c40: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ -00241c50: 2d44 5353 7634 2d32 2e32 2e36 0a20 202d  -DSSv4-2.2.6.  -
│ │ │ -00241c60: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -00241c70: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00241c80: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00241c90: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -00241ca0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -00241cb0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00241cc0: 2020 2d20 7061 636b 6167 655f 6372 6f6e    - package_cron
│ │ │ -00241cd0: 5f69 6e73 7461 6c6c 6564 0a3c 2f63 6f64  _installed.
│ │ │ +002415b0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +002415e0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
Complexity:low
Disrup │ │ │ -00241a00: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00241a10: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00241a50: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -00241a60: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00241650: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00241670: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002416a0: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +002416c0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00241630: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00241640: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00241680: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00241690: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +002416e0: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +002416f0: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00241700: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00241710: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00241720: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +00241730: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +00241740: 5043 492d 4453 5376 342d 322e 320a 2020 PCI-DSSv4-2.2. │ │ │ +00241750: 2d20 5043 492d 4453 5376 342d 322e 322e - PCI-DSSv4-2.2. │ │ │ +00241760: 360a 2020 2d20 656e 6162 6c65 5f73 7472 6. - enable_str │ │ │ +00241770: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +00241780: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +00241790: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +002417a0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +002417b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +002417c0: 6564 6564 0a20 202d 2070 6163 6b61 6765 eded. - package │ │ │ +002417d0: 5f63 726f 6e5f 696e 7374 616c 6c65 640a _cron_installed. │ │ │ +002417e0: 0a2d 206e 616d 653a 2045 6e73 7572 6520 .- name: Ensure │ │ │ +002417f0: 6372 6f6e 2069 7320 696e 7374 616c 6c65 cron is installe │ │ │ +00241800: 640a 2020 616e 7369 626c 652e 6275 696c d. ansible.buil │ │ │ +00241810: 7469 6e2e 7061 636b 6167 653a 0a20 2020 tin.package:. │ │ │ +00241820: 206e 616d 653a 2063 726f 6e0a 2020 2020 name: cron. │ │ │ +00241830: 7374 6174 653a 2070 7265 7365 6e74 0a20 state: present. │ │ │ +00241840: 2077 6865 6e3a 2027 226c 696e 7578 2d62 when: '"linux-b │ │ │ +00241850: 6173 6522 2069 6e20 616e 7369 626c 655f ase" in ansible_ │ │ │ +00241860: 6661 6374 732e 7061 636b 6167 6573 270a facts.packages'. │ │ │ +00241870: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +00241880: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +00241890: 2020 2d20 5043 492d 4453 5376 342d 322e - PCI-DSSv4-2. │ │ │ +002418a0: 320a 2020 2d20 5043 492d 4453 5376 342d 2. - PCI-DSSv4- │ │ │ +002418b0: 322e 322e 360a 2020 2d20 656e 6162 6c65 2.2.6. - enable │ │ │ +002418c0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +002418d0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +002418e0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +002418f0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +00241900: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +00241910: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ +00241920: 6b61 6765 5f63 726f 6e5f 696e 7374 616c kage_cron_instal │ │ │ +00241930: 6c65 640a 3c2f 636f 6465 3e3c 2f70 7265 led.
Remediation │ │ │ +002419f0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00241a00: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00241a80: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00241aa0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00241af0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00241b20: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ +00241b40: 6c5f 6372 6f6e 0a0a 636c 6173 7320 696e  l_cron..class in
│ │ │ +00241b50: 7374 616c 6c5f 6372 6f6e 207b 0a20 2070  stall_cron {.  p
│ │ │ +00241b60: 6163 6b61 6765 207b 2027 6372 6f6e 273a  ackage { 'cron':
│ │ │ +00241b70: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +00241b80: 3b20 2769 6e73 7461 6c6c 6564 272c 0a20  ; 'installed',. 
│ │ │ +00241b90: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.Remediation
│ │ │ +00241c50: 204f 5342 7569 6c64 2042 6c75 6570 7269   OSBuild Bluepri
│ │ │ +00241c60: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f  nt snippet ...
.[[packages]].n
│ │ │ +00241cc0: 616d 6520 3d20 2263 726f 6e22 0a76 6572  ame = "cron".ver
│ │ │ +00241cd0: 7369 6f6e 203d 2022 2a22 0a3c 2f63 6f64  sion = "*".
Remedia │ │ │ -00242f00: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00242f10: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00242f20: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
<
│ │ │ -00242f60: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -00242f70: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -00242f80: 656e 6162 6c65 6420 3d20 5b22 6372 6f6e  enabled = ["cron
│ │ │ -00242f90: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -00242fa0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation P │ │ │ -00243050: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00243060: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Complexity:< │ │ │ +00241a90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00241ab0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00241b00: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00241b10: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
< │ │ │ -002430e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00243100: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00243150: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include enable_
│ │ │ -002431a0: 6372 6f6e 0a0a 636c 6173 7320 656e 6162  cron..class enab
│ │ │ -002431b0: 6c65 5f63 726f 6e20 7b0a 2020 7365 7276  le_cron {.  serv
│ │ │ -002431c0: 6963 6520 7b27 6372 6f6e 273a 0a20 2020  ice {'cron':.   
│ │ │ -002431d0: 2065 6e61 626c 6520 3d26 6774 3b20 7472   enable => tr
│ │ │ -002431e0: 7565 2c0a 2020 2020 656e 7375 7265 203d  ue,.    ensure =
│ │ │ -002431f0: 2667 743b 2027 7275 6e6e 696e 6727 2c0a  > 'running',.
│ │ │ -00243200: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ -002432c0: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -002432d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -00243350: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00243390: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
low
Disr │ │ │ -00243110: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00243120: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00243160: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -00243170: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -00243360: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -00243380: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002433b0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002433d0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -00243400: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00243410: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00243420: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00243430: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00243440: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00243450: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00243460: 2d43 4d2d 3628 6129 0a20 202d 2065 6e61  -CM-6(a).  - ena
│ │ │ -00243470: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -00243480: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -00243490: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002434a0: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ -002434b0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002434c0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002434d0: 7365 7276 6963 655f 6372 6f6e 5f65 6e61  service_cron_ena
│ │ │ -002434e0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 456e  bled..- name: En
│ │ │ -002434f0: 6162 6c65 2063 726f 6e20 5365 7276 6963  able cron Servic
│ │ │ -00243500: 6520 2d20 456e 6162 6c65 2073 6572 7669  e - Enable servi
│ │ │ -00243510: 6365 2063 726f 6e0a 2020 626c 6f63 6b3a  ce cron.  block:
│ │ │ -00243520: 0a0a 2020 2d20 6e61 6d65 3a20 4761 7468  ..  - name: Gath
│ │ │ -00243530: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -00243540: 6163 7473 0a20 2020 2061 6e73 6962 6c65  acts.    ansible
│ │ │ -00243550: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ -00243560: 5f66 6163 7473 3a0a 2020 2020 2020 6d61  _facts:.      ma
│ │ │ -00243570: 6e61 6765 723a 2061 7574 6f0a 0a20 202d  nager: auto..  -
│ │ │ -00243580: 206e 616d 653a 2045 6e61 626c 6520 6372   name: Enable cr
│ │ │ -00243590: 6f6e 2053 6572 7669 6365 202d 2045 6e61  on Service - Ena
│ │ │ -002435a0: 626c 6520 5365 7276 6963 6520 6372 6f6e  ble Service cron
│ │ │ -002435b0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002435c0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002435d0: 2020 2020 6e61 6d65 3a20 6372 6f6e 0a20      name: cron. 
│ │ │ -002435e0: 2020 2020 2065 6e61 626c 6564 3a20 7472       enabled: tr
│ │ │ -002435f0: 7565 0a20 2020 2020 2073 7461 7465 3a20  ue.      state: 
│ │ │ -00243600: 7374 6172 7465 640a 2020 2020 2020 6d61  started.      ma
│ │ │ -00243610: 736b 6564 3a20 6661 6c73 650a 2020 2020  sked: false.    
│ │ │ -00243620: 7768 656e 3a0a 2020 2020 2d20 2722 6372  when:.    - '"cr
│ │ │ -00243630: 6f6e 2220 696e 2061 6e73 6962 6c65 5f66  on" in ansible_f
│ │ │ -00243640: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ -00243650: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00243660: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00243670: 202d 2065 6e61 626c 655f 7374 7261 7465   - enable_strate
│ │ │ -00243680: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -00243690: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002436a0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002436b0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002436c0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002436d0: 640a 2020 2d20 7365 7276 6963 655f 6372  d.  - service_cr
│ │ │ -002436e0: 6f6e 5f65 6e61 626c 6564 0a20 202d 2073  on_enabled.  - s
│ │ │ -002436f0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ -00243700: 6c6f 636b 0a20 2077 6865 6e3a 2027 226c  lock.  when: '"l
│ │ │ -00243710: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -00243720: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -00243730: 6167 6573 270a 3c2f 636f 6465 3e3c 2f70  ages'.


│ │ │ +00242f20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00242f50: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +00242fc0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +00242fe0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +00243010: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +00243030: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +00242fa0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +00242fb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +00242ff0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +00243000: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
- name: │ │ │ +00243050: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00243060: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00243070: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00243080: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00243090: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ +002430a0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ +002430b0: 656e 6162 6c65 5f73 7472 6174 6567 790a enable_strategy. │ │ │ +002430c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869 - low_complexi │ │ │ +002430d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275 ty. - low_disru │ │ │ +002430e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d ption. - medium │ │ │ +002430f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ +00243100: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ +00243110: 202d 2073 6572 7669 6365 5f63 726f 6e5f - service_cron_ │ │ │ +00243120: 656e 6162 6c65 640a 0a2d 206e 616d 653a enabled..- name: │ │ │ +00243130: 2045 6e61 626c 6520 6372 6f6e 2053 6572 Enable cron Ser │ │ │ +00243140: 7669 6365 202d 2045 6e61 626c 6520 7365 vice - Enable se │ │ │ +00243150: 7276 6963 6520 6372 6f6e 0a20 2062 6c6f rvice cron. blo │ │ │ +00243160: 636b 3a0a 0a20 202d 206e 616d 653a 2047 ck:.. - name: G │ │ │ +00243170: 6174 6865 7220 7468 6520 7061 636b 6167 ather the packag │ │ │ +00243180: 6520 6661 6374 730a 2020 2020 616e 7369 e facts. ansi │ │ │ +00243190: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +002431a0: 6167 655f 6661 6374 733a 0a20 2020 2020 age_facts:. │ │ │ +002431b0: 206d 616e 6167 6572 3a20 6175 746f 0a0a manager: auto.. │ │ │ +002431c0: 2020 2d20 6e61 6d65 3a20 456e 6162 6c65 - name: Enable │ │ │ +002431d0: 2063 726f 6e20 5365 7276 6963 6520 2d20 cron Service - │ │ │ +002431e0: 456e 6162 6c65 2053 6572 7669 6365 2063 Enable Service c │ │ │ +002431f0: 726f 6e0a 2020 2020 616e 7369 626c 652e ron. ansible. │ │ │ +00243200: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ +00243210: 0a20 2020 2020 206e 616d 653a 2063 726f . name: cro │ │ │ +00243220: 6e0a 2020 2020 2020 656e 6162 6c65 643a n. enabled: │ │ │ +00243230: 2074 7275 650a 2020 2020 2020 7374 6174 true. stat │ │ │ +00243240: 653a 2073 7461 7274 6564 0a20 2020 2020 e: started. │ │ │ +00243250: 206d 6173 6b65 643a 2066 616c 7365 0a20 masked: false. │ │ │ +00243260: 2020 2077 6865 6e3a 0a20 2020 202d 2027 when:. - ' │ │ │ +00243270: 2263 726f 6e22 2069 6e20 616e 7369 626c "cron" in ansibl │ │ │ +00243280: 655f 6661 6374 732e 7061 636b 6167 6573 e_facts.packages │ │ │ +00243290: 270a 2020 7461 6773 3a0a 2020 2d20 4e49 '. tags:. - NI │ │ │ +002432a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861 ST-800-53-CM-6(a │ │ │ +002432b0: 290a 2020 2d20 656e 6162 6c65 5f73 7472 ). - enable_str │ │ │ +002432c0: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ +002432d0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ +002432e0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ +002432f0: 6d65 6469 756d 5f73 6576 6572 6974 790a medium_severity. │ │ │ +00243300: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65 - no_reboot_ne │ │ │ +00243310: 6564 6564 0a20 202d 2073 6572 7669 6365 eded. - service │ │ │ +00243320: 5f63 726f 6e5f 656e 6162 6c65 640a 2020 _cron_enabled. │ │ │ +00243330: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ +00243340: 655f 626c 6f63 6b0a 2020 7768 656e 3a20 e_block. when: │ │ │ +00243350: 2722 6c69 6e75 782d 6261 7365 2220 696e '"linux-base" in │ │ │ +00243360: 2061 6e73 6962 6c65 5f66 6163 7473 2e70 ansible_facts.p │ │ │ +00243370: 6163 6b61 6765 7327 0a3c 2f63 6f64 653e ackages'. │ │ │ +00243380: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedia │ │ │ +00243430: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +00243440: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00243450: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00243460: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00243470: 7365 2220 6964 3d22 6964 3838 3522 3e3c se" id="id885">< │ │ │ +00243480: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00243490: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002434a0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002434b0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002434c0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002434d0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002434e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00243520: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00243530: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00243550: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +00243560: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include e
│ │ │ +00243580: 6e61 626c 655f 6372 6f6e 0a0a 636c 6173  nable_cron..clas
│ │ │ +00243590: 7320 656e 6162 6c65 5f63 726f 6e20 7b0a  s enable_cron {.
│ │ │ +002435a0: 2020 7365 7276 6963 6520 7b27 6372 6f6e    service {'cron
│ │ │ +002435b0: 273a 0a20 2020 2065 6e61 626c 6520 3d26  ':.    enable =&
│ │ │ +002435c0: 6774 3b20 7472 7565 2c0a 2020 2020 656e  gt; true,.    en
│ │ │ +002435d0: 7375 7265 203d 2667 743b 2027 7275 6e6e  sure => 'runn
│ │ │ +002435e0: 696e 6727 2c0a 2020 7d0a 7d0a 3c2f 636f  ing',.  }.}.
< │ │ │ +00243600: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00243610: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00243620: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00243630: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00243640: 6438 3836 2220 7461 6269 6e64 6578 3d22 d886" tabindex=" │ │ │ +00243650: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +00243660: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +00243670: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +00243680: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +00243690: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +002436a0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ +002436b0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ +002436c0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
.[custom │ │ │ +00243710: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +00243720: 735d 0a65 6e61 626c 6564 203d 205b 2263 s].enabled = ["c │ │ │ +00243730: 726f 6e22 5d0a 3c2f 636f 6465 3e3c 2f70 ron"].

Remed │ │ │ -0025f9b0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -0025f9c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0025fa70: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -0025fa90: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -0025fac0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -0025fa50: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -0025fa60: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -0025fa80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -0025faa0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -0025fab0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -0025faf0: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -0025fb00: 6465 2072 656d 6f76 655f 6e69 730a 0a63 de remove_nis..c │ │ │ -0025fb10: 6c61 7373 2072 656d 6f76 655f 6e69 7320 lass remove_nis │ │ │ -0025fb20: 7b0a 2020 7061 636b 6167 6520 7b20 276e {. package { 'n │ │ │ -0025fb30: 6973 273a 0a20 2020 2065 6e73 7572 6520 is':. ensure │ │ │ -0025fb40: 3d26 6774 3b20 2770 7572 6765 6427 2c0a => 'purged',. │ │ │ -0025fb50: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediatio │ │ │ -0025fc10: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0025fc20: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -0025fca0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0025fcb0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0025fcd0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0025fce0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0025fd00: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0025fd20: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0025fd50: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ -0025fd60: 6e69 6e73 7461 6c6c 2074 6865 206e 6973  ninstall the nis
│ │ │ -0025fd70: 2070 6163 6b61 6765 3a20 456e 7375 7265   package: Ensure
│ │ │ -0025fd80: 206e 6973 2069 7320 7265 6d6f 7665 6427   nis is removed'
│ │ │ -0025fd90: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ -0025fda0: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ -0025fdb0: 6e61 6d65 3a20 6e69 730a 2020 2020 7374  name: nis.    st
│ │ │ -0025fdc0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -0025fdd0: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -0025fde0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0025fdf0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0025fe00: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0025fe10: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -0025fe20: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0025fe30: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -0025fe40: 5f6e 6973 5f72 656d 6f76 6564 0a3c 2f63  _nis_removed.
Comp │ │ │ +0025fa50: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0025fa60: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +0025fa80: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +0025faa0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +0025fab0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +0025faf0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +0025fb00: 653a 2027 556e 696e 7374 616c 6c20 7468  e: 'Uninstall th
│ │ │ +0025fb10: 6520 6e69 7320 7061 636b 6167 653a 2045  e nis package: E
│ │ │ +0025fb20: 6e73 7572 6520 6e69 7320 6973 2072 656d  nsure nis is rem
│ │ │ +0025fb30: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0025fb40: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0025fb50: 0a20 2020 206e 616d 653a 206e 6973 0a20  .    name: nis. 
│ │ │ +0025fb60: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0025fb70: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +0025fb80: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0025fb90: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0025fba0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0025fbb0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0025fbc0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0025fbd0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0025fbe0: 636b 6167 655f 6e69 735f 7265 6d6f 7665  ckage_nis_remove
│ │ │ +0025fbf0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0025fc00: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +0025fcb0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0025fcc0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0025fd90: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0025fda0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0025fe00: 5f6e 6973 0a0a 636c 6173 7320 7265 6d6f  _nis..class remo
│ │ │ +0025fe10: 7665 5f6e 6973 207b 0a20 2070 6163 6b61  ve_nis {.  packa
│ │ │ +0025fe20: 6765 207b 2027 6e69 7327 3a0a 2020 2020  ge { 'nis':.    
│ │ │ +0025fe30: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +0025fe40: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 0025fe60: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -00261930: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -00261940: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
< │ │ │ -002619c0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -00261a00: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +0025fd70: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0025fd80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0025fdc0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0025fdd0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ -002619d0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002619f0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -00261a20: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -00261a40: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -00261a70: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -00261a80: 656d 6f76 655f 6468 6370 0a0a 636c 6173  emove_dhcp..clas
│ │ │ -00261a90: 7320 7265 6d6f 7665 5f64 6863 7020 7b0a  s remove_dhcp {.
│ │ │ -00261aa0: 2020 7061 636b 6167 6520 7b20 2764 6863    package { 'dhc
│ │ │ -00261ab0: 7027 3a0a 2020 2020 656e 7375 7265 203d  p':.    ensure =
│ │ │ -00261ac0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -00261ad0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -00261b90: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -00261ba0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -00261c30: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00261c50: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00261c60: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00261c70: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00261c80: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00261ca0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00261cd0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ -00261ce0: 696e 7374 616c 6c20 4448 4350 2053 6572  install DHCP Ser
│ │ │ -00261cf0: 7665 7220 5061 636b 6167 653a 2045 6e73  ver Package: Ens
│ │ │ -00261d00: 7572 6520 6468 6370 2069 7320 7265 6d6f  ure dhcp is remo
│ │ │ -00261d10: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00261d20: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00261d30: 2020 2020 6e61 6d65 3a20 6468 6370 0a20      name: dhcp. 
│ │ │ -00261d40: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ -00261d50: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ -00261d60: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ -00261d70: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -00261d80: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ -00261d90: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ -00261da0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -00261db0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -00261dc0: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ -00261dd0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -00261de0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -00261df0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -00261e00: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -00261e10: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00261e20: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00261e30: 6163 6b61 6765 5f64 6863 705f 7265 6d6f  ackage_dhcp_remo
│ │ │ -00261e40: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

│ │ │ +002619c0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002619d0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002619e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00261a20: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00261a30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00261a50: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +00261a60: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: '
│ │ │ +00261a80: 556e 696e 7374 616c 6c20 4448 4350 2053  Uninstall DHCP S
│ │ │ +00261a90: 6572 7665 7220 5061 636b 6167 653a 2045  erver Package: E
│ │ │ +00261aa0: 6e73 7572 6520 6468 6370 2069 7320 7265  nsure dhcp is re
│ │ │ +00261ab0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65  moved'.  ansible
│ │ │ +00261ac0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +00261ad0: 3a0a 2020 2020 6e61 6d65 3a20 6468 6370  :.    name: dhcp
│ │ │ +00261ae0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ +00261af0: 6e74 0a20 2074 6167 733a 0a20 202d 204e  nt.  tags:.  - N
│ │ │ +00261b00: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00261b10: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00261b20: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00261b30: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00261b40: 6229 0a20 202d 2050 4349 2d44 5353 7634  b).  - PCI-DSSv4
│ │ │ +00261b50: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +00261b60: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +00261b70: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00261b80: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00261b90: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00261ba0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +00261bb0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +00261bc0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +00261bd0: 2070 6163 6b61 6765 5f64 6863 705f 7265   package_dhcp_re
│ │ │ +00261be0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediatio │ │ │ +00261ca0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +00261cb0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ +00261d40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00261d60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00261d70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00261d80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00261d90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00261db0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +00261de0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +00261df0: 6d6f 7665 5f64 6863 700a 0a63 6c61 7373  move_dhcp..class
│ │ │ +00261e00: 2072 656d 6f76 655f 6468 6370 207b 0a20   remove_dhcp {. 
│ │ │ +00261e10: 2070 6163 6b61 6765 207b 2027 6468 6370   package { 'dhcp
│ │ │ +00261e20: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +00261e30: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +00261e40: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation O │ │ │ -00262a00: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -00262a10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00262a20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
.
│ │ │ -00262a60: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ -00262a70: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ -00262a80: 203d 205b 2264 6863 7064 3622 5d0a 3c2f   = ["dhcpd6"].
Re │ │ │ -00262b40: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -00262b50: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -00262b60: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -00262c00: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00262c50: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -00262be0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00262c10: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00262c30: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00262c40: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00262c60: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -00262c70: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -00262c90: 7564 6520 6469 7361 626c 655f 6468 6370  ude disable_dhcp
│ │ │ -00262ca0: 6436 0a0a 636c 6173 7320 6469 7361 626c  d6..class disabl
│ │ │ -00262cb0: 655f 6468 6370 6436 207b 0a20 2073 6572  e_dhcpd6 {.  ser
│ │ │ -00262cc0: 7669 6365 207b 2764 6863 7064 3627 3a0a  vice {'dhcpd6':.
│ │ │ -00262cd0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00262ce0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -00262cf0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00262d00: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00262dc0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00262dd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -00262e80: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00262ea0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00262ed0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00262e60: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00262e70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00262e90: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00262eb0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00262ec0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00262f00: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00262f10: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00262f20: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00262f30: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00262f40: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00262f50: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -00262f60: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00262f70: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00262f80: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00262f90: 0a20 202d 206d 6564 6975 6d5f 7365 7665 . - medium_seve │ │ │ -00262fa0: 7269 7479 0a20 202d 206e 6f5f 7265 626f rity. - no_rebo │ │ │ -00262fb0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365 ot_needed. - se │ │ │ -00262fc0: 7276 6963 655f 6468 6370 6436 5f64 6973 rvice_dhcpd6_dis │ │ │ -00262fd0: 6162 6c65 640a 0a2d 206e 616d 653a 2044 abled..- name: D │ │ │ -00262fe0: 6973 6162 6c65 2044 4843 5044 3620 5365 isable DHCPD6 Se │ │ │ -00262ff0: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ -00263000: 7365 7276 6963 6520 6468 6370 6436 0a20 service dhcpd6. │ │ │ -00263010: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d block:.. - nam │ │ │ -00263020: 653a 2044 6973 6162 6c65 2044 4843 5044 e: Disable DHCPD │ │ │ -00263030: 3620 5365 7276 6963 6520 2d20 436f 6c6c 6 Service - Coll │ │ │ -00263040: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ -00263050: 6963 6573 2050 7265 7365 6e74 2069 6e20 ices Present in │ │ │ -00263060: 7468 6520 5379 7374 656d 0a20 2020 2061 the System. a │ │ │ -00263070: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63 nsible.builtin.c │ │ │ -00263080: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374 ommand: systemct │ │ │ -00263090: 6c20 2d71 206c 6973 742d 756e 6974 2d66 l -q list-unit-f │ │ │ -002630a0: 696c 6573 202d 2d74 7970 6520 7365 7276 iles --type serv │ │ │ -002630b0: 6963 650a 2020 2020 7265 6769 7374 6572 ice. register │ │ │ -002630c0: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ -002630d0: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -002630e0: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -002630f0: 6c65 645f 7768 656e 3a20 7365 7276 6963 led_when: servic │ │ │ -00263100: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -00263110: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -00263120: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -00263130: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -00263140: 6c65 2044 4843 5044 3620 5365 7276 6963 le DHCPD6 Servic │ │ │ -00263150: 6520 2d20 456e 7375 7265 2064 6863 7064 e - Ensure dhcpd │ │ │ -00263160: 362e 7365 7276 6963 6520 6973 204d 6173 6.service is Mas │ │ │ -00263170: 6b65 640a 2020 2020 616e 7369 626c 652e ked. ansible. │ │ │ -00263180: 6275 696c 7469 6e2e 7379 7374 656d 643a builtin.systemd: │ │ │ -00263190: 0a20 2020 2020 206e 616d 653a 2064 6863 . name: dhc │ │ │ -002631a0: 7064 362e 7365 7276 6963 650a 2020 2020 pd6.service. │ │ │ -002631b0: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -002631c0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -002631d0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -002631e0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002631f0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -00263200: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -00263210: 7320 7365 6172 6368 2822 6468 6370 6436 s search("dhcpd6 │ │ │ -00263220: 2e73 6572 7669 6365 222c 206d 756c 7469 .service", multi │ │ │ -00263230: 6c69 6e65 3d54 7275 6529 0a0a 2020 2d20 line=True).. - │ │ │ -00263240: 6e61 6d65 3a20 556e 6974 2053 6f63 6b65 name: Unit Socke │ │ │ -00263250: 7420 4578 6973 7473 202d 2064 6863 7064 t Exists - dhcpd │ │ │ -00263260: 362e 736f 636b 6574 0a20 2020 2061 6e73 6.socket. ans │ │ │ -00263270: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00263280: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00263290: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -002632a0: 6573 2064 6863 7064 362e 736f 636b 6574 es dhcpd6.socket │ │ │ -002632b0: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -002632c0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -002632d0: 730a 2020 2020 6368 616e 6765 645f 7768 s. changed_wh │ │ │ -002632e0: 656e 3a20 6661 6c73 650a 2020 2020 6661 en: false. fa │ │ │ -002632f0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65 iled_when: socke │ │ │ -00263300: 745f 6669 6c65 5f65 7869 7374 732e 7263 t_file_exists.rc │ │ │ -00263310: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -00263320: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -00263330: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -00263340: 4469 7361 626c 6520 4448 4350 4436 2053 Disable DHCPD6 S │ │ │ -00263350: 6572 7669 6365 202d 2044 6973 6162 6c65 ervice - Disable │ │ │ -00263360: 2053 6f63 6b65 7420 6468 6370 6436 0a20 Socket dhcpd6. │ │ │ -00263370: 2020 2061 6e73 6962 6c65 2e62 7569 6c74 ansible.built │ │ │ -00263380: 696e 2e73 7973 7465 6d64 3a0a 2020 2020 in.systemd:. │ │ │ -00263390: 2020 6e61 6d65 3a20 6468 6370 6436 2e73 name: dhcpd6.s │ │ │ -002633a0: 6f63 6b65 740a 2020 2020 2020 656e 6162 ocket. enab │ │ │ -002633b0: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ -002633c0: 2073 7461 7465 3a20 7374 6f70 7065 640a state: stopped. │ │ │ -002633d0: 2020 2020 2020 6d61 736b 6564 3a20 7472 masked: tr │ │ │ -002633e0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63 ue. when: soc │ │ │ -002633f0: 6b65 745f 6669 6c65 5f65 7869 7374 732e ket_file_exists. │ │ │ -00263400: 7374 646f 7574 5f6c 696e 6573 2069 7320 stdout_lines is │ │ │ -00263410: 7365 6172 6368 2822 6468 6370 6436 2e73 search("dhcpd6.s │ │ │ -00263420: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e ocket", multilin │ │ │ -00263430: 653d 5472 7565 290a 2020 7461 6773 3a0a e=True). tags:. │ │ │ -00263440: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ -00263450: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ -00263460: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ -00263470: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ -00263480: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ -00263490: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -002634a0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -002634b0: 6468 6370 6436 5f64 6973 6162 6c65 640a dhcpd6_disabled. │ │ │ -002634c0: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ -002634d0: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ -002634e0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ -002634f0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ -00263500: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.Remediation A │ │ │ +00262a00: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ +00262a10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00262a90: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00262ab0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00262b00: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00262b30: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00262aa0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00262ac0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00262b10: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00262b20: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ +00262b50: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +00262b60: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +00262b70: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +00262b80: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +00262b90: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00262ba0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00262bb0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00262bc0: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00262bd0: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00262be0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00262bf0: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ +00262c00: 6863 7064 365f 6469 7361 626c 6564 0a0a  hcpd6_disabled..
│ │ │ +00262c10: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00262c20: 4448 4350 4436 2053 6572 7669 6365 202d  DHCPD6 Service -
│ │ │ +00262c30: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +00262c40: 2064 6863 7064 360a 2020 626c 6f63 6b3a   dhcpd6.  block:
│ │ │ +00262c50: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00262c60: 626c 6520 4448 4350 4436 2053 6572 7669  ble DHCPD6 Servi
│ │ │ +00262c70: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00262c80: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00262c90: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +00262ca0: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00262cb0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00262cc0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00262cd0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +00262ce0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +00262cf0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +00262d00: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +00262d10: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00262d20: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00262d30: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00262d40: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00262d50: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00262d60: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +00262d70: 6d65 3a20 4469 7361 626c 6520 4448 4350  me: Disable DHCP
│ │ │ +00262d80: 4436 2053 6572 7669 6365 202d 2045 6e73  D6 Service - Ens
│ │ │ +00262d90: 7572 6520 6468 6370 6436 2e73 6572 7669  ure dhcpd6.servi
│ │ │ +00262da0: 6365 2069 7320 4d61 736b 6564 0a20 2020  ce is Masked.   
│ │ │ +00262db0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00262dc0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00262dd0: 6e61 6d65 3a20 6468 6370 6436 2e73 6572  name: dhcpd6.ser
│ │ │ +00262de0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +00262df0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +00262e00: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00262e10: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00262e20: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +00262e30: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +00262e40: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00262e50: 6828 2264 6863 7064 362e 7365 7276 6963  h("dhcpd6.servic
│ │ │ +00262e60: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ +00262e70: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ +00262e80: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ +00262e90: 7320 2d20 6468 6370 6436 2e73 6f63 6b65  s - dhcpd6.socke
│ │ │ +00262ea0: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +00262eb0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00262ec0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00262ed0: 2d75 6e69 742d 6669 6c65 7320 6468 6370  -unit-files dhcp
│ │ │ +00262ee0: 6436 2e73 6f63 6b65 740a 2020 2020 7265  d6.socket.    re
│ │ │ +00262ef0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ +00262f00: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ +00262f10: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +00262f20: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +00262f30: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ +00262f40: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +00262f50: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +00262f60: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +00262f70: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +00262f80: 2044 4843 5044 3620 5365 7276 6963 6520   DHCPD6 Service 
│ │ │ +00262f90: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ +00262fa0: 2064 6863 7064 360a 2020 2020 616e 7369   dhcpd6.    ansi
│ │ │ +00262fb0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00262fc0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00262fd0: 2064 6863 7064 362e 736f 636b 6574 0a20   dhcpd6.socket. 
│ │ │ +00262fe0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00262ff0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +00263000: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +00263010: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00263020: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +00263030: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +00263040: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00263050: 2264 6863 7064 362e 736f 636b 6574 222c  "dhcpd6.socket",
│ │ │ +00263060: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +00263070: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00263080: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00263090: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002630a0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002630b0: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002630c0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002630d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002630e0: 2073 6572 7669 6365 5f64 6863 7064 365f   service_dhcpd6_
│ │ │ +002630f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00263100: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00263110: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00263120: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00263130: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00263140: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00263200: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +00263210: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +00263290: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002632b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00263300: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ +00263330: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ +00263350: 655f 6468 6370 6436 0a0a 636c 6173 7320  e_dhcpd6..class 
│ │ │ +00263360: 6469 7361 626c 655f 6468 6370 6436 207b  disable_dhcpd6 {
│ │ │ +00263370: 0a20 2073 6572 7669 6365 207b 2764 6863  .  service {'dhc
│ │ │ +00263380: 7064 3627 3a0a 2020 2020 656e 6162 6c65  pd6':.    enable
│ │ │ +00263390: 203d 2667 743b 2066 616c 7365 2c0a 2020   => false,.  
│ │ │ +002633a0: 2020 656e 7375 7265 203d 2667 743b 2027    ensure => '
│ │ │ +002633b0: 7374 6f70 7065 6427 2c0a 2020 7d0a 7d0a  stopped',.  }.}.
│ │ │ +002633c0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
│ │ │ +00263470: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +00263480: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +00263490: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[cu
│ │ │ +002634e0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002634f0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +00263500: 5b22 6468 6370 6436 225d 0a3c 2f63 6f64  ["dhcpd6"].
Complexity:< │ │ │ +002632a0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002632c0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00263310: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ +00263320: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
R │ │ │ -00264310: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -00264320: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -00264330: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00264340: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00264370: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00264380: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00264390: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002643a0: 2264 6863 7064 225d 0a3c 2f63 6f64 653e  "dhcpd"].
│ │ │ -002643b0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00264460: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00264470: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00264480: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00264490: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002644a0: 7365 2220 6964 3d22 6964 3935 3622 3e3c se" id="id956">< │ │ │ -002644b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002644c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002644d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002644e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002644f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00264500: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00264510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -00264550: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00264560: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -00264580: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ -00264590: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
include d
│ │ │ -002645b0: 6973 6162 6c65 5f64 6863 7064 0a0a 636c  isable_dhcpd..cl
│ │ │ -002645c0: 6173 7320 6469 7361 626c 655f 6468 6370  ass disable_dhcp
│ │ │ -002645d0: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -002645e0: 6468 6370 6427 3a0a 2020 2020 656e 6162  dhcpd':.    enab
│ │ │ -002645f0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00264600: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00264610: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00264620: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00264630: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -002646e0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002646f0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00264770: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00264790: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002647e0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00264810: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00264830: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00264840: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00264850: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00264860: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00264870: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00264880: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00264890: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002648a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002648b0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002648c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002648d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002648e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002648f0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00264900: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00264910: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00264920: 7276 6963 655f 6468 6370 645f 6469 7361  rvice_dhcpd_disa
│ │ │ -00264930: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -00264940: 7361 626c 6520 4448 4350 2053 6572 7669  sable DHCP Servi
│ │ │ -00264950: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ -00264960: 7669 6365 2064 6863 7064 0a20 2062 6c6f  vice dhcpd.  blo
│ │ │ -00264970: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -00264980: 6973 6162 6c65 2044 4843 5020 5365 7276  isable DHCP Serv
│ │ │ -00264990: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -002649a0: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -002649b0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -002649c0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -002649d0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -002649e0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -002649f0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00264a00: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00264a10: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -00264a20: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -00264a30: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -00264a40: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -00264a50: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -00264a60: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -00264a70: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00264a80: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00264a90: 616d 653a 2044 6973 6162 6c65 2044 4843  ame: Disable DHC
│ │ │ -00264aa0: 5020 5365 7276 6963 6520 2d20 456e 7375  P Service - Ensu
│ │ │ -00264ab0: 7265 2064 6863 7064 2e73 6572 7669 6365  re dhcpd.service
│ │ │ -00264ac0: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ -00264ad0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ -00264ae0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ -00264af0: 6d65 3a20 6468 6370 642e 7365 7276 6963  me: dhcpd.servic
│ │ │ -00264b00: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00264b10: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ -00264b20: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -00264b30: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -00264b40: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ -00264b50: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ -00264b60: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ -00264b70: 6468 6370 642e 7365 7276 6963 6522 2c20  dhcpd.service", 
│ │ │ -00264b80: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -00264b90: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -00264ba0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -00264bb0: 6468 6370 642e 736f 636b 6574 0a20 2020  dhcpd.socket.   
│ │ │ -00264bc0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00264bd0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00264be0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -00264bf0: 2d66 696c 6573 2064 6863 7064 2e73 6f63  -files dhcpd.soc
│ │ │ -00264c00: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -00264c10: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -00264c20: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -00264c30: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -00264c40: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -00264c50: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -00264c60: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -00264c70: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -00264c80: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -00264c90: 653a 2044 6973 6162 6c65 2044 4843 5020  e: Disable DHCP 
│ │ │ -00264ca0: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00264cb0: 6520 536f 636b 6574 2064 6863 7064 0a20  e Socket dhcpd. 
│ │ │ -00264cc0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -00264cd0: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -00264ce0: 2020 6e61 6d65 3a20 6468 6370 642e 736f    name: dhcpd.so
│ │ │ -00264cf0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -00264d00: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00264d10: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -00264d20: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -00264d30: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -00264d40: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -00264d50: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -00264d60: 6561 7263 6828 2264 6863 7064 2e73 6f63  earch("dhcpd.soc
│ │ │ -00264d70: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ -00264d80: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ -00264d90: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00264da0: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00264db0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00264dc0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00264dd0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00264de0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00264df0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00264e00: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00264e10: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00264e20: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00264e30: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00264e40: 7276 6963 655f 6468 6370 645f 6469 7361  rvice_dhcpd_disa
│ │ │ -00264e50: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ -00264e60: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ -00264e70: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ -00264e80: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ -00264e90: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00264310: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +00264320: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
low
Disr │ │ │ -002647a0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002647b0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002647f0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00264800: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002643c0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00264460: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00264470: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00264480: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00264490: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002644a0: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +002644b0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002644c0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002644d0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +002644e0: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +002644f0: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +00264500: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00264510: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00264520: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00264530: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00264540: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00264550: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00264560: 6365 5f64 6863 7064 5f64 6973 6162 6c65  ce_dhcpd_disable
│ │ │ +00264570: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +00264580: 6c65 2044 4843 5020 5365 7276 6963 6520  le DHCP Service 
│ │ │ +00264590: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +002645a0: 6520 6468 6370 640a 2020 626c 6f63 6b3a  e dhcpd.  block:
│ │ │ +002645b0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +002645c0: 626c 6520 4448 4350 2053 6572 7669 6365  ble DHCP Service
│ │ │ +002645d0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ +002645e0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ +002645f0: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ +00264600: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ +00264610: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +00264620: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +00264630: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ +00264640: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ +00264650: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ +00264660: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +00264670: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +00264680: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +00264690: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002646a0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +002646b0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +002646c0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +002646d0: 3a20 4469 7361 626c 6520 4448 4350 2053  : Disable DHCP S
│ │ │ +002646e0: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ +002646f0: 6468 6370 642e 7365 7276 6963 6520 6973  dhcpd.service is
│ │ │ +00264700: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +00264710: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +00264720: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +00264730: 2064 6863 7064 2e73 6572 7669 6365 0a20   dhcpd.service. 
│ │ │ +00264740: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00264750: 7065 640a 2020 2020 2020 656e 6162 6c65  ped.      enable
│ │ │ +00264760: 643a 2066 616c 7365 0a20 2020 2020 206d  d: false.      m
│ │ │ +00264770: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +00264780: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ +00264790: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002647a0: 7320 6973 2073 6561 7263 6828 2264 6863  s is search("dhc
│ │ │ +002647b0: 7064 2e73 6572 7669 6365 222c 206d 756c  pd.service", mul
│ │ │ +002647c0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +002647d0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +002647e0: 6b65 7420 4578 6973 7473 202d 2064 6863  ket Exists - dhc
│ │ │ +002647f0: 7064 2e73 6f63 6b65 740a 2020 2020 616e  pd.socket.    an
│ │ │ +00264800: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ +00264810: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ +00264820: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ +00264830: 6c65 7320 6468 6370 642e 736f 636b 6574  les dhcpd.socket
│ │ │ +00264840: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +00264850: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00264860: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +00264870: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +00264880: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +00264890: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +002648a0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002648b0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002648c0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002648d0: 4469 7361 626c 6520 4448 4350 2053 6572  Disable DHCP Ser
│ │ │ +002648e0: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ +002648f0: 6f63 6b65 7420 6468 6370 640a 2020 2020  ocket dhcpd.    
│ │ │ +00264900: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +00264910: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +00264920: 616d 653a 2064 6863 7064 2e73 6f63 6b65  ame: dhcpd.socke
│ │ │ +00264930: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ +00264940: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ +00264950: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +00264960: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00264970: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ +00264980: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ +00264990: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ +002649a0: 6368 2822 6468 6370 642e 736f 636b 6574  ch("dhcpd.socket
│ │ │ +002649b0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002649c0: 6529 0a20 2074 6167 733a 0a20 202d 204e  e).  tags:.  - N
│ │ │ +002649d0: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +002649e0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +002649f0: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00264a00: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00264a10: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +00264a20: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00264a30: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00264a40: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00264a50: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00264a60: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00264a70: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00264a80: 6365 5f64 6863 7064 5f64 6973 6162 6c65  ce_dhcpd_disable
│ │ │ +00264a90: 640a 2020 2d20 7370 6563 6961 6c5f 7365  d.  - special_se
│ │ │ +00264aa0: 7276 6963 655f 626c 6f63 6b0a 2020 7768  rvice_block.  wh
│ │ │ +00264ab0: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00264ac0: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00264ad0: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00264af0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Rem │ │ │ +00264b90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00264ba0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00264bb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +002643b0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002643e0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002643f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00264430: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00264440: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Com │ │ │ +00264c30: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +00264c60: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +00264c80: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +00264c90: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +00264cb0: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ +00264cd0: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ +00264ce0: 6465 2064 6973 6162 6c65 5f64 6863 7064  de disable_dhcpd
│ │ │ +00264cf0: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ +00264d00: 6468 6370 6420 7b0a 2020 7365 7276 6963  dhcpd {.  servic
│ │ │ +00264d10: 6520 7b27 6468 6370 6427 3a0a 2020 2020  e {'dhcpd':.    
│ │ │ +00264d20: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ +00264d30: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ +00264d40: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ +00264d50: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediatio │ │ │ +00264e10: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00264e20: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00264e30: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizatio
│ │ │ +00264e80: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ +00264e90: 6b65 6420 3d20 5b22 6468 6370 6422 5d0a  ked = ["dhcpd"].
│ │ │  00264ea0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation P │ │ │ -00266450: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -00266460: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .

< │ │ │ -002664e0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00266500: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00266550: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00266580: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002665a0: 655f 6269 6e64 0a0a 636c 6173 7320 7265  e_bind..class re
│ │ │ -002665b0: 6d6f 7665 5f62 696e 6420 7b0a 2020 7061  move_bind {.  pa
│ │ │ -002665c0: 636b 6167 6520 7b20 2762 696e 6427 3a0a  ckage { 'bind':.
│ │ │ -002665d0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002665e0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002665f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -002666b0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002666c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disr │ │ │ -00266510: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00266520: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00266560: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00266570: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
Complexity: │ │ │ -00266790: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -002667a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ -00266800: 616c 6c20 6269 6e64 2050 6163 6b61 6765  all bind Package
│ │ │ -00266810: 3a20 456e 7375 7265 2062 696e 6420 6973  : Ensure bind is
│ │ │ -00266820: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -00266830: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -00266840: 6167 653a 0a20 2020 206e 616d 653a 2062  age:.    name: b
│ │ │ -00266850: 696e 640a 2020 2020 7374 6174 653a 2061  ind.    state: a
│ │ │ -00266860: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -00266870: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00266880: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00266890: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -002668a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002668b0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -002668c0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002668d0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002668e0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002668f0: 0a20 202d 206c 6f77 5f73 6576 6572 6974  .  - low_severit
│ │ │ -00266900: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -00266910: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -00266920: 6765 5f62 696e 645f 7265 6d6f 7665 640a  ge_bind_removed.
│ │ │ +00266440: 2122 3e52 656d 6564 6961 7469 6f6e 2041  !">Remediation A
│ │ │ +00266450: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +00266460: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
low
Disru │ │ │ -00266770: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00266780: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -002667c0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -002667d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +002664e0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00266500: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +00266550: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00266580: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002664f0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +00266510: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +00266560: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00266570: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002665a0: 7374 616c 6c20 6269 6e64 2050 6163 6b61  stall bind Packa
│ │ │ +002665b0: 6765 3a20 456e 7375 7265 2062 696e 6420  ge: Ensure bind 
│ │ │ +002665c0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002665d0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002665e0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002665f0: 2062 696e 640a 2020 2020 7374 6174 653a   bind.    state:
│ │ │ +00266600: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +00266610: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00266620: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +00266630: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +00266640: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00266650: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +00266660: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00266670: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00266680: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00266690: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002666a0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002666b0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002666c0: 6b61 6765 5f62 696e 645f 7265 6d6f 7665  kage_bind_remove
│ │ │ +002666d0: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +002666e0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation Pu │ │ │ +00266790: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002667a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00266870: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00266880: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +002668e0: 5f62 696e 640a 0a63 6c61 7373 2072 656d  _bind..class rem
│ │ │ +002668f0: 6f76 655f 6269 6e64 207b 0a20 2070 6163  ove_bind {.  pac
│ │ │ +00266900: 6b61 6765 207b 2027 6269 6e64 273a 0a20  kage { 'bind':. 
│ │ │ +00266910: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00266920: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00266930: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
R │ │ │ -002679a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002679b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002679c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002679d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00267a00: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -00267a10: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -00267a20: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -00267a30: 226e 616d 6564 225d 0a3c 2f63 6f64 653e  "named"].
│ │ │ -00267a40: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00267af0: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00267b00: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00267b10: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00267b20: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00267b30: 7365 2220 6964 3d22 6964 3936 3422 3e3c se" id="id964">< │ │ │ -00267b40: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00267b50: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00267b60: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00267b70: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00267b80: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Disruption:Strategy: │ │ │ -00267c10: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00267c20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00266850: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00266860: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002668a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002668b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -00267b90: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00267ba0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00267be0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00267bf0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -00267c40: 6973 6162 6c65 5f6e 616d 6564 0a0a 636c  isable_named..cl
│ │ │ -00267c50: 6173 7320 6469 7361 626c 655f 6e61 6d65  ass disable_name
│ │ │ -00267c60: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ -00267c70: 6e61 6d65 6427 3a0a 2020 2020 656e 6162  named':.    enab
│ │ │ -00267c80: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -00267c90: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -00267ca0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -00267cb0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00267cc0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -00267d70: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -00267d80: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
< │ │ │ -00267e00: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00267e20: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00267e70: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -00267ea0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -00267ec0: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -00267ed0: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -00267ee0: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -00267ef0: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -00267f00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00267f10: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ -00267f20: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ -00267f30: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -00267f40: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ -00267f50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -00267f60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -00267f70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00267f80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ -00267f90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -00267fa0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ -00267fb0: 7276 6963 655f 6e61 6d65 645f 6469 7361  rvice_named_disa
│ │ │ -00267fc0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -00267fd0: 7361 626c 6520 6e61 6d65 6420 5365 7276  sable named Serv
│ │ │ -00267fe0: 6963 6520 2d20 4469 7361 626c 6520 7365  ice - Disable se
│ │ │ -00267ff0: 7276 6963 6520 6e61 6d65 640a 2020 626c  rvice named.  bl
│ │ │ -00268000: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ -00268010: 4469 7361 626c 6520 6e61 6d65 6420 5365  Disable named Se
│ │ │ -00268020: 7276 6963 6520 2d20 436f 6c6c 6563 7420  rvice - Collect 
│ │ │ -00268030: 7379 7374 656d 6420 5365 7276 6963 6573  systemd Services
│ │ │ -00268040: 2050 7265 7365 6e74 2069 6e20 7468 6520   Present in the 
│ │ │ -00268050: 5379 7374 656d 0a20 2020 2061 6e73 6962  System.    ansib
│ │ │ -00268060: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61  le.builtin.comma
│ │ │ -00268070: 6e64 3a20 7379 7374 656d 6374 6c20 2d71  nd: systemctl -q
│ │ │ -00268080: 206c 6973 742d 756e 6974 2d66 696c 6573   list-unit-files
│ │ │ -00268090: 202d 2d74 7970 6520 7365 7276 6963 650a   --type service.
│ │ │ -002680a0: 2020 2020 7265 6769 7374 6572 3a20 7365      register: se
│ │ │ -002680b0: 7276 6963 655f 6578 6973 7473 0a20 2020  rvice_exists.   
│ │ │ -002680c0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002680d0: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002680e0: 7768 656e 3a20 7365 7276 6963 655f 6578  when: service_ex
│ │ │ -002680f0: 6973 7473 2e72 6320 6e6f 7420 696e 205b  ists.rc not in [
│ │ │ -00268100: 302c 2031 5d0a 2020 2020 6368 6563 6b5f  0, 1].    check_
│ │ │ -00268110: 6d6f 6465 3a20 6661 6c73 650a 0a20 202d  mode: false..  -
│ │ │ -00268120: 206e 616d 653a 2044 6973 6162 6c65 206e   name: Disable n
│ │ │ -00268130: 616d 6564 2053 6572 7669 6365 202d 2045  amed Service - E
│ │ │ -00268140: 6e73 7572 6520 6e61 6d65 642e 7365 7276  nsure named.serv
│ │ │ -00268150: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ -00268160: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00268170: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00268180: 206e 616d 653a 206e 616d 6564 2e73 6572   name: named.ser
│ │ │ -00268190: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ -002681a0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002681b0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ -002681c0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -002681d0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ -002681e0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ -002681f0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ -00268200: 6828 226e 616d 6564 2e73 6572 7669 6365  h("named.service
│ │ │ -00268210: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00268220: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00268230: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00268240: 202d 206e 616d 6564 2e73 6f63 6b65 740a   - named.socket.
│ │ │ -00268250: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00268260: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -00268270: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -00268280: 6e69 742d 6669 6c65 7320 6e61 6d65 642e  nit-files named.
│ │ │ -00268290: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ -002682a0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ -002682b0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002682c0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002682d0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002682e0: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ -002682f0: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ -00268300: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ -00268310: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ -00268320: 6e61 6d65 3a20 4469 7361 626c 6520 6e61  name: Disable na
│ │ │ -00268330: 6d65 6420 5365 7276 6963 6520 2d20 4469  med Service - Di
│ │ │ -00268340: 7361 626c 6520 536f 636b 6574 206e 616d  sable Socket nam
│ │ │ -00268350: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -00268360: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -00268370: 2020 2020 2020 6e61 6d65 3a20 6e61 6d65        name: name
│ │ │ -00268380: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -00268390: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002683a0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002683b0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002683c0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002683d0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002683e0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002683f0: 6973 2073 6561 7263 6828 226e 616d 6564  is search("named
│ │ │ -00268400: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ -00268410: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ -00268420: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ -00268430: 332d 434d 2d36 2861 290a 2020 2d20 4e49  3-CM-6(a).  - NI
│ │ │ -00268440: 5354 2d38 3030 2d35 332d 434d 2d37 2861  ST-800-53-CM-7(a
│ │ │ -00268450: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -00268460: 332d 434d 2d37 2862 290a 2020 2d20 6469  3-CM-7(b).  - di
│ │ │ -00268470: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00268480: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00268490: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -002684a0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -002684b0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002684c0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002684d0: 2d20 7365 7276 6963 655f 6e61 6d65 645f  - service_named_
│ │ │ -002684e0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ -002684f0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -00268500: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ -00268510: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00268520: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00268530: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.

low
Disr │ │ │ -00267e30: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00267e40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -00267e80: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -00267e90: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +00267a50: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +00267af0: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +00267b00: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +00267b10: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +00267b20: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +00267b30: 746f 0a20 2074 6167 733a 0a20 202d 204e  to.  tags:.  - N
│ │ │ +00267b40: 4953 542d 3830 302d 3533 2d43 4d2d 3628  IST-800-53-CM-6(
│ │ │ +00267b50: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00267b60: 3533 2d43 4d2d 3728 6129 0a20 202d 204e  53-CM-7(a).  - N
│ │ │ +00267b70: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00267b80: 6229 0a20 202d 2064 6973 6162 6c65 5f73  b).  - disable_s
│ │ │ +00267b90: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00267ba0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00267bb0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00267bc0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +00267bd0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +00267be0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +00267bf0: 6365 5f6e 616d 6564 5f64 6973 6162 6c65  ce_named_disable
│ │ │ +00267c00: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ +00267c10: 6c65 206e 616d 6564 2053 6572 7669 6365  le named Service
│ │ │ +00267c20: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00267c30: 6365 206e 616d 6564 0a20 2062 6c6f 636b  ce named.  block
│ │ │ +00267c40: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00267c50: 6162 6c65 206e 616d 6564 2053 6572 7669  able named Servi
│ │ │ +00267c60: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00267c70: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00267c80: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +00267c90: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00267ca0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00267cb0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00267cc0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +00267cd0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +00267ce0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +00267cf0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +00267d00: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00267d10: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00267d20: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00267d30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00267d40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00267d50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +00267d60: 6d65 3a20 4469 7361 626c 6520 6e61 6d65  me: Disable name
│ │ │ +00267d70: 6420 5365 7276 6963 6520 2d20 456e 7375  d Service - Ensu
│ │ │ +00267d80: 7265 206e 616d 6564 2e73 6572 7669 6365  re named.service
│ │ │ +00267d90: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00267da0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00267db0: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00267dc0: 6d65 3a20 6e61 6d65 642e 7365 7276 6963  me: named.servic
│ │ │ +00267dd0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00267de0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00267df0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00267e00: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00267e10: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00267e20: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00267e30: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00267e40: 6e61 6d65 642e 7365 7276 6963 6522 2c20  named.service", 
│ │ │ +00267e50: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00267e60: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00267e70: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00267e80: 6e61 6d65 642e 736f 636b 6574 0a20 2020  named.socket.   
│ │ │ +00267e90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00267ea0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00267eb0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00267ec0: 2d66 696c 6573 206e 616d 6564 2e73 6f63  -files named.soc
│ │ │ +00267ed0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00267ee0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00267ef0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +00267f00: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +00267f10: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +00267f20: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +00267f30: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +00267f40: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +00267f50: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00267f60: 653a 2044 6973 6162 6c65 206e 616d 6564  e: Disable named
│ │ │ +00267f70: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00267f80: 6c65 2053 6f63 6b65 7420 6e61 6d65 640a  le Socket named.
│ │ │ +00267f90: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00267fa0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00267fb0: 2020 206e 616d 653a 206e 616d 6564 2e73     name: named.s
│ │ │ +00267fc0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00267fd0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00267fe0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00267ff0: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +00268000: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +00268010: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00268020: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00268030: 7365 6172 6368 2822 6e61 6d65 642e 736f  search("named.so
│ │ │ +00268040: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +00268050: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00268060: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00268070: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +00268080: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ +00268090: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002680a0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ +002680b0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +002680c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +002680d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002680e0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +002680f0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +00268100: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +00268110: 6572 7669 6365 5f6e 616d 6564 5f64 6973  ervice_named_dis
│ │ │ +00268120: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +00268130: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +00268140: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +00268150: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +00268160: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00268170: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ +00268230: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00268240: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00267a40: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +00267a70: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +00267a80: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +00267ac0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +00267ad0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +00268310: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +00268320: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +00268370: 6e63 6c75 6465 2064 6973 6162 6c65 5f6e  nclude disable_n
│ │ │ +00268380: 616d 6564 0a0a 636c 6173 7320 6469 7361  amed..class disa
│ │ │ +00268390: 626c 655f 6e61 6d65 6420 7b0a 2020 7365  ble_named {.  se
│ │ │ +002683a0: 7276 6963 6520 7b27 6e61 6d65 6427 3a0a  rvice {'named':.
│ │ │ +002683b0: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +002683c0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +002683d0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +002683e0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ +002684a0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +002684b0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +002684c0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ +00268500: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +00268510: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +00268520: 0a6d 6173 6b65 6420 3d20 5b22 6e61 6d65  .masked = ["name
│ │ │ +00268530: 6422 5d0a 3c2f 636f 6465 3e3c 2f70 7265  d"].
< │ │ │ 00268560: 2f74 6162 6c65 3e3c 2f74 643e 3c2f 7472 /table>Remediation Pup │ │ │ -00268de0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00268df0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity:low
Disrup │ │ │ +002682f0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +00268300: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +00268340: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +00268350: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ -00268ec0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00268ed0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00268f20: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00268f30: 646e 736d 6173 710a 0a63 6c61 7373 2072  dnsmasq..class r
│ │ │ -00268f40: 656d 6f76 655f 646e 736d 6173 7120 7b0a  emove_dnsmasq {.
│ │ │ -00268f50: 2020 7061 636b 6167 6520 7b20 2764 6e73    package { 'dns
│ │ │ -00268f60: 6d61 7371 273a 0a20 2020 2065 6e73 7572  masq':.    ensur
│ │ │ -00268f70: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -00268f80: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -00268f90: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remediat
│ │ │ -00269040: 696f 6e20 416e 7369 626c 6520 736e 6970  ion Ansible snip
│ │ │ -00269050: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00269060: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00269070: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00269080: 7365 2220 6964 3d22 6964 3936 3822 3e3c se" id="id968">< │ │ │ -00269090: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002690a0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002690b0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002690c0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002690d0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00269160: 3c74 643e 6469 7361 626c 653c 2f74 643e │ │ │ -00269170: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Complexity:low
Disrup │ │ │ -00268ea0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00268eb0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00268ef0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00268f00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complex │ │ │ -002690e0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002690f0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00269130: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00269140: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
disable
- name: │ │ │ -00269190: 2755 6e69 6e73 7461 6c6c 2064 6e73 6d61 'Uninstall dnsma │ │ │ -002691a0: 7371 2050 6163 6b61 6765 3a20 456e 7375 sq Package: Ensu │ │ │ -002691b0: 7265 2064 6e73 6d61 7371 2069 7320 7265 re dnsmasq is re │ │ │ -002691c0: 6d6f 7665 6427 0a20 2061 6e73 6962 6c65 moved'. ansible │ │ │ -002691d0: 2e62 7569 6c74 696e 2e70 6163 6b61 6765 .builtin.package │ │ │ -002691e0: 3a0a 2020 2020 6e61 6d65 3a20 646e 736d :. name: dnsm │ │ │ -002691f0: 6173 710a 2020 2020 7374 6174 653a 2061 asq. state: a │ │ │ -00269200: 6273 656e 740a 2020 7461 6773 3a0a 2020 bsent. tags:. │ │ │ -00269210: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00269220: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00269230: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00269240: 7372 7570 7469 6f6e 0a20 202d 206c 6f77 sruption. - low │ │ │ -00269250: 5f73 6576 6572 6974 790a 2020 2d20 6e6f _severity. - no │ │ │ -00269260: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00269270: 202d 2070 6163 6b61 6765 5f64 6e73 6d61 - package_dnsma │ │ │ -00269280: 7371 5f72 656d 6f76 6564 0a3c 2f63 6f64 sq_removed.Remediation Ans │ │ │ +00268de0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +00268df0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +00268ec0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00268ed0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Uninst
│ │ │ +00268f30: 616c 6c20 646e 736d 6173 7120 5061 636b  all dnsmasq Pack
│ │ │ +00268f40: 6167 653a 2045 6e73 7572 6520 646e 736d  age: Ensure dnsm
│ │ │ +00268f50: 6173 7120 6973 2072 656d 6f76 6564 270a  asq is removed'.
│ │ │ +00268f60: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00268f70: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00268f80: 616d 653a 2064 6e73 6d61 7371 0a20 2020  ame: dnsmasq.   
│ │ │ +00268f90: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00268fa0: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00268fb0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00268fc0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00268fd0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +00268fe0: 6e0a 2020 2d20 6c6f 775f 7365 7665 7269  n.  - low_severi
│ │ │ +00268ff0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +00269000: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +00269010: 6167 655f 646e 736d 6173 715f 7265 6d6f  age_dnsmasq_remo
│ │ │ +00269020: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.
Remediation │ │ │ +002690e0: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002690f0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low
Disru │ │ │ +00268ea0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00268eb0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00268ef0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00268f00: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00269170: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +00269190: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002691e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +00269210: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +00269180: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002691a0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002691f0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +00269200: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ +00269230: 7665 5f64 6e73 6d61 7371 0a0a 636c 6173  ve_dnsmasq..clas
│ │ │ +00269240: 7320 7265 6d6f 7665 5f64 6e73 6d61 7371  s remove_dnsmasq
│ │ │ +00269250: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +00269260: 646e 736d 6173 7127 3a0a 2020 2020 656e  dnsmasq':.    en
│ │ │ +00269270: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +00269280: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remediat │ │ │ -00269de0: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -00269df0: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -00269e00: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
.[customizat
│ │ │ -00269e50: 696f 6e73 2e73 6572 7669 6365 735d 0a6d  ions.services].m
│ │ │ -00269e60: 6173 6b65 6420 3d20 5b22 646e 736d 6173  asked = ["dnsmas
│ │ │ -00269e70: 7122 5d0a 3c2f 636f 6465 3e3c 2f70 7265  q"].
Remediation │ │ │ -00269f30: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00269f40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00269fc0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -00269fe0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026a030: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -0026a060: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include disabl
│ │ │ -0026a080: 655f 646e 736d 6173 710a 0a63 6c61 7373  e_dnsmasq..class
│ │ │ -0026a090: 2064 6973 6162 6c65 5f64 6e73 6d61 7371   disable_dnsmasq
│ │ │ -0026a0a0: 207b 0a20 2073 6572 7669 6365 207b 2764   {.  service {'d
│ │ │ -0026a0b0: 6e73 6d61 7371 273a 0a20 2020 2065 6e61  nsmasq':.    ena
│ │ │ -0026a0c0: 626c 6520 3d26 6774 3b20 6661 6c73 652c  ble => false,
│ │ │ -0026a0d0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0026a0e0: 3b20 2773 746f 7070 6564 272c 0a20 207d  ; 'stopped',.  }
│ │ │ -0026a0f0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ -0026a100: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation A │ │ │ -0026a1b0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0026a1c0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity:< │ │ │ -00269fd0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -00269ff0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026a040: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -0026a050: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
│ │ │ -0026a240: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0026a260: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026a2b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0026a2e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0026a250: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0026a270: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026a2c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0026a2d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -0026a300: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0026a310: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0026a320: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0026a330: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0026a340: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0026a350: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -0026a360: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -0026a370: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ -0026a380: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ -0026a390: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -0026a3a0: 6564 0a20 202d 2073 6572 7669 6365 5f64  ed.  - service_d
│ │ │ -0026a3b0: 6e73 6d61 7371 5f64 6973 6162 6c65 640a  nsmasq_disabled.
│ │ │ -0026a3c0: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ -0026a3d0: 2064 6e73 6d61 7371 2053 6572 7669 6365   dnsmasq Service
│ │ │ -0026a3e0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0026a3f0: 6365 2064 6e73 6d61 7371 0a20 2062 6c6f  ce dnsmasq.  blo
│ │ │ -0026a400: 636b 3a0a 0a20 202d 206e 616d 653a 2044  ck:..  - name: D
│ │ │ -0026a410: 6973 6162 6c65 2064 6e73 6d61 7371 2053  isable dnsmasq S
│ │ │ -0026a420: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ -0026a430: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0026a440: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -0026a450: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -0026a460: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0026a470: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0026a480: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0026a490: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -0026a4a0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -0026a4b0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -0026a4c0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0026a4d0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0026a4e0: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -0026a4f0: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -0026a500: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -0026a510: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -0026a520: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -0026a530: 646e 736d 6173 7120 5365 7276 6963 6520  dnsmasq Service 
│ │ │ -0026a540: 2d20 456e 7375 7265 2064 6e73 6d61 7371  - Ensure dnsmasq
│ │ │ -0026a550: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -0026a560: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0026a570: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026a580: 2020 2020 2020 6e61 6d65 3a20 646e 736d        name: dnsm
│ │ │ -0026a590: 6173 712e 7365 7276 6963 650a 2020 2020  asq.service.    
│ │ │ -0026a5a0: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0026a5b0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ -0026a5c0: 6661 6c73 650a 2020 2020 2020 6d61 736b  false.      mask
│ │ │ -0026a5d0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0026a5e0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0026a5f0: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ -0026a600: 7320 7365 6172 6368 2822 646e 736d 6173  s search("dnsmas
│ │ │ -0026a610: 712e 7365 7276 6963 6522 2c20 6d75 6c74  q.service", mult
│ │ │ -0026a620: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -0026a630: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -0026a640: 6574 2045 7869 7374 7320 2d20 646e 736d  et Exists - dnsm
│ │ │ -0026a650: 6173 712e 736f 636b 6574 0a20 2020 2061  asq.socket.    a
│ │ │ -0026a660: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -0026a670: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -0026a680: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -0026a690: 696c 6573 2064 6e73 6d61 7371 2e73 6f63  iles dnsmasq.soc
│ │ │ -0026a6a0: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ -0026a6b0: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0026a6c0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -0026a6d0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -0026a6e0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ -0026a6f0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0026a700: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ -0026a710: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ -0026a720: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ -0026a730: 653a 2044 6973 6162 6c65 2064 6e73 6d61  e: Disable dnsma
│ │ │ -0026a740: 7371 2053 6572 7669 6365 202d 2044 6973  sq Service - Dis
│ │ │ -0026a750: 6162 6c65 2053 6f63 6b65 7420 646e 736d  able Socket dnsm
│ │ │ -0026a760: 6173 710a 2020 2020 616e 7369 626c 652e  asq.    ansible.
│ │ │ -0026a770: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0026a780: 0a20 2020 2020 206e 616d 653a 2064 6e73  .      name: dns
│ │ │ -0026a790: 6d61 7371 2e73 6f63 6b65 740a 2020 2020  masq.socket.    
│ │ │ -0026a7a0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -0026a7b0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ -0026a7c0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ -0026a7d0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ -0026a7e0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ -0026a7f0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -0026a800: 6573 2069 7320 7365 6172 6368 2822 646e  es is search("dn
│ │ │ -0026a810: 736d 6173 712e 736f 636b 6574 222c 206d  smasq.socket", m
│ │ │ -0026a820: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -0026a830: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - 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 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0026a880: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0026a890: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0026a8a0: 6572 7669 6365 5f64 6e73 6d61 7371 5f64  ervice_dnsmasq_d
│ │ │ -0026a8b0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -0026a8c0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -0026a8d0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -0026a8e0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -0026a8f0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -0026a900: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +00269de0: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +00269df0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00269e00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00269e10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00269e20: 7365 2220 6964 3d22 6964 3937 3122 3e3c se" id="id971">< │ │ │ +00269e30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00269e40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00269e50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00269e60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00269e70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00269e80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00269e90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00269ed0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00269ee0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00269f00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00269f10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00269f30: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ +00269f40: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ +00269f50: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ +00269f60: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ +00269f70: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ +00269f80: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +00269f90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +00269fa0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +00269fb0: 202d 206d 6564 6975 6d5f 7365 7665 7269 - medium_severi │ │ │ +00269fc0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74 ty. - no_reboot │ │ │ +00269fd0: 5f6e 6565 6465 640a 2020 2d20 7365 7276 _needed. - serv │ │ │ +00269fe0: 6963 655f 646e 736d 6173 715f 6469 7361 ice_dnsmasq_disa │ │ │ +00269ff0: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469 bled..- name: Di │ │ │ +0026a000: 7361 626c 6520 646e 736d 6173 7120 5365 sable dnsmasq Se │ │ │ +0026a010: 7276 6963 6520 2d20 4469 7361 626c 6520 rvice - Disable │ │ │ +0026a020: 7365 7276 6963 6520 646e 736d 6173 710a service dnsmasq. │ │ │ +0026a030: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61 block:.. - na │ │ │ +0026a040: 6d65 3a20 4469 7361 626c 6520 646e 736d me: Disable dnsm │ │ │ +0026a050: 6173 7120 5365 7276 6963 6520 2d20 436f asq Service - Co │ │ │ +0026a060: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ +0026a070: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ +0026a080: 6e20 7468 6520 5379 7374 656d 0a20 2020 n the System. │ │ │ +0026a090: 2061 6e73 6962 6c65 2e62 7569 6c74 696e ansible.builtin │ │ │ +0026a0a0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d .command: system │ │ │ +0026a0b0: 6374 6c20 2d71 206c 6973 742d 756e 6974 ctl -q list-unit │ │ │ +0026a0c0: 2d66 696c 6573 202d 2d74 7970 6520 7365 -files --type se │ │ │ +0026a0d0: 7276 6963 650a 2020 2020 7265 6769 7374 rvice. regist │ │ │ +0026a0e0: 6572 3a20 7365 7276 6963 655f 6578 6973 er: service_exis │ │ │ +0026a0f0: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +0026a100: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +0026a110: 6169 6c65 645f 7768 656e 3a20 7365 7276 ailed_when: serv │ │ │ +0026a120: 6963 655f 6578 6973 7473 2e72 6320 6e6f ice_exists.rc no │ │ │ +0026a130: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ +0026a140: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ +0026a150: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ +0026a160: 6162 6c65 2064 6e73 6d61 7371 2053 6572 able dnsmasq Ser │ │ │ +0026a170: 7669 6365 202d 2045 6e73 7572 6520 646e vice - Ensure dn │ │ │ +0026a180: 736d 6173 712e 7365 7276 6963 6520 6973 smasq.service is │ │ │ +0026a190: 204d 6173 6b65 640a 2020 2020 616e 7369 Masked. ansi │ │ │ +0026a1a0: 626c 652e 6275 696c 7469 6e2e 7379 7374 ble.builtin.syst │ │ │ +0026a1b0: 656d 643a 0a20 2020 2020 206e 616d 653a emd:. name: │ │ │ +0026a1c0: 2064 6e73 6d61 7371 2e73 6572 7669 6365 dnsmasq.service │ │ │ +0026a1d0: 0a20 2020 2020 2073 7461 7465 3a20 7374 . state: st │ │ │ +0026a1e0: 6f70 7065 640a 2020 2020 2020 656e 6162 opped. enab │ │ │ +0026a1f0: 6c65 643a 2066 616c 7365 0a20 2020 2020 led: false. │ │ │ +0026a200: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ +0026a210: 2020 7768 656e 3a20 7365 7276 6963 655f when: service_ │ │ │ +0026a220: 6578 6973 7473 2e73 7464 6f75 745f 6c69 exists.stdout_li │ │ │ +0026a230: 6e65 7320 6973 2073 6561 7263 6828 2264 nes is search("d │ │ │ +0026a240: 6e73 6d61 7371 2e73 6572 7669 6365 222c nsmasq.service", │ │ │ +0026a250: 206d 756c 7469 6c69 6e65 3d54 7275 6529 multiline=True) │ │ │ +0026a260: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974 .. - name: Unit │ │ │ +0026a270: 2053 6f63 6b65 7420 4578 6973 7473 202d Socket Exists - │ │ │ +0026a280: 2064 6e73 6d61 7371 2e73 6f63 6b65 740a dnsmasq.socket. │ │ │ +0026a290: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ +0026a2a0: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ +0026a2b0: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ +0026a2c0: 6e69 742d 6669 6c65 7320 646e 736d 6173 nit-files dnsmas │ │ │ +0026a2d0: 712e 736f 636b 6574 0a20 2020 2072 6567 q.socket. reg │ │ │ +0026a2e0: 6973 7465 723a 2073 6f63 6b65 745f 6669 ister: socket_fi │ │ │ +0026a2f0: 6c65 5f65 7869 7374 730a 2020 2020 6368 le_exists. ch │ │ │ +0026a300: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +0026a310: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ +0026a320: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ +0026a330: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ +0026a340: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ +0026a350: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ +0026a360: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +0026a370: 646e 736d 6173 7120 5365 7276 6963 6520 dnsmasq Service │ │ │ +0026a380: 2d20 4469 7361 626c 6520 536f 636b 6574 - Disable Socket │ │ │ +0026a390: 2064 6e73 6d61 7371 0a20 2020 2061 6e73 dnsmasq. ans │ │ │ +0026a3a0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ +0026a3b0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ +0026a3c0: 3a20 646e 736d 6173 712e 736f 636b 6574 : dnsmasq.socket │ │ │ +0026a3d0: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ +0026a3e0: 6661 6c73 650a 2020 2020 2020 7374 6174 false. stat │ │ │ +0026a3f0: 653a 2073 746f 7070 6564 0a20 2020 2020 e: stopped. │ │ │ +0026a400: 206d 6173 6b65 643a 2074 7275 650a 2020 masked: true. │ │ │ +0026a410: 2020 7768 656e 3a20 736f 636b 6574 5f66 when: socket_f │ │ │ +0026a420: 696c 655f 6578 6973 7473 2e73 7464 6f75 ile_exists.stdou │ │ │ +0026a430: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ +0026a440: 6828 2264 6e73 6d61 7371 2e73 6f63 6b65 h("dnsmasq.socke │ │ │ +0026a450: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ +0026a460: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ +0026a470: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ +0026a480: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ +0026a490: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ +0026a4a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ +0026a4b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ +0026a4c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +0026a4d0: 2020 2d20 7365 7276 6963 655f 646e 736d - service_dnsm │ │ │ +0026a4e0: 6173 715f 6469 7361 626c 6564 0a20 202d asq_disabled. - │ │ │ +0026a4f0: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +0026a500: 5f62 6c6f 636b 0a20 2077 6865 6e3a 2027 _block. when: ' │ │ │ +0026a510: 226c 696e 7578 2d62 6173 6522 2069 6e20 "linux-base" in │ │ │ +0026a520: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ +0026a530: 636b 6167 6573 270a 3c2f 636f 6465 3e3c ckages'.< │ │ │ +0026a540: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>
Remediat │ │ │ +0026a5f0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +0026a600: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ +0026a680: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0026a690: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0026a6a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0026a6e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0026a6f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0026a710: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ +0026a730: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ +0026a740: 7361 626c 655f 646e 736d 6173 710a 0a63  sable_dnsmasq..c
│ │ │ +0026a750: 6c61 7373 2064 6973 6162 6c65 5f64 6e73  lass disable_dns
│ │ │ +0026a760: 6d61 7371 207b 0a20 2073 6572 7669 6365  masq {.  service
│ │ │ +0026a770: 207b 2764 6e73 6d61 7371 273a 0a20 2020   {'dnsmasq':.   
│ │ │ +0026a780: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +0026a790: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +0026a7a0: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +0026a7b0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.
Remediati │ │ │ +0026a870: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0026a880: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0026a890: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +0026a8e0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +0026a8f0: 736b 6564 203d 205b 2264 6e73 6d61 7371  sked = ["dnsmasq
│ │ │ +0026a900: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 0026a910: 3c2f 6469 763e 3c2f 6469 763e 3c2f 7464
│ │ │ 0026a940: 3c74 7220 6461 7461 2d74 742d 6964 3d22 Re │ │ │ -0026bfb0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0026bfc0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0026bfd0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
low< │ │ │ -0026c070: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0026c0c0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -0026c100: 636c 7564 6520 7265 6d6f 7665 5f76 7366  clude remove_vsf
│ │ │ -0026c110: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ -0026c120: 655f 7673 6674 7064 207b 0a20 2070 6163  e_vsftpd {.  pac
│ │ │ -0026c130: 6b61 6765 207b 2027 7673 6674 7064 273a  kage { 'vsftpd':
│ │ │ -0026c140: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0026c150: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0026c160: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0026c170: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation An │ │ │ -0026c220: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -0026c230: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
Co │ │ │ -0026c050: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0026c080: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0026c0a0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0026c0b0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0026c0d0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0026c0e0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ -0026c2b0: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -0026c2d0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -0026c320: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -0026c350: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -0026c370: 7461 6c6c 2076 7366 7470 6420 5061 636b  tall vsftpd Pack
│ │ │ -0026c380: 6167 653a 2045 6e73 7572 6520 7673 6674  age: Ensure vsft
│ │ │ -0026c390: 7064 2069 7320 7265 6d6f 7665 6427 0a20  pd is removed'. 
│ │ │ -0026c3a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -0026c3b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -0026c3c0: 6d65 3a20 7673 6674 7064 0a20 2020 2073  me: vsftpd.    s
│ │ │ -0026c3d0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0026c3e0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0026c3f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0026c400: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0026c410: 370a 2020 2d20 4e49 5354 2d38 3030 2d35  7.  - NIST-800-5
│ │ │ -0026c420: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -0026c430: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -0026c440: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -0026c450: 332d 434d 2d37 2e31 2869 6929 0a20 202d  3-CM-7.1(ii).  -
│ │ │ -0026c460: 204e 4953 542d 3830 302d 3533 2d49 412d   NIST-800-53-IA-
│ │ │ -0026c470: 3528 3129 2863 290a 2020 2d20 4e49 5354  5(1)(c).  - NIST
│ │ │ -0026c480: 2d38 3030 2d35 332d 4941 2d35 2831 292e  -800-53-IA-5(1).
│ │ │ -0026c490: 3128 7629 0a20 202d 2064 6973 6162 6c65  1(v).  - disable
│ │ │ -0026c4a0: 5f73 7472 6174 6567 790a 2020 2d20 6869  _strategy.  - hi
│ │ │ -0026c4b0: 6768 5f73 6576 6572 6974 790a 2020 2d20  gh_severity.  - 
│ │ │ -0026c4c0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0026c4d0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0026c4e0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ -0026c4f0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -0026c500: 6765 5f76 7366 7470 645f 7265 6d6f 7665  ge_vsftpd_remove
│ │ │ -0026c510: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0026bfb0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +0026bfc0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -0026c2e0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -0026c2f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -0026c330: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -0026c340: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
< │ │ │ +0026c060: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0026c070: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +0026c0c0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +0026c100: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +0026c110: 2076 7366 7470 6420 5061 636b 6167 653a   vsftpd Package:
│ │ │ +0026c120: 2045 6e73 7572 6520 7673 6674 7064 2069   Ensure vsftpd i
│ │ │ +0026c130: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +0026c140: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +0026c150: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +0026c160: 7673 6674 7064 0a20 2020 2073 7461 7465  vsftpd.    state
│ │ │ +0026c170: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0026c180: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0026c190: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0026c1a0: 542d 3830 302d 3533 2d43 4d2d 370a 2020  T-800-53-CM-7.  
│ │ │ +0026c1b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0026c1c0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +0026c1d0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +0026c1e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0026c1f0: 2d37 2e31 2869 6929 0a20 202d 204e 4953  -7.1(ii).  - NIS
│ │ │ +0026c200: 542d 3830 302d 3533 2d49 412d 3528 3129  T-800-53-IA-5(1)
│ │ │ +0026c210: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +0026c220: 2d35 332d 4941 2d35 2831 292e 3128 7629  -53-IA-5(1).1(v)
│ │ │ +0026c230: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0026c240: 6174 6567 790a 2020 2d20 6869 6768 5f73  ategy.  - high_s
│ │ │ +0026c250: 6576 6572 6974 790a 2020 2d20 6c6f 775f  everity.  - low_
│ │ │ +0026c260: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +0026c270: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +0026c280: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +0026c290: 6564 0a20 202d 2070 6163 6b61 6765 5f76  ed.  - package_v
│ │ │ +0026c2a0: 7366 7470 645f 7265 6d6f 7665 640a 3c2f  sftpd_removed.
Re │ │ │ +0026c360: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +0026c370: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +0026c380: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
C │ │ │ +0026c050: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +0026c080: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +0026c090: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +0026c0d0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +0026c0e0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
low< │ │ │ +0026c420: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +0026c470: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ +0026c4b0: 636c 7564 6520 7265 6d6f 7665 5f76 7366  clude remove_vsf
│ │ │ +0026c4c0: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ +0026c4d0: 655f 7673 6674 7064 207b 0a20 2070 6163  e_vsftpd {.  pac
│ │ │ +0026c4e0: 6b61 6765 207b 2027 7673 6674 7064 273a  kage { 'vsftpd':
│ │ │ +0026c4f0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0026c500: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0026c510: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0026c520: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remedi │ │ │ -0026d5f0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -0026d600: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -0026d610: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
│ │ │ -0026d650: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -0026d660: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -0026d670: 0a6d 6173 6b65 6420 3d20 5b22 7673 6674  .masked = ["vsft
│ │ │ -0026d680: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
Remediation │ │ │ -0026d740: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0026d750: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
low< │ │ │ -0026d820: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0026d870: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Co │ │ │ +0026c400: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +0026c430: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +0026c450: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +0026c460: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +0026c480: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +0026c490: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ -0026d7e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0026d800: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0026d850: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0026d860: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ -0026d890: 6c65 5f76 7366 7470 640a 0a63 6c61 7373  le_vsftpd..class
│ │ │ -0026d8a0: 2064 6973 6162 6c65 5f76 7366 7470 6420   disable_vsftpd 
│ │ │ -0026d8b0: 7b0a 2020 7365 7276 6963 6520 7b27 7673  {.  service {'vs
│ │ │ -0026d8c0: 6674 7064 273a 0a20 2020 2065 6e61 626c  ftpd':.    enabl
│ │ │ -0026d8d0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ -0026d8e0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -0026d8f0: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ -0026d900: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Ans │ │ │ -0026d9c0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -0026d9d0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ -0026daa0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -0026dab0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -0026db10: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -0026db20: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -0026db30: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -0026db40: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -0026db50: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0026db60: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -0026db70: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -0026db80: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0026db90: 3728 6229 0a20 202d 2064 6973 6162 6c65  7(b).  - disable
│ │ │ -0026dba0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0026dbb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0026dbc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0026dbd0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0026dbe0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0026dbf0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0026dc00: 7669 6365 5f76 7366 7470 645f 6469 7361  vice_vsftpd_disa
│ │ │ -0026dc10: 626c 6564 0a0a 2d20 6e61 6d65 3a20 4469  bled..- name: Di
│ │ │ -0026dc20: 7361 626c 6520 7673 6674 7064 2053 6572  sable vsftpd Ser
│ │ │ -0026dc30: 7669 6365 202d 2044 6973 6162 6c65 2073  vice - Disable s
│ │ │ -0026dc40: 6572 7669 6365 2076 7366 7470 640a 2020  ervice vsftpd.  
│ │ │ -0026dc50: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ -0026dc60: 3a20 4469 7361 626c 6520 7673 6674 7064  : Disable vsftpd
│ │ │ -0026dc70: 2053 6572 7669 6365 202d 2043 6f6c 6c65   Service - Colle
│ │ │ -0026dc80: 6374 2073 7973 7465 6d64 2053 6572 7669  ct systemd Servi
│ │ │ -0026dc90: 6365 7320 5072 6573 656e 7420 696e 2074  ces Present in t
│ │ │ -0026dca0: 6865 2053 7973 7465 6d0a 2020 2020 616e  he System.    an
│ │ │ -0026dcb0: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0026dcc0: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0026dcd0: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0026dce0: 6c65 7320 2d2d 7479 7065 2073 6572 7669  les --type servi
│ │ │ -0026dcf0: 6365 0a20 2020 2072 6567 6973 7465 723a  ce.    register:
│ │ │ -0026dd00: 2073 6572 7669 6365 5f65 7869 7374 730a   service_exists.
│ │ │ -0026dd10: 2020 2020 6368 616e 6765 645f 7768 656e      changed_when
│ │ │ -0026dd20: 3a20 6661 6c73 650a 2020 2020 6661 696c  : false.    fail
│ │ │ -0026dd30: 6564 5f77 6865 6e3a 2073 6572 7669 6365  ed_when: service
│ │ │ -0026dd40: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -0026dd50: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -0026dd60: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -0026dd70: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -0026dd80: 6520 7673 6674 7064 2053 6572 7669 6365  e vsftpd Service
│ │ │ -0026dd90: 202d 2045 6e73 7572 6520 7673 6674 7064   - Ensure vsftpd
│ │ │ -0026dda0: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -0026ddb0: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -0026ddc0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -0026ddd0: 2020 2020 2020 6e61 6d65 3a20 7673 6674        name: vsft
│ │ │ -0026dde0: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ -0026ddf0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -0026de00: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -0026de10: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -0026de20: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0026de30: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -0026de40: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0026de50: 2073 6561 7263 6828 2276 7366 7470 642e   search("vsftpd.
│ │ │ -0026de60: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -0026de70: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -0026de80: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -0026de90: 2045 7869 7374 7320 2d20 7673 6674 7064   Exists - vsftpd
│ │ │ -0026dea0: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -0026deb0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -0026dec0: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -0026ded0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -0026dee0: 7320 7673 6674 7064 2e73 6f63 6b65 740a  s vsftpd.socket.
│ │ │ -0026def0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -0026df00: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0026df10: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -0026df20: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -0026df30: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -0026df40: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -0026df50: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -0026df60: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -0026df70: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -0026df80: 6973 6162 6c65 2076 7366 7470 6420 5365  isable vsftpd Se
│ │ │ -0026df90: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ -0026dfa0: 536f 636b 6574 2076 7366 7470 640a 2020  Socket vsftpd.  
│ │ │ -0026dfb0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0026dfc0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -0026dfd0: 206e 616d 653a 2076 7366 7470 642e 736f   name: vsftpd.so
│ │ │ -0026dfe0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ -0026dff0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -0026e000: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0026e010: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ -0026e020: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ -0026e030: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ -0026e040: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -0026e050: 6561 7263 6828 2276 7366 7470 642e 736f  earch("vsftpd.so
│ │ │ -0026e060: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ -0026e070: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ -0026e080: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0026e090: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -0026e0a0: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -0026e0b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0026e0c0: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -0026e0d0: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0026e0e0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0026e0f0: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0026e100: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0026e110: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0026e120: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0026e130: 6572 7669 6365 5f76 7366 7470 645f 6469  ervice_vsftpd_di
│ │ │ -0026e140: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -0026e150: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -0026e160: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -0026e170: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -0026e180: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0026e190: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +0026d5f0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +0026d600: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ -0026da80: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -0026da90: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -0026dad0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -0026dae0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +0026d6b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0026d6d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0026d700: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0026d690: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0026d6a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0026d6c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0026d6e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0026d6f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +0026d730: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +0026d740: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +0026d750: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +0026d760: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +0026d770: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +0026d780: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +0026d790: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +0026d7a0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +0026d7b0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +0026d7c0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +0026d7d0: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +0026d7e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +0026d7f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +0026d800: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +0026d810: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +0026d820: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +0026d830: 640a 2020 2d20 7365 7276 6963 655f 7673 d. - service_vs │ │ │ +0026d840: 6674 7064 5f64 6973 6162 6c65 640a 0a2d ftpd_disabled..- │ │ │ +0026d850: 206e 616d 653a 2044 6973 6162 6c65 2076 name: Disable v │ │ │ +0026d860: 7366 7470 6420 5365 7276 6963 6520 2d20 sftpd Service - │ │ │ +0026d870: 4469 7361 626c 6520 7365 7276 6963 6520 Disable service │ │ │ +0026d880: 7673 6674 7064 0a20 2062 6c6f 636b 3a0a vsftpd. block:. │ │ │ +0026d890: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ +0026d8a0: 6c65 2076 7366 7470 6420 5365 7276 6963 le vsftpd Servic │ │ │ +0026d8b0: 6520 2d20 436f 6c6c 6563 7420 7379 7374 e - Collect syst │ │ │ +0026d8c0: 656d 6420 5365 7276 6963 6573 2050 7265 emd Services Pre │ │ │ +0026d8d0: 7365 6e74 2069 6e20 7468 6520 5379 7374 sent in the Syst │ │ │ +0026d8e0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62 em. ansible.b │ │ │ +0026d8f0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +0026d900: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +0026d910: 742d 756e 6974 2d66 696c 6573 202d 2d74 t-unit-files --t │ │ │ +0026d920: 7970 6520 7365 7276 6963 650a 2020 2020 ype service. │ │ │ +0026d930: 7265 6769 7374 6572 3a20 7365 7276 6963 register: servic │ │ │ +0026d940: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ +0026d950: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ +0026d960: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ +0026d970: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ +0026d980: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ +0026d990: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ +0026d9a0: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ +0026d9b0: 653a 2044 6973 6162 6c65 2076 7366 7470 e: Disable vsftp │ │ │ +0026d9c0: 6420 5365 7276 6963 6520 2d20 456e 7375 d Service - Ensu │ │ │ +0026d9d0: 7265 2076 7366 7470 642e 7365 7276 6963 re vsftpd.servic │ │ │ +0026d9e0: 6520 6973 204d 6173 6b65 640a 2020 2020 e is Masked. │ │ │ +0026d9f0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ +0026da00: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ +0026da10: 616d 653a 2076 7366 7470 642e 7365 7276 ame: vsftpd.serv │ │ │ +0026da20: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ +0026da30: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ +0026da40: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ +0026da50: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ +0026da60: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ +0026da70: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ +0026da80: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +0026da90: 2822 7673 6674 7064 2e73 6572 7669 6365 ("vsftpd.service │ │ │ +0026daa0: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ +0026dab0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e e).. - name: Un │ │ │ +0026dac0: 6974 2053 6f63 6b65 7420 4578 6973 7473 it Socket Exists │ │ │ +0026dad0: 202d 2076 7366 7470 642e 736f 636b 6574 - vsftpd.socket │ │ │ +0026dae0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +0026daf0: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ +0026db00: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ +0026db10: 756e 6974 2d66 696c 6573 2076 7366 7470 unit-files vsftp │ │ │ +0026db20: 642e 736f 636b 6574 0a20 2020 2072 6567 d.socket. reg │ │ │ +0026db30: 6973 7465 723a 2073 6f63 6b65 745f 6669 ister: socket_fi │ │ │ +0026db40: 6c65 5f65 7869 7374 730a 2020 2020 6368 le_exists. ch │ │ │ +0026db50: 616e 6765 645f 7768 656e 3a20 6661 6c73 anged_when: fals │ │ │ +0026db60: 650a 2020 2020 6661 696c 6564 5f77 6865 e. failed_whe │ │ │ +0026db70: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65 n: socket_file_e │ │ │ +0026db80: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ +0026db90: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ +0026dba0: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ +0026dbb0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +0026dbc0: 7673 6674 7064 2053 6572 7669 6365 202d vsftpd Service - │ │ │ +0026dbd0: 2044 6973 6162 6c65 2053 6f63 6b65 7420 Disable Socket │ │ │ +0026dbe0: 7673 6674 7064 0a20 2020 2061 6e73 6962 vsftpd. ansib │ │ │ +0026dbf0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ +0026dc00: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ +0026dc10: 7673 6674 7064 2e73 6f63 6b65 740a 2020 vsftpd.socket. │ │ │ +0026dc20: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +0026dc30: 7365 0a20 2020 2020 2073 7461 7465 3a20 se. state: │ │ │ +0026dc40: 7374 6f70 7065 640a 2020 2020 2020 6d61 stopped. ma │ │ │ +0026dc50: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ +0026dc60: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ +0026dc70: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +0026dc80: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +0026dc90: 7673 6674 7064 2e73 6f63 6b65 7422 2c20 vsftpd.socket", │ │ │ +0026dca0: 6d75 6c74 696c 696e 653d 5472 7565 290a multiline=True). │ │ │ +0026dcb0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +0026dcc0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +0026dcd0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +0026dce0: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +0026dcf0: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +0026dd00: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +0026dd10: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +0026dd20: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +0026dd30: 6469 7372 7570 7469 6f6e 0a20 202d 206d disruption. - m │ │ │ +0026dd40: 6564 6975 6d5f 7365 7665 7269 7479 0a20 edium_severity. │ │ │ +0026dd50: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +0026dd60: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +0026dd70: 7673 6674 7064 5f64 6973 6162 6c65 640a vsftpd_disabled. │ │ │ +0026dd80: 2020 2d20 7370 6563 6961 6c5f 7365 7276 - special_serv │ │ │ +0026dd90: 6963 655f 626c 6f63 6b0a 2020 7768 656e ice_block. when │ │ │ +0026dda0: 3a20 2722 6c69 6e75 782d 6261 7365 2220 : '"linux-base" │ │ │ +0026ddb0: 696e 2061 6e73 6962 6c65 5f66 6163 7473 in ansible_facts │ │ │ +0026ddc0: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64 .packages'.
Remed │ │ │ +0026de80: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +0026de90: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +0026df40: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0026df60: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0026df90: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0026df20: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0026df30: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0026df50: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0026df70: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0026df80: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0026dfd0: 2064 6973 6162 6c65 5f76 7366 7470 640a disable_vsftpd. │ │ │ +0026dfe0: 0a63 6c61 7373 2064 6973 6162 6c65 5f76 .class disable_v │ │ │ +0026dff0: 7366 7470 6420 7b0a 2020 7365 7276 6963 sftpd {. servic │ │ │ +0026e000: 6520 7b27 7673 6674 7064 273a 0a20 2020 e {'vsftpd':. │ │ │ +0026e010: 2065 6e61 626c 6520 3d26 6774 3b20 6661 enable => fa │ │ │ +0026e020: 6c73 652c 0a20 2020 2065 6e73 7572 6520 lse,. ensure │ │ │ +0026e030: 3d26 6774 3b20 2773 746f 7070 6564 272c => 'stopped', │ │ │ +0026e040: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f . }.}.

Remediati │ │ │ +0026e100: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ +0026e110: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ +0026e120: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ +0026e170: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +0026e180: 736b 6564 203d 205b 2276 7366 7470 6422  sked = ["vsftpd"
│ │ │ +0026e190: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 0026e1a0: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 0026e1b0: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74 < │ │ │ 0026e1d0: 7472 2064 6174 612d 7474 2d69 643d 2278 tr data-tt-id="x │ │ │ 0026e1e0: 6363 6466 5f6f 7267 2e73 7367 7072 6f6a ccdf_org.ssgproj │ │ │ 0026e1f0: 6563 742e 636f 6e74 656e 745f 7275 6c65 ect.content_rule │ │ │ 0026e200: 5f70 6163 6b61 6765 5f66 7470 5f72 656d _package_ftp_rem │ │ │ @@ -159411,91 +159411,91 @@ │ │ │ 0026eb20: 6170 7365 2220 6461 7461 2d74 6172 6765 apse" data-targe │ │ │ 0026eb30: 743d 2223 6964 3938 3322 2074 6162 696e t="#id983" tabin │ │ │ 0026eb40: 6465 783d 2230 2220 726f 6c65 3d22 6275 dex="0" role="bu │ │ │ 0026eb50: 7474 6f6e 2220 6172 6961 2d65 7870 616e tton" aria-expan │ │ │ 0026eb60: 6465 643d 2266 616c 7365 2220 7469 746c ded="false" titl │ │ │ 0026eb70: 653d 2241 6374 6976 6174 6520 746f 2072 e="Activate to r │ │ │ 0026eb80: 6576 6561 6c22 2068 7265 663d 2223 2122 eveal" href="#!" │ │ │ -0026eb90: 3e52 656d 6564 6961 7469 6f6e 2050 7570 >Remediation Pup │ │ │ -0026eba0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -0026ebb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -0026ec80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0026ec90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -0026ece0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -0026ecf0: 6674 700a 0a63 6c61 7373 2072 656d 6f76  ftp..class remov
│ │ │ -0026ed00: 655f 6674 7020 7b0a 2020 7061 636b 6167  e_ftp {.  packag
│ │ │ -0026ed10: 6520 7b20 2766 7470 273a 0a20 2020 2065  e { 'ftp':.    e
│ │ │ -0026ed20: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ -0026ed30: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ -0026ed50: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -0026ed60: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -0026ed70: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -0026ed80: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -0026ed90: 6439 3834 2220 7461 6269 6e64 6578 3d22 d984" tabindex=" │ │ │ -0026eda0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ -0026edb0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ -0026edc0: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ -0026edd0: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ -0026ede0: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ -0026edf0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0026ee00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0026ee10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -0026ec60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0026ec70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0026ecb0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -0026ecc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ -0026ee90: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0026eec0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0026eee0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0026eef0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0026ef10: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0026ef20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0026ef40: 6d65 3a20 2752 656d 6f76 6520 6674 7020  me: 'Remove ftp 
│ │ │ -0026ef50: 5061 636b 6167 653a 2045 6e73 7572 6520  Package: Ensure 
│ │ │ -0026ef60: 6674 7020 6973 2072 656d 6f76 6564 270a  ftp is removed'.
│ │ │ -0026ef70: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0026ef80: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -0026ef90: 616d 653a 2066 7470 0a20 2020 2073 7461  ame: ftp.    sta
│ │ │ -0026efa0: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -0026efb0: 733a 0a20 202d 2050 4349 2d44 5353 7634  s:.  - PCI-DSSv4
│ │ │ -0026efc0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ -0026efd0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ -0026efe0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0026eff0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0026f000: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0026f010: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ -0026f020: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ -0026f030: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ -0026f040: 636b 6167 655f 6674 705f 7265 6d6f 7665  ckage_ftp_remove
│ │ │ -0026f050: 640a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  d.
< │ │ │ +0026eb90: 3e52 656d 6564 6961 7469 6f6e 2041 6e73 >Remediation Ans │ │ │ +0026eba0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ +0026ebb0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity: │ │ │ +0026ec80: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0026ec90: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: 'Remove
│ │ │ +0026ecf0: 2066 7470 2050 6163 6b61 6765 3a20 456e   ftp Package: En
│ │ │ +0026ed00: 7375 7265 2066 7470 2069 7320 7265 6d6f  sure ftp is remo
│ │ │ +0026ed10: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +0026ed20: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +0026ed30: 2020 2020 6e61 6d65 3a20 6674 700a 2020      name: ftp.  
│ │ │ +0026ed40: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +0026ed50: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +0026ed60: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +0026ed70: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +0026ed80: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +0026ed90: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +0026eda0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +0026edb0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +0026edc0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +0026edd0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +0026ede0: 202d 2070 6163 6b61 6765 5f66 7470 5f72   - package_ftp_r
│ │ │ +0026edf0: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.Remediati
│ │ │ +0026eeb0: 6f6e 2050 7570 7065 7420 736e 6970 7065  on Puppet snippe
│ │ │ +0026eec0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
< │ │ │ +0026ef40: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +0026ef80: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
low
Disru │ │ │ +0026ec60: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0026ec70: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0026ecb0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0026ecc0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexit │ │ │ +0026ef50: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +0026ef70: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +0026efa0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +0026efc0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +0026eff0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +0026f000: 656d 6f76 655f 6674 700a 0a63 6c61 7373  emove_ftp..class
│ │ │ +0026f010: 2072 656d 6f76 655f 6674 7020 7b0a 2020   remove_ftp {.  
│ │ │ +0026f020: 7061 636b 6167 6520 7b20 2766 7470 273a  package { 'ftp':
│ │ │ +0026f030: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ +0026f040: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ +0026f050: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ 0026f060: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation │ │ │ -0026fc40: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0026fc50: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -0026fcd0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -0026fcf0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -0026fd40: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -0026fd70: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -0026fce0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -0026fd00: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -0026fd50: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -0026fd60: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
.include remo
│ │ │ -0026fd90: 7665 5f74 6e66 7470 0a0a 636c 6173 7320  ve_tnftp..class 
│ │ │ -0026fda0: 7265 6d6f 7665 5f74 6e66 7470 207b 0a20  remove_tnftp {. 
│ │ │ -0026fdb0: 2070 6163 6b61 6765 207b 2027 746e 6674   package { 'tnft
│ │ │ -0026fdc0: 7027 3a0a 2020 2020 656e 7375 7265 203d  p':.    ensure =
│ │ │ -0026fdd0: 2667 743b 2027 7075 7267 6564 272c 0a20  > 'purged',. 
│ │ │ -0026fde0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediation │ │ │ -0026fea0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -0026feb0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
Complexity │ │ │ -0026ff40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0026ff60: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0026ff70: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0026ff80: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0026ff90: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0026ffb0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -0026ffe0: 636f 6465 3e2d 206e 616d 653a 2027 5265  code>- name: 'Re
│ │ │ -0026fff0: 6d6f 7665 2074 6e66 7470 2050 6163 6b61  move tnftp Packa
│ │ │ -00270000: 6765 3a20 456e 7375 7265 2074 6e66 7470  ge: Ensure tnftp
│ │ │ -00270010: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -00270020: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -00270030: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -00270040: 3a20 746e 6674 700a 2020 2020 7374 6174  : tnftp.    stat
│ │ │ -00270050: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -00270060: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -00270070: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00270080: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00270090: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002700a0: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -002700b0: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002700c0: 6564 0a20 202d 2070 6163 6b61 6765 5f74  ed.  - package_t
│ │ │ -002700d0: 6e66 7470 5f72 656d 6f76 6564 0a3c 2f63  nftp_removed.
Complexity: │ │ │ +0026fce0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0026fd00: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0026fd20: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0026fd50: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0026fd60: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Rem
│ │ │ +0026fd90: 6f76 6520 746e 6674 7020 5061 636b 6167  ove tnftp Packag
│ │ │ +0026fda0: 653a 2045 6e73 7572 6520 746e 6674 7020  e: Ensure tnftp 
│ │ │ +0026fdb0: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +0026fdc0: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +0026fdd0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +0026fde0: 2074 6e66 7470 0a20 2020 2073 7461 7465   tnftp.    state
│ │ │ +0026fdf0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0026fe00: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +0026fe10: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0026fe20: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0026fe30: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0026fe40: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ +0026fe50: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +0026fe60: 640a 2020 2d20 7061 636b 6167 655f 746e  d.  - package_tn
│ │ │ +0026fe70: 6674 705f 7265 6d6f 7665 640a 3c2f 636f  ftp_removed.
< │ │ │ +0026fe90: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +0026fea0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +0026feb0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +0026fec0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +0026fed0: 6439 3838 2220 7461 6269 6e64 6578 3d22 d988" tabindex=" │ │ │ +0026fee0: 3022 2072 6f6c 653d 2262 7574 746f 6e22 0" role="button" │ │ │ +0026fef0: 2061 7269 612d 6578 7061 6e64 6564 3d22 aria-expanded=" │ │ │ +0026ff00: 6661 6c73 6522 2074 6974 6c65 3d22 4163 false" title="Ac │ │ │ +0026ff10: 7469 7661 7465 2074 6f20 7265 7665 616c tivate to reveal │ │ │ +0026ff20: 2220 6872 6566 3d22 2321 223e 5265 6d65 " href="#!">Reme │ │ │ +0026ff30: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +0026ff40: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Comp │ │ │ +0026ffd0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +0026ffe0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00270000: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00270020: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00270030: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00270070: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +00270080: 7564 6520 7265 6d6f 7665 5f74 6e66 7470  ude remove_tnftp
│ │ │ +00270090: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +002700a0: 6e66 7470 207b 0a20 2070 6163 6b61 6765  nftp {.  package
│ │ │ +002700b0: 207b 2027 746e 6674 7027 3a0a 2020 2020   { 'tnftp':.    
│ │ │ +002700c0: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ +002700d0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ 002700f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediat │ │ │ -00271a10: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00271a20: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
│ │ │ -00271aa0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -00271ab0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -00271ac0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -00271b00: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -00271b10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -00271b30: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -00271b40: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -00271b60: 7265 6d6f 7665 5f68 7474 7064 0a0a 636c  remove_httpd..cl
│ │ │ -00271b70: 6173 7320 7265 6d6f 7665 5f68 7474 7064  ass remove_httpd
│ │ │ -00271b80: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -00271b90: 6874 7470 6427 3a0a 2020 2020 656e 7375  httpd':.    ensu
│ │ │ -00271ba0: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -00271bb0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -00271bc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedia │ │ │ -00271c70: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -00271c80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00271c90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00271cc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ -00271d30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00271d50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00271d80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ -00271d10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00271d20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00271d60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00271d70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ -00271dc0: 2027 556e 696e 7374 616c 6c20 6874 7470 'Uninstall http │ │ │ -00271dd0: 6420 5061 636b 6167 653a 2045 6e73 7572 d Package: Ensur │ │ │ -00271de0: 6520 6874 7470 6420 6973 2072 656d 6f76 e httpd is remov │ │ │ -00271df0: 6564 270a 2020 616e 7369 626c 652e 6275 ed'. ansible.bu │ │ │ -00271e00: 696c 7469 6e2e 7061 636b 6167 653a 0a20 iltin.package:. │ │ │ -00271e10: 2020 206e 616d 653a 2068 7474 7064 0a20 name: httpd. │ │ │ -00271e20: 2020 2073 7461 7465 3a20 6162 7365 6e74 state: absent │ │ │ -00271e30: 0a20 2074 6167 733a 0a20 202d 204e 4953 . tags:. - NIS │ │ │ -00271e40: 542d 3830 302d 3533 2d43 4d2d 3628 6129 T-800-53-CM-6(a) │ │ │ -00271e50: 0a20 202d 204e 4953 542d 3830 302d 3533 . - NIST-800-53 │ │ │ -00271e60: 2d43 4d2d 3728 6129 0a20 202d 204e 4953 -CM-7(a). - NIS │ │ │ -00271e70: 542d 3830 302d 3533 2d43 4d2d 3728 6229 T-800-53-CM-7(b) │ │ │ -00271e80: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -00271e90: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -00271ea0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -00271eb0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -00271ec0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -00271ed0: 0a20 202d 2070 6163 6b61 6765 5f68 7474 . - package_htt │ │ │ -00271ee0: 7064 5f72 656d 6f76 6564 0a20 202d 2075 pd_removed. - u │ │ │ -00271ef0: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a nknown_severity. │ │ │ +00271a10: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +00271a20: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +00271a30: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00271a40: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00271a50: 7365 2220 6964 3d22 6964 3939 3122 3e3c se" id="id991">< │ │ │ +00271a60: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +00271a70: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +00271a80: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +00271a90: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +00271aa0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +00271ab0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +00271ac0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +00271b00: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +00271b10: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +00271b30: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +00271b40: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +00271b60: 2755 6e69 6e73 7461 6c6c 2068 7474 7064 'Uninstall httpd │ │ │ +00271b70: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +00271b80: 2068 7474 7064 2069 7320 7265 6d6f 7665 httpd is remove │ │ │ +00271b90: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +00271ba0: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +00271bb0: 2020 6e61 6d65 3a20 6874 7470 640a 2020 name: httpd. │ │ │ +00271bc0: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +00271bd0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354 tags:. - NIST │ │ │ +00271be0: 2d38 3030 2d35 332d 434d 2d36 2861 290a -800-53-CM-6(a). │ │ │ +00271bf0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d - NIST-800-53- │ │ │ +00271c00: 434d 2d37 2861 290a 2020 2d20 4e49 5354 CM-7(a). - NIST │ │ │ +00271c10: 2d38 3030 2d35 332d 434d 2d37 2862 290a -800-53-CM-7(b). │ │ │ +00271c20: 2020 2d20 6469 7361 626c 655f 7374 7261 - disable_stra │ │ │ +00271c30: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d tegy. - low_com │ │ │ +00271c40: 706c 6578 6974 790a 2020 2d20 6c6f 775f plexity. - low_ │ │ │ +00271c50: 6469 7372 7570 7469 6f6e 0a20 202d 206e disruption. - n │ │ │ +00271c60: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ +00271c70: 2020 2d20 7061 636b 6167 655f 6874 7470 - package_http │ │ │ +00271c80: 645f 7265 6d6f 7665 640a 2020 2d20 756e d_removed. - un │ │ │ +00271c90: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c known_severity.< │ │ │ +00271ca0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code>R │ │ │ +00271d50: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00271d60: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...

< │ │ │ +00271e00: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00271e10: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00271e60: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00271ea0: 6e63 6c75 6465 2072 656d 6f76 655f 6874  nclude remove_ht
│ │ │ +00271eb0: 7470 640a 0a63 6c61 7373 2072 656d 6f76  tpd..class remov
│ │ │ +00271ec0: 655f 6874 7470 6420 7b0a 2020 7061 636b  e_httpd {.  pack
│ │ │ +00271ed0: 6167 6520 7b20 2768 7474 7064 273a 0a20  age { 'httpd':. 
│ │ │ +00271ee0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +00271ef0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  00271f00: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediati │ │ │ -00272f70: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -00272f80: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -00272f90: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizati
│ │ │ -00272fe0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ -00272ff0: 736b 6564 203d 205b 2268 7474 7064 225d  sked = ["httpd"]
│ │ │ -00273000: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pup │ │ │ -002730c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -002730d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
C │ │ │ +00271df0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00271e20: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00271e30: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00271e70: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00271e80: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002731a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002731b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -00273200: 6e63 6c75 6465 2064 6973 6162 6c65 5f68  nclude disable_h
│ │ │ -00273210: 7474 7064 0a0a 636c 6173 7320 6469 7361  ttpd..class disa
│ │ │ -00273220: 626c 655f 6874 7470 6420 7b0a 2020 7365  ble_httpd {.  se
│ │ │ -00273230: 7276 6963 6520 7b27 6874 7470 6427 3a0a  rvice {'httpd':.
│ │ │ -00273240: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -00273250: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -00273260: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -00273270: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remedi │ │ │ -00273330: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -00273340: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ -00273180: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00273190: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002731d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -002731e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002733f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00273410: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00273440: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002733d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002733e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00273400: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00273420: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00273430: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00273470: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00273480: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00273490: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -002734a0: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -002734b0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -002734c0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -002734d0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ -002734e0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ -002734f0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ -00273500: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ -00273510: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ -00273520: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ -00273530: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ -00273540: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ -00273550: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ -00273560: 2d20 7365 7276 6963 655f 6874 7470 645f - service_httpd_ │ │ │ -00273570: 6469 7361 626c 6564 0a20 202d 2075 6e6b disabled. - unk │ │ │ -00273580: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d nown_severity..- │ │ │ -00273590: 206e 616d 653a 2044 6973 6162 6c65 2068 name: Disable h │ │ │ -002735a0: 7474 7064 2053 6572 7669 6365 202d 2044 ttpd Service - D │ │ │ -002735b0: 6973 6162 6c65 2073 6572 7669 6365 2068 isable service h │ │ │ -002735c0: 7474 7064 0a20 2062 6c6f 636b 3a0a 0a20 ttpd. block:.. │ │ │ -002735d0: 202d 206e 616d 653a 2044 6973 6162 6c65 - name: Disable │ │ │ -002735e0: 2068 7474 7064 2053 6572 7669 6365 202d httpd Service - │ │ │ -002735f0: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ -00273600: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ -00273610: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ -00273620: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -00273630: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -00273640: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -00273650: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ -00273660: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ -00273670: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ -00273680: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ -00273690: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ -002736a0: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ -002736b0: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ -002736c0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -002736d0: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -002736e0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -002736f0: 4469 7361 626c 6520 6874 7470 6420 5365 Disable httpd Se │ │ │ -00273700: 7276 6963 6520 2d20 456e 7375 7265 2068 rvice - Ensure h │ │ │ -00273710: 7474 7064 2e73 6572 7669 6365 2069 7320 ttpd.service is │ │ │ -00273720: 4d61 736b 6564 0a20 2020 2061 6e73 6962 Masked. ansib │ │ │ -00273730: 6c65 2e62 7569 6c74 696e 2e73 7973 7465 le.builtin.syste │ │ │ -00273740: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20 md:. name: │ │ │ -00273750: 6874 7470 642e 7365 7276 6963 650a 2020 httpd.service. │ │ │ -00273760: 2020 2020 7374 6174 653a 2073 746f 7070 state: stopp │ │ │ -00273770: 6564 0a20 2020 2020 2065 6e61 626c 6564 ed. enabled │ │ │ -00273780: 3a20 6661 6c73 650a 2020 2020 2020 6d61 : false. ma │ │ │ -00273790: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ -002737a0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ -002737b0: 7374 732e 7374 646f 7574 5f6c 696e 6573 sts.stdout_lines │ │ │ -002737c0: 2069 7320 7365 6172 6368 2822 6874 7470 is search("http │ │ │ -002737d0: 642e 7365 7276 6963 6522 2c20 6d75 6c74 d.service", mult │ │ │ -002737e0: 696c 696e 653d 5472 7565 290a 0a20 202d iline=True).. - │ │ │ -002737f0: 206e 616d 653a 2055 6e69 7420 536f 636b name: Unit Sock │ │ │ -00273800: 6574 2045 7869 7374 7320 2d20 6874 7470 et Exists - http │ │ │ -00273810: 642e 736f 636b 6574 0a20 2020 2061 6e73 d.socket. ans │ │ │ -00273820: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d ible.builtin.com │ │ │ -00273830: 6d61 6e64 3a20 7379 7374 656d 6374 6c20 mand: systemctl │ │ │ -00273840: 2d71 206c 6973 742d 756e 6974 2d66 696c -q list-unit-fil │ │ │ -00273850: 6573 2068 7474 7064 2e73 6f63 6b65 740a es httpd.socket. │ │ │ -00273860: 2020 2020 7265 6769 7374 6572 3a20 736f register: so │ │ │ -00273870: 636b 6574 5f66 696c 655f 6578 6973 7473 cket_file_exists │ │ │ -00273880: 0a20 2020 2063 6861 6e67 6564 5f77 6865 . changed_whe │ │ │ -00273890: 6e3a 2066 616c 7365 0a20 2020 2066 6169 n: false. fai │ │ │ -002738a0: 6c65 645f 7768 656e 3a20 736f 636b 6574 led_when: socket │ │ │ -002738b0: 5f66 696c 655f 6578 6973 7473 2e72 6320 _file_exists.rc │ │ │ -002738c0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020 not in [0, 1]. │ │ │ -002738d0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661 check_mode: fa │ │ │ -002738e0: 6c73 650a 0a20 202d 206e 616d 653a 2044 lse.. - name: D │ │ │ -002738f0: 6973 6162 6c65 2068 7474 7064 2053 6572 isable httpd Ser │ │ │ -00273900: 7669 6365 202d 2044 6973 6162 6c65 2053 vice - Disable S │ │ │ -00273910: 6f63 6b65 7420 6874 7470 640a 2020 2020 ocket httpd. │ │ │ -00273920: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00273930: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00273940: 616d 653a 2068 7474 7064 2e73 6f63 6b65 ame: httpd.socke │ │ │ -00273950: 740a 2020 2020 2020 656e 6162 6c65 643a t. enabled: │ │ │ -00273960: 2066 616c 7365 0a20 2020 2020 2073 7461 false. sta │ │ │ -00273970: 7465 3a20 7374 6f70 7065 640a 2020 2020 te: stopped. │ │ │ -00273980: 2020 6d61 736b 6564 3a20 7472 7565 0a20 masked: true. │ │ │ -00273990: 2020 2077 6865 6e3a 2073 6f63 6b65 745f when: socket_ │ │ │ -002739a0: 6669 6c65 5f65 7869 7374 732e 7374 646f file_exists.stdo │ │ │ -002739b0: 7574 5f6c 696e 6573 2069 7320 7365 6172 ut_lines is sear │ │ │ -002739c0: 6368 2822 6874 7470 642e 736f 636b 6574 ch("httpd.socket │ │ │ -002739d0: 222c 206d 756c 7469 6c69 6e65 3d54 7275 ", multiline=Tru │ │ │ -002739e0: 6529 0a20 2074 6167 733a 0a20 202d 204e e). tags:. - N │ │ │ -002739f0: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00273a00: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00273a10: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -00273a20: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -00273a30: 6229 0a20 202d 2064 6973 6162 6c65 5f73 b). - disable_s │ │ │ -00273a40: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00273a50: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00273a60: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00273a70: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564 - no_reboot_need │ │ │ -00273a80: 6564 0a20 202d 2073 6572 7669 6365 5f68 ed. - service_h │ │ │ -00273a90: 7474 7064 5f64 6973 6162 6c65 640a 2020 ttpd_disabled. │ │ │ -00273aa0: 2d20 7370 6563 6961 6c5f 7365 7276 6963 - special_servic │ │ │ -00273ab0: 655f 626c 6f63 6b0a 2020 2d20 756e 6b6e e_block. - unkn │ │ │ -00273ac0: 6f77 6e5f 7365 7665 7269 7479 0a20 2077 own_severity. w │ │ │ -00273ad0: 6865 6e3a 2027 226c 696e 7578 2d62 6173 hen: '"linux-bas │ │ │ -00273ae0: 6522 2069 6e20 616e 7369 626c 655f 6661 e" in ansible_fa │ │ │ -00273af0: 6374 732e 7061 636b 6167 6573 270a 3c2f cts.packages'.
│ │ │ +00273000: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +00273010: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00273020: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +00273060: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +00273070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +00273090: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002730a0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +002730c0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +002730d0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +002730e0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002730f0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00273100: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +00273110: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ +00273120: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ +00273130: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +00273140: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ +00273150: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00273160: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +00273170: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +00273180: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +00273190: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +002731a0: 6572 7669 6365 5f68 7474 7064 5f64 6973  ervice_httpd_dis
│ │ │ +002731b0: 6162 6c65 640a 2020 2d20 756e 6b6e 6f77  abled.  - unknow
│ │ │ +002731c0: 6e5f 7365 7665 7269 7479 0a0a 2d20 6e61  n_severity..- na
│ │ │ +002731d0: 6d65 3a20 4469 7361 626c 6520 6874 7470  me: Disable http
│ │ │ +002731e0: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +002731f0: 626c 6520 7365 7276 6963 6520 6874 7470  ble service http
│ │ │ +00273200: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ +00273210: 6e61 6d65 3a20 4469 7361 626c 6520 6874  name: Disable ht
│ │ │ +00273220: 7470 6420 5365 7276 6963 6520 2d20 436f  tpd Service - Co
│ │ │ +00273230: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +00273240: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +00273250: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +00273260: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00273270: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00273280: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00273290: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +002732a0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +002732b0: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +002732c0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +002732d0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +002732e0: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +002732f0: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +00273300: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +00273310: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +00273320: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +00273330: 6162 6c65 2068 7474 7064 2053 6572 7669  able httpd Servi
│ │ │ +00273340: 6365 202d 2045 6e73 7572 6520 6874 7470  ce - Ensure http
│ │ │ +00273350: 642e 7365 7276 6963 6520 6973 204d 6173  d.service is Mas
│ │ │ +00273360: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +00273370: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +00273380: 0a20 2020 2020 206e 616d 653a 2068 7474  .      name: htt
│ │ │ +00273390: 7064 2e73 6572 7669 6365 0a20 2020 2020  pd.service.     
│ │ │ +002733a0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002733b0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ +002733c0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ +002733d0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002733e0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002733f0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +00273400: 2073 6561 7263 6828 2268 7474 7064 2e73   search("httpd.s
│ │ │ +00273410: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ +00273420: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ +00273430: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ +00273440: 4578 6973 7473 202d 2068 7474 7064 2e73  Exists - httpd.s
│ │ │ +00273450: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +00273460: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00273470: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00273480: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00273490: 6874 7470 642e 736f 636b 6574 0a20 2020  httpd.socket.   
│ │ │ +002734a0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +002734b0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +002734c0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +002734d0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +002734e0: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +002734f0: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00273500: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00273510: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00273520: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00273530: 626c 6520 6874 7470 6420 5365 7276 6963  ble httpd Servic
│ │ │ +00273540: 6520 2d20 4469 7361 626c 6520 536f 636b  e - Disable Sock
│ │ │ +00273550: 6574 2068 7474 7064 0a20 2020 2061 6e73  et httpd.    ans
│ │ │ +00273560: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ +00273570: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ +00273580: 3a20 6874 7470 642e 736f 636b 6574 0a20  : httpd.socket. 
│ │ │ +00273590: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002735a0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +002735b0: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +002735c0: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +002735d0: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +002735e0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +002735f0: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +00273600: 2268 7474 7064 2e73 6f63 6b65 7422 2c20  "httpd.socket", 
│ │ │ +00273610: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00273620: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +00273630: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ +00273640: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00273650: 434d 2d37 2861 290a 2020 2d20 4e49 5354  CM-7(a).  - NIST
│ │ │ +00273660: 2d38 3030 2d35 332d 434d 2d37 2862 290a  -800-53-CM-7(b).
│ │ │ +00273670: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00273680: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00273690: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002736a0: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +002736b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002736c0: 2020 2d20 7365 7276 6963 655f 6874 7470    - service_http
│ │ │ +002736d0: 645f 6469 7361 626c 6564 0a20 202d 2073  d_disabled.  - s
│ │ │ +002736e0: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +002736f0: 6c6f 636b 0a20 202d 2075 6e6b 6e6f 776e  lock.  - unknown
│ │ │ +00273700: 5f73 6576 6572 6974 790a 2020 7768 656e  _severity.  when
│ │ │ +00273710: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +00273720: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +00273730: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Remed │ │ │ +002737f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00273800: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ +002738b0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +002738d0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00273900: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00273890: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +002738a0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +002738c0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +002738e0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +002738f0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +00273940: 2064 6973 6162 6c65 5f68 7474 7064 0a0a disable_httpd.. │ │ │ +00273950: 636c 6173 7320 6469 7361 626c 655f 6874 class disable_ht │ │ │ +00273960: 7470 6420 7b0a 2020 7365 7276 6963 6520 tpd {. service │ │ │ +00273970: 7b27 6874 7470 6427 3a0a 2020 2020 656e {'httpd':. en │ │ │ +00273980: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ +00273990: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ +002739a0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ +002739b0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

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

│ │ │ +00273ad0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +00273ae0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +00273af0: 6420 3d20 5b22 6874 7470 6422 5d0a 3c2f  d = ["httpd"].
Remediation Pup │ │ │ -00274ba0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00274bb0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
< │ │ │ -00274c80: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00274c90: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00274ce0: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ -00274cf0: 6e67 696e 780a 0a63 6c61 7373 2072 656d  nginx..class rem
│ │ │ -00274d00: 6f76 655f 6e67 696e 7820 7b0a 2020 7061  ove_nginx {.  pa
│ │ │ -00274d10: 636b 6167 6520 7b20 276e 6769 6e78 273a  ckage { 'nginx':
│ │ │ -00274d20: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -00274d30: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -00274d40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -00274d50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -00274e00: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00274e10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -00274ee0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
Complexity:low
Disrup │ │ │ -00274c60: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -00274c70: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00274cb0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00274cc0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexity: │ │ │ -00274ea0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -00274ec0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -00274f10: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -00274f20: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -00274f50: 6e73 7461 6c6c 206e 6769 6e78 2050 6163  nstall nginx Pac
│ │ │ -00274f60: 6b61 6765 3a20 456e 7375 7265 206e 6769  kage: Ensure ngi
│ │ │ -00274f70: 6e78 2069 7320 7265 6d6f 7665 6427 0a20  nx is removed'. 
│ │ │ -00274f80: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00274f90: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -00274fa0: 6d65 3a20 6e67 696e 780a 2020 2020 7374  me: nginx.    st
│ │ │ -00274fb0: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -00274fc0: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030  gs:.  - NIST-800
│ │ │ -00274fd0: 2d35 332d 434d 2d36 2861 290a 2020 2d20  -53-CM-6(a).  - 
│ │ │ -00274fe0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00274ff0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00275000: 2d35 332d 434d 2d37 2862 290a 2020 2d20  -53-CM-7(b).  - 
│ │ │ -00275010: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -00275020: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -00275030: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -00275040: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ -00275050: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00275060: 7061 636b 6167 655f 6e67 696e 785f 7265  package_nginx_re
│ │ │ -00275070: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77  moved.  - unknow
│ │ │ -00275080: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64  n_severity.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 6e67 696e 7820 5061 636b 6167  all nginx Packag
│ │ │ +00274d00: 653a 2045 6e73 7572 6520 6e67 696e 7820  e: Ensure nginx 
│ │ │ +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 6769 6e78 0a20 2020 2073 7461 7465   nginx.    state
│ │ │ +00274d50: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +00274d60: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00274d70: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +00274d80: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +00274d90: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00274da0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +00274db0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00274dc0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00274dd0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +00274de0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +00274df0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +00274e00: 6b61 6765 5f6e 6769 6e78 5f72 656d 6f76  kage_nginx_remov
│ │ │ +00274e10: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73  ed.  - unknown_s
│ │ │ +00274e20: 6576 6572 6974 790a 3c2f 636f 6465 3e3c  everity.<
│ │ │ +00274e30: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +00274ee0: 7469 6f6e 2050 7570 7065 7420 736e 6970  tion Puppet snip
│ │ │ +00274ef0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ +00274f00: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +00274f10: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +00274f20: 7365 2220 6964 3d22 6964 3130 3030 223e se" id="id1000"> │ │ │ +00274f30: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
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
< │ │ │ +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:
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
disable

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

Remediation │ │ │ -00275b90: 204f 5342 7569 6c64 2042 6c75 6570 7269 OSBuild Bluepri │ │ │ -00275ba0: 6e74 2073 6e69 7070 6574 20e2 87b2 3c2f nt snippet ...
.[customizatio
│ │ │ -00275c00: 6e73 2e73 6572 7669 6365 735d 0a6d 6173  ns.services].mas
│ │ │ -00275c10: 6b65 6420 3d20 5b22 6e67 696e 7822 5d0a  ked = ["nginx"].
│ │ │ -00275c20: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -00275ce0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -00275cf0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00275dc0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00275dd0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -00275e20: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ -00275e30: 6e67 696e 780a 0a63 6c61 7373 2064 6973  nginx..class dis
│ │ │ -00275e40: 6162 6c65 5f6e 6769 6e78 207b 0a20 2073  able_nginx {.  s
│ │ │ -00275e50: 6572 7669 6365 207b 276e 6769 6e78 273a  ervice {'nginx':
│ │ │ -00275e60: 0a20 2020 2065 6e61 626c 6520 3d26 6774  .    enable =>
│ │ │ -00275e70: 3b20 6661 6c73 652c 0a20 2020 2065 6e73  ; false,.    ens
│ │ │ -00275e80: 7572 6520 3d26 6774 3b20 2773 746f 7070  ure => 'stopp
│ │ │ -00275e90: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -00275f50: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00275f60: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00275f70: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -00275da0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00275db0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00275df0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -00275e00: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -00276010: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00276060: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -002760a0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -002760b0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -002760c0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -002760d0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -002760e0: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ -002760f0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00276100: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00276110: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00276120: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00276130: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00276140: 7669 6365 5f6e 6769 6e78 5f64 6973 6162  vice_nginx_disab
│ │ │ -00276150: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ -00276160: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ -00276170: 3a20 4469 7361 626c 6520 6e67 696e 7820  : Disable nginx 
│ │ │ -00276180: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00276190: 6520 7365 7276 6963 6520 6e67 696e 780a  e service nginx.
│ │ │ -002761a0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -002761b0: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ -002761c0: 7820 5365 7276 6963 6520 2d20 436f 6c6c  x Service - Coll
│ │ │ -002761d0: 6563 7420 7379 7374 656d 6420 5365 7276  ect systemd Serv
│ │ │ -002761e0: 6963 6573 2050 7265 7365 6e74 2069 6e20  ices Present in 
│ │ │ -002761f0: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ -00276200: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -00276210: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -00276220: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -00276230: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ -00276240: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ -00276250: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -00276260: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -00276270: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00276280: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ -00276290: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002762a0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002762b0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002762c0: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002762d0: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ -002762e0: 202d 2045 6e73 7572 6520 6e67 696e 782e   - Ensure nginx.
│ │ │ -002762f0: 7365 7276 6963 6520 6973 204d 6173 6b65  service is Maske
│ │ │ -00276300: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ -00276310: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -00276320: 2020 2020 206e 616d 653a 206e 6769 6e78       name: nginx
│ │ │ -00276330: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -00276340: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -00276350: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -00276360: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -00276370: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -00276380: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -00276390: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002763a0: 6561 7263 6828 226e 6769 6e78 2e73 6572  earch("nginx.ser
│ │ │ -002763b0: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -002763c0: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -002763d0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -002763e0: 6973 7473 202d 206e 6769 6e78 2e73 6f63  ists - nginx.soc
│ │ │ -002763f0: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ -00276400: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -00276410: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -00276420: 7374 2d75 6e69 742d 6669 6c65 7320 6e67  st-unit-files ng
│ │ │ -00276430: 696e 782e 736f 636b 6574 0a20 2020 2072  inx.socket.    r
│ │ │ -00276440: 6567 6973 7465 723a 2073 6f63 6b65 745f  egister: socket_
│ │ │ -00276450: 6669 6c65 5f65 7869 7374 730a 2020 2020  file_exists.    
│ │ │ -00276460: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ -00276470: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ -00276480: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65  hen: socket_file
│ │ │ -00276490: 5f65 7869 7374 732e 7263 206e 6f74 2069  _exists.rc not i
│ │ │ -002764a0: 6e20 5b30 2c20 315d 0a20 2020 2063 6865  n [0, 1].    che
│ │ │ -002764b0: 636b 5f6d 6f64 653a 2066 616c 7365 0a0a  ck_mode: false..
│ │ │ -002764c0: 2020 2d20 6e61 6d65 3a20 4469 7361 626c    - name: Disabl
│ │ │ -002764d0: 6520 6e67 696e 7820 5365 7276 6963 6520  e nginx Service 
│ │ │ -002764e0: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -002764f0: 206e 6769 6e78 0a20 2020 2061 6e73 6962   nginx.    ansib
│ │ │ -00276500: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -00276510: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -00276520: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ -00276530: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -00276540: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ -00276550: 746f 7070 6564 0a20 2020 2020 206d 6173  topped.      mas
│ │ │ -00276560: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -00276570: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -00276580: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ -00276590: 6e65 7320 6973 2073 6561 7263 6828 226e  nes is search("n
│ │ │ -002765a0: 6769 6e78 2e73 6f63 6b65 7422 2c20 6d75  ginx.socket", mu
│ │ │ -002765b0: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ -002765c0: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ -002765d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ -002765e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002765f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -00276600: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00276610: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ -00276620: 655f 6e67 696e 785f 6469 7361 626c 6564  e_nginx_disabled
│ │ │ -00276630: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -00276640: 7669 6365 5f62 6c6f 636b 0a20 202d 2075  vice_block.  - u
│ │ │ -00276650: 6e6b 6e6f 776e 5f73 6576 6572 6974 790a  nknown_severity.
│ │ │ -00276660: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ -00276670: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ -00276680: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +00275b90: 2041 6e73 6962 6c65 2073 6e69 7070 6574   Ansible snippet
│ │ │ +00275ba0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976   ...
< │ │ │ +00275c20: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +00275c60: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
Co │ │ │ -00275ff0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00276020: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00276040: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00276050: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00276070: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00276080: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexit │ │ │ +00275c30: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +00275c50: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +00275c80: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00275ca0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00275cd0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +00275ce0: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +00275cf0: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +00275d00: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +00275d10: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +00275d20: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ +00275d30: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ +00275d40: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ +00275d50: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ +00275d60: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +00275d70: 640a 2020 2d20 7365 7276 6963 655f 6e67  d.  - service_ng
│ │ │ +00275d80: 696e 785f 6469 7361 626c 6564 0a20 202d  inx_disabled.  -
│ │ │ +00275d90: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ +00275da0: 790a 0a2d 206e 616d 653a 2044 6973 6162  y..- name: Disab
│ │ │ +00275db0: 6c65 206e 6769 6e78 2053 6572 7669 6365  le nginx Service
│ │ │ +00275dc0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ +00275dd0: 6365 206e 6769 6e78 0a20 2062 6c6f 636b  ce nginx.  block
│ │ │ +00275de0: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00275df0: 6162 6c65 206e 6769 6e78 2053 6572 7669  able nginx Servi
│ │ │ +00275e00: 6365 202d 2043 6f6c 6c65 6374 2073 7973  ce - Collect sys
│ │ │ +00275e10: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ +00275e20: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ +00275e30: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +00275e40: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00275e50: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00275e60: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +00275e70: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +00275e80: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +00275e90: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +00275ea0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +00275eb0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +00275ec0: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +00275ed0: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +00275ee0: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +00275ef0: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +00275f00: 6d65 3a20 4469 7361 626c 6520 6e67 696e  me: Disable ngin
│ │ │ +00275f10: 7820 5365 7276 6963 6520 2d20 456e 7375  x Service - Ensu
│ │ │ +00275f20: 7265 206e 6769 6e78 2e73 6572 7669 6365  re nginx.service
│ │ │ +00275f30: 2069 7320 4d61 736b 6564 0a20 2020 2061   is Masked.    a
│ │ │ +00275f40: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +00275f50: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +00275f60: 6d65 3a20 6e67 696e 782e 7365 7276 6963  me: nginx.servic
│ │ │ +00275f70: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +00275f80: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +00275f90: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +00275fa0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +00275fb0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +00275fc0: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +00275fd0: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +00275fe0: 6e67 696e 782e 7365 7276 6963 6522 2c20  nginx.service", 
│ │ │ +00275ff0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ +00276000: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ +00276010: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ +00276020: 6e67 696e 782e 736f 636b 6574 0a20 2020  nginx.socket.   
│ │ │ +00276030: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00276040: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00276050: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00276060: 2d66 696c 6573 206e 6769 6e78 2e73 6f63  -files nginx.soc
│ │ │ +00276070: 6b65 740a 2020 2020 7265 6769 7374 6572  ket.    register
│ │ │ +00276080: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +00276090: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002760a0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002760b0: 2066 6169 6c65 645f 7768 656e 3a20 736f   failed_when: so
│ │ │ +002760c0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002760d0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002760e0: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002760f0: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +00276100: 653a 2044 6973 6162 6c65 206e 6769 6e78  e: Disable nginx
│ │ │ +00276110: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00276120: 6c65 2053 6f63 6b65 7420 6e67 696e 780a  le Socket nginx.
│ │ │ +00276130: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +00276140: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +00276150: 2020 206e 616d 653a 206e 6769 6e78 2e73     name: nginx.s
│ │ │ +00276160: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +00276170: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +00276180: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +00276190: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002761a0: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +002761b0: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +002761c0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002761d0: 7365 6172 6368 2822 6e67 696e 782e 736f  search("nginx.so
│ │ │ +002761e0: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +002761f0: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +00276200: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +00276210: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00276220: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00276230: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +00276240: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +00276250: 202d 2073 6572 7669 6365 5f6e 6769 6e78   - service_nginx
│ │ │ +00276260: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ +00276270: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ +00276280: 6f63 6b0a 2020 2d20 756e 6b6e 6f77 6e5f  ock.  - unknown_
│ │ │ +00276290: 7365 7665 7269 7479 0a20 2077 6865 6e3a  severity.  when:
│ │ │ +002762a0: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +002762b0: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +002762c0: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00276380: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00276390: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ +00276420: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00276430: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00276450: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00276470: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00276480: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +002764c0: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +002764d0: 6520 6469 7361 626c 655f 6e67 696e 780a e disable_nginx. │ │ │ +002764e0: 0a63 6c61 7373 2064 6973 6162 6c65 5f6e .class disable_n │ │ │ +002764f0: 6769 6e78 207b 0a20 2073 6572 7669 6365 ginx {. service │ │ │ +00276500: 207b 276e 6769 6e78 273a 0a20 2020 2065 {'nginx':. e │ │ │ +00276510: 6e61 626c 6520 3d26 6774 3b20 6661 6c73 nable => fals │ │ │ +00276520: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +00276530: 6774 3b20 2773 746f 7070 6564 272c 0a20 gt; 'stopped',. │ │ │ +00276540: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.
Remediatio │ │ │ +00276600: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00276610: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +00276620: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +00276670: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00276680: 736b 6564 203d 205b 226e 6769 6e78 225d  sked = ["nginx"]
│ │ │  00276690: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
< │ │ │ 002766b0: 2f74 723e 3c2f 7462 6f64 793e 3c2f 7461 /tr>Remediation │ │ │ -00277600: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -00277610: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...

Complexity │ │ │ -002776a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002776c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002776d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002776e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002776f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00277710: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00277740: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ -00277750: 6d6f 7665 5f64 6f76 6563 6f74 0a0a 636c  move_dovecot..cl
│ │ │ -00277760: 6173 7320 7265 6d6f 7665 5f64 6f76 6563  ass remove_dovec
│ │ │ -00277770: 6f74 207b 0a20 2070 6163 6b61 6765 207b  ot {.  package {
│ │ │ -00277780: 2027 646f 7665 636f 7427 3a0a 2020 2020   'dovecot':.    
│ │ │ -00277790: 656e 7375 7265 203d 2667 743b 2027 7075  ensure => 'pu
│ │ │ -002777a0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63  rged',.  }.}.
│ │ │ -002777c0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -00277860: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -00277870: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -00277910: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002779b0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ -002779c0: 6c20 646f 7665 636f 7420 5061 636b 6167  l dovecot Packag
│ │ │ -002779d0: 653a 2045 6e73 7572 6520 646f 7665 636f  e: Ensure doveco
│ │ │ -002779e0: 7420 6973 2072 656d 6f76 6564 270a 2020  t is removed'.  
│ │ │ -002779f0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00277a00: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00277a10: 653a 2064 6f76 6563 6f74 0a20 2020 2073  e: dovecot.    s
│ │ │ -00277a20: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -00277a30: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -00277a40: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -00277a50: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -00277a60: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -00277a70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -00277a80: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -00277a90: 5f64 6f76 6563 6f74 5f72 656d 6f76 6564  _dovecot_removed
│ │ │ -00277aa0: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -00277ab0: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.


< │ │ │ +00277690: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ +002776d0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ -00277900: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -00277930: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -00277940: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -00277980: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -00277990: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ +002776a0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ +002776c0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ +002776f0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ +00277710: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ +00277740: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2755  - name: 'U
│ │ │ +00277750: 6e69 6e73 7461 6c6c 2064 6f76 6563 6f74  ninstall dovecot
│ │ │ +00277760: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +00277770: 2064 6f76 6563 6f74 2069 7320 7265 6d6f   dovecot is remo
│ │ │ +00277780: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ +00277790: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ +002777a0: 2020 2020 6e61 6d65 3a20 646f 7665 636f      name: doveco
│ │ │ +002777b0: 740a 2020 2020 7374 6174 653a 2061 6273  t.    state: abs
│ │ │ +002777c0: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ +002777d0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +002777e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +002777f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +00277800: 7570 7469 6f6e 0a20 202d 206e 6f5f 7265  uption.  - no_re
│ │ │ +00277810: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00277820: 7061 636b 6167 655f 646f 7665 636f 745f  package_dovecot_
│ │ │ +00277830: 7265 6d6f 7665 640a 2020 2d20 756e 6b6e  removed.  - unkn
│ │ │ +00277840: 6f77 6e5f 7365 7665 7269 7479 0a3c 2f63  own_severity.
│ │ │ +00277860: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00277900: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00277910: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00277920: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +002779b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002779c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00277a10: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +00277a50: 6e63 6c75 6465 2072 656d 6f76 655f 646f  nclude remove_do
│ │ │ +00277a60: 7665 636f 740a 0a63 6c61 7373 2072 656d  vecot..class rem
│ │ │ +00277a70: 6f76 655f 646f 7665 636f 7420 7b0a 2020  ove_dovecot {.  
│ │ │ +00277a80: 7061 636b 6167 6520 7b20 2764 6f76 6563  package { 'dovec
│ │ │ +00277a90: 6f74 273a 0a20 2020 2065 6e73 7572 6520  ot':.    ensure 
│ │ │ +00277aa0: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00277ab0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remedi │ │ │ -002785d0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002785e0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002785f0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -00278640: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -00278650: 5d0a 6d61 736b 6564 203d 205b 2264 6f76  ].masked = ["dov
│ │ │ -00278660: 6563 6f74 225d 0a3c 2f63 6f64 653e 3c2f  ecot"].
Remediat │ │ │ -00278720: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -00278730: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00278770: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00278780: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00278790: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002787a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002787b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00278840: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00278850: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
C │ │ │ +002779a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002779d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002779e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00277a20: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00277a30: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complex │ │ │ -002787c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002787d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00278810: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00278820: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ -00278870: 6973 6162 6c65 5f64 6f76 6563 6f74 0a0a  isable_dovecot..
│ │ │ -00278880: 636c 6173 7320 6469 7361 626c 655f 646f  class disable_do
│ │ │ -00278890: 7665 636f 7420 7b0a 2020 7365 7276 6963  vecot {.  servic
│ │ │ -002788a0: 6520 7b27 646f 7665 636f 7427 3a0a 2020  e {'dovecot':.  
│ │ │ -002788b0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ -002788c0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ -002788d0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ -002788e0: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002788f0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -002789a0: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69 tion Ansible sni │ │ │ -002789b0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002789c0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00278a60: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00278a80: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00278ab0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00278a40: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00278a50: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00278a70: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00278a90: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00278aa0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00278ae0: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -00278af0: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -00278b00: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -00278b10: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -00278b20: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -00278b30: 7461 6773 3a0a 2020 2d20 6469 7361 626c tags:. - disabl │ │ │ -00278b40: 655f 7374 7261 7465 6779 0a20 202d 206c e_strategy. - l │ │ │ -00278b50: 6f77 5f63 6f6d 706c 6578 6974 790a 2020 ow_complexity. │ │ │ -00278b60: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e - low_disruption │ │ │ -00278b70: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e . - no_reboot_n │ │ │ -00278b80: 6565 6465 640a 2020 2d20 7365 7276 6963 eeded. - servic │ │ │ -00278b90: 655f 646f 7665 636f 745f 6469 7361 626c e_dovecot_disabl │ │ │ -00278ba0: 6564 0a20 202d 2075 6e6b 6e6f 776e 5f73 ed. - unknown_s │ │ │ -00278bb0: 6576 6572 6974 790a 0a2d 206e 616d 653a everity..- name: │ │ │ -00278bc0: 2044 6973 6162 6c65 2044 6f76 6563 6f74 Disable Dovecot │ │ │ -00278bd0: 2053 6572 7669 6365 202d 2044 6973 6162 Service - Disab │ │ │ -00278be0: 6c65 2073 6572 7669 6365 2064 6f76 6563 le service dovec │ │ │ -00278bf0: 6f74 0a20 2062 6c6f 636b 3a0a 0a20 202d ot. block:.. - │ │ │ -00278c00: 206e 616d 653a 2044 6973 6162 6c65 2044 name: Disable D │ │ │ -00278c10: 6f76 6563 6f74 2053 6572 7669 6365 202d ovecot Service - │ │ │ -00278c20: 2043 6f6c 6c65 6374 2073 7973 7465 6d64 Collect systemd │ │ │ -00278c30: 2053 6572 7669 6365 7320 5072 6573 656e Services Presen │ │ │ -00278c40: 7420 696e 2074 6865 2053 7973 7465 6d0a t in the System. │ │ │ -00278c50: 2020 2020 616e 7369 626c 652e 6275 696c ansible.buil │ │ │ -00278c60: 7469 6e2e 636f 6d6d 616e 643a 2073 7973 tin.command: sys │ │ │ -00278c70: 7465 6d63 746c 202d 7120 6c69 7374 2d75 temctl -q list-u │ │ │ -00278c80: 6e69 742d 6669 6c65 7320 2d2d 7479 7065 nit-files --type │ │ │ -00278c90: 2073 6572 7669 6365 0a20 2020 2072 6567 service. reg │ │ │ -00278ca0: 6973 7465 723a 2073 6572 7669 6365 5f65 ister: service_e │ │ │ -00278cb0: 7869 7374 730a 2020 2020 6368 616e 6765 xists. change │ │ │ -00278cc0: 645f 7768 656e 3a20 6661 6c73 650a 2020 d_when: false. │ │ │ -00278cd0: 2020 6661 696c 6564 5f77 6865 6e3a 2073 failed_when: s │ │ │ -00278ce0: 6572 7669 6365 5f65 7869 7374 732e 7263 ervice_exists.rc │ │ │ -00278cf0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20 not in [0, 1]. │ │ │ -00278d00: 2020 2063 6865 636b 5f6d 6f64 653a 2066 check_mode: f │ │ │ -00278d10: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20 alse.. - name: │ │ │ -00278d20: 4469 7361 626c 6520 446f 7665 636f 7420 Disable Dovecot │ │ │ -00278d30: 5365 7276 6963 6520 2d20 456e 7375 7265 Service - Ensure │ │ │ -00278d40: 2064 6f76 6563 6f74 2e73 6572 7669 6365 dovecot.service │ │ │ -00278d50: 2069 7320 4d61 736b 6564 0a20 2020 2061 is Masked. a │ │ │ -00278d60: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73 nsible.builtin.s │ │ │ -00278d70: 7973 7465 6d64 3a0a 2020 2020 2020 6e61 ystemd:. na │ │ │ -00278d80: 6d65 3a20 646f 7665 636f 742e 7365 7276 me: dovecot.serv │ │ │ -00278d90: 6963 650a 2020 2020 2020 7374 6174 653a ice. state: │ │ │ -00278da0: 2073 746f 7070 6564 0a20 2020 2020 2065 stopped. e │ │ │ -00278db0: 6e61 626c 6564 3a20 6661 6c73 650a 2020 nabled: false. │ │ │ -00278dc0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -00278dd0: 0a20 2020 2077 6865 6e3a 2073 6572 7669 . when: servi │ │ │ -00278de0: 6365 5f65 7869 7374 732e 7374 646f 7574 ce_exists.stdout │ │ │ -00278df0: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ -00278e00: 2822 646f 7665 636f 742e 7365 7276 6963 ("dovecot.servic │ │ │ -00278e10: 6522 2c20 6d75 6c74 696c 696e 653d 5472 e", multiline=Tr │ │ │ -00278e20: 7565 290a 0a20 202d 206e 616d 653a 2055 ue).. - name: U │ │ │ -00278e30: 6e69 7420 536f 636b 6574 2045 7869 7374 nit Socket Exist │ │ │ -00278e40: 7320 2d20 646f 7665 636f 742e 736f 636b s - dovecot.sock │ │ │ -00278e50: 6574 0a20 2020 2061 6e73 6962 6c65 2e62 et. ansible.b │ │ │ -00278e60: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ -00278e70: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ -00278e80: 742d 756e 6974 2d66 696c 6573 2064 6f76 t-unit-files dov │ │ │ -00278e90: 6563 6f74 2e73 6f63 6b65 740a 2020 2020 ecot.socket. │ │ │ -00278ea0: 7265 6769 7374 6572 3a20 736f 636b 6574 register: socket │ │ │ -00278eb0: 5f66 696c 655f 6578 6973 7473 0a20 2020 _file_exists. │ │ │ -00278ec0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066 changed_when: f │ │ │ -00278ed0: 616c 7365 0a20 2020 2066 6169 6c65 645f alse. failed_ │ │ │ -00278ee0: 7768 656e 3a20 736f 636b 6574 5f66 696c when: socket_fil │ │ │ -00278ef0: 655f 6578 6973 7473 2e72 6320 6e6f 7420 e_exists.rc not │ │ │ -00278f00: 696e 205b 302c 2031 5d0a 2020 2020 6368 in [0, 1]. ch │ │ │ -00278f10: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a eck_mode: false. │ │ │ -00278f20: 0a20 202d 206e 616d 653a 2044 6973 6162 . - name: Disab │ │ │ -00278f30: 6c65 2044 6f76 6563 6f74 2053 6572 7669 le Dovecot Servi │ │ │ -00278f40: 6365 202d 2044 6973 6162 6c65 2053 6f63 ce - Disable Soc │ │ │ -00278f50: 6b65 7420 646f 7665 636f 740a 2020 2020 ket dovecot. │ │ │ -00278f60: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00278f70: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00278f80: 616d 653a 2064 6f76 6563 6f74 2e73 6f63 ame: dovecot.soc │ │ │ -00278f90: 6b65 740a 2020 2020 2020 656e 6162 6c65 ket. enable │ │ │ -00278fa0: 643a 2066 616c 7365 0a20 2020 2020 2073 d: false. s │ │ │ -00278fb0: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -00278fc0: 2020 2020 6d61 736b 6564 3a20 7472 7565 masked: true │ │ │ -00278fd0: 0a20 2020 2077 6865 6e3a 2073 6f63 6b65 . when: socke │ │ │ -00278fe0: 745f 6669 6c65 5f65 7869 7374 732e 7374 t_file_exists.st │ │ │ -00278ff0: 646f 7574 5f6c 696e 6573 2069 7320 7365 dout_lines is se │ │ │ -00279000: 6172 6368 2822 646f 7665 636f 742e 736f arch("dovecot.so │ │ │ -00279010: 636b 6574 222c 206d 756c 7469 6c69 6e65 cket", multiline │ │ │ -00279020: 3d54 7275 6529 0a20 2074 6167 733a 0a20 =True). tags:. │ │ │ -00279030: 202d 2064 6973 6162 6c65 5f73 7472 6174 - disable_strat │ │ │ -00279040: 6567 790a 2020 2d20 6c6f 775f 636f 6d70 egy. - low_comp │ │ │ -00279050: 6c65 7869 7479 0a20 202d 206c 6f77 5f64 lexity. - low_d │ │ │ -00279060: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f isruption. - no │ │ │ -00279070: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20 _reboot_needed. │ │ │ -00279080: 202d 2073 6572 7669 6365 5f64 6f76 6563 - service_dovec │ │ │ -00279090: 6f74 5f64 6973 6162 6c65 640a 2020 2d20 ot_disabled. - │ │ │ -002790a0: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -002790b0: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ -002790c0: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ -002790d0: 6e3a 2027 226c 696e 7578 2d62 6173 6522 n: '"linux-base" │ │ │ -002790e0: 2069 6e20 616e 7369 626c 655f 6661 6374 in ansible_fact │ │ │ -002790f0: 732e 7061 636b 6167 6573 270a 3c2f 636f s.packages'.
Comp │ │ │ +00278670: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00278680: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002786a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002786c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002786d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00278710: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00278720: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00278730: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00278740: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00278750: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00278760: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ +00278770: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +00278780: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +00278790: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +002787a0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +002787b0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002787c0: 6365 5f64 6f76 6563 6f74 5f64 6973 6162  ce_dovecot_disab
│ │ │ +002787d0: 6c65 640a 2020 2d20 756e 6b6e 6f77 6e5f  led.  - unknown_
│ │ │ +002787e0: 7365 7665 7269 7479 0a0a 2d20 6e61 6d65  severity..- name
│ │ │ +002787f0: 3a20 4469 7361 626c 6520 446f 7665 636f  : Disable Doveco
│ │ │ +00278800: 7420 5365 7276 6963 6520 2d20 4469 7361  t Service - Disa
│ │ │ +00278810: 626c 6520 7365 7276 6963 6520 646f 7665  ble service dove
│ │ │ +00278820: 636f 740a 2020 626c 6f63 6b3a 0a0a 2020  cot.  block:..  
│ │ │ +00278830: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +00278840: 446f 7665 636f 7420 5365 7276 6963 6520  Dovecot Service 
│ │ │ +00278850: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +00278860: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +00278870: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +00278880: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00278890: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +002788a0: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +002788b0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +002788c0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +002788d0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +002788e0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +002788f0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +00278900: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +00278910: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +00278920: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00278930: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00278940: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00278950: 2044 6973 6162 6c65 2044 6f76 6563 6f74   Disable Dovecot
│ │ │ +00278960: 2053 6572 7669 6365 202d 2045 6e73 7572   Service - Ensur
│ │ │ +00278970: 6520 646f 7665 636f 742e 7365 7276 6963  e dovecot.servic
│ │ │ +00278980: 6520 6973 204d 6173 6b65 640a 2020 2020  e is Masked.    
│ │ │ +00278990: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002789a0: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ +002789b0: 616d 653a 2064 6f76 6563 6f74 2e73 6572  ame: dovecot.ser
│ │ │ +002789c0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +002789d0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002789e0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002789f0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00278a00: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +00278a10: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +00278a20: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +00278a30: 6828 2264 6f76 6563 6f74 2e73 6572 7669  h("dovecot.servi
│ │ │ +00278a40: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +00278a50: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +00278a60: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +00278a70: 7473 202d 2064 6f76 6563 6f74 2e73 6f63  ts - dovecot.soc
│ │ │ +00278a80: 6b65 740a 2020 2020 616e 7369 626c 652e  ket.    ansible.
│ │ │ +00278a90: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +00278aa0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +00278ab0: 7374 2d75 6e69 742d 6669 6c65 7320 646f  st-unit-files do
│ │ │ +00278ac0: 7665 636f 742e 736f 636b 6574 0a20 2020  vecot.socket.   
│ │ │ +00278ad0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ +00278ae0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ +00278af0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ +00278b00: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ +00278b10: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ +00278b20: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ +00278b30: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ +00278b40: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ +00278b50: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ +00278b60: 626c 6520 446f 7665 636f 7420 5365 7276  ble Dovecot Serv
│ │ │ +00278b70: 6963 6520 2d20 4469 7361 626c 6520 536f  ice - Disable So
│ │ │ +00278b80: 636b 6574 2064 6f76 6563 6f74 0a20 2020  cket dovecot.   
│ │ │ +00278b90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00278ba0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +00278bb0: 6e61 6d65 3a20 646f 7665 636f 742e 736f  name: dovecot.so
│ │ │ +00278bc0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +00278bd0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +00278be0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00278bf0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +00278c00: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +00278c10: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +00278c20: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +00278c30: 6561 7263 6828 2264 6f76 6563 6f74 2e73  earch("dovecot.s
│ │ │ +00278c40: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +00278c50: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +00278c60: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00278c70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00278c80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00278c90: 6469 7372 7570 7469 6f6e 0a20 202d 206e  disruption.  - n
│ │ │ +00278ca0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +00278cb0: 2020 2d20 7365 7276 6963 655f 646f 7665    - service_dove
│ │ │ +00278cc0: 636f 745f 6469 7361 626c 6564 0a20 202d  cot_disabled.  -
│ │ │ +00278cd0: 2073 7065 6369 616c 5f73 6572 7669 6365   special_service
│ │ │ +00278ce0: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f  _block.  - unkno
│ │ │ +00278cf0: 776e 5f73 6576 6572 6974 790a 2020 7768  wn_severity.  wh
│ │ │ +00278d00: 656e 3a20 2722 6c69 6e75 782d 6261 7365  en: '"linux-base
│ │ │ +00278d10: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ +00278d20: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63  ts.packages'.
│ │ │ +00278d40: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00278de0: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00278df0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00278e00: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +00278e90: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00278ea0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00278ef0: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00278f30: 6c75 6465 2064 6973 6162 6c65 5f64 6f76  lude disable_dov
│ │ │ +00278f40: 6563 6f74 0a0a 636c 6173 7320 6469 7361  ecot..class disa
│ │ │ +00278f50: 626c 655f 646f 7665 636f 7420 7b0a 2020  ble_dovecot {.  
│ │ │ +00278f60: 7365 7276 6963 6520 7b27 646f 7665 636f  service {'doveco
│ │ │ +00278f70: 7427 3a0a 2020 2020 656e 6162 6c65 203d  t':.    enable =
│ │ │ +00278f80: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +00278f90: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +00278fa0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +00279060: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +00279070: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +00279080: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +00279090: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +002790d0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002790e0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +002790f0: 5b22 646f 7665 636f 7422 5d0a 3c2f 636f  ["dovecot"].
< │ │ │ 00279110: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 00279120: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>
C │ │ │ +00278e80: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00278eb0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00278ec0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00278f00: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00278f10: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ 00279130: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Remediati │ │ │ -0027a460: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0027a470: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0027a4f0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0027a500: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0027a510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0027a550: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0027a560: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0027a580: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0027a590: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ -0027a5b0: 7265 6d6f 7665 5f6f 7065 6e6c 6461 702d  remove_openldap-
│ │ │ -0027a5c0: 636c 6965 6e74 730a 0a63 6c61 7373 2072  clients..class r
│ │ │ -0027a5d0: 656d 6f76 655f 6f70 656e 6c64 6170 2d63  emove_openldap-c
│ │ │ -0027a5e0: 6c69 656e 7473 207b 0a20 2070 6163 6b61  lients {.  packa
│ │ │ -0027a5f0: 6765 207b 2027 6f70 656e 6c64 6170 2d63  ge { 'openldap-c
│ │ │ -0027a600: 6c69 656e 7473 273a 0a20 2020 2065 6e73  lients':.    ens
│ │ │ -0027a610: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0027a620: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0027a6e0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0027a6f0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -0027a780: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0027a7b0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0027a7d0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0027a7e0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0027a800: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0027a810: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0027a830: 6d65 3a20 2745 6e73 7572 6520 4c44 4150  me: 'Ensure LDAP
│ │ │ -0027a840: 2063 6c69 656e 7420 6973 206e 6f74 2069   client is not i
│ │ │ -0027a850: 6e73 7461 6c6c 6564 3a20 456e 7375 7265  nstalled: Ensure
│ │ │ -0027a860: 206f 7065 6e6c 6461 702d 636c 6965 6e74   openldap-client
│ │ │ -0027a870: 7320 6973 2072 656d 6f76 6564 270a 2020  s is removed'.  
│ │ │ -0027a880: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0027a890: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -0027a8a0: 653a 206f 7065 6e6c 6461 702d 636c 6965  e: openldap-clie
│ │ │ -0027a8b0: 6e74 730a 2020 2020 7374 6174 653a 2061  nts.    state: a
│ │ │ -0027a8c0: 6273 656e 740a 2020 7461 6773 3a0a 2020  bsent.  tags:.  
│ │ │ -0027a8d0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -0027a8e0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -0027a8f0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0027a900: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ -0027a910: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0027a920: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0027a930: 202d 2070 6163 6b61 6765 5f6f 7065 6e6c   - package_openl
│ │ │ -0027a940: 6461 702d 636c 6965 6e74 735f 7265 6d6f  dap-clients_remo
│ │ │ -0027a950: 7665 640a 3c2f 636f 6465 3e3c 2f70 7265  ved.

< │ │ │ +0027a4b0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0027a4c0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0027a4d0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0027a4e0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0027a4f0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0027a500: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0027a510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0027a550: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0027a560: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0027a580: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +0027a590: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +0027a5b0: 2745 6e73 7572 6520 4c44 4150 2063 6c69 'Ensure LDAP cli │ │ │ +0027a5c0: 656e 7420 6973 206e 6f74 2069 6e73 7461 ent is not insta │ │ │ +0027a5d0: 6c6c 6564 3a20 456e 7375 7265 206f 7065 lled: Ensure ope │ │ │ +0027a5e0: 6e6c 6461 702d 636c 6965 6e74 7320 6973 nldap-clients is │ │ │ +0027a5f0: 2072 656d 6f76 6564 270a 2020 616e 7369 removed'. ansi │ │ │ +0027a600: 626c 652e 6275 696c 7469 6e2e 7061 636b ble.builtin.pack │ │ │ +0027a610: 6167 653a 0a20 2020 206e 616d 653a 206f age:. name: o │ │ │ +0027a620: 7065 6e6c 6461 702d 636c 6965 6e74 730a penldap-clients. │ │ │ +0027a630: 2020 2020 7374 6174 653a 2061 6273 656e state: absen │ │ │ +0027a640: 740a 2020 7461 6773 3a0a 2020 2d20 6469 t. tags:. - di │ │ │ +0027a650: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +0027a660: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +0027a670: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +0027a680: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576 tion. - low_sev │ │ │ +0027a690: 6572 6974 790a 2020 2d20 6e6f 5f72 6562 erity. - no_reb │ │ │ +0027a6a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2070 oot_needed. - p │ │ │ +0027a6b0: 6163 6b61 6765 5f6f 7065 6e6c 6461 702d ackage_openldap- │ │ │ +0027a6c0: 636c 6965 6e74 735f 7265 6d6f 7665 640a clients_removed. │ │ │ +0027a6d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64 Remediation Pup │ │ │ +0027a790: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +0027a7a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +0027a870: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +0027a880: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +0027a8e0: 5f6f 7065 6e6c 6461 702d 636c 6965 6e74  _openldap-client
│ │ │ +0027a8f0: 730a 0a63 6c61 7373 2072 656d 6f76 655f  s..class remove_
│ │ │ +0027a900: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +0027a910: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0027a920: 6f70 656e 6c64 6170 2d63 6c69 656e 7473  openldap-clients
│ │ │ +0027a930: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ +0027a940: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ +0027a950: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
R │ │ │ -0027be70: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0027be80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
low
Disru │ │ │ +0027a850: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +0027a860: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +0027a8a0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +0027a8b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ -0027bf20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -0027bfc0: 696e 636c 7564 6520 7265 6d6f 7665 5f6f  include remove_o
│ │ │ -0027bfd0: 7065 6e6c 6461 702d 7365 7276 6572 730a  penldap-servers.
│ │ │ -0027bfe0: 0a63 6c61 7373 2072 656d 6f76 655f 6f70  .class remove_op
│ │ │ -0027bff0: 656e 6c64 6170 2d73 6572 7665 7273 207b  enldap-servers {
│ │ │ -0027c000: 0a20 2070 6163 6b61 6765 207b 2027 6f70  .  package { 'op
│ │ │ -0027c010: 656e 6c64 6170 2d73 6572 7665 7273 273a  enldap-servers':
│ │ │ -0027c020: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -0027c030: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -0027c040: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0027c050: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -0027c100: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0027c110: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -0027c1e0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
│ │ │ -0027bf10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0027bf40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0027bf50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0027bf90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -0027bfa0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity: │ │ │ -0027c1a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0027c1c0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0027c210: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0027c220: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -0027c250: 6e73 7461 6c6c 206f 7065 6e6c 6461 702d  nstall openldap-
│ │ │ -0027c260: 7365 7276 6572 7320 5061 636b 6167 653a  servers Package:
│ │ │ -0027c270: 2045 6e73 7572 6520 6f70 656e 6c64 6170   Ensure openldap
│ │ │ -0027c280: 2d73 6572 7665 7273 2069 7320 7265 6d6f  -servers is remo
│ │ │ -0027c290: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -0027c2a0: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -0027c2b0: 2020 2020 6e61 6d65 3a20 6f70 656e 6c64      name: openld
│ │ │ -0027c2c0: 6170 2d73 6572 7665 7273 0a20 2020 2073  ap-servers.    s
│ │ │ -0027c2d0: 7461 7465 3a20 6162 7365 6e74 0a20 2074  tate: absent.  t
│ │ │ -0027c2e0: 6167 733a 0a20 202d 204e 4953 542d 3830  ags:.  - NIST-80
│ │ │ -0027c2f0: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ -0027c300: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -0027c310: 3728 6129 0a20 202d 204e 4953 542d 3830  7(a).  - NIST-80
│ │ │ -0027c320: 302d 3533 2d43 4d2d 3728 6229 0a20 202d  0-53-CM-7(b).  -
│ │ │ -0027c330: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -0027c340: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0027c350: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0027c360: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -0027c370: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0027c380: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0027c390: 2d20 7061 636b 6167 655f 6f70 656e 6c64  - package_openld
│ │ │ -0027c3a0: 6170 2d73 6572 7665 7273 5f72 656d 6f76  ap-servers_remov
│ │ │ -0027c3b0: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +0027be70: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +0027be80: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +0027bf60: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027bf70: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0027bfc0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +0027bfd0: 6c6c 206f 7065 6e6c 6461 702d 7365 7276  ll openldap-serv
│ │ │ +0027bfe0: 6572 7320 5061 636b 6167 653a 2045 6e73  ers Package: Ens
│ │ │ +0027bff0: 7572 6520 6f70 656e 6c64 6170 2d73 6572  ure openldap-ser
│ │ │ +0027c000: 7665 7273 2069 7320 7265 6d6f 7665 6427  vers is removed'
│ │ │ +0027c010: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +0027c020: 696e 2e70 6163 6b61 6765 3a0a 2020 2020  in.package:.    
│ │ │ +0027c030: 6e61 6d65 3a20 6f70 656e 6c64 6170 2d73  name: openldap-s
│ │ │ +0027c040: 6572 7665 7273 0a20 2020 2073 7461 7465  ervers.    state
│ │ │ +0027c050: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +0027c060: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0027c070: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +0027c080: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +0027c090: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +0027c0a0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ +0027c0b0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0027c0c0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0027c0d0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0027c0e0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +0027c0f0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0027c100: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +0027c110: 636b 6167 655f 6f70 656e 6c64 6170 2d73  ckage_openldap-s
│ │ │ +0027c120: 6572 7665 7273 5f72 656d 6f76 6564 0a3c  ervers_removed.<
│ │ │ +0027c130: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0027c1e0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +0027c1f0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +0027bf40: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0027bf50: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0027bf90: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0027bfa0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0027c2d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0027c2e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0027c330: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +0027c340: 6f70 656e 6c64 6170 2d73 6572 7665 7273  openldap-servers
│ │ │ +0027c350: 0a0a 636c 6173 7320 7265 6d6f 7665 5f6f  ..class remove_o
│ │ │ +0027c360: 7065 6e6c 6461 702d 7365 7276 6572 7320  penldap-servers 
│ │ │ +0027c370: 7b0a 2020 7061 636b 6167 6520 7b20 276f  {.  package { 'o
│ │ │ +0027c380: 7065 6e6c 6461 702d 7365 7276 6572 7327  penldap-servers'
│ │ │ +0027c390: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +0027c3a0: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +0027c3b0: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 0027c3c0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation O │ │ │ -0027cf00: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -0027cf10: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0027cf20: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -0027cf60: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -0027cf70: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ -0027cf80: 6420 3d20 5b22 736c 6170 6422 5d0a 3c2f  d = ["slapd"].
R │ │ │ -0027d040: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -0027d050: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +0027c2b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0027c2c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0027c300: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0027c310: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -0027d0f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ -0027d190: 636c 7564 6520 6469 7361 626c 655f 736c  clude disable_sl
│ │ │ -0027d1a0: 6170 640a 0a63 6c61 7373 2064 6973 6162  apd..class disab
│ │ │ -0027d1b0: 6c65 5f73 6c61 7064 207b 0a20 2073 6572  le_slapd {.  ser
│ │ │ -0027d1c0: 7669 6365 207b 2773 6c61 7064 273a 0a20  vice {'slapd':. 
│ │ │ -0027d1d0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0027d1e0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0027d1f0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0027d200: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0027d210: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0027d2c0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0027d2d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
│ │ │ -0027d0e0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -0027d110: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -0027d120: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -0027d160: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ -0027d170: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ -0027d360: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0027d370: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0027d390: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0027d3b0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0027d3c0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0027d400: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0027d410: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0027d420: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0027d430: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0027d440: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0027d450: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0027d460: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0027d470: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0027d480: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0027d490: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0027d4a0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0027d4b0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0027d4c0: 6572 7669 6365 5f73 6c61 7064 5f64 6973  ervice_slapd_dis
│ │ │ -0027d4d0: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -0027d4e0: 6973 6162 6c65 204c 4441 5020 5365 7276  isable LDAP Serv
│ │ │ -0027d4f0: 6572 2028 736c 6170 6429 202d 2044 6973  er (slapd) - Dis
│ │ │ -0027d500: 6162 6c65 2073 6572 7669 6365 2073 6c61  able service sla
│ │ │ -0027d510: 7064 0a20 2062 6c6f 636b 3a0a 0a20 202d  pd.  block:..  -
│ │ │ -0027d520: 206e 616d 653a 2044 6973 6162 6c65 204c   name: Disable L
│ │ │ -0027d530: 4441 5020 5365 7276 6572 2028 736c 6170  DAP Server (slap
│ │ │ -0027d540: 6429 202d 2043 6f6c 6c65 6374 2073 7973  d) - Collect sys
│ │ │ -0027d550: 7465 6d64 2053 6572 7669 6365 7320 5072  temd Services Pr
│ │ │ -0027d560: 6573 656e 7420 696e 2074 6865 2053 7973  esent in the Sys
│ │ │ -0027d570: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ -0027d580: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ -0027d590: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ -0027d5a0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ -0027d5b0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ -0027d5c0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ -0027d5d0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ -0027d5e0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ -0027d5f0: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ -0027d600: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ -0027d610: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ -0027d620: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ -0027d630: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ -0027d640: 6d65 3a20 4469 7361 626c 6520 4c44 4150  me: Disable LDAP
│ │ │ -0027d650: 2053 6572 7665 7220 2873 6c61 7064 2920   Server (slapd) 
│ │ │ -0027d660: 2d20 456e 7375 7265 2073 6c61 7064 2e73  - Ensure slapd.s
│ │ │ -0027d670: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -0027d680: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0027d690: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -0027d6a0: 2020 2020 6e61 6d65 3a20 736c 6170 642e      name: slapd.
│ │ │ -0027d6b0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0027d6c0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0027d6d0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0027d6e0: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0027d6f0: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0027d700: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0027d710: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0027d720: 6172 6368 2822 736c 6170 642e 7365 7276  arch("slapd.serv
│ │ │ -0027d730: 6963 6522 2c20 6d75 6c74 696c 696e 653d  ice", multiline=
│ │ │ -0027d740: 5472 7565 290a 0a20 202d 206e 616d 653a  True)..  - name:
│ │ │ -0027d750: 2055 6e69 7420 536f 636b 6574 2045 7869   Unit Socket Exi
│ │ │ -0027d760: 7374 7320 2d20 736c 6170 642e 736f 636b  sts - slapd.sock
│ │ │ -0027d770: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ -0027d780: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ -0027d790: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ -0027d7a0: 742d 756e 6974 2d66 696c 6573 2073 6c61  t-unit-files sla
│ │ │ -0027d7b0: 7064 2e73 6f63 6b65 740a 2020 2020 7265  pd.socket.    re
│ │ │ -0027d7c0: 6769 7374 6572 3a20 736f 636b 6574 5f66  gister: socket_f
│ │ │ -0027d7d0: 696c 655f 6578 6973 7473 0a20 2020 2063  ile_exists.    c
│ │ │ -0027d7e0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -0027d7f0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -0027d800: 656e 3a20 736f 636b 6574 5f66 696c 655f  en: socket_file_
│ │ │ -0027d810: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ -0027d820: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ -0027d830: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ -0027d840: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0027d850: 204c 4441 5020 5365 7276 6572 2028 736c   LDAP Server (sl
│ │ │ -0027d860: 6170 6429 202d 2044 6973 6162 6c65 2053  apd) - Disable S
│ │ │ -0027d870: 6f63 6b65 7420 736c 6170 640a 2020 2020  ocket slapd.    
│ │ │ -0027d880: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0027d890: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -0027d8a0: 616d 653a 2073 6c61 7064 2e73 6f63 6b65  ame: slapd.socke
│ │ │ -0027d8b0: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -0027d8c0: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -0027d8d0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -0027d8e0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -0027d8f0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -0027d900: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -0027d910: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -0027d920: 6368 2822 736c 6170 642e 736f 636b 6574  ch("slapd.socket
│ │ │ -0027d930: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -0027d940: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -0027d950: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -0027d960: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -0027d970: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -0027d980: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -0027d990: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -0027d9a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -0027d9b0: 202d 2073 6572 7669 6365 5f73 6c61 7064   - service_slapd
│ │ │ -0027d9c0: 5f64 6973 6162 6c65 640a 2020 2d20 7370  _disabled.  - sp
│ │ │ -0027d9d0: 6563 6961 6c5f 7365 7276 6963 655f 626c  ecial_service_bl
│ │ │ -0027d9e0: 6f63 6b0a 2020 7768 656e 3a20 2722 6c69  ock.  when: '"li
│ │ │ -0027d9f0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0027da00: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0027da10: 6765 7327 0a3c 2f63 6f64 653e 3c2f 7072  ges'.Remediation A
│ │ │ +0027cf00: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +0027cf10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +0027cfa0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0027cfc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0027cfe0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0027d010: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0027d020: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ +0027d050: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +0027d060: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +0027d070: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +0027d080: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +0027d090: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +0027d0a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0027d0b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0027d0c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0027d0d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0027d0e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0027d0f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0027d100: 736c 6170 645f 6469 7361 626c 6564 0a0a  slapd_disabled..
│ │ │ +0027d110: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0027d120: 4c44 4150 2053 6572 7665 7220 2873 6c61  LDAP Server (sla
│ │ │ +0027d130: 7064 2920 2d20 4469 7361 626c 6520 7365  pd) - Disable se
│ │ │ +0027d140: 7276 6963 6520 736c 6170 640a 2020 626c  rvice slapd.  bl
│ │ │ +0027d150: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +0027d160: 4469 7361 626c 6520 4c44 4150 2053 6572  Disable LDAP Ser
│ │ │ +0027d170: 7665 7220 2873 6c61 7064 2920 2d20 436f  ver (slapd) - Co
│ │ │ +0027d180: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +0027d190: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +0027d1a0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +0027d1b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0027d1c0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +0027d1d0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +0027d1e0: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +0027d1f0: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +0027d200: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +0027d210: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +0027d220: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +0027d230: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +0027d240: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +0027d250: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +0027d260: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +0027d270: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +0027d280: 6162 6c65 204c 4441 5020 5365 7276 6572  able LDAP Server
│ │ │ +0027d290: 2028 736c 6170 6429 202d 2045 6e73 7572   (slapd) - Ensur
│ │ │ +0027d2a0: 6520 736c 6170 642e 7365 7276 6963 6520  e slapd.service 
│ │ │ +0027d2b0: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0027d2c0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0027d2d0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0027d2e0: 653a 2073 6c61 7064 2e73 6572 7669 6365  e: slapd.service
│ │ │ +0027d2f0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0027d300: 6f70 7065 640a 2020 2020 2020 656e 6162  opped.      enab
│ │ │ +0027d310: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +0027d320: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +0027d330: 2020 7768 656e 3a20 7365 7276 6963 655f    when: service_
│ │ │ +0027d340: 6578 6973 7473 2e73 7464 6f75 745f 6c69  exists.stdout_li
│ │ │ +0027d350: 6e65 7320 6973 2073 6561 7263 6828 2273  nes is search("s
│ │ │ +0027d360: 6c61 7064 2e73 6572 7669 6365 222c 206d  lapd.service", m
│ │ │ +0027d370: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +0027d380: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +0027d390: 6f63 6b65 7420 4578 6973 7473 202d 2073  ocket Exists - s
│ │ │ +0027d3a0: 6c61 7064 2e73 6f63 6b65 740a 2020 2020  lapd.socket.    
│ │ │ +0027d3b0: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0027d3c0: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +0027d3d0: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +0027d3e0: 6669 6c65 7320 736c 6170 642e 736f 636b  files slapd.sock
│ │ │ +0027d3f0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +0027d400: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0027d410: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +0027d420: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +0027d430: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +0027d440: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +0027d450: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +0027d460: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +0027d470: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +0027d480: 3a20 4469 7361 626c 6520 4c44 4150 2053  : Disable LDAP S
│ │ │ +0027d490: 6572 7665 7220 2873 6c61 7064 2920 2d20  erver (slapd) - 
│ │ │ +0027d4a0: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ +0027d4b0: 6c61 7064 0a20 2020 2061 6e73 6962 6c65  lapd.    ansible
│ │ │ +0027d4c0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0027d4d0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736c  :.      name: sl
│ │ │ +0027d4e0: 6170 642e 736f 636b 6574 0a20 2020 2020  apd.socket.     
│ │ │ +0027d4f0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +0027d500: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +0027d510: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +0027d520: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +0027d530: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +0027d540: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +0027d550: 7320 6973 2073 6561 7263 6828 2273 6c61  s is search("sla
│ │ │ +0027d560: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74  pd.socket", mult
│ │ │ +0027d570: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +0027d580: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +0027d590: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0027d5a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0027d5b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0027d5c0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0027d5d0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0027d5e0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0027d5f0: 6963 655f 736c 6170 645f 6469 7361 626c  ice_slapd_disabl
│ │ │ +0027d600: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ +0027d610: 6572 7669 6365 5f62 6c6f 636b 0a20 2077  ervice_block.  w
│ │ │ +0027d620: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +0027d630: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +0027d640: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
R │ │ │ +0027d700: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +0027d710: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0027d7b0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0027d850: 636c 7564 6520 6469 7361 626c 655f 736c  clude disable_sl
│ │ │ +0027d860: 6170 640a 0a63 6c61 7373 2064 6973 6162  apd..class disab
│ │ │ +0027d870: 6c65 5f73 6c61 7064 207b 0a20 2073 6572  le_slapd {.  ser
│ │ │ +0027d880: 7669 6365 207b 2773 6c61 7064 273a 0a20  vice {'slapd':. 
│ │ │ +0027d890: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ +0027d8a0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ +0027d8b0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ +0027d8c0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +0027d8d0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0027d980: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +0027d990: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +0027d9a0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +0027d9f0: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +0027da00: 5d0a 6d61 736b 6564 203d 205b 2273 6c61  ].masked = ["sla
│ │ │ +0027da10: 7064 225d 0a3c 2f63 6f64 653e 3c2f 7072  pd"].
│ │ │ 0027da40: 3c2f 7461 626c 653e 3c2f 7464 3e3c 2f74
│ │ │ +0027d7a0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0027d7d0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0027d7e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0027d820: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0027d830: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Remediatio │ │ │ -002815a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002815b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -00281630: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -00281640: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -00281660: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -00281670: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -00281690: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002816b0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002816e0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -002816f0: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ -00281700: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ -00281710: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ -00281720: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ -00281730: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -00281740: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -00281800: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -00281810: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002818f0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -00281900: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -00281950: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -00281960: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -00281970: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ -00281980: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ -00281990: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ -002819a0: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ -002819b0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002819c0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002819d0: 7570 7469 6f6e 0a20 202d 206c 6f77 5f73  uption.  - low_s
│ │ │ -002819e0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002819f0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -00281a00: 2070 6163 6b61 6765 5f72 7063 6269 6e64   package_rpcbind
│ │ │ -00281a10: 5f72 656d 6f76 6564 0a0a 2d20 6e61 6d65  _removed..- name
│ │ │ -00281a20: 3a20 2755 6e69 6e73 7461 6c6c 2072 7063  : 'Uninstall rpc
│ │ │ -00281a30: 6269 6e64 2050 6163 6b61 6765 3a20 456e  bind Package: En
│ │ │ -00281a40: 7375 7265 2072 7063 6269 6e64 2069 7320  sure rpcbind is 
│ │ │ -00281a50: 7265 6d6f 7665 6427 0a20 2061 6e73 6962  removed'.  ansib
│ │ │ -00281a60: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -00281a70: 6765 3a0a 2020 2020 6e61 6d65 3a20 7270  ge:.    name: rp
│ │ │ -00281a80: 6362 696e 640a 2020 2020 7374 6174 653a  cbind.    state:
│ │ │ -00281a90: 2061 6273 656e 740a 2020 7768 656e 3a20   absent.  when: 
│ │ │ -00281aa0: 2722 6c69 6e75 782d 6261 7365 2220 696e  '"linux-base" in
│ │ │ -00281ab0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -00281ac0: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ -00281ad0: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -00281ae0: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -00281af0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -00281b00: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -00281b10: 6c6f 775f 7365 7665 7269 7479 0a20 202d  low_severity.  -
│ │ │ -00281b20: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -00281b30: 640a 2020 2d20 7061 636b 6167 655f 7270  d.  - package_rp
│ │ │ -00281b40: 6362 696e 645f 7265 6d6f 7665 640a 3c2f  cbind_removed.
│ │ │ +00281630: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +002816c0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002816d0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:low
Disrup │ │ │ -002818d0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002818e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -00281920: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -00281930: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +00281640: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +00281650: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +00281690: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002816a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: G
│ │ │ +002816f0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +00281700: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +00281710: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +00281720: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +00281730: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ +00281740: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +00281750: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +00281760: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +00281770: 2d20 6c6f 775f 7365 7665 7269 7479 0a20  - low_severity. 
│ │ │ +00281780: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +00281790: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002817a0: 7270 6362 696e 645f 7265 6d6f 7665 640a  rpcbind_removed.
│ │ │ +002817b0: 0a2d 206e 616d 653a 2027 556e 696e 7374  .- name: 'Uninst
│ │ │ +002817c0: 616c 6c20 7270 6362 696e 6420 5061 636b  all rpcbind Pack
│ │ │ +002817d0: 6167 653a 2045 6e73 7572 6520 7270 6362  age: Ensure rpcb
│ │ │ +002817e0: 696e 6420 6973 2072 656d 6f76 6564 270a  ind is removed'.
│ │ │ +002817f0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +00281800: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +00281810: 616d 653a 2072 7063 6269 6e64 0a20 2020  ame: rpcbind.   
│ │ │ +00281820: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +00281830: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +00281840: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +00281850: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +00281860: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ +00281870: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +00281880: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00281890: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002818a0: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ +002818b0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002818c0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +002818d0: 6b61 6765 5f72 7063 6269 6e64 5f72 656d  kage_rpcbind_rem
│ │ │ +002818e0: 6f76 6564 0a3c 2f63 6f64 653e 3c2f 7072  oved.
Remediatio │ │ │ +002819a0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +002819b0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +00281a30: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +00281a40: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +00281a60: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +00281a70: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +00281a90: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +00281ab0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ +00281ae0: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ +00281af0: 656d 6f76 655f 7270 6362 696e 640a 0a63  emove_rpcbind..c
│ │ │ +00281b00: 6c61 7373 2072 656d 6f76 655f 7270 6362  lass remove_rpcb
│ │ │ +00281b10: 696e 6420 7b0a 2020 7061 636b 6167 6520  ind {.  package 
│ │ │ +00281b20: 7b20 2772 7063 6269 6e64 273a 0a20 2020  { 'rpcbind':.   
│ │ │ +00281b30: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ +00281b40: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
Rem │ │ │ -002829a0: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ -002829b0: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ -002829c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00282a00: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ -00282a10: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ -00282a20: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ -00282a30: 7270 6362 696e 6422 5d0a 3c2f 636f 6465 rpcbind"].
Remed │ │ │ -00282af0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -00282b00: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -00282b90: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -00282ba0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -00282bc0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -00282be0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -00282bf0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -00282c30: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ -00282c40: 6520 6469 7361 626c 655f 7270 6362 696e e disable_rpcbin │ │ │ -00282c50: 640a 0a63 6c61 7373 2064 6973 6162 6c65 d..class disable │ │ │ -00282c60: 5f72 7063 6269 6e64 207b 0a20 2073 6572 _rpcbind {. ser │ │ │ -00282c70: 7669 6365 207b 2772 7063 6269 6e64 273a vice {'rpcbind': │ │ │ -00282c80: 0a20 2020 2065 6e61 626c 6520 3d26 6774 . enable => │ │ │ -00282c90: 3b20 6661 6c73 652c 0a20 2020 2065 6e73 ; false,. ens │ │ │ -00282ca0: 7572 6520 3d26 6774 3b20 2773 746f 7070 ure => 'stopp │ │ │ -00282cb0: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64 ed',. }.}.
Reme │ │ │ -00282d70: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -00282d80: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -00282d90: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -00282e30: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -00282e80: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -00282ec0: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ -00282ed0: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ -00282ee0: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ -00282ef0: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ -00282f00: 0a20 2074 6167 733a 0a20 202d 2050 4349  .  tags:.  - PCI
│ │ │ -00282f10: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -00282f20: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -00282f30: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00282f40: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00282f50: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00282f60: 6973 7275 7074 696f 6e0a 2020 2d20 6c6f  isruption.  - lo
│ │ │ -00282f70: 775f 7365 7665 7269 7479 0a20 202d 206e  w_severity.  - n
│ │ │ -00282f80: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -00282f90: 2020 2d20 7365 7276 6963 655f 7270 6362    - service_rpcb
│ │ │ -00282fa0: 696e 645f 6469 7361 626c 6564 0a0a 2d20  ind_disabled..- 
│ │ │ -00282fb0: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ -00282fc0: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ -00282fd0: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ -00282fe0: 7270 6362 696e 640a 2020 626c 6f63 6b3a  rpcbind.  block:
│ │ │ -00282ff0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -00283000: 626c 6520 7270 6362 696e 6420 5365 7276  ble rpcbind Serv
│ │ │ -00283010: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ -00283020: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ -00283030: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ -00283040: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ -00283050: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00283060: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00283070: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ -00283080: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ -00283090: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ -002830a0: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ -002830b0: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ -002830c0: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ -002830d0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002830e0: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002830f0: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -00283100: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -00283110: 616d 653a 2044 6973 6162 6c65 2072 7063  ame: Disable rpc
│ │ │ -00283120: 6269 6e64 2053 6572 7669 6365 202d 2045  bind Service - E
│ │ │ -00283130: 6e73 7572 6520 7270 6362 696e 642e 7365  nsure rpcbind.se
│ │ │ -00283140: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -00283150: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -00283160: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -00283170: 2020 206e 616d 653a 2072 7063 6269 6e64     name: rpcbind
│ │ │ -00283180: 2e73 6572 7669 6365 0a20 2020 2020 2073  .service.      s
│ │ │ -00283190: 7461 7465 3a20 7374 6f70 7065 640a 2020  tate: stopped.  
│ │ │ -002831a0: 2020 2020 656e 6162 6c65 643a 2066 616c      enabled: fal
│ │ │ -002831b0: 7365 0a20 2020 2020 206d 6173 6b65 643a  se.      masked:
│ │ │ -002831c0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002831d0: 7365 7276 6963 655f 6578 6973 7473 2e73  service_exists.s
│ │ │ -002831e0: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ -002831f0: 6561 7263 6828 2272 7063 6269 6e64 2e73  earch("rpcbind.s
│ │ │ -00283200: 6572 7669 6365 222c 206d 756c 7469 6c69  ervice", multili
│ │ │ -00283210: 6e65 3d54 7275 6529 0a0a 2020 2d20 6e61  ne=True)..  - na
│ │ │ -00283220: 6d65 3a20 556e 6974 2053 6f63 6b65 7420  me: Unit Socket 
│ │ │ -00283230: 4578 6973 7473 202d 2072 7063 6269 6e64  Exists - rpcbind
│ │ │ -00283240: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -00283250: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -00283260: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -00283270: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -00283280: 7320 7270 6362 696e 642e 736f 636b 6574  s rpcbind.socket
│ │ │ -00283290: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002832a0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -002832b0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002832c0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002832d0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -002832e0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -002832f0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -00283300: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -00283310: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00283320: 4469 7361 626c 6520 7270 6362 696e 6420  Disable rpcbind 
│ │ │ -00283330: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -00283340: 6520 536f 636b 6574 2072 7063 6269 6e64  e Socket rpcbind
│ │ │ -00283350: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -00283360: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -00283370: 2020 2020 6e61 6d65 3a20 7270 6362 696e      name: rpcbin
│ │ │ -00283380: 642e 736f 636b 6574 0a20 2020 2020 2065  d.socket.      e
│ │ │ -00283390: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002833a0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002833b0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002833c0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002833d0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002833e0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002833f0: 6973 2073 6561 7263 6828 2272 7063 6269  is search("rpcbi
│ │ │ -00283400: 6e64 2e73 6f63 6b65 7422 2c20 6d75 6c74  nd.socket", mult
│ │ │ -00283410: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ -00283420: 6773 3a0a 2020 2d20 5043 492d 4453 5376  gs:.  - PCI-DSSv
│ │ │ -00283430: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00283440: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00283450: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00283460: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00283470: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00283480: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -00283490: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002834a0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -002834b0: 6572 7669 6365 5f72 7063 6269 6e64 5f64  ervice_rpcbind_d
│ │ │ -002834c0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002834d0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002834e0: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ -002834f0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -00283500: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -00283510: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002829a0: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ +002829b0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002829c0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
Co │ │ │ -00282e10: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -00282e40: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -00282e60: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -00282e70: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -00282e90: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -00282ea0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
< │ │ │ +00282a50: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00282a60: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00282ab0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +00282af0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00282b00: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00282b10: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00282b20: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00282b30: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +00282b40: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ +00282b50: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ +00282b60: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +00282b70: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +00282b80: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +00282b90: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +00282ba0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +00282bb0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +00282bc0: 0a20 202d 2073 6572 7669 6365 5f72 7063  .  - service_rpc
│ │ │ +00282bd0: 6269 6e64 5f64 6973 6162 6c65 640a 0a2d  bind_disabled..-
│ │ │ +00282be0: 206e 616d 653a 2044 6973 6162 6c65 2072   name: Disable r
│ │ │ +00282bf0: 7063 6269 6e64 2053 6572 7669 6365 202d  pcbind Service -
│ │ │ +00282c00: 2044 6973 6162 6c65 2073 6572 7669 6365   Disable service
│ │ │ +00282c10: 2072 7063 6269 6e64 0a20 2062 6c6f 636b   rpcbind.  block
│ │ │ +00282c20: 3a0a 0a20 202d 206e 616d 653a 2044 6973  :..  - name: Dis
│ │ │ +00282c30: 6162 6c65 2072 7063 6269 6e64 2053 6572  able rpcbind Ser
│ │ │ +00282c40: 7669 6365 202d 2043 6f6c 6c65 6374 2073  vice - Collect s
│ │ │ +00282c50: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ +00282c60: 5072 6573 656e 7420 696e 2074 6865 2053  Present in the S
│ │ │ +00282c70: 7973 7465 6d0a 2020 2020 616e 7369 626c  ystem.    ansibl
│ │ │ +00282c80: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +00282c90: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +00282ca0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +00282cb0: 2d2d 7479 7065 2073 6572 7669 6365 0a20  --type service. 
│ │ │ +00282cc0: 2020 2072 6567 6973 7465 723a 2073 6572     register: ser
│ │ │ +00282cd0: 7669 6365 5f65 7869 7374 730a 2020 2020  vice_exists.    
│ │ │ +00282ce0: 6368 616e 6765 645f 7768 656e 3a20 6661  changed_when: fa
│ │ │ +00282cf0: 6c73 650a 2020 2020 6661 696c 6564 5f77  lse.    failed_w
│ │ │ +00282d00: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00282d10: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +00282d20: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +00282d30: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +00282d40: 6e61 6d65 3a20 4469 7361 626c 6520 7270  name: Disable rp
│ │ │ +00282d50: 6362 696e 6420 5365 7276 6963 6520 2d20  cbind Service - 
│ │ │ +00282d60: 456e 7375 7265 2072 7063 6269 6e64 2e73  Ensure rpcbind.s
│ │ │ +00282d70: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ +00282d80: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00282d90: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00282da0: 2020 2020 6e61 6d65 3a20 7270 6362 696e      name: rpcbin
│ │ │ +00282db0: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ +00282dc0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +00282dd0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +00282de0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +00282df0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +00282e00: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +00282e10: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +00282e20: 7365 6172 6368 2822 7270 6362 696e 642e  search("rpcbind.
│ │ │ +00282e30: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ +00282e40: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ +00282e50: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ +00282e60: 2045 7869 7374 7320 2d20 7270 6362 696e   Exists - rpcbin
│ │ │ +00282e70: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ +00282e80: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +00282e90: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +00282ea0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +00282eb0: 6573 2072 7063 6269 6e64 2e73 6f63 6b65  es rpcbind.socke
│ │ │ +00282ec0: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ +00282ed0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ +00282ee0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00282ef0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00282f00: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ +00282f10: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ +00282f20: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +00282f30: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +00282f40: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +00282f50: 2044 6973 6162 6c65 2072 7063 6269 6e64   Disable rpcbind
│ │ │ +00282f60: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00282f70: 6c65 2053 6f63 6b65 7420 7270 6362 696e  le Socket rpcbin
│ │ │ +00282f80: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +00282f90: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +00282fa0: 2020 2020 206e 616d 653a 2072 7063 6269       name: rpcbi
│ │ │ +00282fb0: 6e64 2e73 6f63 6b65 740a 2020 2020 2020  nd.socket.      
│ │ │ +00282fc0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +00282fd0: 2020 2020 2073 7461 7465 3a20 7374 6f70       state: stop
│ │ │ +00282fe0: 7065 640a 2020 2020 2020 6d61 736b 6564  ped.      masked
│ │ │ +00282ff0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +00283000: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00283010: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00283020: 2069 7320 7365 6172 6368 2822 7270 6362   is search("rpcb
│ │ │ +00283030: 696e 642e 736f 636b 6574 222c 206d 756c  ind.socket", mul
│ │ │ +00283040: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ +00283050: 6167 733a 0a20 202d 2050 4349 2d44 5353  ags:.  - PCI-DSS
│ │ │ +00283060: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ +00283070: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ +00283080: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +00283090: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002830a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002830b0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +002830c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +002830d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002830e0: 7365 7276 6963 655f 7270 6362 696e 645f  service_rpcbind_
│ │ │ +002830f0: 6469 7361 626c 6564 0a20 202d 2073 7065  disabled.  - spe
│ │ │ +00283100: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ +00283110: 636b 0a20 2077 6865 6e3a 2027 226c 696e  ck.  when: '"lin
│ │ │ +00283120: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +00283130: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +00283140: 6573 270a 3c2f 636f 6465 3e3c 2f70 7265  es'.
Remediation │ │ │ +00283200: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +00283210: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +002832d0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002832e0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
C │ │ │ +00282a40: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +00282a70: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +00282a80: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00282ac0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +00282ad0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity │ │ │ +002832a0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +002832c0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +002832f0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +00283310: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ +00283350: 626c 655f 7270 6362 696e 640a 0a63 6c61  ble_rpcbind..cla
│ │ │ +00283360: 7373 2064 6973 6162 6c65 5f72 7063 6269  ss disable_rpcbi
│ │ │ +00283370: 6e64 207b 0a20 2073 6572 7669 6365 207b  nd {.  service {
│ │ │ +00283380: 2772 7063 6269 6e64 273a 0a20 2020 2065  'rpcbind':.    e
│ │ │ +00283390: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ +002833a0: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ +002833b0: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ +002833c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ +00283480: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +00283490: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +002834a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +002834f0: 6f6e 732e 7365 7276 6963 6573 5d0a 6d61  ons.services].ma
│ │ │ +00283500: 736b 6564 203d 205b 2272 7063 6269 6e64  sked = ["rpcbind
│ │ │ +00283510: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 00283520: 3c2f 6469 763e 3c2f 6469 763e 3c2f 7464
│ │ │ 00283550: 3c74 7220 6461 7461 2d74 742d 6964 3d22 Remedia │ │ │ -00284b20: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ -00284b30: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ -00284b40: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -00284b80: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ -00284b90: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ -00284ba0: 0a6d 6173 6b65 6420 3d20 5b22 6e66 732d  .masked = ["nfs-
│ │ │ -00284bb0: 7365 7276 6572 225d 0a3c 2f63 6f64 653e  server"].
│ │ │ -00284bc0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -00284c70: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -00284c80: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -00284c90: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00284d30: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00284d50: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00284d80: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00284d10: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00284d20: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00284d40: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00284d60: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00284d70: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -00284dc0: 2064 6973 6162 6c65 5f6e 6673 2d73 6572 disable_nfs-ser │ │ │ -00284dd0: 7665 720a 0a63 6c61 7373 2064 6973 6162 ver..class disab │ │ │ -00284de0: 6c65 5f6e 6673 2d73 6572 7665 7220 7b0a le_nfs-server {. │ │ │ -00284df0: 2020 7365 7276 6963 6520 7b27 6e66 732d service {'nfs- │ │ │ -00284e00: 7365 7276 6572 273a 0a20 2020 2065 6e61 server':. ena │ │ │ -00284e10: 626c 6520 3d26 6774 3b20 6661 6c73 652c ble => false, │ │ │ -00284e20: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ -00284e30: 3b20 2773 746f 7070 6564 272c 0a20 207d ; 'stopped',. } │ │ │ -00284e40: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}. │ │ │ -00284e50: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22

Remediation │ │ │ -00284f00: 416e 7369 626c 6520 736e 6970 7065 7420 Ansible snippet │ │ │ -00284f10: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -00284fa0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -00284fc0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -00284fd0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -00284fe0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -00284ff0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -00285010: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ -00285040: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -00285050: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -00285060: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -00285070: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -00285080: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -00285090: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002850a0: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002850b0: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002850c0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002850d0: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002850e0: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002850f0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00285100: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00285110: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -00285120: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -00285130: 7669 6365 5f6e 6673 5f64 6973 6162 6c65  vice_nfs_disable
│ │ │ -00285140: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365  d.  - unknown_se
│ │ │ -00285150: 7665 7269 7479 0a0a 2d20 6e61 6d65 3a20  verity..- name: 
│ │ │ -00285160: 4469 7361 626c 6520 4e65 7477 6f72 6b20  Disable Network 
│ │ │ -00285170: 4669 6c65 2053 7973 7465 6d20 286e 6673  File System (nfs
│ │ │ -00285180: 2920 2d20 4469 7361 626c 6520 7365 7276  ) - Disable serv
│ │ │ -00285190: 6963 6520 6e66 732d 7365 7276 6572 0a20  ice nfs-server. 
│ │ │ -002851a0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -002851b0: 653a 2044 6973 6162 6c65 204e 6574 776f  e: Disable Netwo
│ │ │ -002851c0: 726b 2046 696c 6520 5379 7374 656d 2028  rk File System (
│ │ │ -002851d0: 6e66 7329 202d 2043 6f6c 6c65 6374 2073  nfs) - Collect s
│ │ │ -002851e0: 7973 7465 6d64 2053 6572 7669 6365 7320  ystemd Services 
│ │ │ -002851f0: 5072 6573 656e 7420 696e 0a20 2020 2020  Present in.     
│ │ │ -00285200: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -00285210: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00285220: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -00285230: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -00285240: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -00285250: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -00285260: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -00285270: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -00285280: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -00285290: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -002852a0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -002852b0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -002852c0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002852d0: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002852e0: 626c 6520 4e65 7477 6f72 6b20 4669 6c65  ble Network File
│ │ │ -002852f0: 2053 7973 7465 6d20 286e 6673 2920 2d20   System (nfs) - 
│ │ │ -00285300: 456e 7375 7265 206e 6673 2d73 6572 7665  Ensure nfs-serve
│ │ │ -00285310: 722e 7365 7276 6963 6520 6973 204d 6173  r.service is Mas
│ │ │ -00285320: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ -00285330: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -00285340: 0a20 2020 2020 206e 616d 653a 206e 6673  .      name: nfs
│ │ │ -00285350: 2d73 6572 7665 722e 7365 7276 6963 650a  -server.service.
│ │ │ -00285360: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -00285370: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ -00285380: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ -00285390: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002853a0: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ -002853b0: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ -002853c0: 6573 2069 7320 7365 6172 6368 2822 6e66  es is search("nf
│ │ │ -002853d0: 732d 7365 7276 6572 2e73 6572 7669 6365  s-server.service
│ │ │ -002853e0: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002853f0: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ -00285400: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ -00285410: 202d 206e 6673 2d73 6572 7665 722e 736f   - nfs-server.so
│ │ │ -00285420: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -00285430: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -00285440: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -00285450: 6973 742d 756e 6974 2d66 696c 6573 206e  ist-unit-files n
│ │ │ -00285460: 6673 2d73 6572 7665 722e 736f 636b 6574  fs-server.socket
│ │ │ -00285470: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -00285480: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ -00285490: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -002854a0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -002854b0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ -002854c0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ -002854d0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002854e0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002854f0: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -00285500: 4469 7361 626c 6520 4e65 7477 6f72 6b20  Disable Network 
│ │ │ -00285510: 4669 6c65 2053 7973 7465 6d20 286e 6673  File System (nfs
│ │ │ -00285520: 2920 2d20 4469 7361 626c 6520 536f 636b  ) - Disable Sock
│ │ │ -00285530: 6574 206e 6673 2d73 6572 7665 720a 2020  et nfs-server.  
│ │ │ -00285540: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -00285550: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ -00285560: 206e 616d 653a 206e 6673 2d73 6572 7665   name: nfs-serve
│ │ │ -00285570: 722e 736f 636b 6574 0a20 2020 2020 2065  r.socket.      e
│ │ │ -00285580: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -00285590: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002855a0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002855b0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002855c0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002855d0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002855e0: 6973 2073 6561 7263 6828 226e 6673 2d73  is search("nfs-s
│ │ │ -002855f0: 6572 7665 722e 736f 636b 6574 222c 206d  erver.socket", m
│ │ │ -00285600: 756c 7469 6c69 6e65 3d54 7275 6529 0a20  ultiline=True). 
│ │ │ -00285610: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ -00285620: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ -00285630: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -00285640: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ -00285650: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ -00285660: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -00285670: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ -00285680: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ -00285690: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ -002856a0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002856b0: 202d 2073 6572 7669 6365 5f6e 6673 5f64   - service_nfs_d
│ │ │ -002856c0: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ -002856d0: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ -002856e0: 6b0a 2020 2d20 756e 6b6e 6f77 6e5f 7365  k.  - unknown_se
│ │ │ -002856f0: 7665 7269 7479 0a20 2077 6865 6e3a 2027  verity.  when: '
│ │ │ -00285700: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -00285710: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -00285720: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +00284b20: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ +00284b30: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ +00284b40: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +00284be0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +00284c00: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +00284c30: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +00284bc0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +00284bd0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +00284bf0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +00284c10: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +00284c20: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ +00284c60: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ +00284c70: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ +00284c80: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ +00284c90: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ +00284ca0: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ +00284cb0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +00284cc0: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +00284cd0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +00284ce0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +00284cf0: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +00284d00: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +00284d10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +00284d20: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +00284d30: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f sruption. - no_ │ │ │ +00284d40: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +00284d50: 2d20 7365 7276 6963 655f 6e66 735f 6469 - service_nfs_di │ │ │ +00284d60: 7361 626c 6564 0a20 202d 2075 6e6b 6e6f sabled. - unkno │ │ │ +00284d70: 776e 5f73 6576 6572 6974 790a 0a2d 206e wn_severity..- n │ │ │ +00284d80: 616d 653a 2044 6973 6162 6c65 204e 6574 ame: Disable Net │ │ │ +00284d90: 776f 726b 2046 696c 6520 5379 7374 656d work File System │ │ │ +00284da0: 2028 6e66 7329 202d 2044 6973 6162 6c65 (nfs) - Disable │ │ │ +00284db0: 2073 6572 7669 6365 206e 6673 2d73 6572 service nfs-ser │ │ │ +00284dc0: 7665 720a 2020 626c 6f63 6b3a 0a0a 2020 ver. block:.. │ │ │ +00284dd0: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ +00284de0: 4e65 7477 6f72 6b20 4669 6c65 2053 7973 Network File Sys │ │ │ +00284df0: 7465 6d20 286e 6673 2920 2d20 436f 6c6c tem (nfs) - Coll │ │ │ +00284e00: 6563 7420 7379 7374 656d 6420 5365 7276 ect systemd Serv │ │ │ +00284e10: 6963 6573 2050 7265 7365 6e74 2069 6e0a ices Present in. │ │ │ +00284e20: 2020 2020 2020 7468 6520 5379 7374 656d the System │ │ │ +00284e30: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ +00284e40: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379 ltin.command: sy │ │ │ +00284e50: 7374 656d 6374 6c20 2d71 206c 6973 742d stemctl -q list- │ │ │ +00284e60: 756e 6974 2d66 696c 6573 202d 2d74 7970 unit-files --typ │ │ │ +00284e70: 6520 7365 7276 6963 650a 2020 2020 7265 e service. re │ │ │ +00284e80: 6769 7374 6572 3a20 7365 7276 6963 655f gister: service_ │ │ │ +00284e90: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ +00284ea0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ +00284eb0: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ +00284ec0: 7365 7276 6963 655f 6578 6973 7473 2e72 service_exists.r │ │ │ +00284ed0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ +00284ee0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ +00284ef0: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ +00284f00: 2044 6973 6162 6c65 204e 6574 776f 726b Disable Network │ │ │ +00284f10: 2046 696c 6520 5379 7374 656d 2028 6e66 File System (nf │ │ │ +00284f20: 7329 202d 2045 6e73 7572 6520 6e66 732d s) - Ensure nfs- │ │ │ +00284f30: 7365 7276 6572 2e73 6572 7669 6365 2069 server.service i │ │ │ +00284f40: 7320 4d61 736b 6564 0a20 2020 2061 6e73 s Masked. ans │ │ │ +00284f50: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ +00284f60: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ +00284f70: 3a20 6e66 732d 7365 7276 6572 2e73 6572 : nfs-server.ser │ │ │ +00284f80: 7669 6365 0a20 2020 2020 2073 7461 7465 vice. state │ │ │ +00284f90: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ +00284fa0: 656e 6162 6c65 643a 2066 616c 7365 0a20 enabled: false. │ │ │ +00284fb0: 2020 2020 206d 6173 6b65 643a 2074 7275 masked: tru │ │ │ +00284fc0: 650a 2020 2020 7768 656e 3a20 7365 7276 e. when: serv │ │ │ +00284fd0: 6963 655f 6578 6973 7473 2e73 7464 6f75 ice_exists.stdou │ │ │ +00284fe0: 745f 6c69 6e65 7320 6973 2073 6561 7263 t_lines is searc │ │ │ +00284ff0: 6828 226e 6673 2d73 6572 7665 722e 7365 h("nfs-server.se │ │ │ +00285000: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ +00285010: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ +00285020: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ +00285030: 7869 7374 7320 2d20 6e66 732d 7365 7276 xists - nfs-serv │ │ │ +00285040: 6572 2e73 6f63 6b65 740a 2020 2020 616e er.socket. an │ │ │ +00285050: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ +00285060: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ +00285070: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ +00285080: 6c65 7320 6e66 732d 7365 7276 6572 2e73 les nfs-server.s │ │ │ +00285090: 6f63 6b65 740a 2020 2020 7265 6769 7374 ocket. regist │ │ │ +002850a0: 6572 3a20 736f 636b 6574 5f66 696c 655f er: socket_file_ │ │ │ +002850b0: 6578 6973 7473 0a20 2020 2063 6861 6e67 exists. chang │ │ │ +002850c0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20 ed_when: false. │ │ │ +002850d0: 2020 2066 6169 6c65 645f 7768 656e 3a20 failed_when: │ │ │ +002850e0: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +002850f0: 7473 2e72 6320 6e6f 7420 696e 205b 302c ts.rc not in [0, │ │ │ +00285100: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f 1]. check_mo │ │ │ +00285110: 6465 3a20 6661 6c73 650a 0a20 202d 206e de: false.. - n │ │ │ +00285120: 616d 653a 2044 6973 6162 6c65 204e 6574 ame: Disable Net │ │ │ +00285130: 776f 726b 2046 696c 6520 5379 7374 656d work File System │ │ │ +00285140: 2028 6e66 7329 202d 2044 6973 6162 6c65 (nfs) - Disable │ │ │ +00285150: 2053 6f63 6b65 7420 6e66 732d 7365 7276 Socket nfs-serv │ │ │ +00285160: 6572 0a20 2020 2061 6e73 6962 6c65 2e62 er. ansible.b │ │ │ +00285170: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a uiltin.systemd:. │ │ │ +00285180: 2020 2020 2020 6e61 6d65 3a20 6e66 732d name: nfs- │ │ │ +00285190: 7365 7276 6572 2e73 6f63 6b65 740a 2020 server.socket. │ │ │ +002851a0: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ +002851b0: 7365 0a20 2020 2020 2073 7461 7465 3a20 se. state: │ │ │ +002851c0: 7374 6f70 7065 640a 2020 2020 2020 6d61 stopped. ma │ │ │ +002851d0: 736b 6564 3a20 7472 7565 0a20 2020 2077 sked: true. w │ │ │ +002851e0: 6865 6e3a 2073 6f63 6b65 745f 6669 6c65 hen: socket_file │ │ │ +002851f0: 5f65 7869 7374 732e 7374 646f 7574 5f6c _exists.stdout_l │ │ │ +00285200: 696e 6573 2069 7320 7365 6172 6368 2822 ines is search(" │ │ │ +00285210: 6e66 732d 7365 7276 6572 2e73 6f63 6b65 nfs-server.socke │ │ │ +00285220: 7422 2c20 6d75 6c74 696c 696e 653d 5472 t", multiline=Tr │ │ │ +00285230: 7565 290a 2020 7461 6773 3a0a 2020 2d20 ue). tags:. - │ │ │ +00285240: 4e49 5354 2d38 3030 2d35 332d 434d 2d36 NIST-800-53-CM-6 │ │ │ +00285250: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ +00285260: 2d35 332d 434d 2d37 2861 290a 2020 2d20 -53-CM-7(a). - │ │ │ +00285270: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ +00285280: 2862 290a 2020 2d20 6469 7361 626c 655f (b). - disable_ │ │ │ +00285290: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ +002852a0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ +002852b0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ +002852c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ +002852d0: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ +002852e0: 6e66 735f 6469 7361 626c 6564 0a20 202d nfs_disabled. - │ │ │ +002852f0: 2073 7065 6369 616c 5f73 6572 7669 6365 special_service │ │ │ +00285300: 5f62 6c6f 636b 0a20 202d 2075 6e6b 6e6f _block. - unkno │ │ │ +00285310: 776e 5f73 6576 6572 6974 790a 2020 7768 wn_severity. wh │ │ │ +00285320: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ +00285330: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ +00285340: 7473 2e70 6163 6b61 6765 7327 0a3c 2f63 ts.packages'.
│ │ │ +00285360: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +00285400: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +00285410: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +00285420: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +002854b0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002854c0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +00285510: 3c74 723e 3c74 683e 5374 7261 7465 6779
inc
│ │ │ +00285550: 6c75 6465 2064 6973 6162 6c65 5f6e 6673  lude disable_nfs
│ │ │ +00285560: 2d73 6572 7665 720a 0a63 6c61 7373 2064  -server..class d
│ │ │ +00285570: 6973 6162 6c65 5f6e 6673 2d73 6572 7665  isable_nfs-serve
│ │ │ +00285580: 7220 7b0a 2020 7365 7276 6963 6520 7b27  r {.  service {'
│ │ │ +00285590: 6e66 732d 7365 7276 6572 273a 0a20 2020  nfs-server':.   
│ │ │ +002855a0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +002855b0: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +002855c0: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +002855d0: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +00285690: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +002856a0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +002856b0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +002856f0: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +00285700: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +00285710: 6d61 736b 6564 203d 205b 226e 6673 2d73  masked = ["nfs-s
│ │ │ +00285720: 6572 7665 7222 5d0a 3c2f 636f 6465 3e3c  erver"].<
│ │ │  00285730: 2f70 7265 3e3c 2f64 6976 3e3c 2f64 6976  /pre>
C │ │ │ +002854a0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002854d0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002854e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +00285520: 3a3c 2f74 683e 3c74 643e 656e 6162 6c65 :enable │ │ │ +00285530: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ 00285760: 3c2f 7472 3e3c 7472 2064 6174 612d 7474 Remediation │ │ │ -00285f80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -00285f90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00286020: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00286040: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00286060: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -00286090: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002860a0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
.include rem
│ │ │ -002860d0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ -002860e0: 6572 7665 720a 0a63 6c61 7373 2072 656d  erver..class rem
│ │ │ -002860f0: 6f76 655f 6e66 732d 6b65 726e 656c 2d73  ove_nfs-kernel-s
│ │ │ -00286100: 6572 7665 7220 7b0a 2020 7061 636b 6167  erver {.  packag
│ │ │ -00286110: 6520 7b20 276e 6673 2d6b 6572 6e65 6c2d  e { 'nfs-kernel-
│ │ │ -00286120: 7365 7276 6572 273a 0a20 2020 2065 6e73  server':.    ens
│ │ │ -00286130: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -00286140: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -00286200: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -00286210: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002862a0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002862d0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002862f0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -00286300: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -00286320: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -00286330: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -00286350: 6d65 3a20 2755 6e69 6e73 7461 6c6c 206e  me: 'Uninstall n
│ │ │ -00286360: 6673 2d6b 6572 6e65 6c2d 7365 7276 6572  fs-kernel-server
│ │ │ -00286370: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ -00286380: 206e 6673 2d6b 6572 6e65 6c2d 7365 7276   nfs-kernel-serv
│ │ │ -00286390: 6572 2069 7320 7265 6d6f 7665 6427 0a20  er is removed'. 
│ │ │ -002863a0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002863b0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ -002863c0: 6d65 3a20 6e66 732d 6b65 726e 656c 2d73  me: nfs-kernel-s
│ │ │ -002863d0: 6572 7665 720a 2020 2020 7374 6174 653a  erver.    state:
│ │ │ -002863e0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002863f0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -00286400: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -00286410: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -00286420: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ -00286430: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ -00286440: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -00286450: 0a20 202d 2070 6163 6b61 6765 5f6e 6673  .  - package_nfs
│ │ │ -00286460: 2d6b 6572 6e65 6c2d 7365 7276 6572 5f72  -kernel-server_r
│ │ │ -00286470: 656d 6f76 6564 0a3c 2f63 6f64 653e 3c2f  emoved.
Complexity │ │ │ +00286020: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00286040: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00286050: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00286060: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00286070: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00286090: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +002860c0: 636f 6465 3e2d 206e 616d 653a 2027 556e  code>- name: 'Un
│ │ │ +002860d0: 696e 7374 616c 6c20 6e66 732d 6b65 726e  install nfs-kern
│ │ │ +002860e0: 656c 2d73 6572 7665 7220 5061 636b 6167  el-server Packag
│ │ │ +002860f0: 653a 2045 6e73 7572 6520 6e66 732d 6b65  e: Ensure nfs-ke
│ │ │ +00286100: 726e 656c 2d73 6572 7665 7220 6973 2072  rnel-server is r
│ │ │ +00286110: 656d 6f76 6564 270a 2020 616e 7369 626c  emoved'.  ansibl
│ │ │ +00286120: 652e 6275 696c 7469 6e2e 7061 636b 6167  e.builtin.packag
│ │ │ +00286130: 653a 0a20 2020 206e 616d 653a 206e 6673  e:.    name: nfs
│ │ │ +00286140: 2d6b 6572 6e65 6c2d 7365 7276 6572 0a20  -kernel-server. 
│ │ │ +00286150: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +00286160: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +00286170: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +00286180: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +00286190: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002861a0: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002861b0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002861c0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +002861d0: 636b 6167 655f 6e66 732d 6b65 726e 656c  ckage_nfs-kernel
│ │ │ +002861e0: 2d73 6572 7665 725f 7265 6d6f 7665 640a  -server_removed.
│ │ │ +002861f0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002862b0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002862c0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +00286390: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002863a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00286400: 5f6e 6673 2d6b 6572 6e65 6c2d 7365 7276  _nfs-kernel-serv
│ │ │ +00286410: 6572 0a0a 636c 6173 7320 7265 6d6f 7665  er..class remove
│ │ │ +00286420: 5f6e 6673 2d6b 6572 6e65 6c2d 7365 7276  _nfs-kernel-serv
│ │ │ +00286430: 6572 207b 0a20 2070 6163 6b61 6765 207b  er {.  package {
│ │ │ +00286440: 2027 6e66 732d 6b65 726e 656c 2d73 6572   'nfs-kernel-ser
│ │ │ +00286450: 7665 7227 3a0a 2020 2020 656e 7375 7265  ver':.    ensure
│ │ │ +00286460: 203d 2667 743b 2027 7075 7267 6564 272c   => 'purged',
│ │ │ +00286470: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Re
│ │ │ -002883d0: 6d65 6469 6174 696f 6e20 4f53 4275 696c  mediation OSBuil
│ │ │ -002883e0: 6420 426c 7565 7072 696e 7420 736e 6970  d Blueprint snip
│ │ │ -002883f0: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c  pet ...
< │ │ │ -00288400: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00288410: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00288420: 7365 2220 6964 3d22 6964 3130 3435 223e se" id="id1045"> │ │ │ -00288430: 3c70 7265 3e3c 636f 6465 3e0a 5b5b 7061
.[[pa
│ │ │ -00288440: 636b 6167 6573 5d5d 0a6e 616d 6520 3d20  ckages]].name = 
│ │ │ -00288450: 2263 6872 6f6e 7922 0a76 6572 7369 6f6e  "chrony".version
│ │ │ -00288460: 203d 2022 2a22 0a3c 2f63 6f64 653e 3c2f   = "*".Remediat
│ │ │ -00288520: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ -00288530: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ -00288570: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00288580: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00288590: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002885a0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002885b0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -00288640: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -00288650: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +00286370: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00286380: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002863c0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002863d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complex │ │ │ -002885c0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002885d0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -00288610: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -00288620: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include i
│ │ │ -00288670: 6e73 7461 6c6c 5f63 6872 6f6e 790a 0a63  nstall_chrony..c
│ │ │ -00288680: 6c61 7373 2069 6e73 7461 6c6c 5f63 6872  lass install_chr
│ │ │ -00288690: 6f6e 7920 7b0a 2020 7061 636b 6167 6520  ony {.  package 
│ │ │ -002886a0: 7b20 2763 6872 6f6e 7927 3a0a 2020 2020  { 'chrony':.    
│ │ │ -002886b0: 656e 7375 7265 203d 2667 743b 2027 696e  ensure => 'in
│ │ │ -002886c0: 7374 616c 6c65 6427 2c0a 2020 7d0a 7d0a  stalled',.  }.}.
│ │ │ -002886d0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -00288790: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002887a0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -00288820: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -00288840: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -00288890: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
- name: Gather 
│ │ │ -002888e0: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -002888f0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00288900: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00288910: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00288920: 2050 4349 2d44 5353 2d52 6571 2d31 302e   PCI-DSS-Req-10.
│ │ │ -00288930: 340a 2020 2d20 5043 492d 4453 5376 342d  4.  - PCI-DSSv4-
│ │ │ -00288940: 3130 2e36 0a20 202d 2050 4349 2d44 5353  10.6.  - PCI-DSS
│ │ │ -00288950: 7634 2d31 302e 362e 310a 2020 2d20 656e  v4-10.6.1.  - en
│ │ │ -00288960: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -00288970: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -00288980: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -00288990: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -002889a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -002889b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002889c0: 2070 6163 6b61 6765 5f63 6872 6f6e 795f   package_chrony_
│ │ │ -002889d0: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ -002889e0: 653a 2045 6e73 7572 6520 6368 726f 6e79  e: Ensure chrony
│ │ │ -002889f0: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -00288a00: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -00288a10: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -00288a20: 653a 2063 6872 6f6e 790a 2020 2020 7374  e: chrony.    st
│ │ │ -00288a30: 6174 653a 2070 7265 7365 6e74 0a20 2077  ate: present.  w
│ │ │ -00288a40: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ -00288a50: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ -00288a60: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ -00288a70: 7461 6773 3a0a 2020 2d20 5043 492d 4453  tags:.  - PCI-DS
│ │ │ -00288a80: 532d 5265 712d 3130 2e34 0a20 202d 2050  S-Req-10.4.  - P
│ │ │ -00288a90: 4349 2d44 5353 7634 2d31 302e 360a 2020  CI-DSSv4-10.6.  
│ │ │ -00288aa0: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ -00288ab0: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ -00288ac0: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -00288ad0: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -00288ae0: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -00288af0: 206d 6564 6975 6d5f 7365 7665 7269 7479   medium_severity
│ │ │ -00288b00: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -00288b10: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -00288b20: 655f 6368 726f 6e79 5f69 6e73 7461 6c6c  e_chrony_install
│ │ │ -00288b30: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002883d0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ +002883e0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
low
Disr │ │ │ -00288850: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -00288860: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002888a0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ -002888b0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ +00288480: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- 
│ │ │ +00288520: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ +00288530: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ +00288540: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ +00288550: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ +00288560: 6f0a 2020 7461 6773 3a0a 2020 2d20 5043  o.  tags:.  - PC
│ │ │ +00288570: 492d 4453 532d 5265 712d 3130 2e34 0a20  I-DSS-Req-10.4. 
│ │ │ +00288580: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +00288590: 360a 2020 2d20 5043 492d 4453 5376 342d  6.  - PCI-DSSv4-
│ │ │ +002885a0: 3130 2e36 2e31 0a20 202d 2065 6e61 626c  10.6.1.  - enabl
│ │ │ +002885b0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002885c0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002885d0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002885e0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002885f0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +00288600: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +00288610: 636b 6167 655f 6368 726f 6e79 5f69 6e73  ckage_chrony_ins
│ │ │ +00288620: 7461 6c6c 6564 0a0a 2d20 6e61 6d65 3a20  talled..- name: 
│ │ │ +00288630: 456e 7375 7265 2063 6872 6f6e 7920 6973  Ensure chrony is
│ │ │ +00288640: 2069 6e73 7461 6c6c 6564 0a20 2061 6e73   installed.  ans
│ │ │ +00288650: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +00288660: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +00288670: 6368 726f 6e79 0a20 2020 2073 7461 7465  chrony.    state
│ │ │ +00288680: 3a20 7072 6573 656e 740a 2020 7768 656e  : present.  when
│ │ │ +00288690: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ +002886a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ +002886b0: 2e70 6163 6b61 6765 7327 0a20 2074 6167  .packages'.  tag
│ │ │ +002886c0: 733a 0a20 202d 2050 4349 2d44 5353 2d52  s:.  - PCI-DSS-R
│ │ │ +002886d0: 6571 2d31 302e 340a 2020 2d20 5043 492d  eq-10.4.  - PCI-
│ │ │ +002886e0: 4453 5376 342d 3130 2e36 0a20 202d 2050  DSSv4-10.6.  - P
│ │ │ +002886f0: 4349 2d44 5353 7634 2d31 302e 362e 310a  CI-DSSv4-10.6.1.
│ │ │ +00288700: 2020 2d20 656e 6162 6c65 5f73 7472 6174    - enable_strat
│ │ │ +00288710: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +00288720: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +00288730: 6973 7275 7074 696f 6e0a 2020 2d20 6d65  isruption.  - me
│ │ │ +00288740: 6469 756d 5f73 6576 6572 6974 790a 2020  dium_severity.  
│ │ │ +00288750: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ +00288760: 6564 0a20 202d 2070 6163 6b61 6765 5f63  ed.  - package_c
│ │ │ +00288770: 6872 6f6e 795f 696e 7374 616c 6c65 640a  hrony_installed.
│ │ │ +00288780: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +00288840: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00288850: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
│ │ │ +00288470: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002884a0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002884b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002884f0: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +00288500: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ +00288920: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00288930: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +00288980: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ +00288990: 6368 726f 6e79 0a0a 636c 6173 7320 696e  chrony..class in
│ │ │ +002889a0: 7374 616c 6c5f 6368 726f 6e79 207b 0a20  stall_chrony {. 
│ │ │ +002889b0: 2070 6163 6b61 6765 207b 2027 6368 726f   package { 'chro
│ │ │ +002889c0: 6e79 273a 0a20 2020 2065 6e73 7572 6520  ny':.    ensure 
│ │ │ +002889d0: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ +002889e0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ +002889f0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +00288aa0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +00288ab0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00288ac0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[[packag
│ │ │ +00288b10: 6573 5d5d 0a6e 616d 6520 3d20 2263 6872  es]].name = "chr
│ │ │ +00288b20: 6f6e 7922 0a76 6572 7369 6f6e 203d 2022  ony".version = "
│ │ │ +00288b30: 2a22 0a3c 2f63 6f64 653e 3c2f 7072 653e  *".
│ │ │ 00288b40: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -00289b20: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ -00289b30: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[[packages]].n
│ │ │ -00289b90: 616d 6520 3d20 2273 7973 7465 6d64 2d74  ame = "systemd-t
│ │ │ -00289ba0: 696d 6573 796e 6364 220a 7665 7273 696f  imesyncd".versio
│ │ │ -00289bb0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │ -00289bc0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ -00289c70: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00289c80: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00289c90: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00289ca0: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00289cb0: 7365 2220 6964 3d22 6964 3130 3531 223e se" id="id1051"> │ │ │ -00289cc0: 3c74 6162 6c65 2063 6c61 7373 3d22 7461
low
Disru │ │ │ +00288900: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00288910: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00288950: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +00288960: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ -00289d30: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00289d50: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00289d80: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00289da0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -00289d10: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -00289d20: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00289d60: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00289d70: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00289dc0: 696e 7374 616c 6c5f 7379 7374 656d 642d install_systemd- │ │ │ -00289dd0: 7469 6d65 7379 6e63 640a 0a63 6c61 7373 timesyncd..class │ │ │ -00289de0: 2069 6e73 7461 6c6c 5f73 7973 7465 6d64 install_systemd │ │ │ -00289df0: 2d74 696d 6573 796e 6364 207b 0a20 2070 -timesyncd {. p │ │ │ -00289e00: 6163 6b61 6765 207b 2027 7379 7374 656d ackage { 'system │ │ │ -00289e10: 642d 7469 6d65 7379 6e63 6427 3a0a 2020 d-timesyncd':. │ │ │ -00289e20: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00289e30: 696e 7374 616c 6c65 6427 2c0a 2020 7d0a installed',. }. │ │ │ -00289e40: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c }.
< │ │ │ -00289e50: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -00289f00: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -00289f10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -00289fa0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -00289fc0: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -00289fe0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0028a010: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028a020: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ -0028a030: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ -0028a050: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -0028a060: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -0028a070: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -0028a080: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -0028a090: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0028a0a0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -0028a0b0: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ -0028a0c0: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0028a0d0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -0028a0e0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0028a0f0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0028a100: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0028a110: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0028a120: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ -0028a130: 6364 5f69 6e73 7461 6c6c 6564 0a0a 2d20  cd_installed..- 
│ │ │ -0028a140: 6e61 6d65 3a20 456e 7375 7265 2073 7973  name: Ensure sys
│ │ │ -0028a150: 7465 6d64 2d74 696d 6573 796e 6364 2069  temd-timesyncd i
│ │ │ -0028a160: 7320 696e 7374 616c 6c65 640a 2020 616e  s installed.  an
│ │ │ -0028a170: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -0028a180: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -0028a190: 2073 7973 7465 6d64 2d74 696d 6573 796e   systemd-timesyn
│ │ │ -0028a1a0: 6364 0a20 2020 2073 7461 7465 3a20 7072  cd.    state: pr
│ │ │ -0028a1b0: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -0028a1c0: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -0028a1d0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0028a1e0: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -0028a1f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -0028a200: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -0028a210: 5353 2d52 6571 2d31 302e 340a 2020 2d20  SS-Req-10.4.  - 
│ │ │ -0028a220: 656e 6162 6c65 5f73 7472 6174 6567 790a  enable_strategy.
│ │ │ -0028a230: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -0028a240: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -0028a250: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -0028a260: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -0028a270: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0028a280: 2070 6163 6b61 6765 5f74 696d 6573 796e   package_timesyn
│ │ │ -0028a290: 6364 5f69 6e73 7461 6c6c 6564 0a3c 2f63  cd_installed.
Complexity │ │ │ +00289bc0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +00289be0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +00289bf0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +00289c00: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +00289c10: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +00289c30: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
- name: Gath
│ │ │ +00289c70: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ +00289c80: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ +00289c90: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ +00289ca0: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ +00289cb0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00289cc0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00289cd0: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +00289ce0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00289cf0: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00289d00: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00289d10: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00289d20: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00289d30: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00289d40: 2d20 7061 636b 6167 655f 7469 6d65 7379  - package_timesy
│ │ │ +00289d50: 6e63 645f 696e 7374 616c 6c65 640a 0a2d  ncd_installed..-
│ │ │ +00289d60: 206e 616d 653a 2045 6e73 7572 6520 7379   name: Ensure sy
│ │ │ +00289d70: 7374 656d 642d 7469 6d65 7379 6e63 6420  stemd-timesyncd 
│ │ │ +00289d80: 6973 2069 6e73 7461 6c6c 6564 0a20 2061  is installed.  a
│ │ │ +00289d90: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ +00289da0: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ +00289db0: 3a20 7379 7374 656d 642d 7469 6d65 7379  : systemd-timesy
│ │ │ +00289dc0: 6e63 640a 2020 2020 7374 6174 653a 2070  ncd.    state: p
│ │ │ +00289dd0: 7265 7365 6e74 0a20 2077 6865 6e3a 2027  resent.  when: '
│ │ │ +00289de0: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ +00289df0: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +00289e00: 636b 6167 6573 270a 2020 7461 6773 3a0a  ckages'.  tags:.
│ │ │ +00289e10: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +00289e20: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ +00289e30: 4453 532d 5265 712d 3130 2e34 0a20 202d  DSS-Req-10.4.  -
│ │ │ +00289e40: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +00289e50: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ +00289e60: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ +00289e70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +00289e80: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ +00289e90: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +00289ea0: 2d20 7061 636b 6167 655f 7469 6d65 7379  - package_timesy
│ │ │ +00289eb0: 6e63 645f 696e 7374 616c 6c65 640a 3c2f  ncd_installed.
R │ │ │ +00289f70: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +00289f80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +0028a020: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
in
│ │ │ +0028a0c0: 636c 7564 6520 696e 7374 616c 6c5f 7379  clude install_sy
│ │ │ +0028a0d0: 7374 656d 642d 7469 6d65 7379 6e63 640a  stemd-timesyncd.
│ │ │ +0028a0e0: 0a63 6c61 7373 2069 6e73 7461 6c6c 5f73  .class install_s
│ │ │ +0028a0f0: 7973 7465 6d64 2d74 696d 6573 796e 6364  ystemd-timesyncd
│ │ │ +0028a100: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ +0028a110: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +0028a120: 6427 3a0a 2020 2020 656e 7375 7265 203d  d':.    ensure =
│ │ │ +0028a130: 2667 743b 2027 696e 7374 616c 6c65 6427  > 'installed'
│ │ │ +0028a140: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +0028a150: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +0028a200: 7469 6f6e 204f 5342 7569 6c64 2042 6c75  tion OSBuild Blu
│ │ │ +0028a210: 6570 7269 6e74 2073 6e69 7070 6574 20e2  eprint snippet .
│ │ │ +0028a220: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +0028a260: 3c63 6f64 653e 0a5b 5b70 6163 6b61 6765  .[[package
│ │ │ +0028a270: 735d 5d0a 6e61 6d65 203d 2022 7379 7374  s]].name = "syst
│ │ │ +0028a280: 656d 642d 7469 6d65 7379 6e63 6422 0a76  emd-timesyncd".v
│ │ │ +0028a290: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63  ersion = "*".
│ │ │ 0028a2b0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediatio │ │ │ -0028b0f0: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ -0028b100: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ -0028b110: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ -0028b160: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ -0028b170: 6162 6c65 6420 3d20 5b22 6368 726f 6e79  abled = ["chrony
│ │ │ -0028b180: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ -0028b190: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ -0028b240: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -0028b250: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -0028b320: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ -0028b370: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
│ │ │ +0028a010: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0028a040: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0028a050: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0028a090: 793a 3c2f 7468 3e3c 7464 3e65 6e61 626c y:enabl │ │ │ +0028a0a0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -0028b2e0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -0028b300: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -0028b350: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028b360: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include enabl
│ │ │ -0028b390: 655f 6368 726f 6e79 0a0a 636c 6173 7320  e_chrony..class 
│ │ │ -0028b3a0: 656e 6162 6c65 5f63 6872 6f6e 7920 7b0a  enable_chrony {.
│ │ │ -0028b3b0: 2020 7365 7276 6963 6520 7b27 6368 726f    service {'chro
│ │ │ -0028b3c0: 6e79 273a 0a20 2020 2065 6e61 626c 6520  ny':.    enable 
│ │ │ -0028b3d0: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ -0028b3e0: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ -0028b3f0: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
R │ │ │ -0028b4b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -0028b4c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -0028b5a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0028b5b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
-
│ │ │ -0028b600: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ -0028b610: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ -0028b620: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ -0028b630: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ -0028b640: 746f 0a20 2074 6167 733a 0a20 202d 2065  to.  tags:.  - e
│ │ │ -0028b650: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ -0028b660: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -0028b670: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -0028b680: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ -0028b690: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -0028b6a0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0028b6b0: 2d20 7365 7276 6963 655f 6368 726f 6e79  - service_chrony
│ │ │ -0028b6c0: 645f 656e 6162 6c65 640a 0a2d 206e 616d  d_enabled..- nam
│ │ │ -0028b6d0: 653a 2054 6865 2043 6872 6f6e 7964 2073  e: The Chronyd s
│ │ │ -0028b6e0: 6572 7669 6365 2069 7320 656e 6162 6c65  ervice is enable
│ │ │ -0028b6f0: 6420 2d20 456e 6162 6c65 2073 6572 7669  d - Enable servi
│ │ │ -0028b700: 6365 2063 6872 6f6e 790a 2020 626c 6f63  ce chrony.  bloc
│ │ │ -0028b710: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4761  k:..  - name: Ga
│ │ │ -0028b720: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -0028b730: 2066 6163 7473 0a20 2020 2061 6e73 6962   facts.    ansib
│ │ │ -0028b740: 6c65 2e62 7569 6c74 696e 2e70 6163 6b61  le.builtin.packa
│ │ │ -0028b750: 6765 5f66 6163 7473 3a0a 2020 2020 2020  ge_facts:.      
│ │ │ -0028b760: 6d61 6e61 6765 723a 2061 7574 6f0a 0a20  manager: auto.. 
│ │ │ -0028b770: 202d 206e 616d 653a 2054 6865 2043 6872   - name: The Chr
│ │ │ -0028b780: 6f6e 7964 2073 6572 7669 6365 2069 7320  onyd service is 
│ │ │ -0028b790: 656e 6162 6c65 6420 2d20 456e 6162 6c65  enabled - Enable
│ │ │ -0028b7a0: 2053 6572 7669 6365 2063 6872 6f6e 790a   Service chrony.
│ │ │ -0028b7b0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0028b7c0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0028b7d0: 2020 206e 616d 653a 2063 6872 6f6e 790a     name: chrony.
│ │ │ -0028b7e0: 2020 2020 2020 656e 6162 6c65 643a 2074        enabled: t
│ │ │ -0028b7f0: 7275 650a 2020 2020 2020 7374 6174 653a  rue.      state:
│ │ │ -0028b800: 2073 7461 7274 6564 0a20 2020 2020 206d   started.      m
│ │ │ -0028b810: 6173 6b65 643a 2066 616c 7365 0a20 2020  asked: false.   
│ │ │ -0028b820: 2077 6865 6e3a 0a20 2020 202d 2027 2263   when:.    - '"c
│ │ │ -0028b830: 6872 6f6e 7922 2069 6e20 616e 7369 626c  hrony" in ansibl
│ │ │ -0028b840: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -0028b850: 270a 2020 7461 6773 3a0a 2020 2d20 656e  '.  tags:.  - en
│ │ │ -0028b860: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -0028b870: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0028b880: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0028b890: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ -0028b8a0: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ -0028b8b0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -0028b8c0: 2073 6572 7669 6365 5f63 6872 6f6e 7964   service_chronyd
│ │ │ -0028b8d0: 5f65 6e61 626c 6564 0a20 202d 2073 7065  _enabled.  - spe
│ │ │ -0028b8e0: 6369 616c 5f73 6572 7669 6365 5f62 6c6f  cial_service_blo
│ │ │ -0028b8f0: 636b 0a20 2077 6865 6e3a 0a20 202d 2027  ck.  when:.  - '
│ │ │ -0028b900: 226c 696e 7578 2d62 6173 6522 2069 6e20  "linux-base" in 
│ │ │ -0028b910: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ -0028b920: 636b 6167 6573 270a 2020 2d20 2722 6368  ckages'.  - '"ch
│ │ │ -0028b930: 726f 6e79 2220 696e 2061 6e73 6962 6c65  rony" in ansible
│ │ │ -0028b940: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0028b0f0: 6e20 416e 7369 626c 6520 736e 6970 7065  n Ansible snippe
│ │ │ +0028b100: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469  t ...
│ │ │ +0028b180: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0028b210: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
Complexity:low
Disrup │ │ │ -0028b580: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0028b590: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0028b5d0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0028b5e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexi │ │ │ +0028b190: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0028b1a0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0028b1e0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0028b1f0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +0028b230: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ +0028b240: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ +0028b250: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ +0028b260: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ +0028b270: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ +0028b280: 3a0a 2020 2d20 656e 6162 6c65 5f73 7472  :.  - enable_str
│ │ │ +0028b290: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +0028b2a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +0028b2b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +0028b2c0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +0028b2d0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +0028b2e0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +0028b2f0: 5f63 6872 6f6e 7964 5f65 6e61 626c 6564  _chronyd_enabled
│ │ │ +0028b300: 0a0a 2d20 6e61 6d65 3a20 5468 6520 4368  ..- name: The Ch
│ │ │ +0028b310: 726f 6e79 6420 7365 7276 6963 6520 6973  ronyd service is
│ │ │ +0028b320: 2065 6e61 626c 6564 202d 2045 6e61 626c   enabled - Enabl
│ │ │ +0028b330: 6520 7365 7276 6963 6520 6368 726f 6e79  e service chrony
│ │ │ +0028b340: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +0028b350: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +0028b360: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +0028b370: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +0028b380: 6e2e 7061 636b 6167 655f 6661 6374 733a  n.package_facts:
│ │ │ +0028b390: 0a20 2020 2020 206d 616e 6167 6572 3a20  .      manager: 
│ │ │ +0028b3a0: 6175 746f 0a0a 2020 2d20 6e61 6d65 3a20  auto..  - name: 
│ │ │ +0028b3b0: 5468 6520 4368 726f 6e79 6420 7365 7276  The Chronyd serv
│ │ │ +0028b3c0: 6963 6520 6973 2065 6e61 626c 6564 202d  ice is enabled -
│ │ │ +0028b3d0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +0028b3e0: 6368 726f 6e79 0a20 2020 2061 6e73 6962  chrony.    ansib
│ │ │ +0028b3f0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ +0028b400: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ +0028b410: 6368 726f 6e79 0a20 2020 2020 2065 6e61  chrony.      ena
│ │ │ +0028b420: 626c 6564 3a20 7472 7565 0a20 2020 2020  bled: true.     
│ │ │ +0028b430: 2073 7461 7465 3a20 7374 6172 7465 640a   state: started.
│ │ │ +0028b440: 2020 2020 2020 6d61 736b 6564 3a20 6661        masked: fa
│ │ │ +0028b450: 6c73 650a 2020 2020 7768 656e 3a0a 2020  lse.    when:.  
│ │ │ +0028b460: 2020 2d20 2722 6368 726f 6e79 2220 696e    - '"chrony" in
│ │ │ +0028b470: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ +0028b480: 6163 6b61 6765 7327 0a20 2074 6167 733a  ackages'.  tags:
│ │ │ +0028b490: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ +0028b4a0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +0028b4b0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +0028b4c0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +0028b4d0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +0028b4e0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0028b4f0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0028b500: 6368 726f 6e79 645f 656e 6162 6c65 640a  chronyd_enabled.
│ │ │ +0028b510: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +0028b520: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +0028b530: 3a0a 2020 2d20 2722 6c69 6e75 782d 6261  :.  - '"linux-ba
│ │ │ +0028b540: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +0028b550: 6163 7473 2e70 6163 6b61 6765 7327 0a20  acts.packages'. 
│ │ │ +0028b560: 202d 2027 2263 6872 6f6e 7922 2069 6e20   - '"chrony" in 
│ │ │ +0028b570: 616e 7369 626c 655f 6661 6374 732e 7061  ansible_facts.pa
│ │ │ +0028b580: 636b 6167 6573 270a 3c2f 636f 6465 3e3c  ckages'.<
│ │ │ +0028b590: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +0028b640: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ +0028b650: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +0028b660: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028b670: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028b680: 7365 2220 6964 3d22 6964 3130 3536 223e se" id="id1056"> │ │ │ +0028b690: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028b700: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028b720: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028b750: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ +0028b770: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ +0028b6e0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028b6f0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028b730: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028b740: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ +0028b790: 656e 6162 6c65 5f63 6872 6f6e 790a 0a63 enable_chrony..c │ │ │ +0028b7a0: 6c61 7373 2065 6e61 626c 655f 6368 726f lass enable_chro │ │ │ +0028b7b0: 6e79 207b 0a20 2073 6572 7669 6365 207b ny {. service { │ │ │ +0028b7c0: 2763 6872 6f6e 7927 3a0a 2020 2020 656e 'chrony':. en │ │ │ +0028b7d0: 6162 6c65 203d 2667 743b 2074 7275 652c able => true, │ │ │ +0028b7e0: 0a20 2020 2065 6e73 7572 6520 3d26 6774 . ensure => │ │ │ +0028b7f0: 3b20 2772 756e 6e69 6e67 272c 0a20 207d ; 'running',. } │ │ │ +0028b800: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e .}.
│ │ │ +0028b810: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +0028b8c0: 4f53 4275 696c 6420 426c 7565 7072 696e OSBuild Blueprin │ │ │ +0028b8d0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
.[customization
│ │ │ +0028b930: 732e 7365 7276 6963 6573 5d0a 656e 6162  s.services].enab
│ │ │ +0028b940: 6c65 6420 3d20 5b22 6368 726f 6e79 225d  led = ["chrony"]
│ │ │  0028b950: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediati │ │ │ -0028cc50: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -0028cc60: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -0028cc70: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[customizat
│ │ │ -0028ccc0: 696f 6e73 2e73 6572 7669 6365 735d 0a65  ions.services].e
│ │ │ -0028ccd0: 6e61 626c 6564 203d 205b 2273 7973 7465  nabled = ["syste
│ │ │ -0028cce0: 6d64 2d74 696d 6573 796e 6364 225d 0a3c  md-timesyncd"].<
│ │ │ -0028ccf0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ -0028cda0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ -0028cdb0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
< │ │ │ -0028ce90: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -0028cea0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ -0028cef0: 6e63 6c75 6465 2065 6e61 626c 655f 7379  nclude enable_sy
│ │ │ -0028cf00: 7374 656d 642d 7469 6d65 7379 6e63 640a  stemd-timesyncd.
│ │ │ -0028cf10: 0a63 6c61 7373 2065 6e61 626c 655f 7379  .class enable_sy
│ │ │ -0028cf20: 7374 656d 642d 7469 6d65 7379 6e63 6420  stemd-timesyncd 
│ │ │ -0028cf30: 7b0a 2020 7365 7276 6963 6520 7b27 7379  {.  service {'sy
│ │ │ -0028cf40: 7374 656d 642d 7469 6d65 7379 6e63 6427  stemd-timesyncd'
│ │ │ -0028cf50: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -0028cf60: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -0028cf70: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -0028cf80: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Reme │ │ │ -0028d040: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0028d050: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0028d060: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Complexity:low
Disrup │ │ │ -0028ce70: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -0028ce80: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -0028cec0: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ -0028ced0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -0028d100: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0028d150: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -0028d0e0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0028d110: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0028d130: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0028d140: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0028d160: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -0028d170: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0028d190: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -0028d1a0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -0028d1b0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -0028d1c0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -0028d1d0: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ -0028d1e0: 2d38 3030 2d35 332d 4155 2d38 2831 2928  -800-53-AU-8(1)(
│ │ │ -0028d1f0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -0028d200: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -0028d210: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ -0028d220: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ -0028d230: 2e36 0a20 202d 2050 4349 2d44 5353 7634  .6.  - PCI-DSSv4
│ │ │ -0028d240: 2d31 302e 362e 310a 2020 2d20 656e 6162  -10.6.1.  - enab
│ │ │ -0028d250: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0028d260: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -0028d270: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -0028d280: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -0028d290: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -0028d2a0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0028d2b0: 7669 6365 5f74 696d 6573 796e 6364 5f65  vice_timesyncd_e
│ │ │ -0028d2c0: 6e61 626c 6564 0a0a 2d20 6e61 6d65 3a20  nabled..- name: 
│ │ │ -0028d2d0: 456e 6162 6c65 2073 7973 7465 6d64 5f74  Enable systemd_t
│ │ │ -0028d2e0: 696d 6573 796e 6364 2053 6572 7669 6365  imesyncd Service
│ │ │ -0028d2f0: 202d 2045 6e61 626c 6520 7365 7276 6963   - Enable servic
│ │ │ -0028d300: 6520 7379 7374 656d 642d 7469 6d65 7379  e systemd-timesy
│ │ │ -0028d310: 6e63 640a 2020 626c 6f63 6b3a 0a0a 2020  ncd.  block:..  
│ │ │ -0028d320: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ -0028d330: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ -0028d340: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -0028d350: 6c74 696e 2e70 6163 6b61 6765 5f66 6163  ltin.package_fac
│ │ │ -0028d360: 7473 3a0a 2020 2020 2020 6d61 6e61 6765  ts:.      manage
│ │ │ -0028d370: 723a 2061 7574 6f0a 0a20 202d 206e 616d  r: auto..  - nam
│ │ │ -0028d380: 653a 2045 6e61 626c 6520 7379 7374 656d  e: Enable system
│ │ │ -0028d390: 645f 7469 6d65 7379 6e63 6420 5365 7276  d_timesyncd Serv
│ │ │ -0028d3a0: 6963 6520 2d20 456e 6162 6c65 2053 6572  ice - Enable Ser
│ │ │ -0028d3b0: 7669 6365 2073 7973 7465 6d64 2d74 696d  vice systemd-tim
│ │ │ -0028d3c0: 6573 796e 6364 0a20 2020 2061 6e73 6962  esyncd.    ansib
│ │ │ -0028d3d0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0028d3e0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0028d3f0: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ -0028d400: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0028d410: 2074 7275 650a 2020 2020 2020 7374 6174   true.      stat
│ │ │ -0028d420: 653a 2073 7461 7274 6564 0a20 2020 2020  e: started.     
│ │ │ -0028d430: 206d 6173 6b65 643a 2066 616c 7365 0a20   masked: false. 
│ │ │ -0028d440: 2020 2077 6865 6e3a 0a20 2020 202d 2027     when:.    - '
│ │ │ -0028d450: 2273 7973 7465 6d64 2220 696e 2061 6e73  "systemd" in ans
│ │ │ -0028d460: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0028d470: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -0028d480: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -0028d490: 3828 3129 2861 290a 2020 2d20 4e49 5354  8(1)(a).  - NIST
│ │ │ -0028d4a0: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -0028d4b0: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ -0028d4c0: 3130 2e34 0a20 202d 2050 4349 2d44 5353  10.4.  - PCI-DSS
│ │ │ -0028d4d0: 7634 2d31 302e 360a 2020 2d20 5043 492d  v4-10.6.  - PCI-
│ │ │ -0028d4e0: 4453 5376 342d 3130 2e36 2e31 0a20 202d  DSSv4-10.6.1.  -
│ │ │ -0028d4f0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ -0028d500: 0a20 202d 2068 6967 685f 7365 7665 7269  .  - high_severi
│ │ │ -0028d510: 7479 0a20 202d 206c 6f77 5f63 6f6d 706c  ty.  - low_compl
│ │ │ -0028d520: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -0028d530: 7372 7570 7469 6f6e 0a20 202d 206e 6f5f  sruption.  - no_
│ │ │ -0028d540: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -0028d550: 2d20 7365 7276 6963 655f 7469 6d65 7379  - service_timesy
│ │ │ -0028d560: 6e63 645f 656e 6162 6c65 640a 2020 2d20  ncd_enabled.  - 
│ │ │ -0028d570: 7370 6563 6961 6c5f 7365 7276 6963 655f  special_service_
│ │ │ -0028d580: 626c 6f63 6b0a 2020 7768 656e 3a0a 2020  block.  when:.  
│ │ │ -0028d590: 2d20 2722 6c69 6e75 782d 6261 7365 2220  - '"linux-base" 
│ │ │ -0028d5a0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0028d5b0: 2e70 6163 6b61 6765 7327 0a20 202d 2028  .packages'.  - (
│ │ │ -0028d5c0: 206e 6f74 2028 2022 6368 726f 6e79 2220   not ( "chrony" 
│ │ │ -0028d5d0: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -0028d5e0: 2e70 6163 6b61 6765 7320 2920 616e 6420  .packages ) and 
│ │ │ -0028d5f0: 6e6f 7420 2820 226e 7470 2220 696e 2061  not ( "ntp" in a
│ │ │ -0028d600: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -0028d610: 6b61 6765 730a 2020 2020 2920 290a 3c2f  kages.    ) ).
< │ │ │ +0028cca0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +0028ccb0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +0028ccc0: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +0028ccd0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +0028cce0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +0028ccf0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +0028cd00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +0028cd40: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +0028cd50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +0028cd70: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +0028cd80: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +0028cda0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +0028cdb0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +0028cdc0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +0028cdd0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +0028cde0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +0028cdf0: 3533 2d41 552d 3828 3129 2861 290a 2020  53-AU-8(1)(a).  
│ │ │ +0028ce00: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +0028ce10: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +0028ce20: 532d 5265 712d 3130 2e34 0a20 202d 2050  S-Req-10.4.  - P
│ │ │ +0028ce30: 4349 2d44 5353 7634 2d31 302e 360a 2020  CI-DSSv4-10.6.  
│ │ │ +0028ce40: 2d20 5043 492d 4453 5376 342d 3130 2e36  - PCI-DSSv4-10.6
│ │ │ +0028ce50: 2e31 0a20 202d 2065 6e61 626c 655f 7374  .1.  - enable_st
│ │ │ +0028ce60: 7261 7465 6779 0a20 202d 2068 6967 685f  rategy.  - high_
│ │ │ +0028ce70: 7365 7665 7269 7479 0a20 202d 206c 6f77  severity.  - low
│ │ │ +0028ce80: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0028ce90: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0028cea0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +0028ceb0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ +0028cec0: 7469 6d65 7379 6e63 645f 656e 6162 6c65  timesyncd_enable
│ │ │ +0028ced0: 640a 0a2d 206e 616d 653a 2045 6e61 626c  d..- name: Enabl
│ │ │ +0028cee0: 6520 7379 7374 656d 645f 7469 6d65 7379  e systemd_timesy
│ │ │ +0028cef0: 6e63 6420 5365 7276 6963 6520 2d20 456e  ncd Service - En
│ │ │ +0028cf00: 6162 6c65 2073 6572 7669 6365 2073 7973  able service sys
│ │ │ +0028cf10: 7465 6d64 2d74 696d 6573 796e 6364 0a20  temd-timesyncd. 
│ │ │ +0028cf20: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ +0028cf30: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +0028cf40: 636b 6167 6520 6661 6374 730a 2020 2020  ckage facts.    
│ │ │ +0028cf50: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +0028cf60: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +0028cf70: 2020 2020 206d 616e 6167 6572 3a20 6175       manager: au
│ │ │ +0028cf80: 746f 0a0a 2020 2d20 6e61 6d65 3a20 456e  to..  - name: En
│ │ │ +0028cf90: 6162 6c65 2073 7973 7465 6d64 5f74 696d  able systemd_tim
│ │ │ +0028cfa0: 6573 796e 6364 2053 6572 7669 6365 202d  esyncd Service -
│ │ │ +0028cfb0: 2045 6e61 626c 6520 5365 7276 6963 6520   Enable Service 
│ │ │ +0028cfc0: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +0028cfd0: 640a 2020 2020 616e 7369 626c 652e 6275  d.    ansible.bu
│ │ │ +0028cfe0: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ +0028cff0: 2020 2020 206e 616d 653a 2073 7973 7465       name: syste
│ │ │ +0028d000: 6d64 2d74 696d 6573 796e 6364 0a20 2020  md-timesyncd.   
│ │ │ +0028d010: 2020 2065 6e61 626c 6564 3a20 7472 7565     enabled: true
│ │ │ +0028d020: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0028d030: 6172 7465 640a 2020 2020 2020 6d61 736b  arted.      mask
│ │ │ +0028d040: 6564 3a20 6661 6c73 650a 2020 2020 7768  ed: false.    wh
│ │ │ +0028d050: 656e 3a0a 2020 2020 2d20 2722 7379 7374  en:.    - '"syst
│ │ │ +0028d060: 656d 6422 2069 6e20 616e 7369 626c 655f  emd" in ansible_
│ │ │ +0028d070: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +0028d080: 2020 7461 6773 3a0a 2020 2d20 4e49 5354    tags:.  - NIST
│ │ │ +0028d090: 2d38 3030 2d35 332d 4155 2d38 2831 2928  -800-53-AU-8(1)(
│ │ │ +0028d0a0: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ +0028d0b0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ +0028d0c0: 4349 2d44 5353 2d52 6571 2d31 302e 340a  CI-DSS-Req-10.4.
│ │ │ +0028d0d0: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +0028d0e0: 2e36 0a20 202d 2050 4349 2d44 5353 7634  .6.  - PCI-DSSv4
│ │ │ +0028d0f0: 2d31 302e 362e 310a 2020 2d20 656e 6162  -10.6.1.  - enab
│ │ │ +0028d100: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0028d110: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ +0028d120: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +0028d130: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +0028d140: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ +0028d150: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +0028d160: 7669 6365 5f74 696d 6573 796e 6364 5f65  vice_timesyncd_e
│ │ │ +0028d170: 6e61 626c 6564 0a20 202d 2073 7065 6369  nabled.  - speci
│ │ │ +0028d180: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +0028d190: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ +0028d1a0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0028d1b0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0028d1c0: 6167 6573 270a 2020 2d20 2820 6e6f 7420  ages'.  - ( not 
│ │ │ +0028d1d0: 2820 2263 6872 6f6e 7922 2069 6e20 616e  ( "chrony" in an
│ │ │ +0028d1e0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0028d1f0: 6167 6573 2029 2061 6e64 206e 6f74 2028  ages ) and not (
│ │ │ +0028d200: 2022 6e74 7022 2069 6e20 616e 7369 626c   "ntp" in ansibl
│ │ │ +0028d210: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +0028d220: 0a20 2020 2029 2029 0a3c 2f63 6f64 653e  .    ) ).
│ │ │ +0028d230: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ +0028d2e0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ +0028d2f0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +0028d300: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ +0028d3a0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ +0028d3c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ +0028d3f0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ +0028d380: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ +0028d390: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ +0028d3b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ +0028d3d0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ +0028d3e0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ +0028d430: 2065 6e61 626c 655f 7379 7374 656d 642d enable_systemd- │ │ │ +0028d440: 7469 6d65 7379 6e63 640a 0a63 6c61 7373 timesyncd..class │ │ │ +0028d450: 2065 6e61 626c 655f 7379 7374 656d 642d enable_systemd- │ │ │ +0028d460: 7469 6d65 7379 6e63 6420 7b0a 2020 7365 timesyncd {. se │ │ │ +0028d470: 7276 6963 6520 7b27 7379 7374 656d 642d rvice {'systemd- │ │ │ +0028d480: 7469 6d65 7379 6e63 6427 3a0a 2020 2020 timesyncd':. │ │ │ +0028d490: 656e 6162 6c65 203d 2667 743b 2074 7275 enable => tru │ │ │ +0028d4a0: 652c 0a20 2020 2065 6e73 7572 6520 3d26 e,. ensure =& │ │ │ +0028d4b0: 6774 3b20 2772 756e 6e69 6e67 272c 0a20 gt; 'running',. │ │ │ +0028d4c0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 }.}.

Remediatio │ │ │ +0028d580: 6e20 4f53 4275 696c 6420 426c 7565 7072 n OSBuild Bluepr │ │ │ +0028d590: 696e 7420 736e 6970 7065 7420 e287 b23c int snippet ...< │ │ │ +0028d5a0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
.[customizati
│ │ │ +0028d5f0: 6f6e 732e 7365 7276 6963 6573 5d0a 656e  ons.services].en
│ │ │ +0028d600: 6162 6c65 6420 3d20 5b22 7379 7374 656d  abled = ["system
│ │ │ +0028d610: 642d 7469 6d65 7379 6e63 6422 5d0a 3c2f  d-timesyncd"].
Remediat │ │ │ -0028e300: 696f 6e20 4f53 4275 696c 6420 426c 7565 ion OSBuild Blue │ │ │ -0028e310: 7072 696e 7420 736e 6970 7065 7420 e287 print snippet .. │ │ │ -0028e320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
<
│ │ │ -0028e360: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ -0028e370: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ -0028e380: 6d61 736b 6564 203d 205b 2263 6872 6f6e  masked = ["chron
│ │ │ -0028e390: 7922 5d0a 3c2f 636f 6465 3e3c 2f70 7265  y"].
Remediation │ │ │ -0028e450: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -0028e460: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -0028e4f0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -0028e510: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -0028e520: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0028e530: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -0028e540: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -0028e560: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -0028e5a0: 626c 655f 6368 726f 6e79 0a0a 636c 6173  ble_chrony..clas
│ │ │ -0028e5b0: 7320 6469 7361 626c 655f 6368 726f 6e79  s disable_chrony
│ │ │ -0028e5c0: 207b 0a20 2073 6572 7669 6365 207b 2763   {.  service {'c
│ │ │ -0028e5d0: 6872 6f6e 7927 3a0a 2020 2020 656e 6162  hrony':.    enab
│ │ │ -0028e5e0: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ -0028e5f0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -0028e600: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ -0028e610: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -0028e620: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -0028e6d0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -0028e6e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ -0028e770: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ -0028e790: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ -0028e7b0: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ -0028e7e0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -0028e7f0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: Gath
│ │ │ -0028e820: 6572 2074 6865 2070 6163 6b61 6765 2066  er the package f
│ │ │ -0028e830: 6163 7473 0a20 2070 6163 6b61 6765 5f66  acts.  package_f
│ │ │ -0028e840: 6163 7473 3a0a 2020 2020 6d61 6e61 6765  acts:.    manage
│ │ │ -0028e850: 723a 2061 7574 6f0a 2020 7461 6773 3a0a  r: auto.  tags:.
│ │ │ -0028e860: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -0028e870: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -0028e880: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -0028e890: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -0028e8a0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -0028e8b0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0028e8c0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -0028e8d0: 6368 726f 6e79 645f 6469 7361 626c 6564  chronyd_disabled
│ │ │ -0028e8e0: 0a0a 2d20 6e61 6d65 3a20 5468 6520 4368  ..- name: The Ch
│ │ │ -0028e8f0: 726f 6e79 6420 7365 7276 6963 6520 6973  ronyd service is
│ │ │ -0028e900: 2064 6973 6162 6c65 6420 2d20 4469 7361   disabled - Disa
│ │ │ -0028e910: 626c 6520 7365 7276 6963 6520 6368 726f  ble service chro
│ │ │ -0028e920: 6e79 0a20 2062 6c6f 636b 3a0a 0a20 202d  ny.  block:..  -
│ │ │ -0028e930: 206e 616d 653a 2054 6865 2043 6872 6f6e   name: The Chron
│ │ │ -0028e940: 7964 2073 6572 7669 6365 2069 7320 6469  yd service is di
│ │ │ -0028e950: 7361 626c 6564 202d 2043 6f6c 6c65 6374  sabled - Collect
│ │ │ -0028e960: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -0028e970: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -0028e980: 0a20 2020 2020 2053 7973 7465 6d0a 2020  .      System.  
│ │ │ -0028e990: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -0028e9a0: 6e2e 636f 6d6d 616e 643a 2073 7973 7465  n.command: syste
│ │ │ -0028e9b0: 6d63 746c 202d 7120 6c69 7374 2d75 6e69  mctl -q list-uni
│ │ │ -0028e9c0: 742d 6669 6c65 7320 2d2d 7479 7065 2073  t-files --type s
│ │ │ -0028e9d0: 6572 7669 6365 0a20 2020 2072 6567 6973  ervice.    regis
│ │ │ -0028e9e0: 7465 723a 2073 6572 7669 6365 5f65 7869  ter: service_exi
│ │ │ -0028e9f0: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ -0028ea00: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ -0028ea10: 6661 696c 6564 5f77 6865 6e3a 2073 6572  failed_when: ser
│ │ │ -0028ea20: 7669 6365 5f65 7869 7374 732e 7263 206e  vice_exists.rc n
│ │ │ -0028ea30: 6f74 2069 6e20 5b30 2c20 315d 0a20 2020  ot in [0, 1].   
│ │ │ -0028ea40: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ -0028ea50: 7365 0a0a 2020 2d20 6e61 6d65 3a20 5468  se..  - name: Th
│ │ │ -0028ea60: 6520 4368 726f 6e79 6420 7365 7276 6963  e Chronyd servic
│ │ │ -0028ea70: 6520 6973 2064 6973 6162 6c65 6420 2d20  e is disabled - 
│ │ │ -0028ea80: 456e 7375 7265 2063 6872 6f6e 792e 7365  Ensure chrony.se
│ │ │ -0028ea90: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ -0028eaa0: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0028eab0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0028eac0: 2020 206e 616d 653a 2063 6872 6f6e 792e     name: chrony.
│ │ │ -0028ead0: 7365 7276 6963 650a 2020 2020 2020 7374  service.      st
│ │ │ -0028eae0: 6174 653a 2073 746f 7070 6564 0a20 2020  ate: stopped.   
│ │ │ -0028eaf0: 2020 2065 6e61 626c 6564 3a20 6661 6c73     enabled: fals
│ │ │ -0028eb00: 650a 2020 2020 2020 6d61 736b 6564 3a20  e.      masked: 
│ │ │ -0028eb10: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ -0028eb20: 6572 7669 6365 5f65 7869 7374 732e 7374  ervice_exists.st
│ │ │ -0028eb30: 646f 7574 5f6c 696e 6573 2069 7320 7365  dout_lines is se
│ │ │ -0028eb40: 6172 6368 2822 6368 726f 6e79 2e73 6572  arch("chrony.ser
│ │ │ -0028eb50: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ -0028eb60: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ -0028eb70: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ -0028eb80: 6973 7473 202d 2063 6872 6f6e 792e 736f  ists - chrony.so
│ │ │ -0028eb90: 636b 6574 0a20 2020 2061 6e73 6962 6c65  cket.    ansible
│ │ │ -0028eba0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ -0028ebb0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ -0028ebc0: 6973 742d 756e 6974 2d66 696c 6573 2063  ist-unit-files c
│ │ │ -0028ebd0: 6872 6f6e 792e 736f 636b 6574 0a20 2020  hrony.socket.   
│ │ │ -0028ebe0: 2072 6567 6973 7465 723a 2073 6f63 6b65   register: socke
│ │ │ -0028ebf0: 745f 6669 6c65 5f65 7869 7374 730a 2020  t_file_exists.  
│ │ │ -0028ec00: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -0028ec10: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -0028ec20: 5f77 6865 6e3a 2073 6f63 6b65 745f 6669  _when: socket_fi
│ │ │ -0028ec30: 6c65 5f65 7869 7374 732e 7263 206e 6f74  le_exists.rc not
│ │ │ -0028ec40: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0028ec50: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0028ec60: 0a0a 2020 2d20 6e61 6d65 3a20 5468 6520  ..  - name: The 
│ │ │ -0028ec70: 4368 726f 6e79 6420 7365 7276 6963 6520  Chronyd service 
│ │ │ -0028ec80: 6973 2064 6973 6162 6c65 6420 2d20 4469  is disabled - Di
│ │ │ -0028ec90: 7361 626c 6520 536f 636b 6574 2063 6872  sable Socket chr
│ │ │ -0028eca0: 6f6e 790a 2020 2020 616e 7369 626c 652e  ony.    ansible.
│ │ │ -0028ecb0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -0028ecc0: 0a20 2020 2020 206e 616d 653a 2063 6872  .      name: chr
│ │ │ -0028ecd0: 6f6e 792e 736f 636b 6574 0a20 2020 2020  ony.socket.     
│ │ │ -0028ece0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -0028ecf0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -0028ed00: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -0028ed10: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -0028ed20: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -0028ed30: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -0028ed40: 7320 6973 2073 6561 7263 6828 2263 6872  s is search("chr
│ │ │ -0028ed50: 6f6e 792e 736f 636b 6574 222c 206d 756c  ony.socket", mul
│ │ │ -0028ed60: 7469 6c69 6e65 3d54 7275 6529 0a20 2074  tiline=True).  t
│ │ │ -0028ed70: 6167 733a 0a20 202d 2064 6973 6162 6c65  ags:.  - disable
│ │ │ -0028ed80: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -0028ed90: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -0028eda0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -0028edb0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -0028edc0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -0028edd0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -0028ede0: 7669 6365 5f63 6872 6f6e 7964 5f64 6973  vice_chronyd_dis
│ │ │ -0028edf0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ -0028ee00: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ -0028ee10: 2020 7768 656e 3a0a 2020 2d20 2722 6c69    when:.  - '"li
│ │ │ -0028ee20: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -0028ee30: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -0028ee40: 6765 7327 0a20 202d 2027 2263 6872 6f6e  ges'.  - '"chron
│ │ │ -0028ee50: 7922 2069 6e20 616e 7369 626c 655f 6661  y" in ansible_fa
│ │ │ -0028ee60: 6374 732e 7061 636b 6167 6573 270a 3c2f  cts.packages'.
< │ │ │ +0028e320: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +0028e330: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +0028e340: 7365 2220 6964 3d22 6964 3130 3635 223e se" id="id1065"> │ │ │ +0028e350: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +0028e3c0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +0028e3e0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +0028e410: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +0028e3a0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +0028e3b0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +0028e3f0: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +0028e400: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +0028e450: 2047 6174 6865 7220 7468 6520 7061 636b Gather the pack │ │ │ +0028e460: 6167 6520 6661 6374 730a 2020 7061 636b age facts. pack │ │ │ +0028e470: 6167 655f 6661 6374 733a 0a20 2020 206d age_facts:. m │ │ │ +0028e480: 616e 6167 6572 3a20 6175 746f 0a20 2074 anager: auto. t │ │ │ +0028e490: 6167 733a 0a20 202d 2064 6973 6162 6c65 ags:. - disable │ │ │ +0028e4a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f _strategy. - lo │ │ │ +0028e4b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d w_complexity. - │ │ │ +0028e4c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a low_disruption. │ │ │ +0028e4d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572 - medium_sever │ │ │ +0028e4e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f ity. - no_reboo │ │ │ +0028e4f0: 745f 6e65 6564 6564 0a20 202d 2073 6572 t_needed. - ser │ │ │ +0028e500: 7669 6365 5f63 6872 6f6e 7964 5f64 6973 vice_chronyd_dis │ │ │ +0028e510: 6162 6c65 640a 0a2d 206e 616d 653a 2054 abled..- name: T │ │ │ +0028e520: 6865 2043 6872 6f6e 7964 2073 6572 7669 he Chronyd servi │ │ │ +0028e530: 6365 2069 7320 6469 7361 626c 6564 202d ce is disabled - │ │ │ +0028e540: 2044 6973 6162 6c65 2073 6572 7669 6365 Disable service │ │ │ +0028e550: 2063 6872 6f6e 790a 2020 626c 6f63 6b3a chrony. block: │ │ │ +0028e560: 0a0a 2020 2d20 6e61 6d65 3a20 5468 6520 .. - name: The │ │ │ +0028e570: 4368 726f 6e79 6420 7365 7276 6963 6520 Chronyd service │ │ │ +0028e580: 6973 2064 6973 6162 6c65 6420 2d20 436f is disabled - Co │ │ │ +0028e590: 6c6c 6563 7420 7379 7374 656d 6420 5365 llect systemd Se │ │ │ +0028e5a0: 7276 6963 6573 2050 7265 7365 6e74 2069 rvices Present i │ │ │ +0028e5b0: 6e20 7468 650a 2020 2020 2020 5379 7374 n the. Syst │ │ │ +0028e5c0: 656d 0a20 2020 2061 6e73 6962 6c65 2e62 em. ansible.b │ │ │ +0028e5d0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20 uiltin.command: │ │ │ +0028e5e0: 7379 7374 656d 6374 6c20 2d71 206c 6973 systemctl -q lis │ │ │ +0028e5f0: 742d 756e 6974 2d66 696c 6573 202d 2d74 t-unit-files --t │ │ │ +0028e600: 7970 6520 7365 7276 6963 650a 2020 2020 ype service. │ │ │ +0028e610: 7265 6769 7374 6572 3a20 7365 7276 6963 register: servic │ │ │ +0028e620: 655f 6578 6973 7473 0a20 2020 2063 6861 e_exists. cha │ │ │ +0028e630: 6e67 6564 5f77 6865 6e3a 2066 616c 7365 nged_when: false │ │ │ +0028e640: 0a20 2020 2066 6169 6c65 645f 7768 656e . failed_when │ │ │ +0028e650: 3a20 7365 7276 6963 655f 6578 6973 7473 : service_exists │ │ │ +0028e660: 2e72 6320 6e6f 7420 696e 205b 302c 2031 .rc not in [0, 1 │ │ │ +0028e670: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465 ]. check_mode │ │ │ +0028e680: 3a20 6661 6c73 650a 0a20 202d 206e 616d : false.. - nam │ │ │ +0028e690: 653a 2054 6865 2043 6872 6f6e 7964 2073 e: The Chronyd s │ │ │ +0028e6a0: 6572 7669 6365 2069 7320 6469 7361 626c ervice is disabl │ │ │ +0028e6b0: 6564 202d 2045 6e73 7572 6520 6368 726f ed - Ensure chro │ │ │ +0028e6c0: 6e79 2e73 6572 7669 6365 2069 7320 4d61 ny.service is Ma │ │ │ +0028e6d0: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ +0028e6e0: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ +0028e6f0: 3a0a 2020 2020 2020 6e61 6d65 3a20 6368 :. name: ch │ │ │ +0028e700: 726f 6e79 2e73 6572 7669 6365 0a20 2020 rony.service. │ │ │ +0028e710: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ +0028e720: 640a 2020 2020 2020 656e 6162 6c65 643a d. enabled: │ │ │ +0028e730: 2066 616c 7365 0a20 2020 2020 206d 6173 false. mas │ │ │ +0028e740: 6b65 643a 2074 7275 650a 2020 2020 7768 ked: true. wh │ │ │ +0028e750: 656e 3a20 7365 7276 6963 655f 6578 6973 en: service_exis │ │ │ +0028e760: 7473 2e73 7464 6f75 745f 6c69 6e65 7320 ts.stdout_lines │ │ │ +0028e770: 6973 2073 6561 7263 6828 2263 6872 6f6e is search("chron │ │ │ +0028e780: 792e 7365 7276 6963 6522 2c20 6d75 6c74 y.service", mult │ │ │ +0028e790: 696c 696e 653d 5472 7565 290a 0a20 202d iline=True).. - │ │ │ +0028e7a0: 206e 616d 653a 2055 6e69 7420 536f 636b name: Unit Sock │ │ │ +0028e7b0: 6574 2045 7869 7374 7320 2d20 6368 726f et Exists - chro │ │ │ +0028e7c0: 6e79 2e73 6f63 6b65 740a 2020 2020 616e ny.socket. an │ │ │ +0028e7d0: 7369 626c 652e 6275 696c 7469 6e2e 636f sible.builtin.co │ │ │ +0028e7e0: 6d6d 616e 643a 2073 7973 7465 6d63 746c mmand: systemctl │ │ │ +0028e7f0: 202d 7120 6c69 7374 2d75 6e69 742d 6669 -q list-unit-fi │ │ │ +0028e800: 6c65 7320 6368 726f 6e79 2e73 6f63 6b65 les chrony.socke │ │ │ +0028e810: 740a 2020 2020 7265 6769 7374 6572 3a20 t. register: │ │ │ +0028e820: 736f 636b 6574 5f66 696c 655f 6578 6973 socket_file_exis │ │ │ +0028e830: 7473 0a20 2020 2063 6861 6e67 6564 5f77 ts. changed_w │ │ │ +0028e840: 6865 6e3a 2066 616c 7365 0a20 2020 2066 hen: false. f │ │ │ +0028e850: 6169 6c65 645f 7768 656e 3a20 736f 636b ailed_when: sock │ │ │ +0028e860: 6574 5f66 696c 655f 6578 6973 7473 2e72 et_file_exists.r │ │ │ +0028e870: 6320 6e6f 7420 696e 205b 302c 2031 5d0a c not in [0, 1]. │ │ │ +0028e880: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20 check_mode: │ │ │ +0028e890: 6661 6c73 650a 0a20 202d 206e 616d 653a false.. - name: │ │ │ +0028e8a0: 2054 6865 2043 6872 6f6e 7964 2073 6572 The Chronyd ser │ │ │ +0028e8b0: 7669 6365 2069 7320 6469 7361 626c 6564 vice is disabled │ │ │ +0028e8c0: 202d 2044 6973 6162 6c65 2053 6f63 6b65 - Disable Socke │ │ │ +0028e8d0: 7420 6368 726f 6e79 0a20 2020 2061 6e73 t chrony. ans │ │ │ +0028e8e0: 6962 6c65 2e62 7569 6c74 696e 2e73 7973 ible.builtin.sys │ │ │ +0028e8f0: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65 temd:. name │ │ │ +0028e900: 3a20 6368 726f 6e79 2e73 6f63 6b65 740a : chrony.socket. │ │ │ +0028e910: 2020 2020 2020 656e 6162 6c65 643a 2066 enabled: f │ │ │ +0028e920: 616c 7365 0a20 2020 2020 2073 7461 7465 alse. state │ │ │ +0028e930: 3a20 7374 6f70 7065 640a 2020 2020 2020 : stopped. │ │ │ +0028e940: 6d61 736b 6564 3a20 7472 7565 0a20 2020 masked: true. │ │ │ +0028e950: 2077 6865 6e3a 2073 6f63 6b65 745f 6669 when: socket_fi │ │ │ +0028e960: 6c65 5f65 7869 7374 732e 7374 646f 7574 le_exists.stdout │ │ │ +0028e970: 5f6c 696e 6573 2069 7320 7365 6172 6368 _lines is search │ │ │ +0028e980: 2822 6368 726f 6e79 2e73 6f63 6b65 7422 ("chrony.socket" │ │ │ +0028e990: 2c20 6d75 6c74 696c 696e 653d 5472 7565 , multiline=True │ │ │ +0028e9a0: 290a 2020 7461 6773 3a0a 2020 2d20 6469 ). tags:. - di │ │ │ +0028e9b0: 7361 626c 655f 7374 7261 7465 6779 0a20 sable_strategy. │ │ │ +0028e9c0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974 - low_complexit │ │ │ +0028e9d0: 790a 2020 2d20 6c6f 775f 6469 7372 7570 y. - low_disrup │ │ │ +0028e9e0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f tion. - medium_ │ │ │ +0028e9f0: 7365 7665 7269 7479 0a20 202d 206e 6f5f severity. - no_ │ │ │ +0028ea00: 7265 626f 6f74 5f6e 6565 6465 640a 2020 reboot_needed. │ │ │ +0028ea10: 2d20 7365 7276 6963 655f 6368 726f 6e79 - service_chrony │ │ │ +0028ea20: 645f 6469 7361 626c 6564 0a20 202d 2073 d_disabled. - s │ │ │ +0028ea30: 7065 6369 616c 5f73 6572 7669 6365 5f62 pecial_service_b │ │ │ +0028ea40: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d lock. when:. - │ │ │ +0028ea50: 2027 226c 696e 7578 2d62 6173 6522 2069 '"linux-base" i │ │ │ +0028ea60: 6e20 616e 7369 626c 655f 6661 6374 732e n ansible_facts. │ │ │ +0028ea70: 7061 636b 6167 6573 270a 2020 2d20 2722 packages'. - '" │ │ │ +0028ea80: 6368 726f 6e79 2220 696e 2061 6e73 6962 chrony" in ansib │ │ │ +0028ea90: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ +0028eaa0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e s'.

│ │ │ +0028eab0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +0028eb60: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +0028eb70: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +0028ec00: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +0028ec20: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +0028ec40: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +0028ec70: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +0028ec80: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +0028ec90: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include disab
│ │ │ +0028ecb0: 6c65 5f63 6872 6f6e 790a 0a63 6c61 7373  le_chrony..class
│ │ │ +0028ecc0: 2064 6973 6162 6c65 5f63 6872 6f6e 7920   disable_chrony 
│ │ │ +0028ecd0: 7b0a 2020 7365 7276 6963 6520 7b27 6368  {.  service {'ch
│ │ │ +0028ece0: 726f 6e79 273a 0a20 2020 2065 6e61 626c  rony':.    enabl
│ │ │ +0028ecf0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20  e => false,. 
│ │ │ +0028ed00: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +0028ed10: 2773 746f 7070 6564 272c 0a20 207d 0a7d  'stopped',.  }.}
│ │ │ +0028ed20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation OS │ │ │ +0028ede0: 4275 696c 6420 426c 7565 7072 696e 7420 Build Blueprint │ │ │ +0028edf0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +0028ee00: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
.
│ │ │ +0028ee40: 5b63 7573 746f 6d69 7a61 7469 6f6e 732e  [customizations.
│ │ │ +0028ee50: 7365 7276 6963 6573 5d0a 6d61 736b 6564  services].masked
│ │ │ +0028ee60: 203d 205b 2263 6872 6f6e 7922 5d0a 3c2f   = ["chrony"].
R │ │ │ -0028f760: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0028f770: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0028f780: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0028f790: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0028f7d0: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0028f7e0: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0028f7f0: 5b22 7379 7374 656d 642d 7469 6d65 7379  ["systemd-timesy
│ │ │ -0028f800: 6e63 6422 5d0a 3c2f 636f 6465 3e3c 2f70  ncd"].

Remediati │ │ │ -0028f8c0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -0028f8d0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0028f950: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0028f960: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0028f970: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0028f9b0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0028f9c0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0028f9e0: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
│ │ │ -0028fa00: 3c63 6f64 653e 696e 636c 7564 6520 6469  include di
│ │ │ -0028fa10: 7361 626c 655f 7379 7374 656d 642d 7469  sable_systemd-ti
│ │ │ -0028fa20: 6d65 7379 6e63 640a 0a63 6c61 7373 2064  mesyncd..class d
│ │ │ -0028fa30: 6973 6162 6c65 5f73 7973 7465 6d64 2d74  isable_systemd-t
│ │ │ -0028fa40: 696d 6573 796e 6364 207b 0a20 2073 6572  imesyncd {.  ser
│ │ │ -0028fa50: 7669 6365 207b 2773 7973 7465 6d64 2d74  vice {'systemd-t
│ │ │ -0028fa60: 696d 6573 796e 6364 273a 0a20 2020 2065  imesyncd':.    e
│ │ │ -0028fa70: 6e61 626c 6520 3d26 6774 3b20 6661 6c73  nable => fals
│ │ │ -0028fa80: 652c 0a20 2020 2065 6e73 7572 6520 3d26  e,.    ensure =&
│ │ │ -0028fa90: 6774 3b20 2773 746f 7070 6564 272c 0a20  gt; 'stopped',. 
│ │ │ -0028faa0: 207d 0a7d 0a3c 2f63 6f64 653e 3c2f 7072   }.}.
Remediatio │ │ │ -0028fb60: 6e20 416e 7369 626c 6520 736e 6970 7065 n Ansible snippe │ │ │ -0028fb70: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -0028fbf0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ -0028fc00: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -0028fc10: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ -0028fc50: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -0028fc60: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ -0028fc80: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -0028fc90: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ -0028fcb0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -0028fcc0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -0028fcd0: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -0028fce0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -0028fcf0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -0028fd00: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -0028fd10: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -0028fd20: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -0028fd30: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -0028fd40: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -0028fd50: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ -0028fd60: 6365 5f74 696d 6573 796e 6364 5f64 6973  ce_timesyncd_dis
│ │ │ -0028fd70: 6162 6c65 640a 0a2d 206e 616d 653a 2044  abled..- name: D
│ │ │ -0028fd80: 6973 6162 6c65 2073 7973 7465 6d64 5f74  isable systemd_t
│ │ │ -0028fd90: 696d 6573 796e 6364 2053 6572 7669 6365  imesyncd Service
│ │ │ -0028fda0: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -0028fdb0: 6365 2073 7973 7465 6d64 2d74 696d 6573  ce systemd-times
│ │ │ -0028fdc0: 796e 6364 0a20 2062 6c6f 636b 3a0a 0a20  yncd.  block:.. 
│ │ │ -0028fdd0: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -0028fde0: 2073 7973 7465 6d64 5f74 696d 6573 796e   systemd_timesyn
│ │ │ -0028fdf0: 6364 2053 6572 7669 6365 202d 2043 6f6c  cd Service - Col
│ │ │ -0028fe00: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0028fe10: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0028fe20: 0a20 2020 2020 2074 6865 2053 7973 7465  .      the Syste
│ │ │ -0028fe30: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -0028fe40: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -0028fe50: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -0028fe60: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -0028fe70: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -0028fe80: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -0028fe90: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -0028fea0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -0028feb0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -0028fec0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0028fed0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -0028fee0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -0028fef0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -0028ff00: 3a20 4469 7361 626c 6520 7379 7374 656d  : Disable system
│ │ │ -0028ff10: 645f 7469 6d65 7379 6e63 6420 5365 7276  d_timesyncd Serv
│ │ │ -0028ff20: 6963 6520 2d20 456e 7375 7265 2073 7973  ice - Ensure sys
│ │ │ -0028ff30: 7465 6d64 2d74 696d 6573 796e 6364 2e73  temd-timesyncd.s
│ │ │ -0028ff40: 6572 7669 6365 2069 730a 2020 2020 2020  ervice is.      
│ │ │ -0028ff50: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -0028ff60: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -0028ff70: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -0028ff80: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ -0028ff90: 642e 7365 7276 6963 650a 2020 2020 2020  d.service.      
│ │ │ -0028ffa0: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ -0028ffb0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ -0028ffc0: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ -0028ffd0: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ -0028ffe0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -0028fff0: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00290000: 7365 6172 6368 2822 7379 7374 656d 642d  search("systemd-
│ │ │ -00290010: 7469 6d65 7379 6e63 642e 7365 7276 6963  timesyncd.servic
│ │ │ -00290020: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -00290030: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -00290040: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -00290050: 7320 2d20 7379 7374 656d 642d 7469 6d65  s - systemd-time
│ │ │ -00290060: 7379 6e63 642e 736f 636b 6574 0a20 2020  syncd.socket.   
│ │ │ -00290070: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -00290080: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ -00290090: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ -002900a0: 2d66 696c 6573 2073 7973 7465 6d64 2d74  -files systemd-t
│ │ │ -002900b0: 696d 6573 796e 6364 2e73 6f63 6b65 740a  imesyncd.socket.
│ │ │ -002900c0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -002900d0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002900e0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002900f0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -00290100: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -00290110: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -00290120: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -00290130: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -00290140: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -00290150: 6973 6162 6c65 2073 7973 7465 6d64 5f74  isable systemd_t
│ │ │ -00290160: 696d 6573 796e 6364 2053 6572 7669 6365  imesyncd Service
│ │ │ -00290170: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -00290180: 7420 7379 7374 656d 642d 7469 6d65 7379  t systemd-timesy
│ │ │ -00290190: 6e63 640a 2020 2020 616e 7369 626c 652e  ncd.    ansible.
│ │ │ -002901a0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002901b0: 0a20 2020 2020 206e 616d 653a 2073 7973  .      name: sys
│ │ │ -002901c0: 7465 6d64 2d74 696d 6573 796e 6364 2e73  temd-timesyncd.s
│ │ │ -002901d0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002901e0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002901f0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -00290200: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -00290210: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -00290220: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -00290230: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -00290240: 7365 6172 6368 2822 7379 7374 656d 642d  search("systemd-
│ │ │ -00290250: 7469 6d65 7379 6e63 642e 736f 636b 6574  timesyncd.socket
│ │ │ -00290260: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -00290270: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -00290280: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00290290: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002902a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002902b0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002902c0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002902d0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ -002902e0: 202d 2073 6572 7669 6365 5f74 696d 6573   - service_times
│ │ │ -002902f0: 796e 6364 5f64 6973 6162 6c65 640a 2020  yncd_disabled.  
│ │ │ -00290300: 2d20 7370 6563 6961 6c5f 7365 7276 6963  - special_servic
│ │ │ -00290310: 655f 626c 6f63 6b0a 2020 7768 656e 3a0a  e_block.  when:.
│ │ │ -00290320: 2020 2d20 2722 6c69 6e75 782d 6261 7365    - '"linux-base
│ │ │ -00290330: 2220 696e 2061 6e73 6962 6c65 5f66 6163  " in ansible_fac
│ │ │ -00290340: 7473 2e70 6163 6b61 6765 7327 0a20 202d  ts.packages'.  -
│ │ │ -00290350: 2027 2273 7973 7465 6d64 2d74 696d 6573   '"systemd-times
│ │ │ -00290360: 796e 6364 2220 696e 2061 6e73 6962 6c65  yncd" in ansible
│ │ │ -00290370: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0028f760: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +0028f770: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +0028f850: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0028f860: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0028f8b0: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0028f8c0: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0028f8d0: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0028f8e0: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0028f8f0: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0028f900: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0028f910: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0028f920: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0028f930: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0028f940: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0028f950: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0028f960: 2020 2d20 7365 7276 6963 655f 7469 6d65    - service_time
│ │ │ +0028f970: 7379 6e63 645f 6469 7361 626c 6564 0a0a  syncd_disabled..
│ │ │ +0028f980: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028f990: 7379 7374 656d 645f 7469 6d65 7379 6e63  systemd_timesync
│ │ │ +0028f9a0: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +0028f9b0: 626c 6520 7365 7276 6963 6520 7379 7374  ble service syst
│ │ │ +0028f9c0: 656d 642d 7469 6d65 7379 6e63 640a 2020  emd-timesyncd.  
│ │ │ +0028f9d0: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +0028f9e0: 3a20 4469 7361 626c 6520 7379 7374 656d  : Disable system
│ │ │ +0028f9f0: 645f 7469 6d65 7379 6e63 6420 5365 7276  d_timesyncd Serv
│ │ │ +0028fa00: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +0028fa10: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +0028fa20: 7265 7365 6e74 2069 6e0a 2020 2020 2020  resent in.      
│ │ │ +0028fa30: 7468 6520 5379 7374 656d 0a20 2020 2061  the System.    a
│ │ │ +0028fa40: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +0028fa50: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +0028fa60: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +0028fa70: 696c 6573 202d 2d74 7970 6520 7365 7276  iles --type serv
│ │ │ +0028fa80: 6963 650a 2020 2020 7265 6769 7374 6572  ice.    register
│ │ │ +0028fa90: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +0028faa0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ +0028fab0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ +0028fac0: 6c65 645f 7768 656e 3a20 7365 7276 6963  led_when: servic
│ │ │ +0028fad0: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ +0028fae0: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ +0028faf0: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ +0028fb00: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +0028fb10: 6c65 2073 7973 7465 6d64 5f74 696d 6573  le systemd_times
│ │ │ +0028fb20: 796e 6364 2053 6572 7669 6365 202d 2045  yncd Service - E
│ │ │ +0028fb30: 6e73 7572 6520 7379 7374 656d 642d 7469  nsure systemd-ti
│ │ │ +0028fb40: 6d65 7379 6e63 642e 7365 7276 6963 6520  mesyncd.service 
│ │ │ +0028fb50: 6973 0a20 2020 2020 204d 6173 6b65 640a  is.      Masked.
│ │ │ +0028fb60: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +0028fb70: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +0028fb80: 2020 206e 616d 653a 2073 7973 7465 6d64     name: systemd
│ │ │ +0028fb90: 2d74 696d 6573 796e 6364 2e73 6572 7669  -timesyncd.servi
│ │ │ +0028fba0: 6365 0a20 2020 2020 2073 7461 7465 3a20  ce.      state: 
│ │ │ +0028fbb0: 7374 6f70 7065 640a 2020 2020 2020 656e  stopped.      en
│ │ │ +0028fbc0: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +0028fbd0: 2020 206d 6173 6b65 643a 2074 7275 650a     masked: true.
│ │ │ +0028fbe0: 2020 2020 7768 656e 3a20 7365 7276 6963      when: servic
│ │ │ +0028fbf0: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0028fc00: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0028fc10: 2273 7973 7465 6d64 2d74 696d 6573 796e  "systemd-timesyn
│ │ │ +0028fc20: 6364 2e73 6572 7669 6365 222c 206d 756c  cd.service", mul
│ │ │ +0028fc30: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +0028fc40: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +0028fc50: 6b65 7420 4578 6973 7473 202d 2073 7973  ket Exists - sys
│ │ │ +0028fc60: 7465 6d64 2d74 696d 6573 796e 6364 2e73  temd-timesyncd.s
│ │ │ +0028fc70: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ +0028fc80: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ +0028fc90: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ +0028fca0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ +0028fcb0: 7379 7374 656d 642d 7469 6d65 7379 6e63  systemd-timesync
│ │ │ +0028fcc0: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +0028fcd0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +0028fce0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +0028fcf0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +0028fd00: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +0028fd10: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0028fd20: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +0028fd30: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +0028fd40: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +0028fd50: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +0028fd60: 7379 7374 656d 645f 7469 6d65 7379 6e63  systemd_timesync
│ │ │ +0028fd70: 6420 5365 7276 6963 6520 2d20 4469 7361  d Service - Disa
│ │ │ +0028fd80: 626c 6520 536f 636b 6574 2073 7973 7465  ble Socket syste
│ │ │ +0028fd90: 6d64 2d74 696d 6573 796e 6364 0a20 2020  md-timesyncd.   
│ │ │ +0028fda0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +0028fdb0: 2e73 7973 7465 6d64 3a0a 2020 2020 2020  .systemd:.      
│ │ │ +0028fdc0: 6e61 6d65 3a20 7379 7374 656d 642d 7469  name: systemd-ti
│ │ │ +0028fdd0: 6d65 7379 6e63 642e 736f 636b 6574 0a20  mesyncd.socket. 
│ │ │ +0028fde0: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +0028fdf0: 6c73 650a 2020 2020 2020 7374 6174 653a  lse.      state:
│ │ │ +0028fe00: 2073 746f 7070 6564 0a20 2020 2020 206d   stopped.      m
│ │ │ +0028fe10: 6173 6b65 643a 2074 7275 650a 2020 2020  asked: true.    
│ │ │ +0028fe20: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ +0028fe30: 655f 6578 6973 7473 2e73 7464 6f75 745f  e_exists.stdout_
│ │ │ +0028fe40: 6c69 6e65 7320 6973 2073 6561 7263 6828  lines is search(
│ │ │ +0028fe50: 2273 7973 7465 6d64 2d74 696d 6573 796e  "systemd-timesyn
│ │ │ +0028fe60: 6364 2e73 6f63 6b65 7422 2c20 6d75 6c74  cd.socket", mult
│ │ │ +0028fe70: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +0028fe80: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +0028fe90: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +0028fea0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +0028feb0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +0028fec0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ +0028fed0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ +0028fee0: 5f6e 6565 6465 640a 2020 2d20 7365 7276  _needed.  - serv
│ │ │ +0028fef0: 6963 655f 7469 6d65 7379 6e63 645f 6469  ice_timesyncd_di
│ │ │ +0028ff00: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ +0028ff10: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ +0028ff20: 0a20 2077 6865 6e3a 0a20 202d 2027 226c  .  when:.  - '"l
│ │ │ +0028ff30: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ +0028ff40: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ +0028ff50: 6167 6573 270a 2020 2d20 2722 7379 7374  ages'.  - '"syst
│ │ │ +0028ff60: 656d 642d 7469 6d65 7379 6e63 6422 2069  emd-timesyncd" i
│ │ │ +0028ff70: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +0028ff80: 7061 636b 6167 6573 270a 3c2f 636f 6465  packages'.
Remed │ │ │ +00290040: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +00290050: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +0028f830: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0028f840: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0028f880: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0028f890: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +002900e0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002900f0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00290110: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00290130: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00290140: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ +00290180: 7072 653e 3c63 6f64 653e 696e 636c 7564 pre>includ │ │ │ +00290190: 6520 6469 7361 626c 655f 7379 7374 656d e disable_system │ │ │ +002901a0: 642d 7469 6d65 7379 6e63 640a 0a63 6c61 d-timesyncd..cla │ │ │ +002901b0: 7373 2064 6973 6162 6c65 5f73 7973 7465 ss disable_syste │ │ │ +002901c0: 6d64 2d74 696d 6573 796e 6364 207b 0a20 md-timesyncd {. │ │ │ +002901d0: 2073 6572 7669 6365 207b 2773 7973 7465 service {'syste │ │ │ +002901e0: 6d64 2d74 696d 6573 796e 6364 273a 0a20 md-timesyncd':. │ │ │ +002901f0: 2020 2065 6e61 626c 6520 3d26 6774 3b20 enable => │ │ │ +00290200: 6661 6c73 652c 0a20 2020 2065 6e73 7572 false,. ensur │ │ │ +00290210: 6520 3d26 6774 3b20 2773 746f 7070 6564 e => 'stopped │ │ │ +00290220: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ +00290230: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ +002902e0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ +002902f0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ +00290300: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ +00290350: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ +00290360: 5d0a 6d61 736b 6564 203d 205b 2273 7973  ].masked = ["sys
│ │ │ +00290370: 7465 6d64 2d74 696d 6573 796e 6364 225d  temd-timesyncd"]
│ │ │  00290380: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
< │ │ │ 002903a0: 2f74 723e 3c2f 7462 6f64 793e 3c2f 7461 /tr>Remedi │ │ │ -002979d0: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002979e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002979f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
│ │ │ -00297a90: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -00297ab0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -00297ae0: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -00297a70: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -00297a80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -00297aa0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -00297ac0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -00297ad0: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -00297b10: 7072 653e 3c63 6f64 653e 0a69 6e63 6c75 pre>.inclu │ │ │ -00297b20: 6465 2072 656d 6f76 655f 7869 6e65 7464 de remove_xinetd │ │ │ -00297b30: 0a0a 636c 6173 7320 7265 6d6f 7665 5f78 ..class remove_x │ │ │ -00297b40: 696e 6574 6420 7b0a 2020 7061 636b 6167 inetd {. packag │ │ │ -00297b50: 6520 7b20 2778 696e 6574 6427 3a0a 2020 e { 'xinetd':. │ │ │ -00297b60: 2020 656e 7375 7265 203d 2667 743b 2027 ensure => ' │ │ │ -00297b70: 7075 7267 6564 272c 0a20 207d 0a7d 0a3c purged',. }.}.< │ │ │ -00297b80: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469 /code> │ │ │ -00297c30: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ -00297c40: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ -00297c50: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -00297d20: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -00297d30: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ -00297d90: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ -00297da0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ -00297db0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ -00297dc0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ -00297dd0: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00297de0: 3628 6129 0a20 202d 204e 4953 542d 3830  6(a).  - NIST-80
│ │ │ -00297df0: 302d 3533 2d43 4d2d 3728 6129 0a20 202d  0-53-CM-7(a).  -
│ │ │ -00297e00: 204e 4953 542d 3830 302d 3533 2d43 4d2d   NIST-800-53-CM-
│ │ │ -00297e10: 3728 6229 0a20 202d 2050 4349 2d44 5353  7(b).  - PCI-DSS
│ │ │ -00297e20: 7634 2d32 2e32 0a20 202d 2050 4349 2d44  v4-2.2.  - PCI-D
│ │ │ -00297e30: 5353 7634 2d32 2e32 2e34 0a20 202d 2064  SSv4-2.2.4.  - d
│ │ │ -00297e40: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -00297e50: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -00297e60: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -00297e70: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -00297e80: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -00297e90: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -00297ea0: 7061 636b 6167 655f 7869 6e65 7464 5f72  package_xinetd_r
│ │ │ -00297eb0: 656d 6f76 6564 0a0a 2d20 6e61 6d65 3a20  emoved..- name: 
│ │ │ -00297ec0: 2755 6e69 6e73 7461 6c6c 2078 696e 6574  'Uninstall xinet
│ │ │ -00297ed0: 6420 5061 636b 6167 653a 2045 6e73 7572  d Package: Ensur
│ │ │ -00297ee0: 6520 7869 6e65 7464 2069 7320 7265 6d6f  e xinetd is remo
│ │ │ -00297ef0: 7665 6427 0a20 2061 6e73 6962 6c65 2e62  ved'.  ansible.b
│ │ │ -00297f00: 7569 6c74 696e 2e70 6163 6b61 6765 3a0a  uiltin.package:.
│ │ │ -00297f10: 2020 2020 6e61 6d65 3a20 7869 6e65 7464      name: xinetd
│ │ │ -00297f20: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -00297f30: 6e74 0a20 2077 6865 6e3a 2027 226c 696e  nt.  when: '"lin
│ │ │ -00297f40: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ -00297f50: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ -00297f60: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ -00297f70: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -00297f80: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -00297f90: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -00297fa0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -00297fb0: 2862 290a 2020 2d20 5043 492d 4453 5376  (b).  - PCI-DSSv
│ │ │ -00297fc0: 342d 322e 320a 2020 2d20 5043 492d 4453  4-2.2.  - PCI-DS
│ │ │ -00297fd0: 5376 342d 322e 322e 340a 2020 2d20 6469  Sv4-2.2.4.  - di
│ │ │ -00297fe0: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ -00297ff0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ -00298000: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ -00298010: 7469 6f6e 0a20 202d 206c 6f77 5f73 6576  tion.  - low_sev
│ │ │ -00298020: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -00298030: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -00298040: 6163 6b61 6765 5f78 696e 6574 645f 7265  ackage_xinetd_re
│ │ │ -00298050: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


low
Disru │ │ │ -00297d00: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -00297d10: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -00297d50: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ -00297d60: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Comp │ │ │ +00297a70: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +00297a80: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +00297aa0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +00297ac0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +00297ad0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +00297b10: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +00297b20: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +00297b30: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +00297b40: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +00297b50: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +00297b60: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +00297b70: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +00297b80: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +00297b90: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +00297ba0: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +00297bb0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +00297bc0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +00297bd0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +00297be0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +00297bf0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +00297c00: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +00297c10: 2020 2d20 6c6f 775f 7365 7665 7269 7479    - low_severity
│ │ │ +00297c20: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +00297c30: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ +00297c40: 655f 7869 6e65 7464 5f72 656d 6f76 6564  e_xinetd_removed
│ │ │ +00297c50: 0a0a 2d20 6e61 6d65 3a20 2755 6e69 6e73  ..- name: 'Unins
│ │ │ +00297c60: 7461 6c6c 2078 696e 6574 6420 5061 636b  tall xinetd Pack
│ │ │ +00297c70: 6167 653a 2045 6e73 7572 6520 7869 6e65  age: Ensure xine
│ │ │ +00297c80: 7464 2069 7320 7265 6d6f 7665 6427 0a20  td is removed'. 
│ │ │ +00297c90: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00297ca0: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +00297cb0: 6d65 3a20 7869 6e65 7464 0a20 2020 2073  me: xinetd.    s
│ │ │ +00297cc0: 7461 7465 3a20 6162 7365 6e74 0a20 2077  tate: absent.  w
│ │ │ +00297cd0: 6865 6e3a 2027 226c 696e 7578 2d62 6173  hen: '"linux-bas
│ │ │ +00297ce0: 6522 2069 6e20 616e 7369 626c 655f 6661  e" in ansible_fa
│ │ │ +00297cf0: 6374 732e 7061 636b 6167 6573 270a 2020  cts.packages'.  
│ │ │ +00297d00: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ +00297d10: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ +00297d20: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +00297d30: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ +00297d40: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ +00297d50: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ +00297d60: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ +00297d70: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ +00297d80: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +00297d90: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +00297da0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +00297db0: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +00297dc0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00297dd0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ +00297de0: 5f78 696e 6574 645f 7265 6d6f 7665 640a  _xinetd_removed.
│ │ │ +00297df0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +00297eb0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +00297ec0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +00297f90: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +00297fa0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
.include remove
│ │ │ +00298000: 5f78 696e 6574 640a 0a63 6c61 7373 2072  _xinetd..class r
│ │ │ +00298010: 656d 6f76 655f 7869 6e65 7464 207b 0a20  emove_xinetd {. 
│ │ │ +00298020: 2070 6163 6b61 6765 207b 2027 7869 6e65   package { 'xine
│ │ │ +00298030: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ +00298040: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +00298050: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Reme │ │ │ -002994e0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -002994f0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -00299500: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ -00299550: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -00299560: 6573 5d0a 6d61 736b 6564 203d 205b 2278 es].masked = ["x │ │ │ -00299570: 696e 6574 6422 5d0a 3c2f 636f 6465 3e3c inetd"].< │ │ │ -00299580: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c /pre>Remedia │ │ │ -00299630: 7469 6f6e 2050 7570 7065 7420 736e 6970 tion Puppet snip │ │ │ -00299640: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -00299650: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -00299660: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -00299670: 7365 2220 6964 3d22 6964 3130 3837 223e se" id="id1087"> │ │ │ -00299680: 3c74 6162 6c65 2063 6c61 7373 3d22 7461

low
Disru │ │ │ +00297f70: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +00297f80: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +00297fc0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +00297fd0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ -002996f0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ -00299710: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ -00299740: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy: │ │ │ -00299760: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072
Comple │ │ │ -002996d0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ -002996e0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ -00299720: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ -00299730: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
enable
include │ │ │ -00299780: 6469 7361 626c 655f 7869 6e65 7464 0a0a disable_xinetd.. │ │ │ -00299790: 636c 6173 7320 6469 7361 626c 655f 7869 class disable_xi │ │ │ -002997a0: 6e65 7464 207b 0a20 2073 6572 7669 6365 netd {. service │ │ │ -002997b0: 207b 2778 696e 6574 6427 3a0a 2020 2020 {'xinetd':. │ │ │ -002997c0: 656e 6162 6c65 203d 2667 743b 2066 616c enable => fal │ │ │ -002997d0: 7365 2c0a 2020 2020 656e 7375 7265 203d se,. ensure = │ │ │ -002997e0: 2667 743b 2027 7374 6f70 7065 6427 2c0a > 'stopped',. │ │ │ -002997f0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 }.}.

Remediati │ │ │ -002998b0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002998c0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -00299900: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -00299910: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -00299920: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -00299930: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -00299940: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -00299950: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -00299960: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002999a0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002999b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002999d0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002999e0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -00299a00: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -00299a10: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -00299a20: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -00299a30: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -00299a40: 6773 3a0a 2020 2d20 4e49 5354 2d38 3030 gs:. - NIST-800 │ │ │ -00299a50: 2d31 3731 2d33 2e34 2e37 0a20 202d 204e -171-3.4.7. - N │ │ │ -00299a60: 4953 542d 3830 302d 3533 2d43 4d2d 3628 IST-800-53-CM-6( │ │ │ -00299a70: 6129 0a20 202d 204e 4953 542d 3830 302d a). - NIST-800- │ │ │ -00299a80: 3533 2d43 4d2d 3728 6129 0a20 202d 204e 53-CM-7(a). - N │ │ │ -00299a90: 4953 542d 3830 302d 3533 2d43 4d2d 3728 IST-800-53-CM-7( │ │ │ -00299aa0: 6229 0a20 202d 2064 6973 6162 6c65 5f73 b). - disable_s │ │ │ -00299ab0: 7472 6174 6567 790a 2020 2d20 6c6f 775f trategy. - low_ │ │ │ -00299ac0: 636f 6d70 6c65 7869 7479 0a20 202d 206c complexity. - l │ │ │ -00299ad0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020 ow_disruption. │ │ │ -00299ae0: 2d20 6d65 6469 756d 5f73 6576 6572 6974 - medium_severit │ │ │ -00299af0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f y. - no_reboot_ │ │ │ -00299b00: 6e65 6564 6564 0a20 202d 2073 6572 7669 needed. - servi │ │ │ -00299b10: 6365 5f78 696e 6574 645f 6469 7361 626c ce_xinetd_disabl │ │ │ -00299b20: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361 ed..- name: Disa │ │ │ -00299b30: 626c 6520 7869 6e65 7464 2053 6572 7669 ble xinetd Servi │ │ │ -00299b40: 6365 202d 2044 6973 6162 6c65 2073 6572 ce - Disable ser │ │ │ -00299b50: 7669 6365 2078 696e 6574 640a 2020 626c vice xinetd. bl │ │ │ -00299b60: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 ock:.. - name: │ │ │ -00299b70: 4469 7361 626c 6520 7869 6e65 7464 2053 Disable xinetd S │ │ │ -00299b80: 6572 7669 6365 202d 2043 6f6c 6c65 6374 ervice - Collect │ │ │ -00299b90: 2073 7973 7465 6d64 2053 6572 7669 6365 systemd Service │ │ │ -00299ba0: 7320 5072 6573 656e 7420 696e 2074 6865 s Present in the │ │ │ -00299bb0: 2053 7973 7465 6d0a 2020 2020 616e 7369 System. ansi │ │ │ -00299bc0: 626c 652e 6275 696c 7469 6e2e 636f 6d6d ble.builtin.comm │ │ │ -00299bd0: 616e 643a 2073 7973 7465 6d63 746c 202d and: systemctl - │ │ │ -00299be0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65 q list-unit-file │ │ │ -00299bf0: 7320 2d2d 7479 7065 2073 6572 7669 6365 s --type service │ │ │ -00299c00: 0a20 2020 2072 6567 6973 7465 723a 2073 . register: s │ │ │ -00299c10: 6572 7669 6365 5f65 7869 7374 730a 2020 ervice_exists. │ │ │ -00299c20: 2020 6368 616e 6765 645f 7768 656e 3a20 changed_when: │ │ │ -00299c30: 6661 6c73 650a 2020 2020 6661 696c 6564 false. failed │ │ │ -00299c40: 5f77 6865 6e3a 2073 6572 7669 6365 5f65 _when: service_e │ │ │ -00299c50: 7869 7374 732e 7263 206e 6f74 2069 6e20 xists.rc not in │ │ │ -00299c60: 5b30 2c20 315d 0a20 2020 2063 6865 636b [0, 1]. check │ │ │ -00299c70: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020 _mode: false.. │ │ │ -00299c80: 2d20 6e61 6d65 3a20 4469 7361 626c 6520 - name: Disable │ │ │ -00299c90: 7869 6e65 7464 2053 6572 7669 6365 202d xinetd Service - │ │ │ -00299ca0: 2045 6e73 7572 6520 7869 6e65 7464 2e73 Ensure xinetd.s │ │ │ -00299cb0: 6572 7669 6365 2069 7320 4d61 736b 6564 ervice is Masked │ │ │ -00299cc0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569 . ansible.bui │ │ │ -00299cd0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020 ltin.systemd:. │ │ │ -00299ce0: 2020 2020 6e61 6d65 3a20 7869 6e65 7464 name: xinetd │ │ │ -00299cf0: 2e73 6572 7669 6365 0a20 2020 2020 2073 .service. s │ │ │ -00299d00: 7461 7465 3a20 7374 6f70 7065 640a 2020 tate: stopped. │ │ │ -00299d10: 2020 2020 656e 6162 6c65 643a 2066 616c enabled: fal │ │ │ -00299d20: 7365 0a20 2020 2020 206d 6173 6b65 643a se. masked: │ │ │ -00299d30: 2074 7275 650a 2020 2020 7768 656e 3a20 true. when: │ │ │ -00299d40: 7365 7276 6963 655f 6578 6973 7473 2e73 service_exists.s │ │ │ -00299d50: 7464 6f75 745f 6c69 6e65 7320 6973 2073 tdout_lines is s │ │ │ -00299d60: 6561 7263 6828 2278 696e 6574 642e 7365 earch("xinetd.se │ │ │ -00299d70: 7276 6963 6522 2c20 6d75 6c74 696c 696e rvice", multilin │ │ │ -00299d80: 653d 5472 7565 290a 0a20 202d 206e 616d e=True).. - nam │ │ │ -00299d90: 653a 2055 6e69 7420 536f 636b 6574 2045 e: Unit Socket E │ │ │ -00299da0: 7869 7374 7320 2d20 7869 6e65 7464 2e73 xists - xinetd.s │ │ │ -00299db0: 6f63 6b65 740a 2020 2020 616e 7369 626c ocket. ansibl │ │ │ -00299dc0: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -00299dd0: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -00299de0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -00299df0: 7869 6e65 7464 2e73 6f63 6b65 740a 2020 xinetd.socket. │ │ │ -00299e00: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -00299e10: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -00299e20: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -00299e30: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -00299e40: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -00299e50: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -00299e60: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -00299e70: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -00299e80: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -00299e90: 6162 6c65 2078 696e 6574 6420 5365 7276 able xinetd Serv │ │ │ -00299ea0: 6963 6520 2d20 4469 7361 626c 6520 536f ice - Disable So │ │ │ -00299eb0: 636b 6574 2078 696e 6574 640a 2020 2020 cket xinetd. │ │ │ -00299ec0: 616e 7369 626c 652e 6275 696c 7469 6e2e ansible.builtin. │ │ │ -00299ed0: 7379 7374 656d 643a 0a20 2020 2020 206e systemd:. n │ │ │ -00299ee0: 616d 653a 2078 696e 6574 642e 736f 636b ame: xinetd.sock │ │ │ -00299ef0: 6574 0a20 2020 2020 2065 6e61 626c 6564 et. enabled │ │ │ -00299f00: 3a20 6661 6c73 650a 2020 2020 2020 7374 : false. st │ │ │ -00299f10: 6174 653a 2073 746f 7070 6564 0a20 2020 ate: stopped. │ │ │ -00299f20: 2020 206d 6173 6b65 643a 2074 7275 650a masked: true. │ │ │ -00299f30: 2020 2020 7768 656e 3a20 736f 636b 6574 when: socket │ │ │ -00299f40: 5f66 696c 655f 6578 6973 7473 2e73 7464 _file_exists.std │ │ │ -00299f50: 6f75 745f 6c69 6e65 7320 6973 2073 6561 out_lines is sea │ │ │ -00299f60: 7263 6828 2278 696e 6574 642e 736f 636b rch("xinetd.sock │ │ │ -00299f70: 6574 222c 206d 756c 7469 6c69 6e65 3d54 et", multiline=T │ │ │ -00299f80: 7275 6529 0a20 2074 6167 733a 0a20 202d rue). tags:. - │ │ │ -00299f90: 204e 4953 542d 3830 302d 3137 312d 332e NIST-800-171-3. │ │ │ -00299fa0: 342e 370a 2020 2d20 4e49 5354 2d38 3030 4.7. - NIST-800 │ │ │ -00299fb0: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -00299fc0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37 NIST-800-53-CM-7 │ │ │ -00299fd0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -00299fe0: 2d35 332d 434d 2d37 2862 290a 2020 2d20 -53-CM-7(b). - │ │ │ -00299ff0: 6469 7361 626c 655f 7374 7261 7465 6779 disable_strategy │ │ │ -0029a000: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578 . - low_complex │ │ │ -0029a010: 6974 790a 2020 2d20 6c6f 775f 6469 7372 ity. - low_disr │ │ │ -0029a020: 7570 7469 6f6e 0a20 202d 206d 6564 6975 uption. - mediu │ │ │ -0029a030: 6d5f 7365 7665 7269 7479 0a20 202d 206e m_severity. - n │ │ │ -0029a040: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a o_reboot_needed. │ │ │ -0029a050: 2020 2d20 7365 7276 6963 655f 7869 6e65 - service_xine │ │ │ -0029a060: 7464 5f64 6973 6162 6c65 640a 2020 2d20 td_disabled. - │ │ │ -0029a070: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -0029a080: 626c 6f63 6b0a 2020 7768 656e 3a20 2722 block. when: '" │ │ │ -0029a090: 6c69 6e75 782d 6261 7365 2220 696e 2061 linux-base" in a │ │ │ -0029a0a0: 6e73 6962 6c65 5f66 6163 7473 2e70 6163 nsible_facts.pac │ │ │ -0029a0b0: 6b61 6765 7327 0a3c 2f63 6f64 653e 3c2f kages'.< │ │ │ +00299500: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002995a0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002995f0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +00299630: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +00299640: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +00299650: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +00299660: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +00299670: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +00299680: 542d 3830 302d 3137 312d 332e 342e 370a  T-800-171-3.4.7.
│ │ │ +00299690: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002996a0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002996b0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +002996c0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002996d0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +002996e0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002996f0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +00299700: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +00299710: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365  on.  - medium_se
│ │ │ +00299720: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +00299730: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +00299740: 7365 7276 6963 655f 7869 6e65 7464 5f64  service_xinetd_d
│ │ │ +00299750: 6973 6162 6c65 640a 0a2d 206e 616d 653a  isabled..- name:
│ │ │ +00299760: 2044 6973 6162 6c65 2078 696e 6574 6420   Disable xinetd 
│ │ │ +00299770: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ +00299780: 6520 7365 7276 6963 6520 7869 6e65 7464  e service xinetd
│ │ │ +00299790: 0a20 2062 6c6f 636b 3a0a 0a20 202d 206e  .  block:..  - n
│ │ │ +002997a0: 616d 653a 2044 6973 6162 6c65 2078 696e  ame: Disable xin
│ │ │ +002997b0: 6574 6420 5365 7276 6963 6520 2d20 436f  etd Service - Co
│ │ │ +002997c0: 6c6c 6563 7420 7379 7374 656d 6420 5365  llect systemd Se
│ │ │ +002997d0: 7276 6963 6573 2050 7265 7365 6e74 2069  rvices Present i
│ │ │ +002997e0: 6e20 7468 6520 5379 7374 656d 0a20 2020  n the System.   
│ │ │ +002997f0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +00299800: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +00299810: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +00299820: 2d66 696c 6573 202d 2d74 7970 6520 7365  -files --type se
│ │ │ +00299830: 7276 6963 650a 2020 2020 7265 6769 7374  rvice.    regist
│ │ │ +00299840: 6572 3a20 7365 7276 6963 655f 6578 6973  er: service_exis
│ │ │ +00299850: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ +00299860: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ +00299870: 6169 6c65 645f 7768 656e 3a20 7365 7276  ailed_when: serv
│ │ │ +00299880: 6963 655f 6578 6973 7473 2e72 6320 6e6f  ice_exists.rc no
│ │ │ +00299890: 7420 696e 205b 302c 2031 5d0a 2020 2020  t in [0, 1].    
│ │ │ +002998a0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73  check_mode: fals
│ │ │ +002998b0: 650a 0a20 202d 206e 616d 653a 2044 6973  e..  - name: Dis
│ │ │ +002998c0: 6162 6c65 2078 696e 6574 6420 5365 7276  able xinetd Serv
│ │ │ +002998d0: 6963 6520 2d20 456e 7375 7265 2078 696e  ice - Ensure xin
│ │ │ +002998e0: 6574 642e 7365 7276 6963 6520 6973 204d  etd.service is M
│ │ │ +002998f0: 6173 6b65 640a 2020 2020 616e 7369 626c  asked.    ansibl
│ │ │ +00299900: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ +00299910: 643a 0a20 2020 2020 206e 616d 653a 2078  d:.      name: x
│ │ │ +00299920: 696e 6574 642e 7365 7276 6963 650a 2020  inetd.service.  
│ │ │ +00299930: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ +00299940: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ +00299950: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ +00299960: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ +00299970: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ +00299980: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ +00299990: 2069 7320 7365 6172 6368 2822 7869 6e65   is search("xine
│ │ │ +002999a0: 7464 2e73 6572 7669 6365 222c 206d 756c  td.service", mul
│ │ │ +002999b0: 7469 6c69 6e65 3d54 7275 6529 0a0a 2020  tiline=True)..  
│ │ │ +002999c0: 2d20 6e61 6d65 3a20 556e 6974 2053 6f63  - name: Unit Soc
│ │ │ +002999d0: 6b65 7420 4578 6973 7473 202d 2078 696e  ket Exists - xin
│ │ │ +002999e0: 6574 642e 736f 636b 6574 0a20 2020 2061  etd.socket.    a
│ │ │ +002999f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ +00299a00: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ +00299a10: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ +00299a20: 696c 6573 2078 696e 6574 642e 736f 636b  iles xinetd.sock
│ │ │ +00299a30: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +00299a40: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +00299a50: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +00299a60: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +00299a70: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +00299a80: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +00299a90: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +00299aa0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +00299ab0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +00299ac0: 3a20 4469 7361 626c 6520 7869 6e65 7464  : Disable xinetd
│ │ │ +00299ad0: 2053 6572 7669 6365 202d 2044 6973 6162   Service - Disab
│ │ │ +00299ae0: 6c65 2053 6f63 6b65 7420 7869 6e65 7464  le Socket xinetd
│ │ │ +00299af0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +00299b00: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +00299b10: 2020 2020 6e61 6d65 3a20 7869 6e65 7464      name: xinetd
│ │ │ +00299b20: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +00299b30: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +00299b40: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +00299b50: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +00299b60: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +00299b70: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +00299b80: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +00299b90: 7320 7365 6172 6368 2822 7869 6e65 7464  s search("xinetd
│ │ │ +00299ba0: 2e73 6f63 6b65 7422 2c20 6d75 6c74 696c  .socket", multil
│ │ │ +00299bb0: 696e 653d 5472 7565 290a 2020 7461 6773  ine=True).  tags
│ │ │ +00299bc0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d31  :.  - NIST-800-1
│ │ │ +00299bd0: 3731 2d33 2e34 2e37 0a20 202d 204e 4953  71-3.4.7.  - NIS
│ │ │ +00299be0: 542d 3830 302d 3533 2d43 4d2d 3628 6129  T-800-53-CM-6(a)
│ │ │ +00299bf0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +00299c00: 2d43 4d2d 3728 6129 0a20 202d 204e 4953  -CM-7(a).  - NIS
│ │ │ +00299c10: 542d 3830 302d 3533 2d43 4d2d 3728 6229  T-800-53-CM-7(b)
│ │ │ +00299c20: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ +00299c30: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ +00299c40: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +00299c50: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +00299c60: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ +00299c70: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +00299c80: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +00299c90: 5f78 696e 6574 645f 6469 7361 626c 6564  _xinetd_disabled
│ │ │ +00299ca0: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ +00299cb0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ +00299cc0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ +00299cd0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +00299ce0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +00299d00: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +00299d10: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +00299d20: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +00299d30: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +00299d40: 6431 3038 3722 2074 6162 696e 6465 783d d1087" tabindex= │ │ │ +00299d50: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +00299d60: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +00299d70: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +00299d80: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +00299d90: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +00299da0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ +00299db0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +00299dc0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
Co │ │ │ +00299580: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002995b0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002995d0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002995e0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00299600: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +00299610: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
low< │ │ │ +00299e60: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +00299eb0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ +00299e40: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +00299e70: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +00299e90: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +00299ea0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +00299ec0: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ +00299ed0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ +00299ef0: 7564 6520 6469 7361 626c 655f 7869 6e65  ude disable_xine
│ │ │ +00299f00: 7464 0a0a 636c 6173 7320 6469 7361 626c  td..class disabl
│ │ │ +00299f10: 655f 7869 6e65 7464 207b 0a20 2073 6572  e_xinetd {.  ser
│ │ │ +00299f20: 7669 6365 207b 2778 696e 6574 6427 3a0a  vice {'xinetd':.
│ │ │ +00299f30: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ +00299f40: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ +00299f50: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ +00299f60: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +0029a020: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +0029a030: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +0029a040: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[custom │ │ │ +0029a090: 697a 6174 696f 6e73 2e73 6572 7669 6365 izations.service │ │ │ +0029a0a0: 735d 0a6d 6173 6b65 6420 3d20 5b22 7869 s].masked = ["xi │ │ │ +0029a0b0: 6e65 7464 225d 0a3c 2f63 6f64 653e 3c2f netd"].
│ │ │ 0029a0d0: 3c2f 7464 3e3c 2f74 723e 3c2f 7462 6f64 < │ │ │ 0029a0f0: 2f74 723e 3c74 7220 6461 7461 2d74 742d /tr>Remediatio │ │ │ -0029b6d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -0029b6e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -0029b760: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -0029b770: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -0029b790: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -0029b7a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -0029b7c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -0029b7e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -0029b810: 3c63 6f64 653e 0a69 6e63 6c75 6465 2072  .include r
│ │ │ -0029b820: 656d 6f76 655f 7970 7365 7276 0a0a 636c  emove_ypserv..cl
│ │ │ -0029b830: 6173 7320 7265 6d6f 7665 5f79 7073 6572  ass remove_ypser
│ │ │ -0029b840: 7620 7b0a 2020 7061 636b 6167 6520 7b20  v {.  package { 
│ │ │ -0029b850: 2779 7073 6572 7627 3a0a 2020 2020 656e  'ypserv':.    en
│ │ │ -0029b860: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ -0029b870: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Reme │ │ │ -0029b930: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -0029b940: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -0029b950: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -0029b9f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -0029ba40: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ -0029ba80: 616d 653a 2027 556e 696e 7374 616c 6c20  ame: 'Uninstall 
│ │ │ -0029ba90: 7970 7365 7276 2050 6163 6b61 6765 3a20  ypserv Package: 
│ │ │ -0029baa0: 456e 7375 7265 2079 7073 6572 7620 6973  Ensure ypserv is
│ │ │ -0029bab0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ -0029bac0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ -0029bad0: 6167 653a 0a20 2020 206e 616d 653a 2079  age:.    name: y
│ │ │ -0029bae0: 7073 6572 760a 2020 2020 7374 6174 653a  pserv.    state:
│ │ │ -0029baf0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -0029bb00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0029bb10: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -0029bb20: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -0029bb30: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -0029bb40: 434d 2d37 2862 290a 2020 2d20 4e49 5354  CM-7(b).  - NIST
│ │ │ -0029bb50: 2d38 3030 2d35 332d 4941 2d35 2831 2928  -800-53-IA-5(1)(
│ │ │ -0029bb60: 6329 0a20 202d 2050 4349 2d44 5353 2d52  c).  - PCI-DSS-R
│ │ │ -0029bb70: 6571 2d32 2e32 2e32 0a20 202d 2050 4349  eq-2.2.2.  - PCI
│ │ │ -0029bb80: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ -0029bb90: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ -0029bba0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ -0029bbb0: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ -0029bbc0: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ -0029bbd0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0029bbe0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0029bbf0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -0029bc00: 0a20 202d 2070 6163 6b61 6765 5f79 7073  .  - package_yps
│ │ │ -0029bc10: 6572 765f 7265 6d6f 7665 640a 3c2f 636f  erv_removed.
│ │ │ +0029b760: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +0029b7f0: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0029b800: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Co │ │ │ -0029b9d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -0029ba00: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -0029ba20: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -0029ba30: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -0029ba50: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -0029ba60: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexi │ │ │ +0029b770: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029b780: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +0029b7c0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029b7d0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
- name: '
│ │ │ +0029b820: 556e 696e 7374 616c 6c20 7970 7365 7276  Uninstall ypserv
│ │ │ +0029b830: 2050 6163 6b61 6765 3a20 456e 7375 7265   Package: Ensure
│ │ │ +0029b840: 2079 7073 6572 7620 6973 2072 656d 6f76   ypserv is remov
│ │ │ +0029b850: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +0029b860: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +0029b870: 2020 206e 616d 653a 2079 7073 6572 760a     name: ypserv.
│ │ │ +0029b880: 2020 2020 7374 6174 653a 2061 6273 656e      state: absen
│ │ │ +0029b890: 740a 2020 7461 6773 3a0a 2020 2d20 4e49  t.  tags:.  - NI
│ │ │ +0029b8a0: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +0029b8b0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0029b8c0: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ +0029b8d0: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ +0029b8e0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +0029b8f0: 332d 4941 2d35 2831 2928 6329 0a20 202d  3-IA-5(1)(c).  -
│ │ │ +0029b900: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +0029b910: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0029b920: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +0029b930: 7634 2d32 2e32 2e34 0a20 202d 2064 6973  v4-2.2.4.  - dis
│ │ │ +0029b940: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +0029b950: 2d20 6869 6768 5f73 6576 6572 6974 790a  - high_severity.
│ │ │ +0029b960: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +0029b970: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +0029b980: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ +0029b990: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ +0029b9a0: 6163 6b61 6765 5f79 7073 6572 765f 7265  ackage_ypserv_re
│ │ │ +0029b9b0: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +0029ba70: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +0029ba80: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +0029bb00: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +0029bb10: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +0029bb20: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +0029bb60: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +0029bb70: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +0029bb90: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +0029bba0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +0029bbc0: 7265 6d6f 7665 5f79 7073 6572 760a 0a63  remove_ypserv..c
│ │ │ +0029bbd0: 6c61 7373 2072 656d 6f76 655f 7970 7365  lass remove_ypse
│ │ │ +0029bbe0: 7276 207b 0a20 2070 6163 6b61 6765 207b  rv {.  package {
│ │ │ +0029bbf0: 2027 7970 7365 7276 273a 0a20 2020 2065   'ypserv':.    e
│ │ │ +0029bc00: 6e73 7572 6520 3d26 6774 3b20 2770 7572  nsure => 'pur
│ │ │ +0029bc10: 6765 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ged',.  }.}.
< │ │ │ 0029bc30: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 0029bc40: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 0029bc50: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 0029bc60: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 0029bc70: 6431 3039 3222 2074 6162 696e 6465 783d d1092" tabindex= │ │ │ 0029bc80: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ @@ -171126,192 +171126,192 @@ │ │ │ 0029c750: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 0029c760: 2369 6431 3039 3422 2074 6162 696e 6465 #id1094" tabinde │ │ │ 0029c770: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 0029c780: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 0029c790: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 0029c7a0: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 0029c7b0: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -0029c7c0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -0029c7d0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -0029c7e0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -0029c7f0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -0029c830: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -0029c840: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -0029c850: 5b22 7970 7365 7276 225d 0a3c 2f63 6f64  ["ypserv"].
Reme │ │ │ -0029c910: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -0029c920: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -0029c9b0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029c9e0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029ca00: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029ca10: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029ca30: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -0029ca50: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -0029ca60: 6465 2064 6973 6162 6c65 5f79 7073 6572  de disable_ypser
│ │ │ -0029ca70: 760a 0a63 6c61 7373 2064 6973 6162 6c65  v..class disable
│ │ │ -0029ca80: 5f79 7073 6572 7620 7b0a 2020 7365 7276  _ypserv {.  serv
│ │ │ -0029ca90: 6963 6520 7b27 7970 7365 7276 273a 0a20  ice {'ypserv':. 
│ │ │ -0029caa0: 2020 2065 6e61 626c 6520 3d26 6774 3b20     enable => 
│ │ │ -0029cab0: 6661 6c73 652c 0a20 2020 2065 6e73 7572  false,.    ensur
│ │ │ -0029cac0: 6520 3d26 6774 3b20 2773 746f 7070 6564  e => 'stopped
│ │ │ -0029cad0: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -0029cae0: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -0029cb90: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -0029cba0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -0029cc30: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -0029cc40: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -0029cc60: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -0029cc80: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -0029cc90: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -0029ccd0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -0029cce0: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ -0029ccf0: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ -0029cd00: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ -0029cd10: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ -0029cd20: 2074 6167 733a 0a20 202d 2064 6973 6162   tags:.  - disab
│ │ │ -0029cd30: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -0029cd40: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -0029cd50: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -0029cd60: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -0029cd70: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -0029cd80: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ -0029cd90: 6572 7669 6365 5f79 7073 6572 765f 6469  ervice_ypserv_di
│ │ │ -0029cda0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ -0029cdb0: 4469 7361 626c 6520 7970 7365 7276 2053  Disable ypserv S
│ │ │ -0029cdc0: 6572 7669 6365 202d 2044 6973 6162 6c65  ervice - Disable
│ │ │ -0029cdd0: 2073 6572 7669 6365 2079 7073 6572 760a   service ypserv.
│ │ │ -0029cde0: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ -0029cdf0: 6d65 3a20 4469 7361 626c 6520 7970 7365  me: Disable ypse
│ │ │ -0029ce00: 7276 2053 6572 7669 6365 202d 2043 6f6c  rv Service - Col
│ │ │ -0029ce10: 6c65 6374 2073 7973 7465 6d64 2053 6572  lect systemd Ser
│ │ │ -0029ce20: 7669 6365 7320 5072 6573 656e 7420 696e  vices Present in
│ │ │ -0029ce30: 2074 6865 2053 7973 7465 6d0a 2020 2020   the System.    
│ │ │ -0029ce40: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -0029ce50: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ -0029ce60: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ -0029ce70: 6669 6c65 7320 2d2d 7479 7065 2073 6572  files --type ser
│ │ │ -0029ce80: 7669 6365 0a20 2020 2072 6567 6973 7465  vice.    registe
│ │ │ -0029ce90: 723a 2073 6572 7669 6365 5f65 7869 7374  r: service_exist
│ │ │ -0029cea0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ -0029ceb0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ -0029cec0: 696c 6564 5f77 6865 6e3a 2073 6572 7669  iled_when: servi
│ │ │ -0029ced0: 6365 5f65 7869 7374 732e 7263 206e 6f74  ce_exists.rc not
│ │ │ -0029cee0: 2069 6e20 5b30 2c20 315d 0a20 2020 2063   in [0, 1].    c
│ │ │ -0029cef0: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -0029cf00: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -0029cf10: 626c 6520 7970 7365 7276 2053 6572 7669  ble ypserv Servi
│ │ │ -0029cf20: 6365 202d 2045 6e73 7572 6520 7970 7365  ce - Ensure ypse
│ │ │ -0029cf30: 7276 2e73 6572 7669 6365 2069 7320 4d61  rv.service is Ma
│ │ │ -0029cf40: 736b 6564 0a20 2020 2061 6e73 6962 6c65  sked.    ansible
│ │ │ -0029cf50: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ -0029cf60: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ -0029cf70: 7365 7276 2e73 6572 7669 6365 0a20 2020  serv.service.   
│ │ │ -0029cf80: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -0029cf90: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -0029cfa0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -0029cfb0: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -0029cfc0: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -0029cfd0: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -0029cfe0: 6973 2073 6561 7263 6828 2279 7073 6572  is search("ypser
│ │ │ -0029cff0: 762e 7365 7276 6963 6522 2c20 6d75 6c74  v.service", mult
│ │ │ -0029d000: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -0029d010: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -0029d020: 6574 2045 7869 7374 7320 2d20 7970 7365  et Exists - ypse
│ │ │ -0029d030: 7276 2e73 6f63 6b65 740a 2020 2020 616e  rv.socket.    an
│ │ │ -0029d040: 7369 626c 652e 6275 696c 7469 6e2e 636f  sible.builtin.co
│ │ │ -0029d050: 6d6d 616e 643a 2073 7973 7465 6d63 746c  mmand: systemctl
│ │ │ -0029d060: 202d 7120 6c69 7374 2d75 6e69 742d 6669   -q list-unit-fi
│ │ │ -0029d070: 6c65 7320 7970 7365 7276 2e73 6f63 6b65  les ypserv.socke
│ │ │ -0029d080: 740a 2020 2020 7265 6769 7374 6572 3a20  t.    register: 
│ │ │ -0029d090: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -0029d0a0: 7473 0a20 2020 2063 6861 6e67 6564 5f77  ts.    changed_w
│ │ │ -0029d0b0: 6865 6e3a 2066 616c 7365 0a20 2020 2066  hen: false.    f
│ │ │ -0029d0c0: 6169 6c65 645f 7768 656e 3a20 736f 636b  ailed_when: sock
│ │ │ -0029d0d0: 6574 5f66 696c 655f 6578 6973 7473 2e72  et_file_exists.r
│ │ │ -0029d0e0: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ -0029d0f0: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ -0029d100: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ -0029d110: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ -0029d120: 5365 7276 6963 6520 2d20 4469 7361 626c  Service - Disabl
│ │ │ -0029d130: 6520 536f 636b 6574 2079 7073 6572 760a  e Socket ypserv.
│ │ │ -0029d140: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -0029d150: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ -0029d160: 2020 206e 616d 653a 2079 7073 6572 762e     name: ypserv.
│ │ │ -0029d170: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ -0029d180: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ -0029d190: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ -0029d1a0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -0029d1b0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ -0029d1c0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -0029d1d0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -0029d1e0: 2073 6561 7263 6828 2279 7073 6572 762e   search("ypserv.
│ │ │ -0029d1f0: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -0029d200: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -0029d210: 0a20 202d 2064 6973 6162 6c65 5f73 7472  .  - disable_str
│ │ │ -0029d220: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -0029d230: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -0029d240: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -0029d250: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -0029d260: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -0029d270: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ -0029d280: 5f79 7073 6572 765f 6469 7361 626c 6564  _ypserv_disabled
│ │ │ -0029d290: 0a20 202d 2073 7065 6369 616c 5f73 6572  .  - special_ser
│ │ │ -0029d2a0: 7669 6365 5f62 6c6f 636b 0a20 2077 6865  vice_block.  whe
│ │ │ -0029d2b0: 6e3a 2027 226c 696e 7578 2d62 6173 6522  n: '"linux-base"
│ │ │ -0029d2c0: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -0029d2d0: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.
< │ │ │ +0029c8b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +0029c8c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +0029c910: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +0029c920: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +0029c930: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +0029c940: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +0029c950: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +0029c960: 6469 7361 626c 655f 7374 7261 7465 6779  disable_strategy
│ │ │ +0029c970: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +0029c980: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +0029c990: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +0029c9a0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +0029c9b0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +0029c9c0: 2020 2d20 7365 7276 6963 655f 7970 7365    - service_ypse
│ │ │ +0029c9d0: 7276 5f64 6973 6162 6c65 640a 0a2d 206e  rv_disabled..- n
│ │ │ +0029c9e0: 616d 653a 2044 6973 6162 6c65 2079 7073  ame: Disable yps
│ │ │ +0029c9f0: 6572 7620 5365 7276 6963 6520 2d20 4469  erv Service - Di
│ │ │ +0029ca00: 7361 626c 6520 7365 7276 6963 6520 7970  sable service yp
│ │ │ +0029ca10: 7365 7276 0a20 2062 6c6f 636b 3a0a 0a20  serv.  block:.. 
│ │ │ +0029ca20: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +0029ca30: 2079 7073 6572 7620 5365 7276 6963 6520   ypserv Service 
│ │ │ +0029ca40: 2d20 436f 6c6c 6563 7420 7379 7374 656d  - Collect system
│ │ │ +0029ca50: 6420 5365 7276 6963 6573 2050 7265 7365  d Services Prese
│ │ │ +0029ca60: 6e74 2069 6e20 7468 6520 5379 7374 656d  nt in the System
│ │ │ +0029ca70: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +0029ca80: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 7379  ltin.command: sy
│ │ │ +0029ca90: 7374 656d 6374 6c20 2d71 206c 6973 742d  stemctl -q list-
│ │ │ +0029caa0: 756e 6974 2d66 696c 6573 202d 2d74 7970  unit-files --typ
│ │ │ +0029cab0: 6520 7365 7276 6963 650a 2020 2020 7265  e service.    re
│ │ │ +0029cac0: 6769 7374 6572 3a20 7365 7276 6963 655f  gister: service_
│ │ │ +0029cad0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ +0029cae0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +0029caf0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ +0029cb00: 7365 7276 6963 655f 6578 6973 7473 2e72  service_exists.r
│ │ │ +0029cb10: 6320 6e6f 7420 696e 205b 302c 2031 5d0a  c not in [0, 1].
│ │ │ +0029cb20: 2020 2020 6368 6563 6b5f 6d6f 6465 3a20      check_mode: 
│ │ │ +0029cb30: 6661 6c73 650a 0a20 202d 206e 616d 653a  false..  - name:
│ │ │ +0029cb40: 2044 6973 6162 6c65 2079 7073 6572 7620   Disable ypserv 
│ │ │ +0029cb50: 5365 7276 6963 6520 2d20 456e 7375 7265  Service - Ensure
│ │ │ +0029cb60: 2079 7073 6572 762e 7365 7276 6963 6520   ypserv.service 
│ │ │ +0029cb70: 6973 204d 6173 6b65 640a 2020 2020 616e  is Masked.    an
│ │ │ +0029cb80: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +0029cb90: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +0029cba0: 653a 2079 7073 6572 762e 7365 7276 6963  e: ypserv.servic
│ │ │ +0029cbb0: 650a 2020 2020 2020 7374 6174 653a 2073  e.      state: s
│ │ │ +0029cbc0: 746f 7070 6564 0a20 2020 2020 2065 6e61  topped.      ena
│ │ │ +0029cbd0: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +0029cbe0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ +0029cbf0: 2020 2077 6865 6e3a 2073 6572 7669 6365     when: service
│ │ │ +0029cc00: 5f65 7869 7374 732e 7374 646f 7574 5f6c  _exists.stdout_l
│ │ │ +0029cc10: 696e 6573 2069 7320 7365 6172 6368 2822  ines is search("
│ │ │ +0029cc20: 7970 7365 7276 2e73 6572 7669 6365 222c  ypserv.service",
│ │ │ +0029cc30: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +0029cc40: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +0029cc50: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +0029cc60: 2079 7073 6572 762e 736f 636b 6574 0a20   ypserv.socket. 
│ │ │ +0029cc70: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +0029cc80: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +0029cc90: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +0029cca0: 6974 2d66 696c 6573 2079 7073 6572 762e  it-files ypserv.
│ │ │ +0029ccb0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +0029ccc0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +0029ccd0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +0029cce0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +0029ccf0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +0029cd00: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +0029cd10: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +0029cd20: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +0029cd30: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +0029cd40: 6e61 6d65 3a20 4469 7361 626c 6520 7970  name: Disable yp
│ │ │ +0029cd50: 7365 7276 2053 6572 7669 6365 202d 2044  serv Service - D
│ │ │ +0029cd60: 6973 6162 6c65 2053 6f63 6b65 7420 7970  isable Socket yp
│ │ │ +0029cd70: 7365 7276 0a20 2020 2061 6e73 6962 6c65  serv.    ansible
│ │ │ +0029cd80: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +0029cd90: 3a0a 2020 2020 2020 6e61 6d65 3a20 7970  :.      name: yp
│ │ │ +0029cda0: 7365 7276 2e73 6f63 6b65 740a 2020 2020  serv.socket.    
│ │ │ +0029cdb0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +0029cdc0: 0a20 2020 2020 2073 7461 7465 3a20 7374  .      state: st
│ │ │ +0029cdd0: 6f70 7065 640a 2020 2020 2020 6d61 736b  opped.      mask
│ │ │ +0029cde0: 6564 3a20 7472 7565 0a20 2020 2077 6865  ed: true.    whe
│ │ │ +0029cdf0: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +0029ce00: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +0029ce10: 6573 2069 7320 7365 6172 6368 2822 7970  es is search("yp
│ │ │ +0029ce20: 7365 7276 2e73 6f63 6b65 7422 2c20 6d75  serv.socket", mu
│ │ │ +0029ce30: 6c74 696c 696e 653d 5472 7565 290a 2020  ltiline=True).  
│ │ │ +0029ce40: 7461 6773 3a0a 2020 2d20 6469 7361 626c  tags:.  - disabl
│ │ │ +0029ce50: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +0029ce60: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +0029ce70: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +0029ce80: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +0029ce90: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +0029cea0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +0029ceb0: 7276 6963 655f 7970 7365 7276 5f64 6973  rvice_ypserv_dis
│ │ │ +0029cec0: 6162 6c65 640a 2020 2d20 7370 6563 6961  abled.  - specia
│ │ │ +0029ced0: 6c5f 7365 7276 6963 655f 626c 6f63 6b0a  l_service_block.
│ │ │ +0029cee0: 2020 7768 656e 3a20 2722 6c69 6e75 782d    when: '"linux-
│ │ │ +0029cef0: 6261 7365 2220 696e 2061 6e73 6962 6c65  base" in ansible
│ │ │ +0029cf00: 5f66 6163 7473 2e70 6163 6b61 6765 7327  _facts.packages'
│ │ │ +0029cf10: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +0029cfd0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +0029cfe0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
Complexity:low
Disrup │ │ │ +0029c890: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +0029c8a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +0029c8e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +0029c8f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +0029d060: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +0029d080: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +0029d0d0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +0029d120: 5f79 7073 6572 760a 0a63 6c61 7373 2064  _ypserv..class d
│ │ │ +0029d130: 6973 6162 6c65 5f79 7073 6572 7620 7b0a  isable_ypserv {.
│ │ │ +0029d140: 2020 7365 7276 6963 6520 7b27 7970 7365    service {'ypse
│ │ │ +0029d150: 7276 273a 0a20 2020 2065 6e61 626c 6520  rv':.    enable 
│ │ │ +0029d160: 3d26 6774 3b20 6661 6c73 652c 0a20 2020  => false,.   
│ │ │ +0029d170: 2065 6e73 7572 6520 3d26 6774 3b20 2773   ensure => 's
│ │ │ +0029d180: 746f 7070 6564 272c 0a20 207d 0a7d 0a3c  topped',.  }.}.<
│ │ │ +0029d190: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +0029d240: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ +0029d250: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ +0029d260: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ +0029d2b0: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ +0029d2c0: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ +0029d2d0: 205b 2279 7073 6572 7622 5d0a 3c2f 636f   ["ypserv"].
< │ │ │ 0029d2f0: 2f64 6976 3e3c 2f74 643e 3c2f 7472 3e3c /div>< │ │ │ 0029d300: 2f74 626f 6479 3e3c 2f74 6162 6c65 3e3c /tbody>
low
Disr │ │ │ +0029d090: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +0029d0a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +0029d0e0: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +0029d0f0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ 0029d310: 2f74 643e 3c2f 7472 3e3c 7472 2064 6174 /td>Re │ │ │ -0029e260: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -0029e270: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -0029e280: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -0029e310: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -0029e320: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -0029e370: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -0029e3b0: 6e63 6c75 6465 2072 656d 6f76 655f 7273  nclude remove_rs
│ │ │ -0029e3c0: 680a 0a63 6c61 7373 2072 656d 6f76 655f  h..class remove_
│ │ │ -0029e3d0: 7273 6820 7b0a 2020 7061 636b 6167 6520  rsh {.  package 
│ │ │ -0029e3e0: 7b20 2772 7368 273a 0a20 2020 2065 6e73  { 'rsh':.    ens
│ │ │ -0029e3f0: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ -0029e400: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -0029e4c0: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -0029e4d0: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
C │ │ │ -0029e300: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -0029e330: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -0029e340: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -0029e380: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -0029e390: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Com │ │ │ -0029e560: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -0029e590: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -0029e5b0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -0029e5c0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -0029e5e0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -0029e5f0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -0029e610: 6d65 3a20 2755 6e69 6e73 7461 6c6c 2072  me: 'Uninstall r
│ │ │ -0029e620: 7368 2050 6163 6b61 6765 3a20 456e 7375  sh Package: Ensu
│ │ │ -0029e630: 7265 2072 7368 2069 7320 7265 6d6f 7665  re rsh is remove
│ │ │ -0029e640: 6427 0a20 2061 6e73 6962 6c65 2e62 7569  d'.  ansible.bui
│ │ │ -0029e650: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020  ltin.package:.  
│ │ │ -0029e660: 2020 6e61 6d65 3a20 7273 680a 2020 2020    name: rsh.    
│ │ │ -0029e670: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -0029e680: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -0029e690: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ -0029e6a0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -0029e6b0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -0029e6c0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -0029e6d0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -0029e6e0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -0029e6f0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -0029e700: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -0029e710: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ -0029e720: 7273 685f 7265 6d6f 7665 640a 2020 2d20  rsh_removed.  - 
│ │ │ -0029e730: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +0029e260: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +0029e270: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
│ │ │ +0029e310: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +0029e3b0: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +0029e3c0: 6c20 7273 6820 5061 636b 6167 653a 2045  l rsh Package: E
│ │ │ +0029e3d0: 6e73 7572 6520 7273 6820 6973 2072 656d  nsure rsh is rem
│ │ │ +0029e3e0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +0029e3f0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +0029e400: 0a20 2020 206e 616d 653a 2072 7368 0a20  .    name: rsh. 
│ │ │ +0029e410: 2020 2073 7461 7465 3a20 6162 7365 6e74     state: absent
│ │ │ +0029e420: 0a20 2074 6167 733a 0a20 202d 204e 4953  .  tags:.  - NIS
│ │ │ +0029e430: 542d 3830 302d 3137 312d 332e 312e 3133  T-800-171-3.1.13
│ │ │ +0029e440: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +0029e450: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +0029e460: 2d32 2e32 2e34 0a20 202d 2064 6973 6162  -2.2.4.  - disab
│ │ │ +0029e470: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +0029e480: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +0029e490: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +0029e4a0: 6e0a 2020 2d20 6e6f 5f72 6562 6f6f 745f  n.  - no_reboot_
│ │ │ +0029e4b0: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ +0029e4c0: 6765 5f72 7368 5f72 656d 6f76 6564 0a20  ge_rsh_removed. 
│ │ │ +0029e4d0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +0029e4e0: 6974 790a 3c2f 636f 6465 3e3c 2f70 7265  ity.
Remediation │ │ │ +0029e5a0: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ +0029e5b0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
< │ │ │ +0029e670: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +0029e680: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c
│ │ │ +0029e300: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +0029e330: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +0029e340: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +0029e380: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +0029e390: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexity │ │ │ +0029e640: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
D │ │ │ +0029e660: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:
Reboot:< │ │ │ +0029e690: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>false
S │ │ │ +0029e6b0: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:disable
<
│ │ │ +0029e6e0: 636f 6465 3e0a 696e 636c 7564 6520 7265  code>.include re
│ │ │ +0029e6f0: 6d6f 7665 5f72 7368 0a0a 636c 6173 7320  move_rsh..class 
│ │ │ +0029e700: 7265 6d6f 7665 5f72 7368 207b 0a20 2070  remove_rsh {.  p
│ │ │ +0029e710: 6163 6b61 6765 207b 2027 7273 6827 3a0a  ackage { 'rsh':.
│ │ │ +0029e720: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +0029e730: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  0029e740: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remedi │ │ │ -002a0860: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002a0870: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -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 0a69 6e63 6c75 pre>.inclu │ │ │ -002a09b0: 6465 2072 656d 6f76 655f 7461 6c6b 0a0a de remove_talk.. │ │ │ -002a09c0: 636c 6173 7320 7265 6d6f 7665 5f74 616c class remove_tal │ │ │ -002a09d0: 6b20 7b0a 2020 7061 636b 6167 6520 7b20 k {. package { │ │ │ -002a09e0: 2774 616c 6b27 3a0a 2020 2020 656e 7375 'talk':. ensu │ │ │ -002a09f0: 7265 203d 2667 743b 2027 7075 7267 6564 re => 'purged │ │ │ -002a0a00: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e ',. }.}. │ │ │ -002a0a10: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063
Remedi │ │ │ -002a0ac0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002a0ad0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002a0b60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002a0b70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002a0b90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002a0bb0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002a0bc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002a0c00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002a0c10: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ -002a0c20: 6c6b 2050 6163 6b61 6765 3a20 456e 7375  lk Package: Ensu
│ │ │ -002a0c30: 7265 2074 616c 6b20 6973 2072 656d 6f76  re talk is remov
│ │ │ -002a0c40: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002a0c50: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002a0c60: 2020 206e 616d 653a 2074 616c 6b0a 2020     name: talk.  
│ │ │ -002a0c70: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ -002a0c80: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -002a0c90: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002a0ca0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -002a0cb0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002a0cc0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002a0cd0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002a0ce0: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002a0cf0: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002a0d00: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002a0d10: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ -002a0d20: 6c6b 5f72 656d 6f76 6564 0a3c 2f63 6f64  lk_removed.
Comp │ │ │ +002a0900: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a0910: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a0930: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a0950: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a0960: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a09a0: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002a09b0: 653a 2027 556e 696e 7374 616c 6c20 7461  e: 'Uninstall ta
│ │ │ +002a09c0: 6c6b 2050 6163 6b61 6765 3a20 456e 7375  lk Package: Ensu
│ │ │ +002a09d0: 7265 2074 616c 6b20 6973 2072 656d 6f76  re talk is remov
│ │ │ +002a09e0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ +002a09f0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ +002a0a00: 2020 206e 616d 653a 2074 616c 6b0a 2020     name: talk.  
│ │ │ +002a0a10: 2020 7374 6174 653a 2061 6273 656e 740a    state: absent.
│ │ │ +002a0a20: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +002a0a30: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002a0a40: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +002a0a50: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002a0a60: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002a0a70: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002a0a80: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ +002a0a90: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ +002a0aa0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ +002a0ab0: 640a 2020 2d20 7061 636b 6167 655f 7461  d.  - package_ta
│ │ │ +002a0ac0: 6c6b 5f72 656d 6f76 6564 0a3c 2f63 6f64  lk_removed.
Reme │ │ │ +002a0b80: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ +002a0b90: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ +002a0c20: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002a0c50: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002a0c70: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002a0c80: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002a0ca0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002a0cb0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
.inc
│ │ │ +002a0cd0: 6c75 6465 2072 656d 6f76 655f 7461 6c6b  lude remove_talk
│ │ │ +002a0ce0: 0a0a 636c 6173 7320 7265 6d6f 7665 5f74  ..class remove_t
│ │ │ +002a0cf0: 616c 6b20 7b0a 2020 7061 636b 6167 6520  alk {.  package 
│ │ │ +002a0d00: 7b20 2774 616c 6b27 3a0a 2020 2020 656e  { 'talk':.    en
│ │ │ +002a0d10: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002a0d20: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Remed │ │ │ -002a1cc0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ -002a1cd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002a1d60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002a1d70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002a1d90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002a1db0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002a1dc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002a1e00: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ -002a1e10: 7564 6520 7265 6d6f 7665 5f69 6e65 7475  ude remove_inetu
│ │ │ -002a1e20: 7469 6c73 2d74 656c 6e65 740a 0a63 6c61  tils-telnet..cla
│ │ │ -002a1e30: 7373 2072 656d 6f76 655f 696e 6574 7574  ss remove_inetut
│ │ │ -002a1e40: 696c 732d 7465 6c6e 6574 207b 0a20 2070  ils-telnet {.  p
│ │ │ -002a1e50: 6163 6b61 6765 207b 2027 696e 6574 7574  ackage { 'inetut
│ │ │ -002a1e60: 696c 732d 7465 6c6e 6574 273a 0a20 2020  ils-telnet':.   
│ │ │ -002a1e70: 2065 6e73 7572 6520 3d26 6774 3b20 2770   ensure => 'p
│ │ │ -002a1e80: 7572 6765 6427 2c0a 2020 7d0a 7d0a 3c2f  urged',.  }.}.
R │ │ │ -002a1f40: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002a1f50: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002a2030: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002a2040: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ -002a2090: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ -002a20a0: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ -002a20b0: 456e 7375 7265 2069 6e65 7475 7469 6c73  Ensure inetutils
│ │ │ -002a20c0: 2d74 656c 6e65 7420 6973 2072 656d 6f76  -telnet is remov
│ │ │ -002a20d0: 6564 270a 2020 616e 7369 626c 652e 6275  ed'.  ansible.bu
│ │ │ -002a20e0: 696c 7469 6e2e 7061 636b 6167 653a 0a20  iltin.package:. 
│ │ │ -002a20f0: 2020 206e 616d 653a 2069 6e65 7475 7469     name: inetuti
│ │ │ -002a2100: 6c73 2d74 656c 6e65 740a 2020 2020 7374  ls-telnet.    st
│ │ │ -002a2110: 6174 653a 2061 6273 656e 740a 2020 7461  ate: absent.  ta
│ │ │ -002a2120: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ -002a2130: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002a2140: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002a2150: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002a2160: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002a2170: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002a2180: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002a2190: 5f69 6e65 7475 7469 6c73 2d74 656c 6e65  _inetutils-telne
│ │ │ -002a21a0: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
Complexity:low
Disrup │ │ │ -002a2010: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002a2020: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002a2060: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ -002a2070: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Com │ │ │ +002a1d60: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ +002a1d90: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ +002a1db0: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ +002a1dc0: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ +002a1de0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ +002a1df0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ +002a1e10: 6d65 3a20 2752 656d 6f76 6520 7465 6c6e  me: 'Remove teln
│ │ │ +002a1e20: 6574 2043 6c69 656e 7473 3a20 456e 7375  et Clients: Ensu
│ │ │ +002a1e30: 7265 2069 6e65 7475 7469 6c73 2d74 656c  re inetutils-tel
│ │ │ +002a1e40: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ +002a1e50: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002a1e60: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ +002a1e70: 616d 653a 2069 6e65 7475 7469 6c73 2d74  ame: inetutils-t
│ │ │ +002a1e80: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ +002a1e90: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002a1ea0: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002a1eb0: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002a1ec0: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002a1ed0: 6469 7372 7570 7469 6f6e 0a20 202d 206c  disruption.  - l
│ │ │ +002a1ee0: 6f77 5f73 6576 6572 6974 790a 2020 2d20  ow_severity.  - 
│ │ │ +002a1ef0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002a1f00: 0a20 202d 2070 6163 6b61 6765 5f69 6e65  .  - package_ine
│ │ │ +002a1f10: 7475 7469 6c73 2d74 656c 6e65 745f 7265  tutils-telnet_re
│ │ │ +002a1f20: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.

Remediati │ │ │ +002a1fe0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002a1ff0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002a2070: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002a2080: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002a2090: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002a20d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002a20e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002a2100: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002a2110: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002a2130: 7265 6d6f 7665 5f69 6e65 7475 7469 6c73  remove_inetutils
│ │ │ +002a2140: 2d74 656c 6e65 740a 0a63 6c61 7373 2072  -telnet..class r
│ │ │ +002a2150: 656d 6f76 655f 696e 6574 7574 696c 732d  emove_inetutils-
│ │ │ +002a2160: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ +002a2170: 6765 207b 2027 696e 6574 7574 696c 732d  ge { 'inetutils-
│ │ │ +002a2180: 7465 6c6e 6574 273a 0a20 2020 2065 6e73  telnet':.    ens
│ │ │ +002a2190: 7572 6520 3d26 6774 3b20 2770 7572 6765  ure => 'purge
│ │ │ +002a21a0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
R │ │ │ -002a30b0: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002a30c0: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ -002a3160: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002a3200: 696e 636c 7564 6520 7265 6d6f 7665 5f74  include remove_t
│ │ │ -002a3210: 656c 6e65 740a 0a63 6c61 7373 2072 656d  elnet..class rem
│ │ │ -002a3220: 6f76 655f 7465 6c6e 6574 207b 0a20 2070  ove_telnet {.  p
│ │ │ -002a3230: 6163 6b61 6765 207b 2027 7465 6c6e 6574  ackage { 'telnet
│ │ │ -002a3240: 273a 0a20 2020 2065 6e73 7572 6520 3d26  ':.    ensure =&
│ │ │ -002a3250: 6774 3b20 2770 7572 6765 6427 2c0a 2020  gt; 'purged',.  
│ │ │ -002a3260: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265  }.}.
Remediation │ │ │ -002a3320: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002a3330: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002a33b0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002a33f0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 disable
│ │ │ -002a3150: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002a3180: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002a3190: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002a31d0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002a31e0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002a33c0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002a33e0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002a3410: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002a3430: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
│ │ │ -002a3460: 3c63 6f64 653e 2d20 6e61 6d65 3a20 2752  - name: 'R
│ │ │ -002a3470: 656d 6f76 6520 7465 6c6e 6574 2043 6c69  emove telnet Cli
│ │ │ -002a3480: 656e 7473 3a20 456e 7375 7265 2074 656c  ents: Ensure tel
│ │ │ -002a3490: 6e65 7420 6973 2072 656d 6f76 6564 270a  net is removed'.
│ │ │ -002a34a0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ -002a34b0: 6e2e 7061 636b 6167 653a 0a20 2020 206e  n.package:.    n
│ │ │ -002a34c0: 616d 653a 2074 656c 6e65 740a 2020 2020  ame: telnet.    
│ │ │ -002a34d0: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002a34e0: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002a34f0: 3030 2d31 3731 2d33 2e31 2e31 330a 2020  00-171-3.1.13.  
│ │ │ -002a3500: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002a3510: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002a3520: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -002a3530: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002a3540: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002a3550: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002a3560: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ -002a3570: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -002a3580: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -002a3590: 5f74 656c 6e65 745f 7265 6d6f 7665 640a  _telnet_removed.
│ │ │ +002a30b0: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +002a30c0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +002a31a0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a31b0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002a3200: 2d20 6e61 6d65 3a20 2752 656d 6f76 6520  - name: 'Remove 
│ │ │ +002a3210: 7465 6c6e 6574 2043 6c69 656e 7473 3a20  telnet Clients: 
│ │ │ +002a3220: 456e 7375 7265 2074 656c 6e65 7420 6973  Ensure telnet is
│ │ │ +002a3230: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002a3240: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002a3250: 6167 653a 0a20 2020 206e 616d 653a 2074  age:.    name: t
│ │ │ +002a3260: 656c 6e65 740a 2020 2020 7374 6174 653a  elnet.    state:
│ │ │ +002a3270: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002a3280: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +002a3290: 2d33 2e31 2e31 330a 2020 2d20 5043 492d  -3.1.13.  - PCI-
│ │ │ +002a32a0: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ +002a32b0: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ +002a32c0: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002a32d0: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002a32e0: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002a32f0: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +002a3300: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002a3310: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002a3320: 202d 2070 6163 6b61 6765 5f74 656c 6e65   - package_telne
│ │ │ +002a3330: 745f 7265 6d6f 7665 640a 3c2f 636f 6465  t_removed.
Remed │ │ │ +002a33f0: 6961 7469 6f6e 2050 7570 7065 7420 736e iation Puppet sn │ │ │ +002a3400: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Complexity:low
Disrup │ │ │ +002a3180: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a3190: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a31d0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002a31e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ +002a3490: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002a34a0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002a34c0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002a34e0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002a34f0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002a3530: 3c70 7265 3e3c 636f 6465 3e0a 696e 636c
.incl
│ │ │ +002a3540: 7564 6520 7265 6d6f 7665 5f74 656c 6e65  ude remove_telne
│ │ │ +002a3550: 740a 0a63 6c61 7373 2072 656d 6f76 655f  t..class remove_
│ │ │ +002a3560: 7465 6c6e 6574 207b 0a20 2070 6163 6b61  telnet {.  packa
│ │ │ +002a3570: 6765 207b 2027 7465 6c6e 6574 273a 0a20  ge { 'telnet':. 
│ │ │ +002a3580: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ +002a3590: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │  002a35a0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Re │ │ │ -002a4e20: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002a4e30: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002a4e40: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002a4ed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002a4ee0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002a4f30: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002a4f70: 6e63 6c75 6465 2072 656d 6f76 655f 7466  nclude remove_tf
│ │ │ -002a4f80: 7470 2d73 6572 7665 720a 0a63 6c61 7373  tp-server..class
│ │ │ -002a4f90: 2072 656d 6f76 655f 7466 7470 2d73 6572   remove_tftp-ser
│ │ │ -002a4fa0: 7665 7220 7b0a 2020 7061 636b 6167 6520  ver {.  package 
│ │ │ -002a4fb0: 7b20 2774 6674 702d 7365 7276 6572 273a  { 'tftp-server':
│ │ │ -002a4fc0: 0a20 2020 2065 6e73 7572 6520 3d26 6774  .    ensure =>
│ │ │ -002a4fd0: 3b20 2770 7572 6765 6427 2c0a 2020 7d0a  ; 'purged',.  }.
│ │ │ -002a4fe0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ -002a4ff0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation A │ │ │ -002a50a0: 6e73 6962 6c65 2073 6e69 7070 6574 20e2 nsible snippet . │ │ │ -002a50b0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ -002a5180: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>
C │ │ │ -002a4ec0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002a4ef0: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002a4f00: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002a4f40: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002a4f50: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Complexity: │ │ │ -002a5140: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ -002a5160: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ -002a51b0: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ -002a51c0: 6469 7361 626c 653c 2f74 643e 3c2f 7472 disable
- name: 'Uni
│ │ │ -002a51f0: 6e73 7461 6c6c 2074 6674 702d 7365 7276  nstall tftp-serv
│ │ │ -002a5200: 6572 2050 6163 6b61 6765 3a20 456e 7375  er Package: Ensu
│ │ │ -002a5210: 7265 2074 6674 702d 7365 7276 6572 2069  re tftp-server i
│ │ │ -002a5220: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ -002a5230: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ -002a5240: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ -002a5250: 7466 7470 2d73 6572 7665 720a 2020 2020  tftp-server.    
│ │ │ -002a5260: 7374 6174 653a 2061 6273 656e 740a 2020  state: absent.  
│ │ │ -002a5270: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38  tags:.  - NIST-8
│ │ │ -002a5280: 3030 2d35 332d 434d 2d36 2861 290a 2020  00-53-CM-6(a).  
│ │ │ -002a5290: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ -002a52a0: 2d37 2861 290a 2020 2d20 4e49 5354 2d38  -7(a).  - NIST-8
│ │ │ -002a52b0: 3030 2d35 332d 434d 2d37 2862 290a 2020  00-53-CM-7(b).  
│ │ │ -002a52c0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002a52d0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002a52e0: 322e 340a 2020 2d20 6469 7361 626c 655f  2.4.  - disable_
│ │ │ -002a52f0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ -002a5300: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ -002a5310: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ -002a5320: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ -002a5330: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ -002a5340: 6565 6465 640a 2020 2d20 7061 636b 6167  eeded.  - packag
│ │ │ -002a5350: 655f 7466 7470 2d73 6572 7665 725f 7265  e_tftp-server_re
│ │ │ -002a5360: 6d6f 7665 640a 3c2f 636f 6465 3e3c 2f70  moved.


│ │ │ +002a4ed0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002a4f70: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002a4f80: 6c20 7466 7470 2d73 6572 7665 7220 5061  l tftp-server Pa
│ │ │ +002a4f90: 636b 6167 653a 2045 6e73 7572 6520 7466  ckage: Ensure tf
│ │ │ +002a4fa0: 7470 2d73 6572 7665 7220 6973 2072 656d  tp-server is rem
│ │ │ +002a4fb0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ +002a4fc0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ +002a4fd0: 0a20 2020 206e 616d 653a 2074 6674 702d  .    name: tftp-
│ │ │ +002a4fe0: 7365 7276 6572 0a20 2020 2073 7461 7465  server.    state
│ │ │ +002a4ff0: 3a20 6162 7365 6e74 0a20 2074 6167 733a  : absent.  tags:
│ │ │ +002a5000: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a5010: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ +002a5020: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ +002a5030: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002a5040: 2d43 4d2d 3728 6229 0a20 202d 2050 4349  -CM-7(b).  - PCI
│ │ │ +002a5050: 2d44 5353 7634 2d32 2e32 0a20 202d 2050  -DSSv4-2.2.  - P
│ │ │ +002a5060: 4349 2d44 5353 7634 2d32 2e32 2e34 0a20  CI-DSSv4-2.2.4. 
│ │ │ +002a5070: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002a5080: 6567 790a 2020 2d20 6869 6768 5f73 6576  egy.  - high_sev
│ │ │ +002a5090: 6572 6974 790a 2020 2d20 6c6f 775f 636f  erity.  - low_co
│ │ │ +002a50a0: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ +002a50b0: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ +002a50c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002a50d0: 0a20 202d 2070 6163 6b61 6765 5f74 6674  .  - package_tft
│ │ │ +002a50e0: 702d 7365 7276 6572 5f72 656d 6f76 6564  p-server_removed
│ │ │ +002a50f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002a51b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002a51c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
│ │ │ +002a4ec0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a4ef0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a4f00: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a4f40: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a4f50: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002a5240: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002a5260: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002a52b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ +002a52e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ +002a5300: 655f 7466 7470 2d73 6572 7665 720a 0a63  e_tftp-server..c
│ │ │ +002a5310: 6c61 7373 2072 656d 6f76 655f 7466 7470  lass remove_tftp
│ │ │ +002a5320: 2d73 6572 7665 7220 7b0a 2020 7061 636b  -server {.  pack
│ │ │ +002a5330: 6167 6520 7b20 2774 6674 702d 7365 7276  age { 'tftp-serv
│ │ │ +002a5340: 6572 273a 0a20 2020 2065 6e73 7572 6520  er':.    ensure 
│ │ │ +002a5350: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +002a5360: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

R │ │ │ -002a64e0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ -002a64f0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ -002a6500: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a6510: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ -002a6550: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ -002a6560: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ -002a6570: 5b22 7466 7470 225d 0a3c 2f63 6f64 653e  ["tftp"].
│ │ │ -002a6580: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002a6630: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002a6640: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002a6650: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
low
Disr │ │ │ +002a5270: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002a5280: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002a52c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ +002a52d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -002a66f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002a6710: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002a6740: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002a66d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002a66e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002a6700: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002a6720: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002a6730: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002a6780: 2064 6973 6162 6c65 5f74 6674 700a 0a63 disable_tftp..c │ │ │ -002a6790: 6c61 7373 2064 6973 6162 6c65 5f74 6674 lass disable_tft │ │ │ -002a67a0: 7020 7b0a 2020 7365 7276 6963 6520 7b27 p {. service {' │ │ │ -002a67b0: 7466 7470 273a 0a20 2020 2065 6e61 626c tftp':. enabl │ │ │ -002a67c0: 6520 3d26 6774 3b20 6661 6c73 652c 0a20 e => false,. │ │ │ -002a67d0: 2020 2065 6e73 7572 6520 3d26 6774 3b20 ensure => │ │ │ -002a67e0: 2773 746f 7070 6564 272c 0a20 207d 0a7d 'stopped',. }.} │ │ │ -002a67f0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f .

Remediation An │ │ │ -002a68b0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002a68c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002a6940: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002a6960: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002a69b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002a69e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002a6950: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002a6970: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002a69c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002a69d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: Gathe
│ │ │ -002a6a00: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ -002a6a10: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ -002a6a20: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ -002a6a30: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ -002a6a40: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002a6a50: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ -002a6a60: 3830 302d 3533 2d43 4d2d 3728 6129 0a20  800-53-CM-7(a). 
│ │ │ -002a6a70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002a6a80: 4d2d 3728 6229 0a20 202d 2064 6973 6162  M-7(b).  - disab
│ │ │ -002a6a90: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ -002a6aa0: 6869 6768 5f73 6576 6572 6974 790a 2020  high_severity.  
│ │ │ -002a6ab0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002a6ac0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002a6ad0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002a6ae0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002a6af0: 7669 6365 5f74 6674 705f 6469 7361 626c  vice_tftp_disabl
│ │ │ -002a6b00: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ -002a6b10: 626c 6520 7466 7470 2053 6572 7669 6365  ble tftp Service
│ │ │ -002a6b20: 202d 2044 6973 6162 6c65 2073 6572 7669   - Disable servi
│ │ │ -002a6b30: 6365 2074 6674 700a 2020 626c 6f63 6b3a  ce tftp.  block:
│ │ │ -002a6b40: 0a0a 2020 2d20 6e61 6d65 3a20 4469 7361  ..  - name: Disa
│ │ │ -002a6b50: 626c 6520 7466 7470 2053 6572 7669 6365  ble tftp Service
│ │ │ -002a6b60: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -002a6b70: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002a6b80: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -002a6b90: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -002a6ba0: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002a6bb0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002a6bc0: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -002a6bd0: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -002a6be0: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -002a6bf0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002a6c00: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002a6c10: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002a6c20: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -002a6c30: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -002a6c40: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -002a6c50: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -002a6c60: 3a20 4469 7361 626c 6520 7466 7470 2053  : Disable tftp S
│ │ │ -002a6c70: 6572 7669 6365 202d 2045 6e73 7572 6520  ervice - Ensure 
│ │ │ -002a6c80: 7466 7470 2e73 6572 7669 6365 2069 7320  tftp.service is 
│ │ │ -002a6c90: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -002a6ca0: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002a6cb0: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002a6cc0: 7466 7470 2e73 6572 7669 6365 0a20 2020  tftp.service.   
│ │ │ -002a6cd0: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ -002a6ce0: 640a 2020 2020 2020 656e 6162 6c65 643a  d.      enabled:
│ │ │ -002a6cf0: 2066 616c 7365 0a20 2020 2020 206d 6173   false.      mas
│ │ │ -002a6d00: 6b65 643a 2074 7275 650a 2020 2020 7768  ked: true.    wh
│ │ │ -002a6d10: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ -002a6d20: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002a6d30: 6973 2073 6561 7263 6828 2274 6674 702e  is search("tftp.
│ │ │ -002a6d40: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -002a6d50: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -002a6d60: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -002a6d70: 2045 7869 7374 7320 2d20 7466 7470 2e73   Exists - tftp.s
│ │ │ -002a6d80: 6f63 6b65 740a 2020 2020 616e 7369 626c  ocket.    ansibl
│ │ │ -002a6d90: 652e 6275 696c 7469 6e2e 636f 6d6d 616e  e.builtin.comman
│ │ │ -002a6da0: 643a 2073 7973 7465 6d63 746c 202d 7120  d: systemctl -q 
│ │ │ -002a6db0: 6c69 7374 2d75 6e69 742d 6669 6c65 7320  list-unit-files 
│ │ │ -002a6dc0: 7466 7470 2e73 6f63 6b65 740a 2020 2020  tftp.socket.    
│ │ │ -002a6dd0: 7265 6769 7374 6572 3a20 736f 636b 6574  register: socket
│ │ │ -002a6de0: 5f66 696c 655f 6578 6973 7473 0a20 2020  _file_exists.   
│ │ │ -002a6df0: 2063 6861 6e67 6564 5f77 6865 6e3a 2066   changed_when: f
│ │ │ -002a6e00: 616c 7365 0a20 2020 2066 6169 6c65 645f  alse.    failed_
│ │ │ -002a6e10: 7768 656e 3a20 736f 636b 6574 5f66 696c  when: socket_fil
│ │ │ -002a6e20: 655f 6578 6973 7473 2e72 6320 6e6f 7420  e_exists.rc not 
│ │ │ -002a6e30: 696e 205b 302c 2031 5d0a 2020 2020 6368  in [0, 1].    ch
│ │ │ -002a6e40: 6563 6b5f 6d6f 6465 3a20 6661 6c73 650a  eck_mode: false.
│ │ │ -002a6e50: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ -002a6e60: 6c65 2074 6674 7020 5365 7276 6963 6520  le tftp Service 
│ │ │ -002a6e70: 2d20 4469 7361 626c 6520 536f 636b 6574  - Disable Socket
│ │ │ -002a6e80: 2074 6674 700a 2020 2020 616e 7369 626c   tftp.    ansibl
│ │ │ -002a6e90: 652e 6275 696c 7469 6e2e 7379 7374 656d  e.builtin.system
│ │ │ -002a6ea0: 643a 0a20 2020 2020 206e 616d 653a 2074  d:.      name: t
│ │ │ -002a6eb0: 6674 702e 736f 636b 6574 0a20 2020 2020  ftp.socket.     
│ │ │ -002a6ec0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ -002a6ed0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ -002a6ee0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ -002a6ef0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002a6f00: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ -002a6f10: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ -002a6f20: 7320 6973 2073 6561 7263 6828 2274 6674  s is search("tft
│ │ │ -002a6f30: 702e 736f 636b 6574 222c 206d 756c 7469  p.socket", multi
│ │ │ -002a6f40: 6c69 6e65 3d54 7275 6529 0a20 2074 6167  line=True).  tag
│ │ │ -002a6f50: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ -002a6f60: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -002a6f70: 4953 542d 3830 302d 3533 2d43 4d2d 3728  IST-800-53-CM-7(
│ │ │ -002a6f80: 6129 0a20 202d 204e 4953 542d 3830 302d  a).  - NIST-800-
│ │ │ -002a6f90: 3533 2d43 4d2d 3728 6229 0a20 202d 2064  53-CM-7(b).  - d
│ │ │ -002a6fa0: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002a6fb0: 2020 2d20 6869 6768 5f73 6576 6572 6974    - high_severit
│ │ │ -002a6fc0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002a6fd0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002a6fe0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ -002a6ff0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ -002a7000: 2073 6572 7669 6365 5f74 6674 705f 6469   service_tftp_di
│ │ │ -002a7010: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -002a7020: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -002a7030: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -002a7040: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -002a7050: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002a7060: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002a64e0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ +002a64f0: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ +002a65d0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a65e0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002a6630: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +002a6640: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +002a6650: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +002a6660: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +002a6670: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +002a6680: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ +002a6690: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ +002a66a0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ +002a66b0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ +002a66c0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ +002a66d0: 7374 7261 7465 6779 0a20 202d 2068 6967  strategy.  - hig
│ │ │ +002a66e0: 685f 7365 7665 7269 7479 0a20 202d 206c  h_severity.  - l
│ │ │ +002a66f0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002a6700: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002a6710: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002a6720: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002a6730: 655f 7466 7470 5f64 6973 6162 6c65 640a  e_tftp_disabled.
│ │ │ +002a6740: 0a2d 206e 616d 653a 2044 6973 6162 6c65  .- name: Disable
│ │ │ +002a6750: 2074 6674 7020 5365 7276 6963 6520 2d20   tftp Service - 
│ │ │ +002a6760: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +002a6770: 7466 7470 0a20 2062 6c6f 636b 3a0a 0a20  tftp.  block:.. 
│ │ │ +002a6780: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002a6790: 2074 6674 7020 5365 7276 6963 6520 2d20   tftp Service - 
│ │ │ +002a67a0: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +002a67b0: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +002a67c0: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +002a67d0: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002a67e0: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002a67f0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002a6800: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +002a6810: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +002a6820: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +002a6830: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002a6840: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002a6850: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002a6860: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002a6870: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002a6880: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002a6890: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +002a68a0: 6973 6162 6c65 2074 6674 7020 5365 7276  isable tftp Serv
│ │ │ +002a68b0: 6963 6520 2d20 456e 7375 7265 2074 6674  ice - Ensure tft
│ │ │ +002a68c0: 702e 7365 7276 6963 6520 6973 204d 6173  p.service is Mas
│ │ │ +002a68d0: 6b65 640a 2020 2020 616e 7369 626c 652e  ked.    ansible.
│ │ │ +002a68e0: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ +002a68f0: 0a20 2020 2020 206e 616d 653a 2074 6674  .      name: tft
│ │ │ +002a6900: 702e 7365 7276 6963 650a 2020 2020 2020  p.service.      
│ │ │ +002a6910: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002a6920: 2020 2020 2065 6e61 626c 6564 3a20 6661       enabled: fa
│ │ │ +002a6930: 6c73 650a 2020 2020 2020 6d61 736b 6564  lse.      masked
│ │ │ +002a6940: 3a20 7472 7565 0a20 2020 2077 6865 6e3a  : true.    when:
│ │ │ +002a6950: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ +002a6960: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002a6970: 7365 6172 6368 2822 7466 7470 2e73 6572  search("tftp.ser
│ │ │ +002a6980: 7669 6365 222c 206d 756c 7469 6c69 6e65  vice", multiline
│ │ │ +002a6990: 3d54 7275 6529 0a0a 2020 2d20 6e61 6d65  =True)..  - name
│ │ │ +002a69a0: 3a20 556e 6974 2053 6f63 6b65 7420 4578  : Unit Socket Ex
│ │ │ +002a69b0: 6973 7473 202d 2074 6674 702e 736f 636b  ists - tftp.sock
│ │ │ +002a69c0: 6574 0a20 2020 2061 6e73 6962 6c65 2e62  et.    ansible.b
│ │ │ +002a69d0: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002a69e0: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002a69f0: 742d 756e 6974 2d66 696c 6573 2074 6674  t-unit-files tft
│ │ │ +002a6a00: 702e 736f 636b 6574 0a20 2020 2072 6567  p.socket.    reg
│ │ │ +002a6a10: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002a6a20: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002a6a30: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002a6a40: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002a6a50: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002a6a60: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002a6a70: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002a6a80: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002a6a90: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002a6aa0: 7466 7470 2053 6572 7669 6365 202d 2044  tftp Service - D
│ │ │ +002a6ab0: 6973 6162 6c65 2053 6f63 6b65 7420 7466  isable Socket tf
│ │ │ +002a6ac0: 7470 0a20 2020 2061 6e73 6962 6c65 2e62  tp.    ansible.b
│ │ │ +002a6ad0: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002a6ae0: 2020 2020 2020 6e61 6d65 3a20 7466 7470        name: tftp
│ │ │ +002a6af0: 2e73 6f63 6b65 740a 2020 2020 2020 656e  .socket.      en
│ │ │ +002a6b00: 6162 6c65 643a 2066 616c 7365 0a20 2020  abled: false.   
│ │ │ +002a6b10: 2020 2073 7461 7465 3a20 7374 6f70 7065     state: stoppe
│ │ │ +002a6b20: 640a 2020 2020 2020 6d61 736b 6564 3a20  d.      masked: 
│ │ │ +002a6b30: 7472 7565 0a20 2020 2077 6865 6e3a 2073  true.    when: s
│ │ │ +002a6b40: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002a6b50: 732e 7374 646f 7574 5f6c 696e 6573 2069  s.stdout_lines i
│ │ │ +002a6b60: 7320 7365 6172 6368 2822 7466 7470 2e73  s search("tftp.s
│ │ │ +002a6b70: 6f63 6b65 7422 2c20 6d75 6c74 696c 696e  ocket", multilin
│ │ │ +002a6b80: 653d 5472 7565 290a 2020 7461 6773 3a0a  e=True).  tags:.
│ │ │ +002a6b90: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002a6ba0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002a6bb0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +002a6bc0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002a6bd0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +002a6be0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002a6bf0: 2068 6967 685f 7365 7665 7269 7479 0a20   high_severity. 
│ │ │ +002a6c00: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002a6c10: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002a6c20: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002a6c30: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002a6c40: 7276 6963 655f 7466 7470 5f64 6973 6162  rvice_tftp_disab
│ │ │ +002a6c50: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ +002a6c60: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ +002a6c70: 7768 656e 3a20 2722 6c69 6e75 782d 6261  when: '"linux-ba
│ │ │ +002a6c80: 7365 2220 696e 2061 6e73 6962 6c65 5f66  se" in ansible_f
│ │ │ +002a6c90: 6163 7473 2e70 6163 6b61 6765 7327 0a3c  acts.packages'.<
│ │ │ +002a6ca0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002a6d50: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002a6d60: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
Complexity:low
Disrup │ │ │ +002a65b0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a65c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a6600: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002a6610: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
< │ │ │ +002a6e40: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a6e50: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false
i
│ │ │ +002a6ea0: 6e63 6c75 6465 2064 6973 6162 6c65 5f74  nclude disable_t
│ │ │ +002a6eb0: 6674 700a 0a63 6c61 7373 2064 6973 6162  ftp..class disab
│ │ │ +002a6ec0: 6c65 5f74 6674 7020 7b0a 2020 7365 7276  le_tftp {.  serv
│ │ │ +002a6ed0: 6963 6520 7b27 7466 7470 273a 0a20 2020  ice {'tftp':.   
│ │ │ +002a6ee0: 2065 6e61 626c 6520 3d26 6774 3b20 6661   enable => fa
│ │ │ +002a6ef0: 6c73 652c 0a20 2020 2065 6e73 7572 6520  lse,.    ensure 
│ │ │ +002a6f00: 3d26 6774 3b20 2773 746f 7070 6564 272c  => 'stopped',
│ │ │ +002a6f10: 0a20 207d 0a7d 0a3c 2f63 6f64 653e 3c2f  .  }.}.Remediat
│ │ │ +002a6fd0: 696f 6e20 4f53 4275 696c 6420 426c 7565  ion OSBuild Blue
│ │ │ +002a6fe0: 7072 696e 7420 736e 6970 7065 7420 e287  print snippet ..
│ │ │ +002a6ff0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c  .
<
│ │ │ +002a7030: 636f 6465 3e0a 5b63 7573 746f 6d69 7a61  code>.[customiza
│ │ │ +002a7040: 7469 6f6e 732e 7365 7276 6963 6573 5d0a  tions.services].
│ │ │ +002a7050: 6d61 736b 6564 203d 205b 2274 6674 7022  masked = ["tftp"
│ │ │ +002a7060: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 002a7070: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 002a7080: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74
< │ │ │ 002a70a0: 7472 2064 6174 612d 7474 2d69 643d 2278 tr data-tt-id="x │ │ │ 002a70b0: 6363 6466 5f6f 7267 2e73 7367 7072 6f6a ccdf_org.ssgproj │ │ │ 002a70c0: 6563 742e 636f 6e74 656e 745f 7275 6c65 ect.content_rule │ │ │ 002a70d0: 5f70 6163 6b61 6765 5f72 7379 6e63 5f72 _package_rsync_r │ │ │ @@ -173953,89 +173953,89 @@ │ │ │ 002a7800: 6522 2064 6174 612d 7461 7267 6574 3d22 e" data-target=" │ │ │ 002a7810: 2369 6431 3132 3322 2074 6162 696e 6465 #id1123" tabinde │ │ │ 002a7820: 783d 2230 2220 726f 6c65 3d22 6275 7474 x="0" role="butt │ │ │ 002a7830: 6f6e 2220 6172 6961 2d65 7870 616e 6465 on" aria-expande │ │ │ 002a7840: 643d 2266 616c 7365 2220 7469 746c 653d d="false" title= │ │ │ 002a7850: 2241 6374 6976 6174 6520 746f 2072 6576 "Activate to rev │ │ │ 002a7860: 6561 6c22 2068 7265 663d 2223 2122 3e52 eal" href="#!">R │ │ │ -002a7870: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ -002a7880: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +002a6e20: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a6e30: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a6e70: 6779 3a3c 2f74 683e 3c74 643e 656e 6162 gy:enab │ │ │ +002a6e80: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002a7920: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ -002a79c0: 696e 636c 7564 6520 7265 6d6f 7665 5f72  include remove_r
│ │ │ -002a79d0: 7379 6e63 0a0a 636c 6173 7320 7265 6d6f  sync..class remo
│ │ │ -002a79e0: 7665 5f72 7379 6e63 207b 0a20 2070 6163  ve_rsync {.  pac
│ │ │ -002a79f0: 6b61 6765 207b 2027 7273 796e 6327 3a0a  kage { 'rsync':.
│ │ │ -002a7a00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002a7a10: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002a7a20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002a7ae0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002a7af0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ -002a7910: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002a7940: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002a7950: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002a7990: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002a79a0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ -002a7b70: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002a7b90: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002a7be0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002a7c10: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002a7b80: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002a7ba0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002a7bf0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002a7c00: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002a7c30: 7374 616c 6c20 7273 796e 6320 5061 636b  stall rsync Pack
│ │ │ -002a7c40: 6167 653a 2045 6e73 7572 6520 7273 796e  age: Ensure rsyn
│ │ │ -002a7c50: 6320 6973 2072 656d 6f76 6564 270a 2020  c is removed'.  
│ │ │ -002a7c60: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002a7c70: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -002a7c80: 653a 2072 7379 6e63 0a20 2020 2073 7461  e: rsync.    sta
│ │ │ -002a7c90: 7465 3a20 6162 7365 6e74 0a20 2074 6167  te: absent.  tag
│ │ │ -002a7ca0: 733a 0a20 202d 2064 6973 6162 6c65 5f73  s:.  - disable_s
│ │ │ -002a7cb0: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ -002a7cc0: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ -002a7cd0: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ -002a7ce0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ -002a7cf0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ -002a7d00: 6e65 6564 6564 0a20 202d 2070 6163 6b61  needed.  - packa
│ │ │ -002a7d10: 6765 5f72 7379 6e63 5f72 656d 6f76 6564  ge_rsync_removed
│ │ │ +002a7870: 656d 6564 6961 7469 6f6e 2041 6e73 6962  emediation Ansib
│ │ │ +002a7880: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f  le snippet ...
< │ │ │ +002a7960: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002a7970: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002a79c0: 2d20 6e61 6d65 3a20 2755 6e69 6e73 7461  - name: 'Uninsta
│ │ │ +002a79d0: 6c6c 2072 7379 6e63 2050 6163 6b61 6765  ll rsync Package
│ │ │ +002a79e0: 3a20 456e 7375 7265 2072 7379 6e63 2069  : Ensure rsync i
│ │ │ +002a79f0: 7320 7265 6d6f 7665 6427 0a20 2061 6e73  s removed'.  ans
│ │ │ +002a7a00: 6962 6c65 2e62 7569 6c74 696e 2e70 6163  ible.builtin.pac
│ │ │ +002a7a10: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20  kage:.    name: 
│ │ │ +002a7a20: 7273 796e 630a 2020 2020 7374 6174 653a  rsync.    state:
│ │ │ +002a7a30: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002a7a40: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ +002a7a50: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ +002a7a60: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ +002a7a70: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ +002a7a80: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ +002a7a90: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ +002a7aa0: 6465 640a 2020 2d20 7061 636b 6167 655f  ded.  - package_
│ │ │ +002a7ab0: 7273 796e 635f 7265 6d6f 7665 640a 3c2f  rsync_removed.
R │ │ │ +002a7b70: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002a7b80: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
Complexity:low
Disrup │ │ │ +002a7940: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002a7950: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002a7990: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002a79a0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ +002a7c20: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002a7cc0: 696e 636c 7564 6520 7265 6d6f 7665 5f72  include remove_r
│ │ │ +002a7cd0: 7379 6e63 0a0a 636c 6173 7320 7265 6d6f  sync..class remo
│ │ │ +002a7ce0: 7665 5f72 7379 6e63 207b 0a20 2070 6163  ve_rsync {.  pac
│ │ │ +002a7cf0: 6b61 6765 207b 2027 7273 796e 6327 3a0a  kage { 'rsync':.
│ │ │ +002a7d00: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002a7d10: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002a7d20: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
│ │ │ -002a88a0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -002a88b0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -002a88c0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -002a8910: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002a8920: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002a8930: 205b 2272 7379 6e63 6422 5d0a 3c2f 636f   ["rsyncd"].
< │ │ │ -002a8950: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002a8960: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002a8970: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002a8980: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002a8990: 6431 3132 3822 2074 6162 696e 6465 783d d1128" tabindex= │ │ │ -002a89a0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002a89b0: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002a89c0: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002a89d0: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002a89e0: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002a89f0: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002a8a00: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002a8a10: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
│ │ │ +002a7c10: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002a7c40: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002a7c50: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002a7c90: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002a7ca0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
low< │ │ │ -002a8ab0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002a8b00: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -002a8a90: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002a8ac0: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002a8ae0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002a8af0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002a8b10: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -002a8b20: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
incl
│ │ │ -002a8b40: 7564 6520 6469 7361 626c 655f 7273 796e  ude disable_rsyn
│ │ │ -002a8b50: 6364 0a0a 636c 6173 7320 6469 7361 626c  cd..class disabl
│ │ │ -002a8b60: 655f 7273 796e 6364 207b 0a20 2073 6572  e_rsyncd {.  ser
│ │ │ -002a8b70: 7669 6365 207b 2772 7379 6e63 6427 3a0a  vice {'rsyncd':.
│ │ │ -002a8b80: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -002a8b90: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -002a8ba0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -002a8bb0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002a8c70: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002a8c80: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002a8d10: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002a8d40: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002a8d60: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002a8d70: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002a8d90: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002a8da0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002a8dc0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002a8dd0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002a8de0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002a8df0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002a8e00: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ -002a8e10: 4453 5376 342d 322e 320a 2020 2d20 5043  DSSv4-2.2.  - PC
│ │ │ -002a8e20: 492d 4453 5376 342d 322e 322e 340a 2020  I-DSSv4-2.2.4.  
│ │ │ -002a8e30: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ -002a8e40: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ -002a8e50: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ -002a8e60: 7372 7570 7469 6f6e 0a20 202d 206d 6564  sruption.  - med
│ │ │ -002a8e70: 6975 6d5f 7365 7665 7269 7479 0a20 202d  ium_severity.  -
│ │ │ -002a8e80: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002a8e90: 640a 2020 2d20 7365 7276 6963 655f 7273  d.  - service_rs
│ │ │ -002a8ea0: 796e 6364 5f64 6973 6162 6c65 640a 0a2d  yncd_disabled..-
│ │ │ -002a8eb0: 206e 616d 653a 2045 6e73 7572 6520 7273   name: Ensure rs
│ │ │ -002a8ec0: 796e 6364 2073 6572 7669 6365 2069 7320  yncd service is 
│ │ │ -002a8ed0: 6469 7361 626c 6564 202d 2044 6973 6162  disabled - Disab
│ │ │ -002a8ee0: 6c65 2073 6572 7669 6365 2072 7379 6e63  le service rsync
│ │ │ -002a8ef0: 640a 2020 626c 6f63 6b3a 0a0a 2020 2d20  d.  block:..  - 
│ │ │ -002a8f00: 6e61 6d65 3a20 456e 7375 7265 2072 7379  name: Ensure rsy
│ │ │ -002a8f10: 6e63 6420 7365 7276 6963 6520 6973 2064  ncd service is d
│ │ │ -002a8f20: 6973 6162 6c65 6420 2d20 436f 6c6c 6563  isabled - Collec
│ │ │ -002a8f30: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ -002a8f40: 6573 2050 7265 7365 6e74 2069 6e0a 2020  es Present in.  
│ │ │ -002a8f50: 2020 2020 7468 6520 5379 7374 656d 0a20      the System. 
│ │ │ -002a8f60: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002a8f70: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ -002a8f80: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ -002a8f90: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ -002a8fa0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ -002a8fb0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ -002a8fc0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ -002a8fd0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ -002a8fe0: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ -002a8ff0: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ -002a9000: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -002a9010: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002a9020: 6c73 650a 0a20 202d 206e 616d 653a 2045  lse..  - name: E
│ │ │ -002a9030: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ -002a9040: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ -002a9050: 202d 2045 6e73 7572 6520 7273 796e 6364   - Ensure rsyncd
│ │ │ -002a9060: 2e73 6572 7669 6365 2069 7320 4d61 736b  .service is Mask
│ │ │ -002a9070: 6564 0a20 2020 2061 6e73 6962 6c65 2e62  ed.    ansible.b
│ │ │ -002a9080: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -002a9090: 2020 2020 2020 6e61 6d65 3a20 7273 796e        name: rsyn
│ │ │ -002a90a0: 6364 2e73 6572 7669 6365 0a20 2020 2020  cd.service.     
│ │ │ -002a90b0: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002a90c0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002a90d0: 616c 7365 0a20 2020 2020 206d 6173 6b65  alse.      maske
│ │ │ -002a90e0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ -002a90f0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ -002a9100: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ -002a9110: 2073 6561 7263 6828 2272 7379 6e63 642e   search("rsyncd.
│ │ │ -002a9120: 7365 7276 6963 6522 2c20 6d75 6c74 696c  service", multil
│ │ │ -002a9130: 696e 653d 5472 7565 290a 0a20 202d 206e  ine=True)..  - n
│ │ │ -002a9140: 616d 653a 2055 6e69 7420 536f 636b 6574  ame: Unit Socket
│ │ │ -002a9150: 2045 7869 7374 7320 2d20 7273 796e 6364   Exists - rsyncd
│ │ │ -002a9160: 2e73 6f63 6b65 740a 2020 2020 616e 7369  .socket.    ansi
│ │ │ -002a9170: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002a9180: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002a9190: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002a91a0: 7320 7273 796e 6364 2e73 6f63 6b65 740a  s rsyncd.socket.
│ │ │ -002a91b0: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -002a91c0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002a91d0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002a91e0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002a91f0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -002a9200: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -002a9210: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -002a9220: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002a9230: 6c73 650a 0a20 202d 206e 616d 653a 2045  lse..  - name: E
│ │ │ -002a9240: 6e73 7572 6520 7273 796e 6364 2073 6572  nsure rsyncd ser
│ │ │ -002a9250: 7669 6365 2069 7320 6469 7361 626c 6564  vice is disabled
│ │ │ -002a9260: 202d 2044 6973 6162 6c65 2053 6f63 6b65   - Disable Socke
│ │ │ -002a9270: 7420 7273 796e 6364 0a20 2020 2061 6e73  t rsyncd.    ans
│ │ │ -002a9280: 6962 6c65 2e62 7569 6c74 696e 2e73 7973  ible.builtin.sys
│ │ │ -002a9290: 7465 6d64 3a0a 2020 2020 2020 6e61 6d65  temd:.      name
│ │ │ -002a92a0: 3a20 7273 796e 6364 2e73 6f63 6b65 740a  : rsyncd.socket.
│ │ │ -002a92b0: 2020 2020 2020 656e 6162 6c65 643a 2066        enabled: f
│ │ │ -002a92c0: 616c 7365 0a20 2020 2020 2073 7461 7465  alse.      state
│ │ │ -002a92d0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ -002a92e0: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ -002a92f0: 2077 6865 6e3a 2073 6f63 6b65 745f 6669   when: socket_fi
│ │ │ -002a9300: 6c65 5f65 7869 7374 732e 7374 646f 7574  le_exists.stdout
│ │ │ -002a9310: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002a9320: 2822 7273 796e 6364 2e73 6f63 6b65 7422  ("rsyncd.socket"
│ │ │ -002a9330: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ -002a9340: 290a 2020 7461 6773 3a0a 2020 2d20 5043  ).  tags:.  - PC
│ │ │ -002a9350: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002a9360: 5043 492d 4453 5376 342d 322e 322e 340a  PCI-DSSv4-2.2.4.
│ │ │ -002a9370: 2020 2d20 6469 7361 626c 655f 7374 7261    - disable_stra
│ │ │ -002a9380: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -002a9390: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -002a93a0: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -002a93b0: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -002a93c0: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -002a93d0: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -002a93e0: 7273 796e 6364 5f64 6973 6162 6c65 640a  rsyncd_disabled.
│ │ │ -002a93f0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ -002a9400: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ -002a9410: 3a20 2722 6c69 6e75 782d 6261 7365 2220  : '"linux-base" 
│ │ │ -002a9420: 696e 2061 6e73 6962 6c65 5f66 6163 7473  in ansible_facts
│ │ │ -002a9430: 2e70 6163 6b61 6765 7327 0a3c 2f63 6f64  .packages'.
Complexity: │ │ │ +002a8990: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002a89a0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +002a8a00: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002a8a10: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002a8a20: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002a8a30: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002a8a40: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002a8a50: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002a8a60: 2e34 0a20 202d 2064 6973 6162 6c65 5f73  .4.  - disable_s
│ │ │ +002a8a70: 7472 6174 6567 790a 2020 2d20 6c6f 775f  trategy.  - low_
│ │ │ +002a8a80: 636f 6d70 6c65 7869 7479 0a20 202d 206c  complexity.  - l
│ │ │ +002a8a90: 6f77 5f64 6973 7275 7074 696f 6e0a 2020  ow_disruption.  
│ │ │ +002a8aa0: 2d20 6d65 6469 756d 5f73 6576 6572 6974  - medium_severit
│ │ │ +002a8ab0: 790a 2020 2d20 6e6f 5f72 6562 6f6f 745f  y.  - no_reboot_
│ │ │ +002a8ac0: 6e65 6564 6564 0a20 202d 2073 6572 7669  needed.  - servi
│ │ │ +002a8ad0: 6365 5f72 7379 6e63 645f 6469 7361 626c  ce_rsyncd_disabl
│ │ │ +002a8ae0: 6564 0a0a 2d20 6e61 6d65 3a20 456e 7375  ed..- name: Ensu
│ │ │ +002a8af0: 7265 2072 7379 6e63 6420 7365 7276 6963  re rsyncd servic
│ │ │ +002a8b00: 6520 6973 2064 6973 6162 6c65 6420 2d20  e is disabled - 
│ │ │ +002a8b10: 4469 7361 626c 6520 7365 7276 6963 6520  Disable service 
│ │ │ +002a8b20: 7273 796e 6364 0a20 2062 6c6f 636b 3a0a  rsyncd.  block:.
│ │ │ +002a8b30: 0a20 202d 206e 616d 653a 2045 6e73 7572  .  - name: Ensur
│ │ │ +002a8b40: 6520 7273 796e 6364 2073 6572 7669 6365  e rsyncd service
│ │ │ +002a8b50: 2069 7320 6469 7361 626c 6564 202d 2043   is disabled - C
│ │ │ +002a8b60: 6f6c 6c65 6374 2073 7973 7465 6d64 2053  ollect systemd S
│ │ │ +002a8b70: 6572 7669 6365 7320 5072 6573 656e 7420  ervices Present 
│ │ │ +002a8b80: 696e 0a20 2020 2020 2074 6865 2053 7973  in.      the Sys
│ │ │ +002a8b90: 7465 6d0a 2020 2020 616e 7369 626c 652e  tem.    ansible.
│ │ │ +002a8ba0: 6275 696c 7469 6e2e 636f 6d6d 616e 643a  builtin.command:
│ │ │ +002a8bb0: 2073 7973 7465 6d63 746c 202d 7120 6c69   systemctl -q li
│ │ │ +002a8bc0: 7374 2d75 6e69 742d 6669 6c65 7320 2d2d  st-unit-files --
│ │ │ +002a8bd0: 7479 7065 2073 6572 7669 6365 0a20 2020  type service.   
│ │ │ +002a8be0: 2072 6567 6973 7465 723a 2073 6572 7669   register: servi
│ │ │ +002a8bf0: 6365 5f65 7869 7374 730a 2020 2020 6368  ce_exists.    ch
│ │ │ +002a8c00: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002a8c10: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002a8c20: 6e3a 2073 6572 7669 6365 5f65 7869 7374  n: service_exist
│ │ │ +002a8c30: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002a8c40: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002a8c50: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002a8c60: 6d65 3a20 456e 7375 7265 2072 7379 6e63  me: Ensure rsync
│ │ │ +002a8c70: 6420 7365 7276 6963 6520 6973 2064 6973  d service is dis
│ │ │ +002a8c80: 6162 6c65 6420 2d20 456e 7375 7265 2072  abled - Ensure r
│ │ │ +002a8c90: 7379 6e63 642e 7365 7276 6963 6520 6973  syncd.service is
│ │ │ +002a8ca0: 204d 6173 6b65 640a 2020 2020 616e 7369   Masked.    ansi
│ │ │ +002a8cb0: 626c 652e 6275 696c 7469 6e2e 7379 7374  ble.builtin.syst
│ │ │ +002a8cc0: 656d 643a 0a20 2020 2020 206e 616d 653a  emd:.      name:
│ │ │ +002a8cd0: 2072 7379 6e63 642e 7365 7276 6963 650a   rsyncd.service.
│ │ │ +002a8ce0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002a8cf0: 7070 6564 0a20 2020 2020 2065 6e61 626c  pped.      enabl
│ │ │ +002a8d00: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002a8d10: 6d61 736b 6564 3a20 7472 7565 0a20 2020  masked: true.   
│ │ │ +002a8d20: 2077 6865 6e3a 2073 6572 7669 6365 5f65   when: service_e
│ │ │ +002a8d30: 7869 7374 732e 7374 646f 7574 5f6c 696e  xists.stdout_lin
│ │ │ +002a8d40: 6573 2069 7320 7365 6172 6368 2822 7273  es is search("rs
│ │ │ +002a8d50: 796e 6364 2e73 6572 7669 6365 222c 206d  yncd.service", m
│ │ │ +002a8d60: 756c 7469 6c69 6e65 3d54 7275 6529 0a0a  ultiline=True)..
│ │ │ +002a8d70: 2020 2d20 6e61 6d65 3a20 556e 6974 2053    - name: Unit S
│ │ │ +002a8d80: 6f63 6b65 7420 4578 6973 7473 202d 2072  ocket Exists - r
│ │ │ +002a8d90: 7379 6e63 642e 736f 636b 6574 0a20 2020  syncd.socket.   
│ │ │ +002a8da0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002a8db0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002a8dc0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002a8dd0: 2d66 696c 6573 2072 7379 6e63 642e 736f  -files rsyncd.so
│ │ │ +002a8de0: 636b 6574 0a20 2020 2072 6567 6973 7465  cket.    registe
│ │ │ +002a8df0: 723a 2073 6f63 6b65 745f 6669 6c65 5f65  r: socket_file_e
│ │ │ +002a8e00: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ +002a8e10: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ +002a8e20: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ +002a8e30: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002a8e40: 732e 7263 206e 6f74 2069 6e20 5b30 2c20  s.rc not in [0, 
│ │ │ +002a8e50: 315d 0a20 2020 2063 6865 636b 5f6d 6f64  1].    check_mod
│ │ │ +002a8e60: 653a 2066 616c 7365 0a0a 2020 2d20 6e61  e: false..  - na
│ │ │ +002a8e70: 6d65 3a20 456e 7375 7265 2072 7379 6e63  me: Ensure rsync
│ │ │ +002a8e80: 6420 7365 7276 6963 6520 6973 2064 6973  d service is dis
│ │ │ +002a8e90: 6162 6c65 6420 2d20 4469 7361 626c 6520  abled - Disable 
│ │ │ +002a8ea0: 536f 636b 6574 2072 7379 6e63 640a 2020  Socket rsyncd.  
│ │ │ +002a8eb0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002a8ec0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002a8ed0: 206e 616d 653a 2072 7379 6e63 642e 736f   name: rsyncd.so
│ │ │ +002a8ee0: 636b 6574 0a20 2020 2020 2065 6e61 626c  cket.      enabl
│ │ │ +002a8ef0: 6564 3a20 6661 6c73 650a 2020 2020 2020  ed: false.      
│ │ │ +002a8f00: 7374 6174 653a 2073 746f 7070 6564 0a20  state: stopped. 
│ │ │ +002a8f10: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002a8f20: 650a 2020 2020 7768 656e 3a20 736f 636b  e.    when: sock
│ │ │ +002a8f30: 6574 5f66 696c 655f 6578 6973 7473 2e73  et_file_exists.s
│ │ │ +002a8f40: 7464 6f75 745f 6c69 6e65 7320 6973 2073  tdout_lines is s
│ │ │ +002a8f50: 6561 7263 6828 2272 7379 6e63 642e 736f  earch("rsyncd.so
│ │ │ +002a8f60: 636b 6574 222c 206d 756c 7469 6c69 6e65  cket", multiline
│ │ │ +002a8f70: 3d54 7275 6529 0a20 2074 6167 733a 0a20  =True).  tags:. 
│ │ │ +002a8f80: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002a8f90: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002a8fa0: 2e32 2e34 0a20 202d 2064 6973 6162 6c65  .2.4.  - disable
│ │ │ +002a8fb0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +002a8fc0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +002a8fd0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +002a8fe0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +002a8ff0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +002a9000: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ +002a9010: 7669 6365 5f72 7379 6e63 645f 6469 7361  vice_rsyncd_disa
│ │ │ +002a9020: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002a9030: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +002a9040: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002a9050: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002a9060: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002a9070: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002a9130: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002a9140: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
low
Disru │ │ │ +002a8970: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002a8980: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002a89c0: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002a89d0: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
Complexity: │ │ │ +002a9210: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002a9220: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002a9270: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002a9280: 7273 796e 6364 0a0a 636c 6173 7320 6469  rsyncd..class di
│ │ │ +002a9290: 7361 626c 655f 7273 796e 6364 207b 0a20  sable_rsyncd {. 
│ │ │ +002a92a0: 2073 6572 7669 6365 207b 2772 7379 6e63   service {'rsync
│ │ │ +002a92b0: 6427 3a0a 2020 2020 656e 6162 6c65 203d  d':.    enable =
│ │ │ +002a92c0: 2667 743b 2066 616c 7365 2c0a 2020 2020  > false,.    
│ │ │ +002a92d0: 656e 7375 7265 203d 2667 743b 2027 7374  ensure => 'st
│ │ │ +002a92e0: 6f70 7065 6427 2c0a 2020 7d0a 7d0a 3c2f  opped',.  }.}.
R │ │ │ +002a93a0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +002a93b0: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +002a93c0: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +002a93d0: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +002a9410: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +002a9420: 7669 6365 735d 0a6d 6173 6b65 6420 3d20  vices].masked = 
│ │ │ +002a9430: 5b22 7273 796e 6364 225d 0a3c 2f63 6f64  ["rsyncd"].
low
Disru │ │ │ +002a91f0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002a9200: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002a9240: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002a9250: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Remediation Pu │ │ │ -002aa6b0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ -002aa6c0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
< │ │ │ -002aa740: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002aa760: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002aa7b0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002aa7e0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
.include remov
│ │ │ -002aa800: 655f 6375 7073 0a0a 636c 6173 7320 7265  e_cups..class re
│ │ │ -002aa810: 6d6f 7665 5f63 7570 7320 7b0a 2020 7061  move_cups {.  pa
│ │ │ -002aa820: 636b 6167 6520 7b20 2763 7570 7327 3a0a  ckage { 'cups':.
│ │ │ -002aa830: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ -002aa840: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │ -002aa850: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002aa910: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002aa920: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
low
Disr │ │ │ -002aa770: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002aa780: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002aa7c0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002aa7d0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ -002aa9a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002aa9c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002aaa10: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ -002aaa40: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ -002aa9b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002aa9d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002aaa20: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ -002aaa30: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ -002aaa60: 7374 616c 6c20 4355 5053 2050 6163 6b61  stall CUPS Packa
│ │ │ -002aaa70: 6765 3a20 456e 7375 7265 2063 7570 7320  ge: Ensure cups 
│ │ │ -002aaa80: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ -002aaa90: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ -002aaaa0: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ -002aaab0: 2063 7570 730a 2020 2020 7374 6174 653a   cups.    state:
│ │ │ -002aaac0: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ -002aaad0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002aaae0: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ -002aaaf0: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ -002aab00: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002aab10: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ -002aab20: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002aab30: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002aab40: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002aab50: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ -002aab60: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -002aab70: 6167 655f 6375 7073 5f72 656d 6f76 6564  age_cups_removed
│ │ │ -002aab80: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ -002aab90: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediation An │ │ │ +002aa6b0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ +002aa6c0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002aa740: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ +002aa760: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ +002aa7b0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 │ │ │ +002aa7e0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Complexity:< │ │ │ +002aa750: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ +002aa770: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ +002aa7c0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e64 ategy:d │ │ │ +002aa7d0: 6973 6162 6c65 3c2f 7464 3e3c 2f74 723e isable
- name: 'Unin
│ │ │ +002aa800: 7374 616c 6c20 4355 5053 2050 6163 6b61  stall CUPS Packa
│ │ │ +002aa810: 6765 3a20 456e 7375 7265 2063 7570 7320  ge: Ensure cups 
│ │ │ +002aa820: 6973 2072 656d 6f76 6564 270a 2020 616e  is removed'.  an
│ │ │ +002aa830: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +002aa840: 636b 6167 653a 0a20 2020 206e 616d 653a  ckage:.    name:
│ │ │ +002aa850: 2063 7570 730a 2020 2020 7374 6174 653a   cups.    state:
│ │ │ +002aa860: 2061 6273 656e 740a 2020 7461 6773 3a0a   absent.  tags:.
│ │ │ +002aa870: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002aa880: 434d 2d36 2861 290a 2020 2d20 4e49 5354  CM-6(a).  - NIST
│ │ │ +002aa890: 2d38 3030 2d35 332d 434d 2d37 2861 290a  -800-53-CM-7(a).
│ │ │ +002aa8a0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002aa8b0: 434d 2d37 2862 290a 2020 2d20 6469 7361  CM-7(b).  - disa
│ │ │ +002aa8c0: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ +002aa8d0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ +002aa8e0: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ +002aa8f0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74  on.  - no_reboot
│ │ │ +002aa900: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ +002aa910: 6167 655f 6375 7073 5f72 656d 6f76 6564  age_cups_removed
│ │ │ +002aa920: 0a20 202d 2075 6e6b 6e6f 776e 5f73 6576  .  - unknown_sev
│ │ │ +002aa930: 6572 6974 790a 3c2f 636f 6465 3e3c 2f70  erity.

Remediati │ │ │ +002aa9f0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +002aaa00: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +002aaa80: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 Complexi │ │ │ +002aaa90: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +002aaaa0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Disruption:lowReboot │ │ │ +002aaae0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +002aaaf0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>Strategy:< │ │ │ +002aab10: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ +002aab20: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
.include 
│ │ │ +002aab40: 7265 6d6f 7665 5f63 7570 730a 0a63 6c61  remove_cups..cla
│ │ │ +002aab50: 7373 2072 656d 6f76 655f 6375 7073 207b  ss remove_cups {
│ │ │ +002aab60: 0a20 2070 6163 6b61 6765 207b 2027 6375  .  package { 'cu
│ │ │ +002aab70: 7073 273a 0a20 2020 2065 6e73 7572 6520  ps':.    ensure 
│ │ │ +002aab80: 3d26 6774 3b20 2770 7572 6765 6427 2c0a  => 'purged',.
│ │ │ +002aab90: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remedi │ │ │ -002abbc0: 6174 696f 6e20 4f53 4275 696c 6420 426c ation OSBuild Bl │ │ │ -002abbd0: 7565 7072 696e 7420 736e 6970 7065 7420 ueprint snippet │ │ │ -002abbe0: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
.[customi
│ │ │ -002abc30: 7a61 7469 6f6e 732e 7365 7276 6963 6573  zations.services
│ │ │ -002abc40: 5d0a 6d61 736b 6564 203d 205b 2263 7570  ].masked = ["cup
│ │ │ -002abc50: 7322 5d0a 3c2f 636f 6465 3e3c 2f70 7265  s"].
Remediation │ │ │ -002abd10: 2050 7570 7065 7420 736e 6970 7065 7420 Puppet snippet │ │ │ -002abd20: e287 b23c 2f61 3e3c 6272 3e3c 6469 7620 ...
Complexity │ │ │ -002abdb0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ -002abdd0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ -002abde0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002abdf0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ -002abe00: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ -002abe20: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:enable
include disa
│ │ │ -002abe60: 626c 655f 6375 7073 0a0a 636c 6173 7320  ble_cups..class 
│ │ │ -002abe70: 6469 7361 626c 655f 6375 7073 207b 0a20  disable_cups {. 
│ │ │ -002abe80: 2073 6572 7669 6365 207b 2763 7570 7327   service {'cups'
│ │ │ -002abe90: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -002abea0: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ -002abeb0: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ -002abec0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ -002abee0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ -002abef0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ -002abf00: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ -002abf10: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ -002abf20: 6431 3133 3722 2074 6162 696e 6465 783d d1137" tabindex= │ │ │ -002abf30: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ -002abf40: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ -002abf50: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ -002abf60: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ -002abf70: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002abf80: 6564 6961 7469 6f6e 2041 6e73 6962 6c65 ediation Ansible │ │ │ -002abf90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002abfa0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002ac030: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002ac040: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002ac090: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ -002ac0d0: 6e61 6d65 3a20 4761 7468 6572 2074 6865  name: Gather the
│ │ │ -002ac0e0: 2070 6163 6b61 6765 2066 6163 7473 0a20   package facts. 
│ │ │ -002ac0f0: 2070 6163 6b61 6765 5f66 6163 7473 3a0a   package_facts:.
│ │ │ -002ac100: 2020 2020 6d61 6e61 6765 723a 2061 7574      manager: aut
│ │ │ -002ac110: 6f0a 2020 7461 6773 3a0a 2020 2d20 4e49  o.  tags:.  - NI
│ │ │ -002ac120: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ -002ac130: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -002ac140: 332d 434d 2d37 2861 290a 2020 2d20 4e49  3-CM-7(a).  - NI
│ │ │ -002ac150: 5354 2d38 3030 2d35 332d 434d 2d37 2862  ST-800-53-CM-7(b
│ │ │ -002ac160: 290a 2020 2d20 6469 7361 626c 655f 7374  ).  - disable_st
│ │ │ -002ac170: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002ac180: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002ac190: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002ac1a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002ac1b0: 640a 2020 2d20 7365 7276 6963 655f 6375  d.  - service_cu
│ │ │ -002ac1c0: 7073 5f64 6973 6162 6c65 640a 2020 2d20  ps_disabled.  - 
│ │ │ -002ac1d0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ -002ac1e0: 0a0a 2d20 6e61 6d65 3a20 4469 7361 626c  ..- name: Disabl
│ │ │ -002ac1f0: 6520 7468 6520 4355 5053 2053 6572 7669  e the CUPS Servi
│ │ │ -002ac200: 6365 202d 2044 6973 6162 6c65 2073 6572  ce - Disable ser
│ │ │ -002ac210: 7669 6365 2063 7570 730a 2020 626c 6f63  vice cups.  bloc
│ │ │ -002ac220: 6b3a 0a0a 2020 2d20 6e61 6d65 3a20 4469  k:..  - name: Di
│ │ │ -002ac230: 7361 626c 6520 7468 6520 4355 5053 2053  sable the CUPS S
│ │ │ -002ac240: 6572 7669 6365 202d 2043 6f6c 6c65 6374  ervice - Collect
│ │ │ -002ac250: 2073 7973 7465 6d64 2053 6572 7669 6365   systemd Service
│ │ │ -002ac260: 7320 5072 6573 656e 7420 696e 2074 6865  s Present in the
│ │ │ -002ac270: 2053 7973 7465 6d0a 2020 2020 616e 7369   System.    ansi
│ │ │ -002ac280: 626c 652e 6275 696c 7469 6e2e 636f 6d6d  ble.builtin.comm
│ │ │ -002ac290: 616e 643a 2073 7973 7465 6d63 746c 202d  and: systemctl -
│ │ │ -002ac2a0: 7120 6c69 7374 2d75 6e69 742d 6669 6c65  q list-unit-file
│ │ │ -002ac2b0: 7320 2d2d 7479 7065 2073 6572 7669 6365  s --type service
│ │ │ -002ac2c0: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ -002ac2d0: 6572 7669 6365 5f65 7869 7374 730a 2020  ervice_exists.  
│ │ │ -002ac2e0: 2020 6368 616e 6765 645f 7768 656e 3a20    changed_when: 
│ │ │ -002ac2f0: 6661 6c73 650a 2020 2020 6661 696c 6564  false.    failed
│ │ │ -002ac300: 5f77 6865 6e3a 2073 6572 7669 6365 5f65  _when: service_e
│ │ │ -002ac310: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ -002ac320: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ -002ac330: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ -002ac340: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ -002ac350: 7468 6520 4355 5053 2053 6572 7669 6365  the CUPS Service
│ │ │ -002ac360: 202d 2045 6e73 7572 6520 6375 7073 2e73   - Ensure cups.s
│ │ │ -002ac370: 6572 7669 6365 2069 7320 4d61 736b 6564  ervice is Masked
│ │ │ -002ac380: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ -002ac390: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ -002ac3a0: 2020 2020 6e61 6d65 3a20 6375 7073 2e73      name: cups.s
│ │ │ -002ac3b0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ -002ac3c0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002ac3d0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ -002ac3e0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ -002ac3f0: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ -002ac400: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ -002ac410: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ -002ac420: 7263 6828 2263 7570 732e 7365 7276 6963  rch("cups.servic
│ │ │ -002ac430: 6522 2c20 6d75 6c74 696c 696e 653d 5472  e", multiline=Tr
│ │ │ -002ac440: 7565 290a 0a20 202d 206e 616d 653a 2055  ue)..  - name: U
│ │ │ -002ac450: 6e69 7420 536f 636b 6574 2045 7869 7374  nit Socket Exist
│ │ │ -002ac460: 7320 2d20 6375 7073 2e73 6f63 6b65 740a  s - cups.socket.
│ │ │ -002ac470: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002ac480: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002ac490: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002ac4a0: 6e69 742d 6669 6c65 7320 6375 7073 2e73  nit-files cups.s
│ │ │ -002ac4b0: 6f63 6b65 740a 2020 2020 7265 6769 7374  ocket.    regist
│ │ │ -002ac4c0: 6572 3a20 736f 636b 6574 5f66 696c 655f  er: socket_file_
│ │ │ -002ac4d0: 6578 6973 7473 0a20 2020 2063 6861 6e67  exists.    chang
│ │ │ -002ac4e0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ -002ac4f0: 2020 2066 6169 6c65 645f 7768 656e 3a20     failed_when: 
│ │ │ -002ac500: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002ac510: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ -002ac520: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ -002ac530: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ -002ac540: 616d 653a 2044 6973 6162 6c65 2074 6865  ame: Disable the
│ │ │ -002ac550: 2043 5550 5320 5365 7276 6963 6520 2d20   CUPS Service - 
│ │ │ -002ac560: 4469 7361 626c 6520 536f 636b 6574 2063  Disable Socket c
│ │ │ -002ac570: 7570 730a 2020 2020 616e 7369 626c 652e  ups.    ansible.
│ │ │ -002ac580: 6275 696c 7469 6e2e 7379 7374 656d 643a  builtin.systemd:
│ │ │ -002ac590: 0a20 2020 2020 206e 616d 653a 2063 7570  .      name: cup
│ │ │ -002ac5a0: 732e 736f 636b 6574 0a20 2020 2020 2065  s.socket.      e
│ │ │ -002ac5b0: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002ac5c0: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002ac5d0: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ -002ac5e0: 2074 7275 650a 2020 2020 7768 656e 3a20   true.    when: 
│ │ │ -002ac5f0: 736f 636b 6574 5f66 696c 655f 6578 6973  socket_file_exis
│ │ │ -002ac600: 7473 2e73 7464 6f75 745f 6c69 6e65 7320  ts.stdout_lines 
│ │ │ -002ac610: 6973 2073 6561 7263 6828 2263 7570 732e  is search("cups.
│ │ │ -002ac620: 736f 636b 6574 222c 206d 756c 7469 6c69  socket", multili
│ │ │ -002ac630: 6e65 3d54 7275 6529 0a20 2074 6167 733a  ne=True).  tags:
│ │ │ -002ac640: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ac650: 2d43 4d2d 3628 6129 0a20 202d 204e 4953  -CM-6(a).  - NIS
│ │ │ -002ac660: 542d 3830 302d 3533 2d43 4d2d 3728 6129  T-800-53-CM-7(a)
│ │ │ -002ac670: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ -002ac680: 2d43 4d2d 3728 6229 0a20 202d 2064 6973  -CM-7(b).  - dis
│ │ │ -002ac690: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ -002ac6a0: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ -002ac6b0: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ -002ac6c0: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f  ion.  - no_reboo
│ │ │ -002ac6d0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002ac6e0: 7669 6365 5f63 7570 735f 6469 7361 626c  vice_cups_disabl
│ │ │ -002ac6f0: 6564 0a20 202d 2073 7065 6369 616c 5f73  ed.  - special_s
│ │ │ -002ac700: 6572 7669 6365 5f62 6c6f 636b 0a20 202d  ervice_block.  -
│ │ │ -002ac710: 2075 6e6b 6e6f 776e 5f73 6576 6572 6974   unknown_severit
│ │ │ -002ac720: 790a 2020 7768 656e 3a20 2722 6c69 6e75  y.  when: '"linu
│ │ │ -002ac730: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -002ac740: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -002ac750: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002abbc0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ +002abbd0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
C │ │ │ -002ac020: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002ac050: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002ac060: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002ac0a0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002ac0b0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
Comp │ │ │ +002abc60: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ +002abc70: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ +002abc90: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ +002abcb0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ +002abcc0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ +002abd00: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ +002abd10: 653a 2047 6174 6865 7220 7468 6520 7061  e: Gather the pa
│ │ │ +002abd20: 636b 6167 6520 6661 6374 730a 2020 7061  ckage facts.  pa
│ │ │ +002abd30: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +002abd40: 206d 616e 6167 6572 3a20 6175 746f 0a20   manager: auto. 
│ │ │ +002abd50: 2074 6167 733a 0a20 202d 204e 4953 542d   tags:.  - NIST-
│ │ │ +002abd60: 3830 302d 3533 2d43 4d2d 3628 6129 0a20  800-53-CM-6(a). 
│ │ │ +002abd70: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002abd80: 4d2d 3728 6129 0a20 202d 204e 4953 542d  M-7(a).  - NIST-
│ │ │ +002abd90: 3830 302d 3533 2d43 4d2d 3728 6229 0a20  800-53-CM-7(b). 
│ │ │ +002abda0: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002abdb0: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002abdc0: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002abdd0: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +002abde0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002abdf0: 202d 2073 6572 7669 6365 5f63 7570 735f   - service_cups_
│ │ │ +002abe00: 6469 7361 626c 6564 0a20 202d 2075 6e6b  disabled.  - unk
│ │ │ +002abe10: 6e6f 776e 5f73 6576 6572 6974 790a 0a2d  nown_severity..-
│ │ │ +002abe20: 206e 616d 653a 2044 6973 6162 6c65 2074   name: Disable t
│ │ │ +002abe30: 6865 2043 5550 5320 5365 7276 6963 6520  he CUPS Service 
│ │ │ +002abe40: 2d20 4469 7361 626c 6520 7365 7276 6963  - Disable servic
│ │ │ +002abe50: 6520 6375 7073 0a20 2062 6c6f 636b 3a0a  e cups.  block:.
│ │ │ +002abe60: 0a20 202d 206e 616d 653a 2044 6973 6162  .  - name: Disab
│ │ │ +002abe70: 6c65 2074 6865 2043 5550 5320 5365 7276  le the CUPS Serv
│ │ │ +002abe80: 6963 6520 2d20 436f 6c6c 6563 7420 7379  ice - Collect sy
│ │ │ +002abe90: 7374 656d 6420 5365 7276 6963 6573 2050  stemd Services P
│ │ │ +002abea0: 7265 7365 6e74 2069 6e20 7468 6520 5379  resent in the Sy
│ │ │ +002abeb0: 7374 656d 0a20 2020 2061 6e73 6962 6c65  stem.    ansible
│ │ │ +002abec0: 2e62 7569 6c74 696e 2e63 6f6d 6d61 6e64  .builtin.command
│ │ │ +002abed0: 3a20 7379 7374 656d 6374 6c20 2d71 206c  : systemctl -q l
│ │ │ +002abee0: 6973 742d 756e 6974 2d66 696c 6573 202d  ist-unit-files -
│ │ │ +002abef0: 2d74 7970 6520 7365 7276 6963 650a 2020  -type service.  
│ │ │ +002abf00: 2020 7265 6769 7374 6572 3a20 7365 7276    register: serv
│ │ │ +002abf10: 6963 655f 6578 6973 7473 0a20 2020 2063  ice_exists.    c
│ │ │ +002abf20: 6861 6e67 6564 5f77 6865 6e3a 2066 616c  hanged_when: fal
│ │ │ +002abf30: 7365 0a20 2020 2066 6169 6c65 645f 7768  se.    failed_wh
│ │ │ +002abf40: 656e 3a20 7365 7276 6963 655f 6578 6973  en: service_exis
│ │ │ +002abf50: 7473 2e72 6320 6e6f 7420 696e 205b 302c  ts.rc not in [0,
│ │ │ +002abf60: 2031 5d0a 2020 2020 6368 6563 6b5f 6d6f   1].    check_mo
│ │ │ +002abf70: 6465 3a20 6661 6c73 650a 0a20 202d 206e  de: false..  - n
│ │ │ +002abf80: 616d 653a 2044 6973 6162 6c65 2074 6865  ame: Disable the
│ │ │ +002abf90: 2043 5550 5320 5365 7276 6963 6520 2d20   CUPS Service - 
│ │ │ +002abfa0: 456e 7375 7265 2063 7570 732e 7365 7276  Ensure cups.serv
│ │ │ +002abfb0: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002abfc0: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002abfd0: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002abfe0: 206e 616d 653a 2063 7570 732e 7365 7276   name: cups.serv
│ │ │ +002abff0: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ +002ac000: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ +002ac010: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ +002ac020: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ +002ac030: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ +002ac040: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ +002ac050: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ +002ac060: 2822 6375 7073 2e73 6572 7669 6365 222c  ("cups.service",
│ │ │ +002ac070: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002ac080: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +002ac090: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +002ac0a0: 2063 7570 732e 736f 636b 6574 0a20 2020   cups.socket.   
│ │ │ +002ac0b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002ac0c0: 2e63 6f6d 6d61 6e64 3a20 7379 7374 656d  .command: system
│ │ │ +002ac0d0: 6374 6c20 2d71 206c 6973 742d 756e 6974  ctl -q list-unit
│ │ │ +002ac0e0: 2d66 696c 6573 2063 7570 732e 736f 636b  -files cups.sock
│ │ │ +002ac0f0: 6574 0a20 2020 2072 6567 6973 7465 723a  et.    register:
│ │ │ +002ac100: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002ac110: 7374 730a 2020 2020 6368 616e 6765 645f  sts.    changed_
│ │ │ +002ac120: 7768 656e 3a20 6661 6c73 650a 2020 2020  when: false.    
│ │ │ +002ac130: 6661 696c 6564 5f77 6865 6e3a 2073 6f63  failed_when: soc
│ │ │ +002ac140: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +002ac150: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ +002ac160: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ +002ac170: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ +002ac180: 3a20 4469 7361 626c 6520 7468 6520 4355  : Disable the CU
│ │ │ +002ac190: 5053 2053 6572 7669 6365 202d 2044 6973  PS Service - Dis
│ │ │ +002ac1a0: 6162 6c65 2053 6f63 6b65 7420 6375 7073  able Socket cups
│ │ │ +002ac1b0: 0a20 2020 2061 6e73 6962 6c65 2e62 7569  .    ansible.bui
│ │ │ +002ac1c0: 6c74 696e 2e73 7973 7465 6d64 3a0a 2020  ltin.systemd:.  
│ │ │ +002ac1d0: 2020 2020 6e61 6d65 3a20 6375 7073 2e73      name: cups.s
│ │ │ +002ac1e0: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ +002ac1f0: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ +002ac200: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ +002ac210: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ +002ac220: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ +002ac230: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ +002ac240: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ +002ac250: 7365 6172 6368 2822 6375 7073 2e73 6f63  search("cups.soc
│ │ │ +002ac260: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +002ac270: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +002ac280: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002ac290: 2d36 2861 290a 2020 2d20 4e49 5354 2d38  -6(a).  - NIST-8
│ │ │ +002ac2a0: 3030 2d35 332d 434d 2d37 2861 290a 2020  00-53-CM-7(a).  
│ │ │ +002ac2b0: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002ac2c0: 2d37 2862 290a 2020 2d20 6469 7361 626c  -7(b).  - disabl
│ │ │ +002ac2d0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +002ac2e0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002ac2f0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002ac300: 0a20 202d 206e 6f5f 7265 626f 6f74 5f6e  .  - no_reboot_n
│ │ │ +002ac310: 6565 6465 640a 2020 2d20 7365 7276 6963  eeded.  - servic
│ │ │ +002ac320: 655f 6375 7073 5f64 6973 6162 6c65 640a  e_cups_disabled.
│ │ │ +002ac330: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002ac340: 6963 655f 626c 6f63 6b0a 2020 2d20 756e  ice_block.  - un
│ │ │ +002ac350: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a20  known_severity. 
│ │ │ +002ac360: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +002ac370: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +002ac380: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +002ac390: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ +002ac450: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ +002ac460: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002ac530: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002ac540: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +002ac590: 696e 636c 7564 6520 6469 7361 626c 655f  include disable_
│ │ │ +002ac5a0: 6375 7073 0a0a 636c 6173 7320 6469 7361  cups..class disa
│ │ │ +002ac5b0: 626c 655f 6375 7073 207b 0a20 2073 6572  ble_cups {.  ser
│ │ │ +002ac5c0: 7669 6365 207b 2763 7570 7327 3a0a 2020  vice {'cups':.  
│ │ │ +002ac5d0: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +002ac5e0: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +002ac5f0: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +002ac600: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +002ac610: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ +002ac6c0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75  tion OSBuild Blu
│ │ │ +002ac6d0: 6570 7269 6e74 2073 6e69 7070 6574 20e2  eprint snippet .
│ │ │ +002ac6e0: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
│ │ │ +002ac720: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +002ac730: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +002ac740: 0a6d 6173 6b65 6420 3d20 5b22 6375 7073  .masked = ["cups
│ │ │ +002ac750: 225d 0a3c 2f63 6f64 653e 3c2f 7072 653e  "].
│ │ │ 002ac760: 3c2f 6469 763e 3c2f 6469 763e 3c2f 7464
│ │ │ 002ac790: 3c74 7220 6461 7461 2d74 742d 6964 3d22 Remediati │ │ │ -002ad7e0: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ -002ad7f0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ -002ad870: 3c74 723e 3c74 683e 436f 6d70 6c65 7869 < │ │ │ -002ad900: 7464 3e64 6973 6162 6c65 3c2f 7464 3e3c td>disable< │ │ │ -002ad910: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
low
Disru │ │ │ +002ac510: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002ac520: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002ac560: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +002ac570: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ -002ad880: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ -002ad890: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ -002ad8d0: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ -002ad8e0: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
.include 
│ │ │ -002ad930: 7265 6d6f 7665 5f73 7175 6964 0a0a 636c  remove_squid..cl
│ │ │ -002ad940: 6173 7320 7265 6d6f 7665 5f73 7175 6964  ass remove_squid
│ │ │ -002ad950: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -002ad960: 7371 7569 6427 3a0a 2020 2020 656e 7375  squid':.    ensu
│ │ │ -002ad970: 7265 203d 2667 743b 2027 7075 7267 6564  re => 'purged
│ │ │ -002ad980: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -002ad990: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002ada40: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -002ada50: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
Comp │ │ │ -002adae0: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -002adaf0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -002adb10: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -002adb30: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -002adb40: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:disable
│ │ │ -002adb80: 3c70 7265 3e3c 636f 6465 3e2d 206e 616d
- nam
│ │ │ -002adb90: 653a 2027 556e 696e 7374 616c 6c20 7371  e: 'Uninstall sq
│ │ │ -002adba0: 7569 6420 5061 636b 6167 653a 2045 6e73  uid Package: Ens
│ │ │ -002adbb0: 7572 6520 7371 7569 6420 6973 2072 656d  ure squid is rem
│ │ │ -002adbc0: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002adbd0: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002adbe0: 0a20 2020 206e 616d 653a 2073 7175 6964  .    name: squid
│ │ │ -002adbf0: 0a20 2020 2073 7461 7465 3a20 6162 7365  .    state: abse
│ │ │ -002adc00: 6e74 0a20 2074 6167 733a 0a20 202d 2064  nt.  tags:.  - d
│ │ │ -002adc10: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002adc20: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002adc30: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002adc40: 7074 696f 6e0a 2020 2d20 6e6f 5f72 6562  ption.  - no_reb
│ │ │ -002adc50: 6f6f 745f 6e65 6564 6564 0a20 202d 2070  oot_needed.  - p
│ │ │ -002adc60: 6163 6b61 6765 5f73 7175 6964 5f72 656d  ackage_squid_rem
│ │ │ -002adc70: 6f76 6564 0a20 202d 2075 6e6b 6e6f 776e  oved.  - unknown
│ │ │ -002adc80: 5f73 6576 6572 6974 790a 3c2f 636f 6465  _severity.
< │ │ │ +002ad830: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002ad840: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002ad850: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002ad860: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002ad870: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002ad880: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002ad890: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002ad8d0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002ad8e0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002ad900: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002ad910: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ +002ad930: 2755 6e69 6e73 7461 6c6c 2073 7175 6964 'Uninstall squid │ │ │ +002ad940: 2050 6163 6b61 6765 3a20 456e 7375 7265 Package: Ensure │ │ │ +002ad950: 2073 7175 6964 2069 7320 7265 6d6f 7665 squid is remove │ │ │ +002ad960: 6427 0a20 2061 6e73 6962 6c65 2e62 7569 d'. ansible.bui │ │ │ +002ad970: 6c74 696e 2e70 6163 6b61 6765 3a0a 2020 ltin.package:. │ │ │ +002ad980: 2020 6e61 6d65 3a20 7371 7569 640a 2020 name: squid. │ │ │ +002ad990: 2020 7374 6174 653a 2061 6273 656e 740a state: absent. │ │ │ +002ad9a0: 2020 7461 6773 3a0a 2020 2d20 6469 7361 tags:. - disa │ │ │ +002ad9b0: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ +002ad9c0: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ +002ad9d0: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ +002ad9e0: 6f6e 0a20 202d 206e 6f5f 7265 626f 6f74 on. - no_reboot │ │ │ +002ad9f0: 5f6e 6565 6465 640a 2020 2d20 7061 636b _needed. - pack │ │ │ +002ada00: 6167 655f 7371 7569 645f 7265 6d6f 7665 age_squid_remove │ │ │ +002ada10: 640a 2020 2d20 756e 6b6e 6f77 6e5f 7365 d. - unknown_se │ │ │ +002ada20: 7665 7269 7479 0a3c 2f63 6f64 653e 3c2f verity.
Remediat │ │ │ +002adae0: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ +002adaf0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002adb30: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002adb40: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002adb50: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002adb60: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002adb70: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +002adb80: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002adb90: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +002adbd0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002adbe0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +002adc00: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ +002adc10: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ +002adc30: 2072 656d 6f76 655f 7371 7569 640a 0a63 remove_squid..c │ │ │ +002adc40: 6c61 7373 2072 656d 6f76 655f 7371 7569 lass remove_squi │ │ │ +002adc50: 6420 7b0a 2020 7061 636b 6167 6520 7b20 d {. package { │ │ │ +002adc60: 2773 7175 6964 273a 0a20 2020 2065 6e73 'squid':. ens │ │ │ +002adc70: 7572 6520 3d26 6774 3b20 2770 7572 6765 ure => 'purge │ │ │ +002adc80: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 d',. }.}.
│ │ │ -002ae7e0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -002ae7f0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -002ae800: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[c
│ │ │ -002ae850: 7573 746f 6d69 7a61 7469 6f6e 732e 7365  ustomizations.se
│ │ │ -002ae860: 7276 6963 6573 5d0a 6d61 736b 6564 203d  rvices].masked =
│ │ │ -002ae870: 205b 2273 7175 6964 225d 0a3c 2f63 6f64   ["squid"].
Reme │ │ │ -002ae930: 6469 6174 696f 6e20 5075 7070 6574 2073 diation Puppet s │ │ │ -002ae940: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002ae9d0: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002aea00: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002aea20: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002aea30: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002aea50: 2f74 683e 3c74 643e 656e 6162 6c65 3c2f /th>enable
│ │ │ -002aea70: 3c70 7265 3e3c 636f 6465 3e69 6e63 6c75
inclu
│ │ │ -002aea80: 6465 2064 6973 6162 6c65 5f73 7175 6964  de disable_squid
│ │ │ -002aea90: 0a0a 636c 6173 7320 6469 7361 626c 655f  ..class disable_
│ │ │ -002aeaa0: 7371 7569 6420 7b0a 2020 7365 7276 6963  squid {.  servic
│ │ │ -002aeab0: 6520 7b27 7371 7569 6427 3a0a 2020 2020  e {'squid':.    
│ │ │ -002aeac0: 656e 6162 6c65 203d 2667 743b 2066 616c  enable => fal
│ │ │ -002aead0: 7365 2c0a 2020 2020 656e 7375 7265 203d  se,.    ensure =
│ │ │ -002aeae0: 2667 743b 2027 7374 6f70 7065 6427 2c0a  > 'stopped',.
│ │ │ -002aeaf0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -002aebb0: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -002aebc0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002aec00: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002aec10: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002aec20: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002aec30: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002aec40: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002aec50: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002aec60: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002aeca0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002aecb0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002aecd0: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002aece0: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 - name: │ │ │ -002aed00: 4761 7468 6572 2074 6865 2070 6163 6b61 Gather the packa │ │ │ -002aed10: 6765 2066 6163 7473 0a20 2070 6163 6b61 ge facts. packa │ │ │ -002aed20: 6765 5f66 6163 7473 3a0a 2020 2020 6d61 ge_facts:. ma │ │ │ -002aed30: 6e61 6765 723a 2061 7574 6f0a 2020 7461 nager: auto. ta │ │ │ -002aed40: 6773 3a0a 2020 2d20 6469 7361 626c 655f gs:. - disable_ │ │ │ -002aed50: 7374 7261 7465 6779 0a20 202d 206c 6f77 strategy. - low │ │ │ -002aed60: 5f63 6f6d 706c 6578 6974 790a 2020 2d20 _complexity. - │ │ │ -002aed70: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20 low_disruption. │ │ │ -002aed80: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565 - no_reboot_nee │ │ │ -002aed90: 6465 640a 2020 2d20 7365 7276 6963 655f ded. - service_ │ │ │ -002aeda0: 7371 7569 645f 6469 7361 626c 6564 0a20 squid_disabled. │ │ │ -002aedb0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572 - unknown_sever │ │ │ -002aedc0: 6974 790a 0a2d 206e 616d 653a 2044 6973 ity..- name: Dis │ │ │ -002aedd0: 6162 6c65 2053 7175 6964 202d 2044 6973 able Squid - Dis │ │ │ -002aede0: 6162 6c65 2073 6572 7669 6365 2073 7175 able service squ │ │ │ -002aedf0: 6964 0a20 2062 6c6f 636b 3a0a 0a20 202d id. block:.. - │ │ │ -002aee00: 206e 616d 653a 2044 6973 6162 6c65 2053 name: Disable S │ │ │ -002aee10: 7175 6964 202d 2043 6f6c 6c65 6374 2073 quid - Collect s │ │ │ -002aee20: 7973 7465 6d64 2053 6572 7669 6365 7320 ystemd Services │ │ │ -002aee30: 5072 6573 656e 7420 696e 2074 6865 2053 Present in the S │ │ │ -002aee40: 7973 7465 6d0a 2020 2020 616e 7369 626c ystem. ansibl │ │ │ -002aee50: 652e 6275 696c 7469 6e2e 636f 6d6d 616e e.builtin.comman │ │ │ -002aee60: 643a 2073 7973 7465 6d63 746c 202d 7120 d: systemctl -q │ │ │ -002aee70: 6c69 7374 2d75 6e69 742d 6669 6c65 7320 list-unit-files │ │ │ -002aee80: 2d2d 7479 7065 2073 6572 7669 6365 0a20 --type service. │ │ │ -002aee90: 2020 2072 6567 6973 7465 723a 2073 6572 register: ser │ │ │ -002aeea0: 7669 6365 5f65 7869 7374 730a 2020 2020 vice_exists. │ │ │ -002aeeb0: 6368 616e 6765 645f 7768 656e 3a20 6661 changed_when: fa │ │ │ -002aeec0: 6c73 650a 2020 2020 6661 696c 6564 5f77 lse. failed_w │ │ │ -002aeed0: 6865 6e3a 2073 6572 7669 6365 5f65 7869 hen: service_exi │ │ │ -002aeee0: 7374 732e 7263 206e 6f74 2069 6e20 5b30 sts.rc not in [0 │ │ │ -002aeef0: 2c20 315d 0a20 2020 2063 6865 636b 5f6d , 1]. check_m │ │ │ -002aef00: 6f64 653a 2066 616c 7365 0a0a 2020 2d20 ode: false.. - │ │ │ -002aef10: 6e61 6d65 3a20 4469 7361 626c 6520 5371 name: Disable Sq │ │ │ -002aef20: 7569 6420 2d20 456e 7375 7265 2073 7175 uid - Ensure squ │ │ │ -002aef30: 6964 2e73 6572 7669 6365 2069 7320 4d61 id.service is Ma │ │ │ -002aef40: 736b 6564 0a20 2020 2061 6e73 6962 6c65 sked. ansible │ │ │ -002aef50: 2e62 7569 6c74 696e 2e73 7973 7465 6d64 .builtin.systemd │ │ │ -002aef60: 3a0a 2020 2020 2020 6e61 6d65 3a20 7371 :. name: sq │ │ │ -002aef70: 7569 642e 7365 7276 6963 650a 2020 2020 uid.service. │ │ │ -002aef80: 2020 7374 6174 653a 2073 746f 7070 6564 state: stopped │ │ │ -002aef90: 0a20 2020 2020 2065 6e61 626c 6564 3a20 . enabled: │ │ │ -002aefa0: 6661 6c73 650a 2020 2020 2020 6d61 736b false. mask │ │ │ -002aefb0: 6564 3a20 7472 7565 0a20 2020 2077 6865 ed: true. whe │ │ │ -002aefc0: 6e3a 2073 6572 7669 6365 5f65 7869 7374 n: service_exist │ │ │ -002aefd0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -002aefe0: 7320 7365 6172 6368 2822 7371 7569 642e s search("squid. │ │ │ -002aeff0: 7365 7276 6963 6522 2c20 6d75 6c74 696c service", multil │ │ │ -002af000: 696e 653d 5472 7565 290a 0a20 202d 206e ine=True).. - n │ │ │ -002af010: 616d 653a 2055 6e69 7420 536f 636b 6574 ame: Unit Socket │ │ │ -002af020: 2045 7869 7374 7320 2d20 7371 7569 642e Exists - squid. │ │ │ -002af030: 736f 636b 6574 0a20 2020 2061 6e73 6962 socket. ansib │ │ │ -002af040: 6c65 2e62 7569 6c74 696e 2e63 6f6d 6d61 le.builtin.comma │ │ │ -002af050: 6e64 3a20 7379 7374 656d 6374 6c20 2d71 nd: systemctl -q │ │ │ -002af060: 206c 6973 742d 756e 6974 2d66 696c 6573 list-unit-files │ │ │ -002af070: 2073 7175 6964 2e73 6f63 6b65 740a 2020 squid.socket. │ │ │ -002af080: 2020 7265 6769 7374 6572 3a20 736f 636b register: sock │ │ │ -002af090: 6574 5f66 696c 655f 6578 6973 7473 0a20 et_file_exists. │ │ │ -002af0a0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a changed_when: │ │ │ -002af0b0: 2066 616c 7365 0a20 2020 2066 6169 6c65 false. faile │ │ │ -002af0c0: 645f 7768 656e 3a20 736f 636b 6574 5f66 d_when: socket_f │ │ │ -002af0d0: 696c 655f 6578 6973 7473 2e72 6320 6e6f ile_exists.rc no │ │ │ -002af0e0: 7420 696e 205b 302c 2031 5d0a 2020 2020 t in [0, 1]. │ │ │ -002af0f0: 6368 6563 6b5f 6d6f 6465 3a20 6661 6c73 check_mode: fals │ │ │ -002af100: 650a 0a20 202d 206e 616d 653a 2044 6973 e.. - name: Dis │ │ │ -002af110: 6162 6c65 2053 7175 6964 202d 2044 6973 able Squid - Dis │ │ │ -002af120: 6162 6c65 2053 6f63 6b65 7420 7371 7569 able Socket squi │ │ │ -002af130: 640a 2020 2020 616e 7369 626c 652e 6275 d. ansible.bu │ │ │ -002af140: 696c 7469 6e2e 7379 7374 656d 643a 0a20 iltin.systemd:. │ │ │ -002af150: 2020 2020 206e 616d 653a 2073 7175 6964 name: squid │ │ │ -002af160: 2e73 6f63 6b65 740a 2020 2020 2020 656e .socket. en │ │ │ -002af170: 6162 6c65 643a 2066 616c 7365 0a20 2020 abled: false. │ │ │ -002af180: 2020 2073 7461 7465 3a20 7374 6f70 7065 state: stoppe │ │ │ -002af190: 640a 2020 2020 2020 6d61 736b 6564 3a20 d. masked: │ │ │ -002af1a0: 7472 7565 0a20 2020 2077 6865 6e3a 2073 true. when: s │ │ │ -002af1b0: 6f63 6b65 745f 6669 6c65 5f65 7869 7374 ocket_file_exist │ │ │ -002af1c0: 732e 7374 646f 7574 5f6c 696e 6573 2069 s.stdout_lines i │ │ │ -002af1d0: 7320 7365 6172 6368 2822 7371 7569 642e s search("squid. │ │ │ -002af1e0: 736f 636b 6574 222c 206d 756c 7469 6c69 socket", multili │ │ │ -002af1f0: 6e65 3d54 7275 6529 0a20 2074 6167 733a ne=True). tags: │ │ │ -002af200: 0a20 202d 2064 6973 6162 6c65 5f73 7472 . - disable_str │ │ │ -002af210: 6174 6567 790a 2020 2d20 6c6f 775f 636f ategy. - low_co │ │ │ -002af220: 6d70 6c65 7869 7479 0a20 202d 206c 6f77 mplexity. - low │ │ │ -002af230: 5f64 6973 7275 7074 696f 6e0a 2020 2d20 _disruption. - │ │ │ -002af240: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564 no_reboot_needed │ │ │ -002af250: 0a20 202d 2073 6572 7669 6365 5f73 7175 . - service_squ │ │ │ -002af260: 6964 5f64 6973 6162 6c65 640a 2020 2d20 id_disabled. - │ │ │ -002af270: 7370 6563 6961 6c5f 7365 7276 6963 655f special_service_ │ │ │ -002af280: 626c 6f63 6b0a 2020 2d20 756e 6b6e 6f77 block. - unknow │ │ │ -002af290: 6e5f 7365 7665 7269 7479 0a20 2077 6865 n_severity. whe │ │ │ -002af2a0: 6e3a 2028 2022 7371 7569 6422 2069 6e20 n: ( "squid" in │ │ │ -002af2b0: 616e 7369 626c 655f 6661 6374 732e 7061 ansible_facts.pa │ │ │ -002af2c0: 636b 6167 6573 2061 6e64 2022 6c69 6e75 ckages and "linu │ │ │ -002af2d0: 782d 6261 7365 2220 696e 2061 6e73 6962 x-base" in ansib │ │ │ -002af2e0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765 le_facts.package │ │ │ -002af2f0: 730a 2020 2020 290a 3c2f 636f 6465 3e3c s. ).< │ │ │ +002ae7e0: 5265 6d65 6469 6174 696f 6e20 416e 7369 Remediation Ansi │ │ │ +002ae7f0: 626c 6520 736e 6970 7065 7420 e287 b23c ble snippet ...< │ │ │ +002ae800: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ +002ae8d0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +002ae8e0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f
- name: Gather 
│ │ │ +002ae940: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002ae950: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002ae960: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002ae970: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002ae980: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002ae990: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002ae9a0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002ae9b0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002ae9c0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002ae9d0: 2073 6572 7669 6365 5f73 7175 6964 5f64   service_squid_d
│ │ │ +002ae9e0: 6973 6162 6c65 640a 2020 2d20 756e 6b6e  isabled.  - unkn
│ │ │ +002ae9f0: 6f77 6e5f 7365 7665 7269 7479 0a0a 2d20  own_severity..- 
│ │ │ +002aea00: 6e61 6d65 3a20 4469 7361 626c 6520 5371  name: Disable Sq
│ │ │ +002aea10: 7569 6420 2d20 4469 7361 626c 6520 7365  uid - Disable se
│ │ │ +002aea20: 7276 6963 6520 7371 7569 640a 2020 626c  rvice squid.  bl
│ │ │ +002aea30: 6f63 6b3a 0a0a 2020 2d20 6e61 6d65 3a20  ock:..  - name: 
│ │ │ +002aea40: 4469 7361 626c 6520 5371 7569 6420 2d20  Disable Squid - 
│ │ │ +002aea50: 436f 6c6c 6563 7420 7379 7374 656d 6420  Collect systemd 
│ │ │ +002aea60: 5365 7276 6963 6573 2050 7265 7365 6e74  Services Present
│ │ │ +002aea70: 2069 6e20 7468 6520 5379 7374 656d 0a20   in the System. 
│ │ │ +002aea80: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ +002aea90: 696e 2e63 6f6d 6d61 6e64 3a20 7379 7374  in.command: syst
│ │ │ +002aeaa0: 656d 6374 6c20 2d71 206c 6973 742d 756e  emctl -q list-un
│ │ │ +002aeab0: 6974 2d66 696c 6573 202d 2d74 7970 6520  it-files --type 
│ │ │ +002aeac0: 7365 7276 6963 650a 2020 2020 7265 6769  service.    regi
│ │ │ +002aead0: 7374 6572 3a20 7365 7276 6963 655f 6578  ster: service_ex
│ │ │ +002aeae0: 6973 7473 0a20 2020 2063 6861 6e67 6564  ists.    changed
│ │ │ +002aeaf0: 5f77 6865 6e3a 2066 616c 7365 0a20 2020  _when: false.   
│ │ │ +002aeb00: 2066 6169 6c65 645f 7768 656e 3a20 7365   failed_when: se
│ │ │ +002aeb10: 7276 6963 655f 6578 6973 7473 2e72 6320  rvice_exists.rc 
│ │ │ +002aeb20: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ +002aeb30: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002aeb40: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ +002aeb50: 6973 6162 6c65 2053 7175 6964 202d 2045  isable Squid - E
│ │ │ +002aeb60: 6e73 7572 6520 7371 7569 642e 7365 7276  nsure squid.serv
│ │ │ +002aeb70: 6963 6520 6973 204d 6173 6b65 640a 2020  ice is Masked.  
│ │ │ +002aeb80: 2020 616e 7369 626c 652e 6275 696c 7469    ansible.builti
│ │ │ +002aeb90: 6e2e 7379 7374 656d 643a 0a20 2020 2020  n.systemd:.     
│ │ │ +002aeba0: 206e 616d 653a 2073 7175 6964 2e73 6572   name: squid.ser
│ │ │ +002aebb0: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +002aebc0: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002aebd0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002aebe0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002aebf0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +002aec00: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +002aec10: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002aec20: 6828 2273 7175 6964 2e73 6572 7669 6365  h("squid.service
│ │ │ +002aec30: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ +002aec40: 6529 0a0a 2020 2d20 6e61 6d65 3a20 556e  e)..  - name: Un
│ │ │ +002aec50: 6974 2053 6f63 6b65 7420 4578 6973 7473  it Socket Exists
│ │ │ +002aec60: 202d 2073 7175 6964 2e73 6f63 6b65 740a   - squid.socket.
│ │ │ +002aec70: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002aec80: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ +002aec90: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ +002aeca0: 6e69 742d 6669 6c65 7320 7371 7569 642e  nit-files squid.
│ │ │ +002aecb0: 736f 636b 6574 0a20 2020 2072 6567 6973  socket.    regis
│ │ │ +002aecc0: 7465 723a 2073 6f63 6b65 745f 6669 6c65  ter: socket_file
│ │ │ +002aecd0: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ +002aece0: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ +002aecf0: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ +002aed00: 2073 6f63 6b65 745f 6669 6c65 5f65 7869   socket_file_exi
│ │ │ +002aed10: 7374 732e 7263 206e 6f74 2069 6e20 5b30  sts.rc not in [0
│ │ │ +002aed20: 2c20 315d 0a20 2020 2063 6865 636b 5f6d  , 1].    check_m
│ │ │ +002aed30: 6f64 653a 2066 616c 7365 0a0a 2020 2d20  ode: false..  - 
│ │ │ +002aed40: 6e61 6d65 3a20 4469 7361 626c 6520 5371  name: Disable Sq
│ │ │ +002aed50: 7569 6420 2d20 4469 7361 626c 6520 536f  uid - Disable So
│ │ │ +002aed60: 636b 6574 2073 7175 6964 0a20 2020 2061  cket squid.    a
│ │ │ +002aed70: 6e73 6962 6c65 2e62 7569 6c74 696e 2e73  nsible.builtin.s
│ │ │ +002aed80: 7973 7465 6d64 3a0a 2020 2020 2020 6e61  ystemd:.      na
│ │ │ +002aed90: 6d65 3a20 7371 7569 642e 736f 636b 6574  me: squid.socket
│ │ │ +002aeda0: 0a20 2020 2020 2065 6e61 626c 6564 3a20  .      enabled: 
│ │ │ +002aedb0: 6661 6c73 650a 2020 2020 2020 7374 6174  false.      stat
│ │ │ +002aedc0: 653a 2073 746f 7070 6564 0a20 2020 2020  e: stopped.     
│ │ │ +002aedd0: 206d 6173 6b65 643a 2074 7275 650a 2020   masked: true.  
│ │ │ +002aede0: 2020 7768 656e 3a20 736f 636b 6574 5f66    when: socket_f
│ │ │ +002aedf0: 696c 655f 6578 6973 7473 2e73 7464 6f75  ile_exists.stdou
│ │ │ +002aee00: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002aee10: 6828 2273 7175 6964 2e73 6f63 6b65 7422  h("squid.socket"
│ │ │ +002aee20: 2c20 6d75 6c74 696c 696e 653d 5472 7565  , multiline=True
│ │ │ +002aee30: 290a 2020 7461 6773 3a0a 2020 2d20 6469  ).  tags:.  - di
│ │ │ +002aee40: 7361 626c 655f 7374 7261 7465 6779 0a20  sable_strategy. 
│ │ │ +002aee50: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +002aee60: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +002aee70: 7469 6f6e 0a20 202d 206e 6f5f 7265 626f  tion.  - no_rebo
│ │ │ +002aee80: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002aee90: 7276 6963 655f 7371 7569 645f 6469 7361  rvice_squid_disa
│ │ │ +002aeea0: 626c 6564 0a20 202d 2073 7065 6369 616c  bled.  - special
│ │ │ +002aeeb0: 5f73 6572 7669 6365 5f62 6c6f 636b 0a20  _service_block. 
│ │ │ +002aeec0: 202d 2075 6e6b 6e6f 776e 5f73 6576 6572   - unknown_sever
│ │ │ +002aeed0: 6974 790a 2020 7768 656e 3a20 2820 2273  ity.  when: ( "s
│ │ │ +002aeee0: 7175 6964 2220 696e 2061 6e73 6962 6c65  quid" in ansible
│ │ │ +002aeef0: 5f66 6163 7473 2e70 6163 6b61 6765 7320  _facts.packages 
│ │ │ +002aef00: 616e 6420 226c 696e 7578 2d62 6173 6522  and "linux-base"
│ │ │ +002aef10: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +002aef20: 732e 7061 636b 6167 6573 0a20 2020 2029  s.packages.    )
│ │ │ +002aef30: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation Pu │ │ │ +002aeff0: 7070 6574 2073 6e69 7070 6574 20e2 87b2 ppet snippet ... │ │ │ +002af000: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
low
Disru │ │ │ +002ae8b0: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +002ae8c0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +002ae900: 6567 793a 3c2f 7468 3e3c 7464 3e64 6973 egy:dis │ │ │ +002ae910: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
< │ │ │ +002af080: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ +002af0a0: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ +002af0f0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>
include disable
│ │ │ +002af140: 5f73 7175 6964 0a0a 636c 6173 7320 6469  _squid..class di
│ │ │ +002af150: 7361 626c 655f 7371 7569 6420 7b0a 2020  sable_squid {.  
│ │ │ +002af160: 7365 7276 6963 6520 7b27 7371 7569 6427  service {'squid'
│ │ │ +002af170: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ +002af180: 743b 2066 616c 7365 2c0a 2020 2020 656e  t; false,.    en
│ │ │ +002af190: 7375 7265 203d 2667 743b 2027 7374 6f70  sure => 'stop
│ │ │ +002af1a0: 7065 6427 2c0a 2020 7d0a 7d0a 3c2f 636f  ped',.  }.}.
< │ │ │ +002af1c0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ +002af1d0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ +002af1e0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ +002af1f0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ +002af200: 6431 3134 3522 2074 6162 696e 6465 783d d1145" tabindex= │ │ │ +002af210: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ +002af220: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ +002af230: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ +002af240: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ +002af250: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ +002af260: 6564 6961 7469 6f6e 204f 5342 7569 6c64 ediation OSBuild │ │ │ +002af270: 2042 6c75 6570 7269 6e74 2073 6e69 7070 Blueprint snipp │ │ │ +002af280: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +002af2c0: 7072 653e 3c63 6f64 653e 0a5b 6375 7374 pre>.[cust │ │ │ +002af2d0: 6f6d 697a 6174 696f 6e73 2e73 6572 7669 omizations.servi │ │ │ +002af2e0: 6365 735d 0a6d 6173 6b65 6420 3d20 5b22 ces].masked = [" │ │ │ +002af2f0: 7371 7569 6422 5d0a 3c2f 636f 6465 3e3c squid"].< │ │ │ 002af300: 2f70 7265 3e3c 2f64 6976 3e3c 2f64 6976 /pre>
low
Disr │ │ │ +002af0b0: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ +002af0c0: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ +002af100: 7465 6779 3a3c 2f74 683e 3c74 643e 656e tegy:en │ │ │ +002af110: 6162 6c65 3c2f 7464 3e3c 2f74 723e 3c2f able
│ │ │ 002af330: 3c2f 7472 3e3c 7472 2064 6174 612d 7474 Re │ │ │ -002b0430: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002b0440: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002b0450: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ -002b04e0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ -002b04f0: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ -002b0540: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ -002b0580: 6e63 6c75 6465 2072 656d 6f76 655f 7361  nclude remove_sa
│ │ │ -002b0590: 6d62 610a 0a63 6c61 7373 2072 656d 6f76  mba..class remov
│ │ │ -002b05a0: 655f 7361 6d62 6120 7b0a 2020 7061 636b  e_samba {.  pack
│ │ │ -002b05b0: 6167 6520 7b20 2773 616d 6261 273a 0a20  age { 'samba':. 
│ │ │ -002b05c0: 2020 2065 6e73 7572 6520 3d26 6774 3b20     ensure => 
│ │ │ -002b05d0: 2770 7572 6765 6427 2c0a 2020 7d0a 7d0a  'purged',.  }.}.
│ │ │ -002b05e0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Ans │ │ │ -002b06a0: 6962 6c65 2073 6e69 7070 6574 20e2 87b2 ible snippet ... │ │ │ -002b06b0: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
C │ │ │ -002b04d0: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ -002b0500: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ -002b0510: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ -002b0550: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ -002b0560: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ -002b0730: 7468 3e43 6f6d 706c 6578 6974 793a 3c2f th>Complexity:< │ │ │ -002b0750: 2f74 723e 3c74 723e 3c74 683e 4469 7372 /tr>< │ │ │ -002b07a0: 2f74 723e 3c74 723e 3c74 683e 5374 7261 /tr>< │ │ │ -002b07d0: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: 'Unins
│ │ │ -002b07f0: 7461 6c6c 2053 616d 6261 2050 6163 6b61  tall Samba Packa
│ │ │ -002b0800: 6765 3a20 456e 7375 7265 2073 616d 6261  ge: Ensure samba
│ │ │ -002b0810: 2069 7320 7265 6d6f 7665 6427 0a20 2061   is removed'.  a
│ │ │ -002b0820: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70  nsible.builtin.p
│ │ │ -002b0830: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65  ackage:.    name
│ │ │ -002b0840: 3a20 7361 6d62 610a 2020 2020 7374 6174  : samba.    stat
│ │ │ -002b0850: 653a 2061 6273 656e 740a 2020 7461 6773  e: absent.  tags
│ │ │ -002b0860: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002b0870: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002b0880: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002b0890: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002b08a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465   no_reboot_neede
│ │ │ -002b08b0: 640a 2020 2d20 7061 636b 6167 655f 7361  d.  - package_sa
│ │ │ -002b08c0: 6d62 615f 7265 6d6f 7665 640a 2020 2d20  mba_removed.  - 
│ │ │ -002b08d0: 756e 6b6e 6f77 6e5f 7365 7665 7269 7479  unknown_severity
│ │ │ +002b0430: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002b0440: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
low
Disr │ │ │ -002b0760: 7570 7469 6f6e 3a3c 2f74 683e 3c74 643e uption: │ │ │ -002b0770: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Reboot:false
Stra │ │ │ -002b07b0: 7465 6779 3a3c 2f74 683e 3c74 643e 6469 tegy:di │ │ │ -002b07c0: 7361 626c 653c 2f74 643e 3c2f 7472 3e3c sable
│ │ │ +002b04e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b0580: 206e 616d 653a 2027 556e 696e 7374 616c   name: 'Uninstal
│ │ │ +002b0590: 6c20 5361 6d62 6120 5061 636b 6167 653a  l Samba Package:
│ │ │ +002b05a0: 2045 6e73 7572 6520 7361 6d62 6120 6973   Ensure samba is
│ │ │ +002b05b0: 2072 656d 6f76 6564 270a 2020 616e 7369   removed'.  ansi
│ │ │ +002b05c0: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +002b05d0: 6167 653a 0a20 2020 206e 616d 653a 2073  age:.    name: s
│ │ │ +002b05e0: 616d 6261 0a20 2020 2073 7461 7465 3a20  amba.    state: 
│ │ │ +002b05f0: 6162 7365 6e74 0a20 2074 6167 733a 0a20  absent.  tags:. 
│ │ │ +002b0600: 202d 2064 6973 6162 6c65 5f73 7472 6174   - disable_strat
│ │ │ +002b0610: 6567 790a 2020 2d20 6c6f 775f 636f 6d70  egy.  - low_comp
│ │ │ +002b0620: 6c65 7869 7479 0a20 202d 206c 6f77 5f64  lexity.  - low_d
│ │ │ +002b0630: 6973 7275 7074 696f 6e0a 2020 2d20 6e6f  isruption.  - no
│ │ │ +002b0640: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002b0650: 202d 2070 6163 6b61 6765 5f73 616d 6261   - package_samba
│ │ │ +002b0660: 5f72 656d 6f76 6564 0a20 202d 2075 6e6b  _removed.  - unk
│ │ │ +002b0670: 6e6f 776e 5f73 6576 6572 6974 790a 3c2f  nown_severity.
R │ │ │ +002b0730: 656d 6564 6961 7469 6f6e 2050 7570 7065 emediation Puppe │ │ │ +002b0740: 7420 736e 6970 7065 7420 e287 b23c 2f61 t snippet ...
│ │ │ +002b04d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b0500: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b0510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b0550: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b0560: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
│ │ │ +002b07e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
.
│ │ │ +002b0880: 696e 636c 7564 6520 7265 6d6f 7665 5f73  include remove_s
│ │ │ +002b0890: 616d 6261 0a0a 636c 6173 7320 7265 6d6f  amba..class remo
│ │ │ +002b08a0: 7665 5f73 616d 6261 207b 0a20 2070 6163  ve_samba {.  pac
│ │ │ +002b08b0: 6b61 6765 207b 2027 7361 6d62 6127 3a0a  kage { 'samba':.
│ │ │ +002b08c0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002b08d0: 2027 7075 7267 6564 272c 0a20 207d 0a7d   'purged',.  }.}
│ │ │  002b08e0: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Reme │ │ │ -002b13c0: 6469 6174 696f 6e20 4f53 4275 696c 6420 diation OSBuild │ │ │ -002b13d0: 426c 7565 7072 696e 7420 736e 6970 7065 Blueprint snippe │ │ │ -002b13e0: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...

.[custo │ │ │ -002b1430: 6d69 7a61 7469 6f6e 732e 7365 7276 6963 mizations.servic │ │ │ -002b1440: 6573 5d0a 6d61 736b 6564 203d 205b 2273 es].masked = ["s │ │ │ -002b1450: 6d62 225d 0a3c 2f63 6f64 653e 3c2f 7072 mb"].Remediatio │ │ │ -002b1510: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ -002b1520: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...

< │ │ │ -002b15a0: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>
│ │ │ -002b15e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 enable
│ │ │ +002b07d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b0800: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b0810: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b0850: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b0860: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complexit │ │ │ -002b15b0: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low
│ │ │ -002b15d0: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption:low
Reboot: │ │ │ -002b1600: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false
│ │ │ -002b1620: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:
<
│ │ │ -002b1650: 636f 6465 3e69 6e63 6c75 6465 2064 6973  code>include dis
│ │ │ -002b1660: 6162 6c65 5f73 6d62 0a0a 636c 6173 7320  able_smb..class 
│ │ │ -002b1670: 6469 7361 626c 655f 736d 6220 7b0a 2020  disable_smb {.  
│ │ │ -002b1680: 7365 7276 6963 6520 7b27 736d 6227 3a0a  service {'smb':.
│ │ │ -002b1690: 2020 2020 656e 6162 6c65 203d 2667 743b      enable =>
│ │ │ -002b16a0: 2066 616c 7365 2c0a 2020 2020 656e 7375   false,.    ensu
│ │ │ -002b16b0: 7265 203d 2667 743b 2027 7374 6f70 7065  re => 'stoppe
│ │ │ -002b16c0: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ -002b1780: 6961 7469 6f6e 2041 6e73 6962 6c65 2073 iation Ansible s │ │ │ -002b1790: 6e69 7070 6574 20e2 87b2 3c2f 613e 3c62 nippet ...
Com │ │ │ -002b1820: 706c 6578 6974 793a 3c2f 7468 3e3c 7464 plexity:low
Disruption │ │ │ -002b1850: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :low
R │ │ │ -002b1870: 6562 6f6f 743a 3c2f 7468 3e3c 7464 3e66 eboot:f │ │ │ -002b1880: 616c 7365 3c2f 7464 3e3c 2f74 723e 3c74 alse
Strategy:< │ │ │ -002b18a0: 2f74 683e 3c74 643e 6469 7361 626c 653c /th>disable< │ │ │ -002b18b0: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -002b18d0: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -002b18e0: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -002b18f0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -002b1900: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -002b1910: 2020 7461 6773 3a0a 2020 2d20 6469 7361    tags:.  - disa
│ │ │ -002b1920: 626c 655f 7374 7261 7465 6779 0a20 202d  ble_strategy.  -
│ │ │ -002b1930: 206c 6f77 5f63 6f6d 706c 6578 6974 790a   low_complexity.
│ │ │ -002b1940: 2020 2d20 6c6f 775f 6469 7372 7570 7469    - low_disrupti
│ │ │ -002b1950: 6f6e 0a20 202d 206c 6f77 5f73 6576 6572  on.  - low_sever
│ │ │ -002b1960: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -002b1970: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -002b1980: 7669 6365 5f73 6d62 5f64 6973 6162 6c65  vice_smb_disable
│ │ │ -002b1990: 640a 0a2d 206e 616d 653a 2044 6973 6162  d..- name: Disab
│ │ │ -002b19a0: 6c65 2053 616d 6261 202d 2044 6973 6162  le Samba - Disab
│ │ │ -002b19b0: 6c65 2073 6572 7669 6365 2073 6d62 0a20  le service smb. 
│ │ │ -002b19c0: 2062 6c6f 636b 3a0a 0a20 202d 206e 616d   block:..  - nam
│ │ │ -002b19d0: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ -002b19e0: 202d 2043 6f6c 6c65 6374 2073 7973 7465   - Collect syste
│ │ │ -002b19f0: 6d64 2053 6572 7669 6365 7320 5072 6573  md Services Pres
│ │ │ -002b1a00: 656e 7420 696e 2074 6865 2053 7973 7465  ent in the Syste
│ │ │ -002b1a10: 6d0a 2020 2020 616e 7369 626c 652e 6275  m.    ansible.bu
│ │ │ -002b1a20: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ -002b1a30: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ -002b1a40: 2d75 6e69 742d 6669 6c65 7320 2d2d 7479  -unit-files --ty
│ │ │ -002b1a50: 7065 2073 6572 7669 6365 0a20 2020 2072  pe service.    r
│ │ │ -002b1a60: 6567 6973 7465 723a 2073 6572 7669 6365  egister: service
│ │ │ -002b1a70: 5f65 7869 7374 730a 2020 2020 6368 616e  _exists.    chan
│ │ │ -002b1a80: 6765 645f 7768 656e 3a20 6661 6c73 650a  ged_when: false.
│ │ │ -002b1a90: 2020 2020 6661 696c 6564 5f77 6865 6e3a      failed_when:
│ │ │ -002b1aa0: 2073 6572 7669 6365 5f65 7869 7374 732e   service_exists.
│ │ │ -002b1ab0: 7263 206e 6f74 2069 6e20 5b30 2c20 315d  rc not in [0, 1]
│ │ │ -002b1ac0: 0a20 2020 2063 6865 636b 5f6d 6f64 653a  .    check_mode:
│ │ │ -002b1ad0: 2066 616c 7365 0a0a 2020 2d20 6e61 6d65   false..  - name
│ │ │ -002b1ae0: 3a20 4469 7361 626c 6520 5361 6d62 6120  : Disable Samba 
│ │ │ -002b1af0: 2d20 456e 7375 7265 2073 6d62 2e73 6572  - Ensure smb.ser
│ │ │ -002b1b00: 7669 6365 2069 7320 4d61 736b 6564 0a20  vice is Masked. 
│ │ │ -002b1b10: 2020 2061 6e73 6962 6c65 2e62 7569 6c74     ansible.built
│ │ │ -002b1b20: 696e 2e73 7973 7465 6d64 3a0a 2020 2020  in.systemd:.    
│ │ │ -002b1b30: 2020 6e61 6d65 3a20 736d 622e 7365 7276    name: smb.serv
│ │ │ -002b1b40: 6963 650a 2020 2020 2020 7374 6174 653a  ice.      state:
│ │ │ -002b1b50: 2073 746f 7070 6564 0a20 2020 2020 2065   stopped.      e
│ │ │ -002b1b60: 6e61 626c 6564 3a20 6661 6c73 650a 2020  nabled: false.  
│ │ │ -002b1b70: 2020 2020 6d61 736b 6564 3a20 7472 7565      masked: true
│ │ │ -002b1b80: 0a20 2020 2077 6865 6e3a 2073 6572 7669  .    when: servi
│ │ │ -002b1b90: 6365 5f65 7869 7374 732e 7374 646f 7574  ce_exists.stdout
│ │ │ -002b1ba0: 5f6c 696e 6573 2069 7320 7365 6172 6368  _lines is search
│ │ │ -002b1bb0: 2822 736d 622e 7365 7276 6963 6522 2c20  ("smb.service", 
│ │ │ -002b1bc0: 6d75 6c74 696c 696e 653d 5472 7565 290a  multiline=True).
│ │ │ -002b1bd0: 0a20 202d 206e 616d 653a 2055 6e69 7420  .  - name: Unit 
│ │ │ -002b1be0: 536f 636b 6574 2045 7869 7374 7320 2d20  Socket Exists - 
│ │ │ -002b1bf0: 736d 622e 736f 636b 6574 0a20 2020 2061  smb.socket.    a
│ │ │ -002b1c00: 6e73 6962 6c65 2e62 7569 6c74 696e 2e63  nsible.builtin.c
│ │ │ -002b1c10: 6f6d 6d61 6e64 3a20 7379 7374 656d 6374  ommand: systemct
│ │ │ -002b1c20: 6c20 2d71 206c 6973 742d 756e 6974 2d66  l -q list-unit-f
│ │ │ -002b1c30: 696c 6573 2073 6d62 2e73 6f63 6b65 740a  iles smb.socket.
│ │ │ -002b1c40: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -002b1c50: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002b1c60: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002b1c70: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002b1c80: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -002b1c90: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -002b1ca0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -002b1cb0: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002b1cc0: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -002b1cd0: 6973 6162 6c65 2053 616d 6261 202d 2044  isable Samba - D
│ │ │ -002b1ce0: 6973 6162 6c65 2053 6f63 6b65 7420 736d  isable Socket sm
│ │ │ -002b1cf0: 620a 2020 2020 616e 7369 626c 652e 6275  b.    ansible.bu
│ │ │ -002b1d00: 696c 7469 6e2e 7379 7374 656d 643a 0a20  iltin.systemd:. 
│ │ │ -002b1d10: 2020 2020 206e 616d 653a 2073 6d62 2e73       name: smb.s
│ │ │ -002b1d20: 6f63 6b65 740a 2020 2020 2020 656e 6162  ocket.      enab
│ │ │ -002b1d30: 6c65 643a 2066 616c 7365 0a20 2020 2020  led: false.     
│ │ │ -002b1d40: 2073 7461 7465 3a20 7374 6f70 7065 640a   state: stopped.
│ │ │ -002b1d50: 2020 2020 2020 6d61 736b 6564 3a20 7472        masked: tr
│ │ │ -002b1d60: 7565 0a20 2020 2077 6865 6e3a 2073 6f63  ue.    when: soc
│ │ │ -002b1d70: 6b65 745f 6669 6c65 5f65 7869 7374 732e  ket_file_exists.
│ │ │ -002b1d80: 7374 646f 7574 5f6c 696e 6573 2069 7320  stdout_lines is 
│ │ │ -002b1d90: 7365 6172 6368 2822 736d 622e 736f 636b  search("smb.sock
│ │ │ -002b1da0: 6574 222c 206d 756c 7469 6c69 6e65 3d54  et", multiline=T
│ │ │ -002b1db0: 7275 6529 0a20 2074 6167 733a 0a20 202d  rue).  tags:.  -
│ │ │ -002b1dc0: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ -002b1dd0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -002b1de0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -002b1df0: 7275 7074 696f 6e0a 2020 2d20 6c6f 775f  ruption.  - low_
│ │ │ -002b1e00: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ -002b1e10: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ -002b1e20: 2d20 7365 7276 6963 655f 736d 625f 6469  - service_smb_di
│ │ │ -002b1e30: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -002b1e40: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -002b1e50: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -002b1e60: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -002b1e70: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002b1e80: 270a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  '.
< │ │ │ +002b13c0: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ +002b13d0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ +002b13e0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ +002b1480: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ +002b14d0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
- n
│ │ │ +002b1510: 616d 653a 2047 6174 6865 7220 7468 6520  ame: Gather the 
│ │ │ +002b1520: 7061 636b 6167 6520 6661 6374 730a 2020  package facts.  
│ │ │ +002b1530: 7061 636b 6167 655f 6661 6374 733a 0a20  package_facts:. 
│ │ │ +002b1540: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +002b1550: 0a20 2074 6167 733a 0a20 202d 2064 6973  .  tags:.  - dis
│ │ │ +002b1560: 6162 6c65 5f73 7472 6174 6567 790a 2020  able_strategy.  
│ │ │ +002b1570: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002b1580: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002b1590: 696f 6e0a 2020 2d20 6c6f 775f 7365 7665  ion.  - low_seve
│ │ │ +002b15a0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002b15b0: 6f74 5f6e 6565 6465 640a 2020 2d20 7365  ot_needed.  - se
│ │ │ +002b15c0: 7276 6963 655f 736d 625f 6469 7361 626c  rvice_smb_disabl
│ │ │ +002b15d0: 6564 0a0a 2d20 6e61 6d65 3a20 4469 7361  ed..- name: Disa
│ │ │ +002b15e0: 626c 6520 5361 6d62 6120 2d20 4469 7361  ble Samba - Disa
│ │ │ +002b15f0: 626c 6520 7365 7276 6963 6520 736d 620a  ble service smb.
│ │ │ +002b1600: 2020 626c 6f63 6b3a 0a0a 2020 2d20 6e61    block:..  - na
│ │ │ +002b1610: 6d65 3a20 4469 7361 626c 6520 5361 6d62  me: Disable Samb
│ │ │ +002b1620: 6120 2d20 436f 6c6c 6563 7420 7379 7374  a - Collect syst
│ │ │ +002b1630: 656d 6420 5365 7276 6963 6573 2050 7265  emd Services Pre
│ │ │ +002b1640: 7365 6e74 2069 6e20 7468 6520 5379 7374  sent in the Syst
│ │ │ +002b1650: 656d 0a20 2020 2061 6e73 6962 6c65 2e62  em.    ansible.b
│ │ │ +002b1660: 7569 6c74 696e 2e63 6f6d 6d61 6e64 3a20  uiltin.command: 
│ │ │ +002b1670: 7379 7374 656d 6374 6c20 2d71 206c 6973  systemctl -q lis
│ │ │ +002b1680: 742d 756e 6974 2d66 696c 6573 202d 2d74  t-unit-files --t
│ │ │ +002b1690: 7970 6520 7365 7276 6963 650a 2020 2020  ype service.    
│ │ │ +002b16a0: 7265 6769 7374 6572 3a20 7365 7276 6963  register: servic
│ │ │ +002b16b0: 655f 6578 6973 7473 0a20 2020 2063 6861  e_exists.    cha
│ │ │ +002b16c0: 6e67 6564 5f77 6865 6e3a 2066 616c 7365  nged_when: false
│ │ │ +002b16d0: 0a20 2020 2066 6169 6c65 645f 7768 656e  .    failed_when
│ │ │ +002b16e0: 3a20 7365 7276 6963 655f 6578 6973 7473  : service_exists
│ │ │ +002b16f0: 2e72 6320 6e6f 7420 696e 205b 302c 2031  .rc not in [0, 1
│ │ │ +002b1700: 5d0a 2020 2020 6368 6563 6b5f 6d6f 6465  ].    check_mode
│ │ │ +002b1710: 3a20 6661 6c73 650a 0a20 202d 206e 616d  : false..  - nam
│ │ │ +002b1720: 653a 2044 6973 6162 6c65 2053 616d 6261  e: Disable Samba
│ │ │ +002b1730: 202d 2045 6e73 7572 6520 736d 622e 7365   - Ensure smb.se
│ │ │ +002b1740: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002b1750: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b1760: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b1770: 2020 206e 616d 653a 2073 6d62 2e73 6572     name: smb.ser
│ │ │ +002b1780: 7669 6365 0a20 2020 2020 2073 7461 7465  vice.      state
│ │ │ +002b1790: 3a20 7374 6f70 7065 640a 2020 2020 2020  : stopped.      
│ │ │ +002b17a0: 656e 6162 6c65 643a 2066 616c 7365 0a20  enabled: false. 
│ │ │ +002b17b0: 2020 2020 206d 6173 6b65 643a 2074 7275       masked: tru
│ │ │ +002b17c0: 650a 2020 2020 7768 656e 3a20 7365 7276  e.    when: serv
│ │ │ +002b17d0: 6963 655f 6578 6973 7473 2e73 7464 6f75  ice_exists.stdou
│ │ │ +002b17e0: 745f 6c69 6e65 7320 6973 2073 6561 7263  t_lines is searc
│ │ │ +002b17f0: 6828 2273 6d62 2e73 6572 7669 6365 222c  h("smb.service",
│ │ │ +002b1800: 206d 756c 7469 6c69 6e65 3d54 7275 6529   multiline=True)
│ │ │ +002b1810: 0a0a 2020 2d20 6e61 6d65 3a20 556e 6974  ..  - name: Unit
│ │ │ +002b1820: 2053 6f63 6b65 7420 4578 6973 7473 202d   Socket Exists -
│ │ │ +002b1830: 2073 6d62 2e73 6f63 6b65 740a 2020 2020   smb.socket.    
│ │ │ +002b1840: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ +002b1850: 636f 6d6d 616e 643a 2073 7973 7465 6d63  command: systemc
│ │ │ +002b1860: 746c 202d 7120 6c69 7374 2d75 6e69 742d  tl -q list-unit-
│ │ │ +002b1870: 6669 6c65 7320 736d 622e 736f 636b 6574  files smb.socket
│ │ │ +002b1880: 0a20 2020 2072 6567 6973 7465 723a 2073  .    register: s
│ │ │ +002b1890: 6f63 6b65 745f 6669 6c65 5f65 7869 7374  ocket_file_exist
│ │ │ +002b18a0: 730a 2020 2020 6368 616e 6765 645f 7768  s.    changed_wh
│ │ │ +002b18b0: 656e 3a20 6661 6c73 650a 2020 2020 6661  en: false.    fa
│ │ │ +002b18c0: 696c 6564 5f77 6865 6e3a 2073 6f63 6b65  iled_when: socke
│ │ │ +002b18d0: 745f 6669 6c65 5f65 7869 7374 732e 7263  t_file_exists.rc
│ │ │ +002b18e0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ +002b18f0: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ +002b1900: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ +002b1910: 4469 7361 626c 6520 5361 6d62 6120 2d20  Disable Samba - 
│ │ │ +002b1920: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ +002b1930: 6d62 0a20 2020 2061 6e73 6962 6c65 2e62  mb.    ansible.b
│ │ │ +002b1940: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ +002b1950: 2020 2020 2020 6e61 6d65 3a20 736d 622e        name: smb.
│ │ │ +002b1960: 736f 636b 6574 0a20 2020 2020 2065 6e61  socket.      ena
│ │ │ +002b1970: 626c 6564 3a20 6661 6c73 650a 2020 2020  bled: false.    
│ │ │ +002b1980: 2020 7374 6174 653a 2073 746f 7070 6564    state: stopped
│ │ │ +002b1990: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b19a0: 7275 650a 2020 2020 7768 656e 3a20 736f  rue.    when: so
│ │ │ +002b19b0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ +002b19c0: 2e73 7464 6f75 745f 6c69 6e65 7320 6973  .stdout_lines is
│ │ │ +002b19d0: 2073 6561 7263 6828 2273 6d62 2e73 6f63   search("smb.soc
│ │ │ +002b19e0: 6b65 7422 2c20 6d75 6c74 696c 696e 653d  ket", multiline=
│ │ │ +002b19f0: 5472 7565 290a 2020 7461 6773 3a0a 2020  True).  tags:.  
│ │ │ +002b1a00: 2d20 6469 7361 626c 655f 7374 7261 7465  - disable_strate
│ │ │ +002b1a10: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c  gy.  - low_compl
│ │ │ +002b1a20: 6578 6974 790a 2020 2d20 6c6f 775f 6469  exity.  - low_di
│ │ │ +002b1a30: 7372 7570 7469 6f6e 0a20 202d 206c 6f77  sruption.  - low
│ │ │ +002b1a40: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002b1a50: 5f72 6562 6f6f 745f 6e65 6564 6564 0a20  _reboot_needed. 
│ │ │ +002b1a60: 202d 2073 6572 7669 6365 5f73 6d62 5f64   - service_smb_d
│ │ │ +002b1a70: 6973 6162 6c65 640a 2020 2d20 7370 6563  isabled.  - spec
│ │ │ +002b1a80: 6961 6c5f 7365 7276 6963 655f 626c 6f63  ial_service_bloc
│ │ │ +002b1a90: 6b0a 2020 7768 656e 3a20 2722 6c69 6e75  k.  when: '"linu
│ │ │ +002b1aa0: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ +002b1ab0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +002b1ac0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +002b1ad0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 Remediation │ │ │ +002b1b80: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +002b1b90: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
low< │ │ │ +002b1c60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr> │ │ │ +002b1cb0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
Co │ │ │ +002b1460: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ +002b1490: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ +002b14b0: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ +002b14c0: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ +002b14e0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ +002b14f0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
Complexity: │ │ │ +002b1c20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Di │ │ │ +002b1c40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:
Reboot:false
St │ │ │ +002b1c90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +002b1ca0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable
include disab
│ │ │ +002b1cd0: 6c65 5f73 6d62 0a0a 636c 6173 7320 6469  le_smb..class di
│ │ │ +002b1ce0: 7361 626c 655f 736d 6220 7b0a 2020 7365  sable_smb {.  se
│ │ │ +002b1cf0: 7276 6963 6520 7b27 736d 6227 3a0a 2020  rvice {'smb':.  
│ │ │ +002b1d00: 2020 656e 6162 6c65 203d 2667 743b 2066    enable => f
│ │ │ +002b1d10: 616c 7365 2c0a 2020 2020 656e 7375 7265  alse,.    ensure
│ │ │ +002b1d20: 203d 2667 743b 2027 7374 6f70 7065 6427   => 'stopped'
│ │ │ +002b1d30: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ +002b1d40: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remedia │ │ │ +002b1df0: 7469 6f6e 204f 5342 7569 6c64 2042 6c75 tion OSBuild Blu │ │ │ +002b1e00: 6570 7269 6e74 2073 6e69 7070 6574 20e2 eprint snippet . │ │ │ +002b1e10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ +002b1e50: 3c63 6f64 653e 0a5b 6375 7374 6f6d 697a  .[customiz
│ │ │ +002b1e60: 6174 696f 6e73 2e73 6572 7669 6365 735d  ations.services]
│ │ │ +002b1e70: 0a6d 6173 6b65 6420 3d20 5b22 736d 6222  .masked = ["smb"
│ │ │ +002b1e80: 5d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ].
< │ │ │ 002b1e90: 2f64 6976 3e3c 2f64 6976 3e3c 2f74 643e /div>
│ │ │ 002b1ea0: 3c2f 7472 3e3c 2f74 626f 6479 3e3c 2f74 < │ │ │ 002b1ec0: 7472 2064 6174 612d 7474 2d69 643d 2263 tr data-tt-id="c │ │ │ 002b1ed0: 6869 6c64 7265 6e2d 7863 6364 665f 6f72 hildren-xccdf_or │ │ │ 002b1ee0: 672e 7373 6770 726f 6a65 6374 2e63 6f6e g.ssgproject.con │ │ │ 002b1ef0: 7465 6e74 5f67 726f 7570 5f73 6e6d 7022 tent_group_snmp" │ │ │ @@ -176883,93 +176883,93 @@ │ │ │ 002b2f20: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 002b2f30: 6431 3135 3522 2074 6162 696e 6465 783d d1155" tabindex= │ │ │ 002b2f40: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ 002b2f50: 2220 6172 6961 2d65 7870 616e 6465 643d " aria-expanded= │ │ │ 002b2f60: 2266 616c 7365 2220 7469 746c 653d 2241 "false" title="A │ │ │ 002b2f70: 6374 6976 6174 6520 746f 2072 6576 6561 ctivate to revea │ │ │ 002b2f80: 6c22 2068 7265 663d 2223 2122 3e52 656d l" href="#!">Rem │ │ │ -002b2f90: 6564 6961 7469 6f6e 2050 7570 7065 7420 ediation Puppet │ │ │ -002b2fa0: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -002b2fb0: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low< │ │ │ -002b3050: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -002b30a0: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
.in
│ │ │ -002b30e0: 636c 7564 6520 7265 6d6f 7665 5f6e 6574  clude remove_net
│ │ │ -002b30f0: 2d73 6e6d 700a 0a63 6c61 7373 2072 656d  -snmp..class rem
│ │ │ -002b3100: 6f76 655f 6e65 742d 736e 6d70 207b 0a20  ove_net-snmp {. 
│ │ │ -002b3110: 2070 6163 6b61 6765 207b 2027 6e65 742d   package { 'net-
│ │ │ -002b3120: 736e 6d70 273a 0a20 2020 2065 6e73 7572  snmp':.    ensur
│ │ │ -002b3130: 6520 3d26 6774 3b20 2770 7572 6765 6427  e => 'purged'
│ │ │ -002b3140: 2c0a 2020 7d0a 7d0a 3c2f 636f 6465 3e3c  ,.  }.}.<
│ │ │ -002b3150: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>Remedia
│ │ │ -002b3200: 7469 6f6e 2041 6e73 6962 6c65 2073 6e69  tion Ansible sni
│ │ │ -002b3210: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e  ppet ...
│ │ │ -002b3220: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Co │ │ │ -002b3030: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -002b3060: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -002b3080: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -002b3090: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -002b30b0: 3c2f 7468 3e3c 7464 3e64 6973 6162 6c65 disable │ │ │ -002b30c0: 3c2f 7464 3e3c 2f74 723e 3c2f 7461 626c
│ │ │ -002b32c0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b32e0: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b3310: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b32a0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b32b0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b32d0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b32f0: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b3300: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:disable
< │ │ │ -002b3340: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -002b3350: 3a20 2755 6e69 6e73 7461 6c6c 206e 6574 : 'Uninstall net │ │ │ -002b3360: 2d73 6e6d 7020 5061 636b 6167 653a 2045 -snmp Package: E │ │ │ -002b3370: 6e73 7572 6520 6e65 742d 736e 6d70 2069 nsure net-snmp i │ │ │ -002b3380: 7320 7265 6d6f 7665 6427 0a20 2061 6e73 s removed'. ans │ │ │ -002b3390: 6962 6c65 2e62 7569 6c74 696e 2e70 6163 ible.builtin.pac │ │ │ -002b33a0: 6b61 6765 3a0a 2020 2020 6e61 6d65 3a20 kage:. name: │ │ │ -002b33b0: 6e65 742d 736e 6d70 0a20 2020 2073 7461 net-snmp. sta │ │ │ -002b33c0: 7465 3a20 6162 7365 6e74 0a20 2074 6167 te: absent. tag │ │ │ -002b33d0: 733a 0a20 202d 2050 4349 2d44 5353 7634 s:. - PCI-DSSv4 │ │ │ -002b33e0: 2d32 2e32 0a20 202d 2050 4349 2d44 5353 -2.2. - PCI-DSS │ │ │ -002b33f0: 7634 2d32 2e32 2e34 0a20 202d 2064 6973 v4-2.2.4. - dis │ │ │ -002b3400: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -002b3410: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -002b3420: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -002b3430: 696f 6e0a 2020 2d20 6e6f 5f72 6562 6f6f ion. - no_reboo │ │ │ -002b3440: 745f 6e65 6564 6564 0a20 202d 2070 6163 t_needed. - pac │ │ │ -002b3450: 6b61 6765 5f6e 6574 2d73 6e6d 705f 7265 kage_net-snmp_re │ │ │ -002b3460: 6d6f 7665 640a 2020 2d20 756e 6b6e 6f77 moved. - unknow │ │ │ -002b3470: 6e5f 7365 7665 7269 7479 0a3c 2f63 6f64 n_severity. │ │ │ +002b2fb0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
< │ │ │ +002b3040: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002b3050: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002b30a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
- 
│ │ │ +002b30e0: 6e61 6d65 3a20 2755 6e69 6e73 7461 6c6c  name: 'Uninstall
│ │ │ +002b30f0: 206e 6574 2d73 6e6d 7020 5061 636b 6167   net-snmp Packag
│ │ │ +002b3100: 653a 2045 6e73 7572 6520 6e65 742d 736e  e: Ensure net-sn
│ │ │ +002b3110: 6d70 2069 7320 7265 6d6f 7665 6427 0a20  mp is removed'. 
│ │ │ +002b3120: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ +002b3130: 2e70 6163 6b61 6765 3a0a 2020 2020 6e61  .package:.    na
│ │ │ +002b3140: 6d65 3a20 6e65 742d 736e 6d70 0a20 2020  me: net-snmp.   
│ │ │ +002b3150: 2073 7461 7465 3a20 6162 7365 6e74 0a20   state: absent. 
│ │ │ +002b3160: 2074 6167 733a 0a20 202d 2050 4349 2d44   tags:.  - PCI-D
│ │ │ +002b3170: 5353 7634 2d32 2e32 0a20 202d 2050 4349  SSv4-2.2.  - PCI
│ │ │ +002b3180: 2d44 5353 7634 2d32 2e32 2e34 0a20 202d  -DSSv4-2.2.4.  -
│ │ │ +002b3190: 2064 6973 6162 6c65 5f73 7472 6174 6567   disable_strateg
│ │ │ +002b31a0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002b31b0: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002b31c0: 7275 7074 696f 6e0a 2020 2d20 6e6f 5f72  ruption.  - no_r
│ │ │ +002b31d0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d  eboot_needed.  -
│ │ │ +002b31e0: 2070 6163 6b61 6765 5f6e 6574 2d73 6e6d   package_net-snm
│ │ │ +002b31f0: 705f 7265 6d6f 7665 640a 2020 2d20 756e  p_removed.  - un
│ │ │ +002b3200: 6b6e 6f77 6e5f 7365 7665 7269 7479 0a3c  known_severity.<
│ │ │ +002b3210: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002b32c0: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002b32d0: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
C │ │ │ +002b3030: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002b3060: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002b3070: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002b30b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002b30c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
< │ │ │ +002b33b0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ +002b33c0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false

│ │ │ +002b3410: 0a69 6e63 6c75 6465 2072 656d 6f76 655f  .include remove_
│ │ │ +002b3420: 6e65 742d 736e 6d70 0a0a 636c 6173 7320  net-snmp..class 
│ │ │ +002b3430: 7265 6d6f 7665 5f6e 6574 2d73 6e6d 7020  remove_net-snmp 
│ │ │ +002b3440: 7b0a 2020 7061 636b 6167 6520 7b20 276e  {.  package { 'n
│ │ │ +002b3450: 6574 2d73 6e6d 7027 3a0a 2020 2020 656e  et-snmp':.    en
│ │ │ +002b3460: 7375 7265 203d 2667 743b 2027 7075 7267  sure => 'purg
│ │ │ +002b3470: 6564 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ed',.  }.}.
Re │ │ │ -002b3fe0: 6d65 6469 6174 696f 6e20 4f53 4275 696c mediation OSBuil │ │ │ -002b3ff0: 6420 426c 7565 7072 696e 7420 736e 6970 d Blueprint snip │ │ │ -002b4000: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ -002b4010: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ -002b4020: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ -002b4030: 7365 2220 6964 3d22 6964 3131 3539 223e se" id="id1159"> │ │ │ -002b4040: 3c70 7265 3e3c 636f 6465 3e0a 5b63 7573
.[cus
│ │ │ -002b4050: 746f 6d69 7a61 7469 6f6e 732e 7365 7276  tomizations.serv
│ │ │ -002b4060: 6963 6573 5d0a 6d61 736b 6564 203d 205b  ices].masked = [
│ │ │ -002b4070: 2273 6e6d 7064 225d 0a3c 2f63 6f64 653e  "snmpd"].
│ │ │ -002b4080: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -002b4130: 6174 696f 6e20 5075 7070 6574 2073 6e69 ation Puppet sni │ │ │ -002b4140: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ -002b4150: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
Complexity:low
Disrup │ │ │ +002b3390: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ +002b33a0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ +002b33e0: 6779 3a3c 2f74 683e 3c74 643e 6469 7361 gy:disa │ │ │ +002b33f0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
│ │ │ -002b41f0: 3c74 683e 4469 7372 7570 7469 6f6e 3a3c │ │ │ -002b4210: 3c2f 7472 3e3c 7472 3e3c 7468 3e52 6562 │ │ │ -002b4240: 3c74 683e 5374 7261 7465 6779 3a3c 2f74
Compl │ │ │ -002b41d0: 6578 6974 793a 3c2f 7468 3e3c 7464 3e6c exity:l │ │ │ -002b41e0: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Disruption:< │ │ │ -002b4200: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Reb │ │ │ -002b4220: 6f6f 743a 3c2f 7468 3e3c 7464 3e66 616c oot:fal │ │ │ -002b4230: 7365 3c2f 7464 3e3c 2f74 723e 3c74 723e se
Strategy:enable

include │ │ │ -002b4280: 2064 6973 6162 6c65 5f73 6e6d 7064 0a0a disable_snmpd.. │ │ │ -002b4290: 636c 6173 7320 6469 7361 626c 655f 736e class disable_sn │ │ │ -002b42a0: 6d70 6420 7b0a 2020 7365 7276 6963 6520 mpd {. service │ │ │ -002b42b0: 7b27 736e 6d70 6427 3a0a 2020 2020 656e {'snmpd':. en │ │ │ -002b42c0: 6162 6c65 203d 2667 743b 2066 616c 7365 able => false │ │ │ -002b42d0: 2c0a 2020 2020 656e 7375 7265 203d 2667 ,. ensure =&g │ │ │ -002b42e0: 743b 2027 7374 6f70 7065 6427 2c0a 2020 t; 'stopped',. │ │ │ -002b42f0: 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70 7265 }.}.

Remediation │ │ │ -002b43b0: 2041 6e73 6962 6c65 2073 6e69 7070 6574 Ansible snippet │ │ │ -002b43c0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ -002b4440: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ -002b4450: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ -002b4470: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ -002b4480: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ -002b44a0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ -002b44c0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:disable
│ │ │ -002b44f0: 3c63 6f64 653e 2d20 6e61 6d65 3a20 4761  - name: Ga
│ │ │ -002b4500: 7468 6572 2074 6865 2070 6163 6b61 6765  ther the package
│ │ │ -002b4510: 2066 6163 7473 0a20 2070 6163 6b61 6765   facts.  package
│ │ │ -002b4520: 5f66 6163 7473 3a0a 2020 2020 6d61 6e61  _facts:.    mana
│ │ │ -002b4530: 6765 723a 2061 7574 6f0a 2020 7461 6773  ger: auto.  tags
│ │ │ -002b4540: 3a0a 2020 2d20 6469 7361 626c 655f 7374  :.  - disable_st
│ │ │ -002b4550: 7261 7465 6779 0a20 202d 206c 6f77 5f63  rategy.  - low_c
│ │ │ -002b4560: 6f6d 706c 6578 6974 790a 2020 2d20 6c6f  omplexity.  - lo
│ │ │ -002b4570: 775f 6469 7372 7570 7469 6f6e 0a20 202d  w_disruption.  -
│ │ │ -002b4580: 206c 6f77 5f73 6576 6572 6974 790a 2020   low_severity.  
│ │ │ -002b4590: 2d20 6e6f 5f72 6562 6f6f 745f 6e65 6564  - no_reboot_need
│ │ │ -002b45a0: 6564 0a20 202d 2073 6572 7669 6365 5f73  ed.  - service_s
│ │ │ -002b45b0: 6e6d 7064 5f64 6973 6162 6c65 640a 0a2d  nmpd_disabled..-
│ │ │ -002b45c0: 206e 616d 653a 2044 6973 6162 6c65 2073   name: Disable s
│ │ │ -002b45d0: 6e6d 7064 2053 6572 7669 6365 202d 2044  nmpd Service - D
│ │ │ -002b45e0: 6973 6162 6c65 2073 6572 7669 6365 2073  isable service s
│ │ │ -002b45f0: 6e6d 7064 0a20 2062 6c6f 636b 3a0a 0a20  nmpd.  block:.. 
│ │ │ -002b4600: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ -002b4610: 2073 6e6d 7064 2053 6572 7669 6365 202d   snmpd Service -
│ │ │ -002b4620: 2043 6f6c 6c65 6374 2073 7973 7465 6d64   Collect systemd
│ │ │ -002b4630: 2053 6572 7669 6365 7320 5072 6573 656e   Services Presen
│ │ │ -002b4640: 7420 696e 2074 6865 2053 7973 7465 6d0a  t in the System.
│ │ │ -002b4650: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ -002b4660: 7469 6e2e 636f 6d6d 616e 643a 2073 7973  tin.command: sys
│ │ │ -002b4670: 7465 6d63 746c 202d 7120 6c69 7374 2d75  temctl -q list-u
│ │ │ -002b4680: 6e69 742d 6669 6c65 7320 2d2d 7479 7065  nit-files --type
│ │ │ -002b4690: 2073 6572 7669 6365 0a20 2020 2072 6567   service.    reg
│ │ │ -002b46a0: 6973 7465 723a 2073 6572 7669 6365 5f65  ister: service_e
│ │ │ -002b46b0: 7869 7374 730a 2020 2020 6368 616e 6765  xists.    change
│ │ │ -002b46c0: 645f 7768 656e 3a20 6661 6c73 650a 2020  d_when: false.  
│ │ │ -002b46d0: 2020 6661 696c 6564 5f77 6865 6e3a 2073    failed_when: s
│ │ │ -002b46e0: 6572 7669 6365 5f65 7869 7374 732e 7263  ervice_exists.rc
│ │ │ -002b46f0: 206e 6f74 2069 6e20 5b30 2c20 315d 0a20   not in [0, 1]. 
│ │ │ -002b4700: 2020 2063 6865 636b 5f6d 6f64 653a 2066     check_mode: f
│ │ │ -002b4710: 616c 7365 0a0a 2020 2d20 6e61 6d65 3a20  alse..  - name: 
│ │ │ -002b4720: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ -002b4730: 7276 6963 6520 2d20 456e 7375 7265 2073  rvice - Ensure s
│ │ │ -002b4740: 6e6d 7064 2e73 6572 7669 6365 2069 7320  nmpd.service is 
│ │ │ -002b4750: 4d61 736b 6564 0a20 2020 2061 6e73 6962  Masked.    ansib
│ │ │ -002b4760: 6c65 2e62 7569 6c74 696e 2e73 7973 7465  le.builtin.syste
│ │ │ -002b4770: 6d64 3a0a 2020 2020 2020 6e61 6d65 3a20  md:.      name: 
│ │ │ -002b4780: 736e 6d70 642e 7365 7276 6963 650a 2020  snmpd.service.  
│ │ │ -002b4790: 2020 2020 7374 6174 653a 2073 746f 7070      state: stopp
│ │ │ -002b47a0: 6564 0a20 2020 2020 2065 6e61 626c 6564  ed.      enabled
│ │ │ -002b47b0: 3a20 6661 6c73 650a 2020 2020 2020 6d61  : false.      ma
│ │ │ -002b47c0: 736b 6564 3a20 7472 7565 0a20 2020 2077  sked: true.    w
│ │ │ -002b47d0: 6865 6e3a 2073 6572 7669 6365 5f65 7869  hen: service_exi
│ │ │ -002b47e0: 7374 732e 7374 646f 7574 5f6c 696e 6573  sts.stdout_lines
│ │ │ -002b47f0: 2069 7320 7365 6172 6368 2822 736e 6d70   is search("snmp
│ │ │ -002b4800: 642e 7365 7276 6963 6522 2c20 6d75 6c74  d.service", mult
│ │ │ -002b4810: 696c 696e 653d 5472 7565 290a 0a20 202d  iline=True)..  -
│ │ │ -002b4820: 206e 616d 653a 2055 6e69 7420 536f 636b   name: Unit Sock
│ │ │ -002b4830: 6574 2045 7869 7374 7320 2d20 736e 6d70  et Exists - snmp
│ │ │ -002b4840: 642e 736f 636b 6574 0a20 2020 2061 6e73  d.socket.    ans
│ │ │ -002b4850: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ -002b4860: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ -002b4870: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ -002b4880: 6573 2073 6e6d 7064 2e73 6f63 6b65 740a  es snmpd.socket.
│ │ │ -002b4890: 2020 2020 7265 6769 7374 6572 3a20 736f      register: so
│ │ │ -002b48a0: 636b 6574 5f66 696c 655f 6578 6973 7473  cket_file_exists
│ │ │ -002b48b0: 0a20 2020 2063 6861 6e67 6564 5f77 6865  .    changed_whe
│ │ │ -002b48c0: 6e3a 2066 616c 7365 0a20 2020 2066 6169  n: false.    fai
│ │ │ -002b48d0: 6c65 645f 7768 656e 3a20 736f 636b 6574  led_when: socket
│ │ │ -002b48e0: 5f66 696c 655f 6578 6973 7473 2e72 6320  _file_exists.rc 
│ │ │ -002b48f0: 6e6f 7420 696e 205b 302c 2031 5d0a 2020  not in [0, 1].  
│ │ │ -002b4900: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ -002b4910: 6c73 650a 0a20 202d 206e 616d 653a 2044  lse..  - name: D
│ │ │ -002b4920: 6973 6162 6c65 2073 6e6d 7064 2053 6572  isable snmpd Ser
│ │ │ -002b4930: 7669 6365 202d 2044 6973 6162 6c65 2053  vice - Disable S
│ │ │ -002b4940: 6f63 6b65 7420 736e 6d70 640a 2020 2020  ocket snmpd.    
│ │ │ -002b4950: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -002b4960: 7379 7374 656d 643a 0a20 2020 2020 206e  systemd:.      n
│ │ │ -002b4970: 616d 653a 2073 6e6d 7064 2e73 6f63 6b65  ame: snmpd.socke
│ │ │ -002b4980: 740a 2020 2020 2020 656e 6162 6c65 643a  t.      enabled:
│ │ │ -002b4990: 2066 616c 7365 0a20 2020 2020 2073 7461   false.      sta
│ │ │ -002b49a0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ -002b49b0: 2020 6d61 736b 6564 3a20 7472 7565 0a20    masked: true. 
│ │ │ -002b49c0: 2020 2077 6865 6e3a 2073 6f63 6b65 745f     when: socket_
│ │ │ -002b49d0: 6669 6c65 5f65 7869 7374 732e 7374 646f  file_exists.stdo
│ │ │ -002b49e0: 7574 5f6c 696e 6573 2069 7320 7365 6172  ut_lines is sear
│ │ │ -002b49f0: 6368 2822 736e 6d70 642e 736f 636b 6574  ch("snmpd.socket
│ │ │ -002b4a00: 222c 206d 756c 7469 6c69 6e65 3d54 7275  ", multiline=Tru
│ │ │ -002b4a10: 6529 0a20 2074 6167 733a 0a20 202d 2064  e).  tags:.  - d
│ │ │ -002b4a20: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ -002b4a30: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002b4a40: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002b4a50: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ -002b4a60: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ -002b4a70: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ -002b4a80: 7365 7276 6963 655f 736e 6d70 645f 6469  service_snmpd_di
│ │ │ -002b4a90: 7361 626c 6564 0a20 202d 2073 7065 6369  sabled.  - speci
│ │ │ -002b4aa0: 616c 5f73 6572 7669 6365 5f62 6c6f 636b  al_service_block
│ │ │ -002b4ab0: 0a20 2077 6865 6e3a 2028 2022 736e 6d70  .  when: ( "snmp
│ │ │ -002b4ac0: 6422 2069 6e20 616e 7369 626c 655f 6661  d" in ansible_fa
│ │ │ -002b4ad0: 6374 732e 7061 636b 6167 6573 2061 6e64  cts.packages and
│ │ │ -002b4ae0: 2022 6c69 6e75 782d 6261 7365 2220 696e   "linux-base" in
│ │ │ -002b4af0: 2061 6e73 6962 6c65 5f66 6163 7473 2e70   ansible_facts.p
│ │ │ -002b4b00: 6163 6b61 6765 730a 2020 2020 290a 3c2f  ackages.    ).
│ │ │ +002b4090: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ +002b4130: 206e 616d 653a 2047 6174 6865 7220 7468   name: Gather th
│ │ │ +002b4140: 6520 7061 636b 6167 6520 6661 6374 730a  e package facts.
│ │ │ +002b4150: 2020 7061 636b 6167 655f 6661 6374 733a    package_facts:
│ │ │ +002b4160: 0a20 2020 206d 616e 6167 6572 3a20 6175  .    manager: au
│ │ │ +002b4170: 746f 0a20 2074 6167 733a 0a20 202d 2064  to.  tags:.  - d
│ │ │ +002b4180: 6973 6162 6c65 5f73 7472 6174 6567 790a  isable_strategy.
│ │ │ +002b4190: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002b41a0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002b41b0: 7074 696f 6e0a 2020 2d20 6c6f 775f 7365  ption.  - low_se
│ │ │ +002b41c0: 7665 7269 7479 0a20 202d 206e 6f5f 7265  verity.  - no_re
│ │ │ +002b41d0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20  boot_needed.  - 
│ │ │ +002b41e0: 7365 7276 6963 655f 736e 6d70 645f 6469  service_snmpd_di
│ │ │ +002b41f0: 7361 626c 6564 0a0a 2d20 6e61 6d65 3a20  sabled..- name: 
│ │ │ +002b4200: 4469 7361 626c 6520 736e 6d70 6420 5365  Disable snmpd Se
│ │ │ +002b4210: 7276 6963 6520 2d20 4469 7361 626c 6520  rvice - Disable 
│ │ │ +002b4220: 7365 7276 6963 6520 736e 6d70 640a 2020  service snmpd.  
│ │ │ +002b4230: 626c 6f63 6b3a 0a0a 2020 2d20 6e61 6d65  block:..  - name
│ │ │ +002b4240: 3a20 4469 7361 626c 6520 736e 6d70 6420  : Disable snmpd 
│ │ │ +002b4250: 5365 7276 6963 6520 2d20 436f 6c6c 6563  Service - Collec
│ │ │ +002b4260: 7420 7379 7374 656d 6420 5365 7276 6963  t systemd Servic
│ │ │ +002b4270: 6573 2050 7265 7365 6e74 2069 6e20 7468  es Present in th
│ │ │ +002b4280: 6520 5379 7374 656d 0a20 2020 2061 6e73  e System.    ans
│ │ │ +002b4290: 6962 6c65 2e62 7569 6c74 696e 2e63 6f6d  ible.builtin.com
│ │ │ +002b42a0: 6d61 6e64 3a20 7379 7374 656d 6374 6c20  mand: systemctl 
│ │ │ +002b42b0: 2d71 206c 6973 742d 756e 6974 2d66 696c  -q list-unit-fil
│ │ │ +002b42c0: 6573 202d 2d74 7970 6520 7365 7276 6963  es --type servic
│ │ │ +002b42d0: 650a 2020 2020 7265 6769 7374 6572 3a20  e.    register: 
│ │ │ +002b42e0: 7365 7276 6963 655f 6578 6973 7473 0a20  service_exists. 
│ │ │ +002b42f0: 2020 2063 6861 6e67 6564 5f77 6865 6e3a     changed_when:
│ │ │ +002b4300: 2066 616c 7365 0a20 2020 2066 6169 6c65   false.    faile
│ │ │ +002b4310: 645f 7768 656e 3a20 7365 7276 6963 655f  d_when: service_
│ │ │ +002b4320: 6578 6973 7473 2e72 6320 6e6f 7420 696e  exists.rc not in
│ │ │ +002b4330: 205b 302c 2031 5d0a 2020 2020 6368 6563   [0, 1].    chec
│ │ │ +002b4340: 6b5f 6d6f 6465 3a20 6661 6c73 650a 0a20  k_mode: false.. 
│ │ │ +002b4350: 202d 206e 616d 653a 2044 6973 6162 6c65   - name: Disable
│ │ │ +002b4360: 2073 6e6d 7064 2053 6572 7669 6365 202d   snmpd Service -
│ │ │ +002b4370: 2045 6e73 7572 6520 736e 6d70 642e 7365   Ensure snmpd.se
│ │ │ +002b4380: 7276 6963 6520 6973 204d 6173 6b65 640a  rvice is Masked.
│ │ │ +002b4390: 2020 2020 616e 7369 626c 652e 6275 696c      ansible.buil
│ │ │ +002b43a0: 7469 6e2e 7379 7374 656d 643a 0a20 2020  tin.systemd:.   
│ │ │ +002b43b0: 2020 206e 616d 653a 2073 6e6d 7064 2e73     name: snmpd.s
│ │ │ +002b43c0: 6572 7669 6365 0a20 2020 2020 2073 7461  ervice.      sta
│ │ │ +002b43d0: 7465 3a20 7374 6f70 7065 640a 2020 2020  te: stopped.    
│ │ │ +002b43e0: 2020 656e 6162 6c65 643a 2066 616c 7365    enabled: false
│ │ │ +002b43f0: 0a20 2020 2020 206d 6173 6b65 643a 2074  .      masked: t
│ │ │ +002b4400: 7275 650a 2020 2020 7768 656e 3a20 7365  rue.    when: se
│ │ │ +002b4410: 7276 6963 655f 6578 6973 7473 2e73 7464  rvice_exists.std
│ │ │ +002b4420: 6f75 745f 6c69 6e65 7320 6973 2073 6561  out_lines is sea
│ │ │ +002b4430: 7263 6828 2273 6e6d 7064 2e73 6572 7669  rch("snmpd.servi
│ │ │ +002b4440: 6365 222c 206d 756c 7469 6c69 6e65 3d54  ce", multiline=T
│ │ │ +002b4450: 7275 6529 0a0a 2020 2d20 6e61 6d65 3a20  rue)..  - name: 
│ │ │ +002b4460: 556e 6974 2053 6f63 6b65 7420 4578 6973  Unit Socket Exis
│ │ │ +002b4470: 7473 202d 2073 6e6d 7064 2e73 6f63 6b65  ts - snmpd.socke
│ │ │ +002b4480: 740a 2020 2020 616e 7369 626c 652e 6275  t.    ansible.bu
│ │ │ +002b4490: 696c 7469 6e2e 636f 6d6d 616e 643a 2073  iltin.command: s
│ │ │ +002b44a0: 7973 7465 6d63 746c 202d 7120 6c69 7374  ystemctl -q list
│ │ │ +002b44b0: 2d75 6e69 742d 6669 6c65 7320 736e 6d70  -unit-files snmp
│ │ │ +002b44c0: 642e 736f 636b 6574 0a20 2020 2072 6567  d.socket.    reg
│ │ │ +002b44d0: 6973 7465 723a 2073 6f63 6b65 745f 6669  ister: socket_fi
│ │ │ +002b44e0: 6c65 5f65 7869 7374 730a 2020 2020 6368  le_exists.    ch
│ │ │ +002b44f0: 616e 6765 645f 7768 656e 3a20 6661 6c73  anged_when: fals
│ │ │ +002b4500: 650a 2020 2020 6661 696c 6564 5f77 6865  e.    failed_whe
│ │ │ +002b4510: 6e3a 2073 6f63 6b65 745f 6669 6c65 5f65  n: socket_file_e
│ │ │ +002b4520: 7869 7374 732e 7263 206e 6f74 2069 6e20  xists.rc not in 
│ │ │ +002b4530: 5b30 2c20 315d 0a20 2020 2063 6865 636b  [0, 1].    check
│ │ │ +002b4540: 5f6d 6f64 653a 2066 616c 7365 0a0a 2020  _mode: false..  
│ │ │ +002b4550: 2d20 6e61 6d65 3a20 4469 7361 626c 6520  - name: Disable 
│ │ │ +002b4560: 736e 6d70 6420 5365 7276 6963 6520 2d20  snmpd Service - 
│ │ │ +002b4570: 4469 7361 626c 6520 536f 636b 6574 2073  Disable Socket s
│ │ │ +002b4580: 6e6d 7064 0a20 2020 2061 6e73 6962 6c65  nmpd.    ansible
│ │ │ +002b4590: 2e62 7569 6c74 696e 2e73 7973 7465 6d64  .builtin.systemd
│ │ │ +002b45a0: 3a0a 2020 2020 2020 6e61 6d65 3a20 736e  :.      name: sn
│ │ │ +002b45b0: 6d70 642e 736f 636b 6574 0a20 2020 2020  mpd.socket.     
│ │ │ +002b45c0: 2065 6e61 626c 6564 3a20 6661 6c73 650a   enabled: false.
│ │ │ +002b45d0: 2020 2020 2020 7374 6174 653a 2073 746f        state: sto
│ │ │ +002b45e0: 7070 6564 0a20 2020 2020 206d 6173 6b65  pped.      maske
│ │ │ +002b45f0: 643a 2074 7275 650a 2020 2020 7768 656e  d: true.    when
│ │ │ +002b4600: 3a20 736f 636b 6574 5f66 696c 655f 6578  : socket_file_ex
│ │ │ +002b4610: 6973 7473 2e73 7464 6f75 745f 6c69 6e65  ists.stdout_line
│ │ │ +002b4620: 7320 6973 2073 6561 7263 6828 2273 6e6d  s is search("snm
│ │ │ +002b4630: 7064 2e73 6f63 6b65 7422 2c20 6d75 6c74  pd.socket", mult
│ │ │ +002b4640: 696c 696e 653d 5472 7565 290a 2020 7461  iline=True).  ta
│ │ │ +002b4650: 6773 3a0a 2020 2d20 6469 7361 626c 655f  gs:.  - disable_
│ │ │ +002b4660: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ +002b4670: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ +002b4680: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ +002b4690: 202d 206c 6f77 5f73 6576 6572 6974 790a   - low_severity.
│ │ │ +002b46a0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ +002b46b0: 6564 6564 0a20 202d 2073 6572 7669 6365  eded.  - service
│ │ │ +002b46c0: 5f73 6e6d 7064 5f64 6973 6162 6c65 640a  _snmpd_disabled.
│ │ │ +002b46d0: 2020 2d20 7370 6563 6961 6c5f 7365 7276    - special_serv
│ │ │ +002b46e0: 6963 655f 626c 6f63 6b0a 2020 7768 656e  ice_block.  when
│ │ │ +002b46f0: 3a20 2820 2273 6e6d 7064 2220 696e 2061  : ( "snmpd" in a
│ │ │ +002b4700: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002b4710: 6b61 6765 7320 616e 6420 226c 696e 7578  kages and "linux
│ │ │ +002b4720: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ +002b4730: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ +002b4740: 0a20 2020 2029 0a3c 2f63 6f64 653e 3c2f  .    ).Remediat
│ │ │ +002b4800: 696f 6e20 5075 7070 6574 2073 6e69 7070  ion Puppet snipp
│ │ │ +002b4810: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64  et ...
< │ │ │ +002b4850: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +002b4860: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +002b4870: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +002b4880: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +002b4890: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ +002b4920: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ +002b4930: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
│ │ │ +002b4080: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002b40b0: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002b40c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002b4100: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ +002b4110: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
Complex │ │ │ +002b48a0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +002b48b0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ +002b48f0: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +002b4900: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
include d
│ │ │ +002b4950: 6973 6162 6c65 5f73 6e6d 7064 0a0a 636c  isable_snmpd..cl
│ │ │ +002b4960: 6173 7320 6469 7361 626c 655f 736e 6d70  ass disable_snmp
│ │ │ +002b4970: 6420 7b0a 2020 7365 7276 6963 6520 7b27  d {.  service {'
│ │ │ +002b4980: 736e 6d70 6427 3a0a 2020 2020 656e 6162  snmpd':.    enab
│ │ │ +002b4990: 6c65 203d 2667 743b 2066 616c 7365 2c0a  le => false,.
│ │ │ +002b49a0: 2020 2020 656e 7375 7265 203d 2667 743b      ensure =>
│ │ │ +002b49b0: 2027 7374 6f70 7065 6427 2c0a 2020 7d0a   'stopped',.  }.
│ │ │ +002b49c0: 7d0a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  }.
< │ │ │ +002b49d0: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation O │ │ │ +002b4a80: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ +002b4a90: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002b4aa0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002b4ae0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ +002b4af0: 2e73 6572 7669 6365 735d 0a6d 6173 6b65  .services].maske
│ │ │ +002b4b00: 6420 3d20 5b22 736e 6d70 6422 5d0a 3c2f  d = ["snmpd"].
Re │ │ │ -002dd030: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ -002dd040: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -002dd050: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -002dd090: 696e 636c 7564 6520 7373 685f 7072 6976  include ssh_priv
│ │ │ -002dd0a0: 6174 655f 6b65 795f 7065 726d 730a 0a63  ate_key_perms..c
│ │ │ -002dd0b0: 6c61 7373 2073 7368 5f70 7269 7661 7465  lass ssh_private
│ │ │ -002dd0c0: 5f6b 6579 5f70 6572 6d73 207b 0a20 2065  _key_perms {.  e
│ │ │ -002dd0d0: 7865 6320 7b20 2773 7368 645f 7072 6976  xec { 'sshd_priv
│ │ │ -002dd0e0: 5f6b 6579 273a 0a20 2020 2063 6f6d 6d61  _key':.    comma
│ │ │ -002dd0f0: 6e64 203d 2667 743b 2022 6368 6d6f 6420  nd => "chmod 
│ │ │ -002dd100: 3036 3430 202f 6574 632f 7373 682f 2a5f  0640 /etc/ssh/*_
│ │ │ -002dd110: 6b65 7922 2c0a 2020 2020 7061 7468 2020  key",.    path  
│ │ │ -002dd120: 2020 3d26 6774 3b20 272f 6269 6e3a 2f75    => '/bin:/u
│ │ │ -002dd130: 7372 2f62 696e 270a 2020 7d0a 7d0a 3c2f  sr/bin'.  }.}.
R │ │ │ -002dd1f0: 656d 6564 6961 7469 6f6e 2041 6e73 6962 emediation Ansib │ │ │ -002dd200: 6c65 2073 6e69 7070 6574 20e2 87b2 3c2f le snippet ...
< │ │ │ -002dd2e0: 7468 3e52 6562 6f6f 743a 3c2f 7468 3e3c th>Reboot:< │ │ │ -002dd2f0: 7464 3e66 616c 7365 3c2f 7464 3e3c 2f74 td>false< │ │ │ -002dd330: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
- name: Gather
│ │ │ -002dd350: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -002dd360: 7473 0a20 2070 6163 6b61 6765 5f66 6163  ts.  package_fac
│ │ │ -002dd370: 7473 3a0a 2020 2020 6d61 6e61 6765 723a  ts:.    manager:
│ │ │ -002dd380: 2061 7574 6f0a 2020 7461 6773 3a0a 2020   auto.  tags:.  
│ │ │ -002dd390: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -002dd3a0: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ -002dd3b0: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ -002dd3c0: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -002dd3d0: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ -002dd3e0: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ -002dd3f0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002dd400: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -002dd410: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ -002dd420: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002dd430: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002dd440: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ -002dd450: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ -002dd460: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ -002dd470: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ -002dd480: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002dd490: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002dd4a0: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002dd4b0: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002dd4c0: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002dd4d0: 0a2d 206e 616d 653a 2046 696e 6420 726f  .- name: Find ro
│ │ │ -002dd4e0: 6f74 3a72 6f6f 742d 6f77 6e65 6420 6b65  ot:root-owned ke
│ │ │ -002dd4f0: 7973 0a20 2061 6e73 6962 6c65 2e62 7569  ys.  ansible.bui
│ │ │ -002dd500: 6c74 696e 2e63 6f6d 6d61 6e64 3a20 6669  ltin.command: fi
│ │ │ -002dd510: 6e64 202d 4820 2f65 7463 2f73 7368 2f20  nd -H /etc/ssh/ 
│ │ │ -002dd520: 2d6d 6178 6465 7074 6820 3120 2d75 7365  -maxdepth 1 -use
│ │ │ -002dd530: 7220 726f 6f74 202d 7265 6765 7820 222e  r root -regex ".
│ │ │ -002dd540: 2a5f 6b65 7924 220a 2020 2020 2d74 7970  *_key$".    -typ
│ │ │ -002dd550: 6520 6620 2d67 726f 7570 2072 6f6f 7420  e f -group root 
│ │ │ -002dd560: 2d70 6572 6d20 2f75 2b78 732c 672b 7877  -perm /u+xs,g+xw
│ │ │ -002dd570: 7273 2c6f 2b78 7772 740a 2020 7265 6769  rs,o+xwrt.  regi
│ │ │ -002dd580: 7374 6572 3a20 726f 6f74 5f6f 776e 6564  ster: root_owned
│ │ │ -002dd590: 5f6b 6579 730a 2020 6368 616e 6765 645f  _keys.  changed_
│ │ │ -002dd5a0: 7768 656e 3a20 6661 6c73 650a 2020 6661  when: false.  fa
│ │ │ -002dd5b0: 696c 6564 5f77 6865 6e3a 2066 616c 7365  iled_when: false
│ │ │ -002dd5c0: 0a20 2063 6865 636b 5f6d 6f64 653a 2066  .  check_mode: f
│ │ │ -002dd5d0: 616c 7365 0a20 2077 6865 6e3a 2027 226c  alse.  when: '"l
│ │ │ -002dd5e0: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -002dd5f0: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002dd600: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -002dd610: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -002dd620: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ -002dd630: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ -002dd640: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -002dd650: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ -002dd660: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ -002dd670: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002dd680: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -002dd690: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ -002dd6a0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002dd6b0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002dd6c0: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ -002dd6d0: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ -002dd6e0: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ -002dd6f0: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ -002dd700: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002dd710: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002dd720: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002dd730: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002dd740: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ -002dd750: 0a2d 206e 616d 653a 2053 6574 2070 6572  .- name: Set per
│ │ │ -002dd760: 6d69 7373 696f 6e73 2066 6f72 2072 6f6f  missions for roo
│ │ │ -002dd770: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ -002dd780: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ -002dd790: 7469 6e2e 6669 6c65 3a0a 2020 2020 7061  tin.file:.    pa
│ │ │ -002dd7a0: 7468 3a20 277b 7b20 6974 656d 207d 7d27  th: '{{ item }}'
│ │ │ -002dd7b0: 0a20 2020 206d 6f64 653a 2075 2d78 732c  .    mode: u-xs,
│ │ │ -002dd7c0: 672d 7877 7273 2c6f 2d78 7772 740a 2020  g-xwrs,o-xwrt.  
│ │ │ -002dd7d0: 2020 7374 6174 653a 2066 696c 650a 2020    state: file.  
│ │ │ -002dd7e0: 7769 7468 5f69 7465 6d73 3a0a 2020 2d20  with_items:.  - 
│ │ │ -002dd7f0: 277b 7b20 726f 6f74 5f6f 776e 6564 5f6b  '{{ root_owned_k
│ │ │ -002dd800: 6579 732e 7374 646f 7574 5f6c 696e 6573  eys.stdout_lines
│ │ │ -002dd810: 207d 7d27 0a20 2077 6865 6e3a 2027 226c   }}'.  when: '"l
│ │ │ -002dd820: 696e 7578 2d62 6173 6522 2069 6e20 616e  inux-base" in an
│ │ │ -002dd830: 7369 626c 655f 6661 6374 732e 7061 636b  sible_facts.pack
│ │ │ -002dd840: 6167 6573 270a 2020 7461 6773 3a0a 2020  ages'.  tags:.  
│ │ │ -002dd850: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -002dd860: 2e31 2e31 330a 2020 2d20 4e49 5354 2d38  .1.13.  - NIST-8
│ │ │ -002dd870: 3030 2d31 3731 2d33 2e31 332e 3130 0a20  00-171-3.13.10. 
│ │ │ -002dd880: 202d 204e 4953 542d 3830 302d 3533 2d41   - NIST-800-53-A
│ │ │ -002dd890: 432d 3137 2861 290a 2020 2d20 4e49 5354  C-17(a).  - NIST
│ │ │ -002dd8a0: 2d38 3030 2d35 332d 4143 2d36 2831 290a  -800-53-AC-6(1).
│ │ │ -002dd8b0: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -002dd8c0: 434d 2d36 2861 290a 2020 2d20 5043 492d  CM-6(a).  - PCI-
│ │ │ -002dd8d0: 4453 532d 5265 712d 322e 322e 340a 2020  DSS-Req-2.2.4.  
│ │ │ -002dd8e0: 2d20 5043 492d 4453 5376 342d 322e 320a  - PCI-DSSv4-2.2.
│ │ │ -002dd8f0: 2020 2d20 5043 492d 4453 5376 342d 322e    - PCI-DSSv4-2.
│ │ │ -002dd900: 322e 360a 2020 2d20 636f 6e66 6967 7572  2.6.  - configur
│ │ │ -002dd910: 655f 7374 7261 7465 6779 0a20 202d 2066  e_strategy.  - f
│ │ │ -002dd920: 696c 655f 7065 726d 6973 7369 6f6e 735f  ile_permissions_
│ │ │ -002dd930: 7373 6864 5f70 7269 7661 7465 5f6b 6579  sshd_private_key
│ │ │ -002dd940: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ -002dd950: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ -002dd960: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ -002dd970: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ -002dd980: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +002dd030: 6d65 6469 6174 696f 6e20 416e 7369 626c  mediation Ansibl
│ │ │ +002dd040: 6520 736e 6970 7065 7420 e287 b23c 2f61  e snippet ...
Complexity:low
Disrup │ │ │ -002dd2c0: 7469 6f6e 3a3c 2f74 683e 3c74 643e 6c6f tion:lo │ │ │ -002dd2d0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
Strate │ │ │ -002dd310: 6779 3a3c 2f74 683e 3c74 643e 636f 6e66 gy:conf │ │ │ -002dd320: 6967 7572 653c 2f74 643e 3c2f 7472 3e3c igure
│ │ │ +002dd0e0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
- name: Gather 
│ │ │ +002dd190: 7468 6520 7061 636b 6167 6520 6661 6374  the package fact
│ │ │ +002dd1a0: 730a 2020 7061 636b 6167 655f 6661 6374  s.  package_fact
│ │ │ +002dd1b0: 733a 0a20 2020 206d 616e 6167 6572 3a20  s:.    manager: 
│ │ │ +002dd1c0: 6175 746f 0a20 2074 6167 733a 0a20 202d  auto.  tags:.  -
│ │ │ +002dd1d0: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002dd1e0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002dd1f0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002dd200: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002dd210: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002dd220: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002dd230: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002dd240: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002dd250: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002dd260: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002dd270: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002dd280: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002dd290: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002dd2a0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002dd2b0: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002dd2c0: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002dd2d0: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002dd2e0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002dd2f0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002dd300: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +002dd310: 2d20 6e61 6d65 3a20 4669 6e64 2072 6f6f  - name: Find roo
│ │ │ +002dd320: 743a 726f 6f74 2d6f 776e 6564 206b 6579  t:root-owned key
│ │ │ +002dd330: 730a 2020 616e 7369 626c 652e 6275 696c  s.  ansible.buil
│ │ │ +002dd340: 7469 6e2e 636f 6d6d 616e 643a 2066 696e  tin.command: fin
│ │ │ +002dd350: 6420 2d48 202f 6574 632f 7373 682f 202d  d -H /etc/ssh/ -
│ │ │ +002dd360: 6d61 7864 6570 7468 2031 202d 7573 6572  maxdepth 1 -user
│ │ │ +002dd370: 2072 6f6f 7420 2d72 6567 6578 2022 2e2a   root -regex ".*
│ │ │ +002dd380: 5f6b 6579 2422 0a20 2020 202d 7479 7065  _key$".    -type
│ │ │ +002dd390: 2066 202d 6772 6f75 7020 726f 6f74 202d   f -group root -
│ │ │ +002dd3a0: 7065 726d 202f 752b 7873 2c67 2b78 7772  perm /u+xs,g+xwr
│ │ │ +002dd3b0: 732c 6f2b 7877 7274 0a20 2072 6567 6973  s,o+xwrt.  regis
│ │ │ +002dd3c0: 7465 723a 2072 6f6f 745f 6f77 6e65 645f  ter: root_owned_
│ │ │ +002dd3d0: 6b65 7973 0a20 2063 6861 6e67 6564 5f77  keys.  changed_w
│ │ │ +002dd3e0: 6865 6e3a 2066 616c 7365 0a20 2066 6169  hen: false.  fai
│ │ │ +002dd3f0: 6c65 645f 7768 656e 3a20 6661 6c73 650a  led_when: false.
│ │ │ +002dd400: 2020 6368 6563 6b5f 6d6f 6465 3a20 6661    check_mode: fa
│ │ │ +002dd410: 6c73 650a 2020 7768 656e 3a20 2722 6c69  lse.  when: '"li
│ │ │ +002dd420: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002dd430: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002dd440: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +002dd450: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002dd460: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002dd470: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002dd480: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002dd490: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002dd4a0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002dd4b0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002dd4c0: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002dd4d0: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002dd4e0: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002dd4f0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002dd500: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002dd510: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002dd520: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002dd530: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002dd540: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002dd550: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002dd560: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002dd570: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002dd580: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ +002dd590: 2d20 6e61 6d65 3a20 5365 7420 7065 726d  - name: Set perm
│ │ │ +002dd5a0: 6973 7369 6f6e 7320 666f 7220 726f 6f74  issions for root
│ │ │ +002dd5b0: 3a72 6f6f 742d 6f77 6e65 6420 6b65 7973  :root-owned keys
│ │ │ +002dd5c0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002dd5d0: 696e 2e66 696c 653a 0a20 2020 2070 6174  in.file:.    pat
│ │ │ +002dd5e0: 683a 2027 7b7b 2069 7465 6d20 7d7d 270a  h: '{{ item }}'.
│ │ │ +002dd5f0: 2020 2020 6d6f 6465 3a20 752d 7873 2c67      mode: u-xs,g
│ │ │ +002dd600: 2d78 7772 732c 6f2d 7877 7274 0a20 2020  -xwrs,o-xwrt.   
│ │ │ +002dd610: 2073 7461 7465 3a20 6669 6c65 0a20 2077   state: file.  w
│ │ │ +002dd620: 6974 685f 6974 656d 733a 0a20 202d 2027  ith_items:.  - '
│ │ │ +002dd630: 7b7b 2072 6f6f 745f 6f77 6e65 645f 6b65  {{ root_owned_ke
│ │ │ +002dd640: 7973 2e73 7464 6f75 745f 6c69 6e65 7320  ys.stdout_lines 
│ │ │ +002dd650: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ +002dd660: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ +002dd670: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ +002dd680: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ +002dd690: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ +002dd6a0: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ +002dd6b0: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ +002dd6c0: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ +002dd6d0: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ +002dd6e0: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ +002dd6f0: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +002dd700: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ +002dd710: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ +002dd720: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ +002dd730: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002dd740: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ +002dd750: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ +002dd760: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ +002dd770: 7368 645f 7072 6976 6174 655f 6b65 790a  shd_private_key.
│ │ │ +002dd780: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ +002dd790: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ +002dd7a0: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ +002dd7b0: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ +002dd7c0: 5f72 6562 6f6f 745f 6e65 6564 6564 0a3c  _reboot_needed.<
│ │ │ +002dd7d0: 2f63 6f64 653e 3c2f 7072 653e 3c2f 6469  /code>
│ │ │ +002dd880: 5265 6d65 6469 6174 696f 6e20 5075 7070 Remediation Pupp │ │ │ +002dd890: 6574 2073 6e69 7070 6574 20e2 87b2 3c2f et snippet ...
include ssh_pr
│ │ │ +002dd8f0: 6976 6174 655f 6b65 795f 7065 726d 730a  ivate_key_perms.
│ │ │ +002dd900: 0a63 6c61 7373 2073 7368 5f70 7269 7661  .class ssh_priva
│ │ │ +002dd910: 7465 5f6b 6579 5f70 6572 6d73 207b 0a20  te_key_perms {. 
│ │ │ +002dd920: 2065 7865 6320 7b20 2773 7368 645f 7072   exec { 'sshd_pr
│ │ │ +002dd930: 6976 5f6b 6579 273a 0a20 2020 2063 6f6d  iv_key':.    com
│ │ │ +002dd940: 6d61 6e64 203d 2667 743b 2022 6368 6d6f  mand => "chmo
│ │ │ +002dd950: 6420 3036 3430 202f 6574 632f 7373 682f  d 0640 /etc/ssh/
│ │ │ +002dd960: 2a5f 6b65 7922 2c0a 2020 2020 7061 7468  *_key",.    path
│ │ │ +002dd970: 2020 2020 3d26 6774 3b20 272f 6269 6e3a      => '/bin:
│ │ │ +002dd980: 2f75 7372 2f62 696e 270a 2020 7d0a 7d0a  /usr/bin'.  }.}.
│ │ │  002dd990: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation │ │ │ -002dee00: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ -002dee10: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
│ │ │ -002dee50: 3c63 6f64 653e 696e 636c 7564 6520 7373  include ss
│ │ │ -002dee60: 685f 7075 626c 6963 5f6b 6579 5f70 6572  h_public_key_per
│ │ │ -002dee70: 6d73 0a0a 636c 6173 7320 7373 685f 7075  ms..class ssh_pu
│ │ │ -002dee80: 626c 6963 5f6b 6579 5f70 6572 6d73 207b  blic_key_perms {
│ │ │ -002dee90: 0a20 2065 7865 6320 7b20 2773 7368 645f  .  exec { 'sshd_
│ │ │ -002deea0: 7075 625f 6b65 7927 3a0a 2020 2020 636f  pub_key':.    co
│ │ │ -002deeb0: 6d6d 616e 6420 3d26 6774 3b20 2263 686d  mmand => "chm
│ │ │ -002deec0: 6f64 2030 3634 3420 2f65 7463 2f73 7368  od 0644 /etc/ssh
│ │ │ -002deed0: 2f2a 2e70 7562 222c 0a20 2020 2070 6174  /*.pub",.    pat
│ │ │ -002deee0: 6820 2020 203d 2667 743b 2027 2f62 696e  h    => '/bin
│ │ │ -002deef0: 3a2f 7573 722f 6269 6e27 0a20 207d 0a7d  :/usr/bin'.  }.}
│ │ │ -002def00: 0a3c 2f63 6f64 653e 3c2f 7072 653e 3c2f  .
Remediation An │ │ │ -002defc0: 7369 626c 6520 736e 6970 7065 7420 e287 sible snippet .. │ │ │ -002defd0: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
│ │ │ +002dd0d0: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ +002dd100: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ +002dd110: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ +002dd150: 793a 3c2f 7468 3e3c 7464 3e63 6f6e 6669 y:confi │ │ │ +002dd160: 6775 7265 3c2f 7464 3e3c 2f74 723e 3c2f gure
│ │ │ -002df050: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -002df070: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -002df0c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472
Complexity:< │ │ │ -002df060: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -002df080: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -002df0d0: 6174 6567 793a 3c2f 7468 3e3c 7464 3e63 ategy:c │ │ │ -002df0e0: 6f6e 6669 6775 7265 3c2f 7464 3e3c 2f74 onfigure
<
│ │ │ -002df100: 636f 6465 3e2d 206e 616d 653a 2047 6174  code>- name: Gat
│ │ │ -002df110: 6865 7220 7468 6520 7061 636b 6167 6520  her the package 
│ │ │ -002df120: 6661 6374 730a 2020 7061 636b 6167 655f  facts.  package_
│ │ │ -002df130: 6661 6374 733a 0a20 2020 206d 616e 6167  facts:.    manag
│ │ │ -002df140: 6572 3a20 6175 746f 0a20 2074 6167 733a  er: auto.  tags:
│ │ │ -002df150: 0a20 202d 204e 4953 542d 3830 302d 3137  .  - NIST-800-17
│ │ │ -002df160: 312d 332e 312e 3133 0a20 202d 204e 4953  1-3.1.13.  - NIS
│ │ │ -002df170: 542d 3830 302d 3137 312d 332e 3133 2e31  T-800-171-3.13.1
│ │ │ -002df180: 300a 2020 2d20 4e49 5354 2d38 3030 2d35  0.  - NIST-800-5
│ │ │ -002df190: 332d 4143 2d31 3728 6129 0a20 202d 204e  3-AC-17(a).  - N
│ │ │ -002df1a0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -002df1b0: 3129 0a20 202d 204e 4953 542d 3830 302d  1).  - NIST-800-
│ │ │ -002df1c0: 3533 2d43 4d2d 3628 6129 0a20 202d 2050  53-CM-6(a).  - P
│ │ │ -002df1d0: 4349 2d44 5353 2d52 6571 2d32 2e32 2e34  CI-DSS-Req-2.2.4
│ │ │ -002df1e0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ -002df1f0: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ -002df200: 2d32 2e32 2e36 0a20 202d 2063 6f6e 6669  -2.2.6.  - confi
│ │ │ -002df210: 6775 7265 5f73 7472 6174 6567 790a 2020  gure_strategy.  
│ │ │ -002df220: 2d20 6669 6c65 5f70 6572 6d69 7373 696f  - file_permissio
│ │ │ -002df230: 6e73 5f73 7368 645f 7075 625f 6b65 790a  ns_sshd_pub_key.
│ │ │ -002df240: 2020 2d20 6c6f 775f 636f 6d70 6c65 7869    - low_complexi
│ │ │ -002df250: 7479 0a20 202d 206c 6f77 5f64 6973 7275  ty.  - low_disru
│ │ │ -002df260: 7074 696f 6e0a 2020 2d20 6d65 6469 756d  ption.  - medium
│ │ │ -002df270: 5f73 6576 6572 6974 790a 2020 2d20 6e6f  _severity.  - no
│ │ │ -002df280: 5f72 6562 6f6f 745f 6e65 6564 6564 0a0a  _reboot_needed..
│ │ │ -002df290: 2d20 6e61 6d65 3a20 4669 6e64 202f 6574  - name: Find /et
│ │ │ -002df2a0: 632f 7373 682f 2066 696c 6528 7329 0a20  c/ssh/ file(s). 
│ │ │ -002df2b0: 2061 6e73 6962 6c65 2e62 7569 6c74 696e   ansible.builtin
│ │ │ -002df2c0: 2e63 6f6d 6d61 6e64 3a20 6669 6e64 202d  .command: find -
│ │ │ -002df2d0: 5020 2f65 7463 2f73 7368 2f20 2d6d 6178  P /etc/ssh/ -max
│ │ │ -002df2e0: 6465 7074 6820 3120 2d70 6572 6d20 2f75  depth 1 -perm /u
│ │ │ -002df2f0: 2b78 732c 672b 7877 732c 6f2b 7877 7420  +xs,g+xws,o+xwt 
│ │ │ -002df300: 202d 7479 7065 0a20 2020 2066 202d 7265   -type.    f -re
│ │ │ -002df310: 6765 7874 7970 6520 706f 7369 782d 6578  gextype posix-ex
│ │ │ -002df320: 7465 6e64 6564 202d 7265 6765 7820 225e  tended -regex "^
│ │ │ -002df330: 2e2a 5c2e 7075 6224 220a 2020 7265 6769  .*\.pub$".  regi
│ │ │ -002df340: 7374 6572 3a20 6669 6c65 735f 666f 756e  ster: files_foun
│ │ │ -002df350: 640a 2020 6368 616e 6765 645f 7768 656e  d.  changed_when
│ │ │ -002df360: 3a20 6661 6c73 650a 2020 6661 696c 6564  : false.  failed
│ │ │ -002df370: 5f77 6865 6e3a 2066 616c 7365 0a20 2063  _when: false.  c
│ │ │ -002df380: 6865 636b 5f6d 6f64 653a 2066 616c 7365  heck_mode: false
│ │ │ -002df390: 0a20 2077 6865 6e3a 2027 226c 696e 7578  .  when: '"linux
│ │ │ -002df3a0: 2d62 6173 6522 2069 6e20 616e 7369 626c  -base" in ansibl
│ │ │ -002df3b0: 655f 6661 6374 732e 7061 636b 6167 6573  e_facts.packages
│ │ │ -002df3c0: 270a 2020 7461 6773 3a0a 2020 2d20 4e49  '.  tags:.  - NI
│ │ │ -002df3d0: 5354 2d38 3030 2d31 3731 2d33 2e31 2e31  ST-800-171-3.1.1
│ │ │ -002df3e0: 330a 2020 2d20 4e49 5354 2d38 3030 2d31  3.  - NIST-800-1
│ │ │ -002df3f0: 3731 2d33 2e31 332e 3130 0a20 202d 204e  71-3.13.10.  - N
│ │ │ -002df400: 4953 542d 3830 302d 3533 2d41 432d 3137  IST-800-53-AC-17
│ │ │ -002df410: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002df420: 2d35 332d 4143 2d36 2831 290a 2020 2d20  -53-AC-6(1).  - 
│ │ │ -002df430: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002df440: 2861 290a 2020 2d20 5043 492d 4453 532d  (a).  - PCI-DSS-
│ │ │ -002df450: 5265 712d 322e 322e 340a 2020 2d20 5043  Req-2.2.4.  - PC
│ │ │ -002df460: 492d 4453 5376 342d 322e 320a 2020 2d20  I-DSSv4-2.2.  - 
│ │ │ -002df470: 5043 492d 4453 5376 342d 322e 322e 360a  PCI-DSSv4-2.2.6.
│ │ │ -002df480: 2020 2d20 636f 6e66 6967 7572 655f 7374    - configure_st
│ │ │ -002df490: 7261 7465 6779 0a20 202d 2066 696c 655f  rategy.  - file_
│ │ │ -002df4a0: 7065 726d 6973 7369 6f6e 735f 7373 6864  permissions_sshd
│ │ │ -002df4b0: 5f70 7562 5f6b 6579 0a20 202d 206c 6f77  _pub_key.  - low
│ │ │ -002df4c0: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002df4d0: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002df4e0: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002df4f0: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002df500: 5f6e 6565 6465 640a 0a2d 206e 616d 653a  _needed..- name:
│ │ │ -002df510: 2053 6574 2070 6572 6d69 7373 696f 6e73   Set permissions
│ │ │ -002df520: 2066 6f72 202f 6574 632f 7373 682f 2066   for /etc/ssh/ f
│ │ │ -002df530: 696c 6528 7329 0a20 2061 6e73 6962 6c65  ile(s).  ansible
│ │ │ -002df540: 2e62 7569 6c74 696e 2e66 696c 653a 0a20  .builtin.file:. 
│ │ │ -002df550: 2020 2070 6174 683a 2027 7b7b 2069 7465     path: '{{ ite
│ │ │ -002df560: 6d20 7d7d 270a 2020 2020 6d6f 6465 3a20  m }}'.    mode: 
│ │ │ -002df570: 752d 7873 2c67 2d78 7773 2c6f 2d78 7774  u-xs,g-xws,o-xwt
│ │ │ -002df580: 0a20 2020 2073 7461 7465 3a20 6669 6c65  .    state: file
│ │ │ -002df590: 0a20 2077 6974 685f 6974 656d 733a 0a20  .  with_items:. 
│ │ │ -002df5a0: 202d 2027 7b7b 2066 696c 6573 5f66 6f75   - '{{ files_fou
│ │ │ -002df5b0: 6e64 2e73 7464 6f75 745f 6c69 6e65 7320  nd.stdout_lines 
│ │ │ -002df5c0: 7d7d 270a 2020 7768 656e 3a20 2722 6c69  }}'.  when: '"li
│ │ │ -002df5d0: 6e75 782d 6261 7365 2220 696e 2061 6e73  nux-base" in ans
│ │ │ -002df5e0: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -002df5f0: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -002df600: 204e 4953 542d 3830 302d 3137 312d 332e   NIST-800-171-3.
│ │ │ -002df610: 312e 3133 0a20 202d 204e 4953 542d 3830  1.13.  - NIST-80
│ │ │ -002df620: 302d 3137 312d 332e 3133 2e31 300a 2020  0-171-3.13.10.  
│ │ │ -002df630: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -002df640: 2d31 3728 6129 0a20 202d 204e 4953 542d  -17(a).  - NIST-
│ │ │ -002df650: 3830 302d 3533 2d41 432d 3628 3129 0a20  800-53-AC-6(1). 
│ │ │ -002df660: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ -002df670: 4d2d 3628 6129 0a20 202d 2050 4349 2d44  M-6(a).  - PCI-D
│ │ │ -002df680: 5353 2d52 6571 2d32 2e32 2e34 0a20 202d  SS-Req-2.2.4.  -
│ │ │ -002df690: 2050 4349 2d44 5353 7634 2d32 2e32 0a20   PCI-DSSv4-2.2. 
│ │ │ -002df6a0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ -002df6b0: 2e36 0a20 202d 2063 6f6e 6669 6775 7265  .6.  - configure
│ │ │ -002df6c0: 5f73 7472 6174 6567 790a 2020 2d20 6669  _strategy.  - fi
│ │ │ -002df6d0: 6c65 5f70 6572 6d69 7373 696f 6e73 5f73  le_permissions_s
│ │ │ -002df6e0: 7368 645f 7075 625f 6b65 790a 2020 2d20  shd_pub_key.  - 
│ │ │ -002df6f0: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ -002df700: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ -002df710: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ -002df720: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ -002df730: 6f6f 745f 6e65 6564 6564 0a3c 2f63 6f64  oot_needed.
Complexity │ │ │ +002deea0: 3a3c 2f74 683e 3c74 643e 6c6f 773c 2f74 :lowD │ │ │ +002deec0: 6973 7275 7074 696f 6e3a 3c2f 7468 3e3c isruption:< │ │ │ +002deed0: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002deee0: 3c74 723e 3c74 683e 5265 626f 6f74 3a3c Reboot:< │ │ │ +002deef0: 2f74 683e 3c74 643e 6661 6c73 653c 2f74 /th>falseS │ │ │ +002def10: 7472 6174 6567 793a 3c2f 7468 3e3c 7464 trategy:configure< │ │ │ +002def30: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +002def50: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +002def60: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +002def70: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +002def80: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +002def90: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +002defa0: 3137 312d 332e 312e 3133 0a20 202d 204e  171-3.1.13.  - N
│ │ │ +002defb0: 4953 542d 3830 302d 3137 312d 332e 3133  IST-800-171-3.13
│ │ │ +002defc0: 2e31 300a 2020 2d20 4e49 5354 2d38 3030  .10.  - NIST-800
│ │ │ +002defd0: 2d35 332d 4143 2d31 3728 6129 0a20 202d  -53-AC-17(a).  -
│ │ │ +002defe0: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +002deff0: 3628 3129 0a20 202d 204e 4953 542d 3830  6(1).  - NIST-80
│ │ │ +002df000: 302d 3533 2d43 4d2d 3628 6129 0a20 202d  0-53-CM-6(a).  -
│ │ │ +002df010: 2050 4349 2d44 5353 2d52 6571 2d32 2e32   PCI-DSS-Req-2.2
│ │ │ +002df020: 2e34 0a20 202d 2050 4349 2d44 5353 7634  .4.  - PCI-DSSv4
│ │ │ +002df030: 2d32 2e32 0a20 202d 2050 4349 2d44 5353  -2.2.  - PCI-DSS
│ │ │ +002df040: 7634 2d32 2e32 2e36 0a20 202d 2063 6f6e  v4-2.2.6.  - con
│ │ │ +002df050: 6669 6775 7265 5f73 7472 6174 6567 790a  figure_strategy.
│ │ │ +002df060: 2020 2d20 6669 6c65 5f70 6572 6d69 7373    - file_permiss
│ │ │ +002df070: 696f 6e73 5f73 7368 645f 7075 625f 6b65  ions_sshd_pub_ke
│ │ │ +002df080: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ +002df090: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ +002df0a0: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ +002df0b0: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ +002df0c0: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ +002df0d0: 0a0a 2d20 6e61 6d65 3a20 4669 6e64 202f  ..- name: Find /
│ │ │ +002df0e0: 6574 632f 7373 682f 2066 696c 6528 7329  etc/ssh/ file(s)
│ │ │ +002df0f0: 0a20 2061 6e73 6962 6c65 2e62 7569 6c74  .  ansible.built
│ │ │ +002df100: 696e 2e63 6f6d 6d61 6e64 3a20 6669 6e64  in.command: find
│ │ │ +002df110: 202d 5020 2f65 7463 2f73 7368 2f20 2d6d   -P /etc/ssh/ -m
│ │ │ +002df120: 6178 6465 7074 6820 3120 2d70 6572 6d20  axdepth 1 -perm 
│ │ │ +002df130: 2f75 2b78 732c 672b 7877 732c 6f2b 7877  /u+xs,g+xws,o+xw
│ │ │ +002df140: 7420 202d 7479 7065 0a20 2020 2066 202d  t  -type.    f -
│ │ │ +002df150: 7265 6765 7874 7970 6520 706f 7369 782d  regextype posix-
│ │ │ +002df160: 6578 7465 6e64 6564 202d 7265 6765 7820  extended -regex 
│ │ │ +002df170: 225e 2e2a 5c2e 7075 6224 220a 2020 7265  "^.*\.pub$".  re
│ │ │ +002df180: 6769 7374 6572 3a20 6669 6c65 735f 666f  gister: files_fo
│ │ │ +002df190: 756e 640a 2020 6368 616e 6765 645f 7768  und.  changed_wh
│ │ │ +002df1a0: 656e 3a20 6661 6c73 650a 2020 6661 696c  en: false.  fail
│ │ │ +002df1b0: 6564 5f77 6865 6e3a 2066 616c 7365 0a20  ed_when: false. 
│ │ │ +002df1c0: 2063 6865 636b 5f6d 6f64 653a 2066 616c   check_mode: fal
│ │ │ +002df1d0: 7365 0a20 2077 6865 6e3a 2027 226c 696e  se.  when: '"lin
│ │ │ +002df1e0: 7578 2d62 6173 6522 2069 6e20 616e 7369  ux-base" in ansi
│ │ │ +002df1f0: 626c 655f 6661 6374 732e 7061 636b 6167  ble_facts.packag
│ │ │ +002df200: 6573 270a 2020 7461 6773 3a0a 2020 2d20  es'.  tags:.  - 
│ │ │ +002df210: 4e49 5354 2d38 3030 2d31 3731 2d33 2e31  NIST-800-171-3.1
│ │ │ +002df220: 2e31 330a 2020 2d20 4e49 5354 2d38 3030  .13.  - NIST-800
│ │ │ +002df230: 2d31 3731 2d33 2e31 332e 3130 0a20 202d  -171-3.13.10.  -
│ │ │ +002df240: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +002df250: 3137 2861 290a 2020 2d20 4e49 5354 2d38  17(a).  - NIST-8
│ │ │ +002df260: 3030 2d35 332d 4143 2d36 2831 290a 2020  00-53-AC-6(1).  
│ │ │ +002df270: 2d20 4e49 5354 2d38 3030 2d35 332d 434d  - NIST-800-53-CM
│ │ │ +002df280: 2d36 2861 290a 2020 2d20 5043 492d 4453  -6(a).  - PCI-DS
│ │ │ +002df290: 532d 5265 712d 322e 322e 340a 2020 2d20  S-Req-2.2.4.  - 
│ │ │ +002df2a0: 5043 492d 4453 5376 342d 322e 320a 2020  PCI-DSSv4-2.2.  
│ │ │ +002df2b0: 2d20 5043 492d 4453 5376 342d 322e 322e  - PCI-DSSv4-2.2.
│ │ │ +002df2c0: 360a 2020 2d20 636f 6e66 6967 7572 655f  6.  - configure_
│ │ │ +002df2d0: 7374 7261 7465 6779 0a20 202d 2066 696c  strategy.  - fil
│ │ │ +002df2e0: 655f 7065 726d 6973 7369 6f6e 735f 7373  e_permissions_ss
│ │ │ +002df2f0: 6864 5f70 7562 5f6b 6579 0a20 202d 206c  hd_pub_key.  - l
│ │ │ +002df300: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +002df310: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +002df320: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +002df330: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +002df340: 6f74 5f6e 6565 6465 640a 0a2d 206e 616d  ot_needed..- nam
│ │ │ +002df350: 653a 2053 6574 2070 6572 6d69 7373 696f  e: Set permissio
│ │ │ +002df360: 6e73 2066 6f72 202f 6574 632f 7373 682f  ns for /etc/ssh/
│ │ │ +002df370: 2066 696c 6528 7329 0a20 2061 6e73 6962   file(s).  ansib
│ │ │ +002df380: 6c65 2e62 7569 6c74 696e 2e66 696c 653a  le.builtin.file:
│ │ │ +002df390: 0a20 2020 2070 6174 683a 2027 7b7b 2069  .    path: '{{ i
│ │ │ +002df3a0: 7465 6d20 7d7d 270a 2020 2020 6d6f 6465  tem }}'.    mode
│ │ │ +002df3b0: 3a20 752d 7873 2c67 2d78 7773 2c6f 2d78  : u-xs,g-xws,o-x
│ │ │ +002df3c0: 7774 0a20 2020 2073 7461 7465 3a20 6669  wt.    state: fi
│ │ │ +002df3d0: 6c65 0a20 2077 6974 685f 6974 656d 733a  le.  with_items:
│ │ │ +002df3e0: 0a20 202d 2027 7b7b 2066 696c 6573 5f66  .  - '{{ files_f
│ │ │ +002df3f0: 6f75 6e64 2e73 7464 6f75 745f 6c69 6e65  ound.stdout_line
│ │ │ +002df400: 7320 7d7d 270a 2020 7768 656e 3a20 2722  s }}'.  when: '"
│ │ │ +002df410: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ +002df420: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ +002df430: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ +002df440: 202d 204e 4953 542d 3830 302d 3137 312d   - NIST-800-171-
│ │ │ +002df450: 332e 312e 3133 0a20 202d 204e 4953 542d  3.1.13.  - NIST-
│ │ │ +002df460: 3830 302d 3137 312d 332e 3133 2e31 300a  800-171-3.13.10.
│ │ │ +002df470: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +002df480: 4143 2d31 3728 6129 0a20 202d 204e 4953  AC-17(a).  - NIS
│ │ │ +002df490: 542d 3830 302d 3533 2d41 432d 3628 3129  T-800-53-AC-6(1)
│ │ │ +002df4a0: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +002df4b0: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +002df4c0: 2d44 5353 2d52 6571 2d32 2e32 2e34 0a20  -DSS-Req-2.2.4. 
│ │ │ +002df4d0: 202d 2050 4349 2d44 5353 7634 2d32 2e32   - PCI-DSSv4-2.2
│ │ │ +002df4e0: 0a20 202d 2050 4349 2d44 5353 7634 2d32  .  - PCI-DSSv4-2
│ │ │ +002df4f0: 2e32 2e36 0a20 202d 2063 6f6e 6669 6775  .2.6.  - configu
│ │ │ +002df500: 7265 5f73 7472 6174 6567 790a 2020 2d20  re_strategy.  - 
│ │ │ +002df510: 6669 6c65 5f70 6572 6d69 7373 696f 6e73  file_permissions
│ │ │ +002df520: 5f73 7368 645f 7075 625f 6b65 790a 2020  _sshd_pub_key.  
│ │ │ +002df530: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479  - low_complexity
│ │ │ +002df540: 0a20 202d 206c 6f77 5f64 6973 7275 7074  .  - low_disrupt
│ │ │ +002df550: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73  ion.  - medium_s
│ │ │ +002df560: 6576 6572 6974 790a 2020 2d20 6e6f 5f72  everity.  - no_r
│ │ │ +002df570: 6562 6f6f 745f 6e65 6564 6564 0a3c 2f63  eboot_needed.
│ │ │ +002df590: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002df630: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002df640: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002df650: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ +002df690: 696e 636c 7564 6520 7373 685f 7075 626c  include ssh_publ
│ │ │ +002df6a0: 6963 5f6b 6579 5f70 6572 6d73 0a0a 636c  ic_key_perms..cl
│ │ │ +002df6b0: 6173 7320 7373 685f 7075 626c 6963 5f6b  ass ssh_public_k
│ │ │ +002df6c0: 6579 5f70 6572 6d73 207b 0a20 2065 7865  ey_perms {.  exe
│ │ │ +002df6d0: 6320 7b20 2773 7368 645f 7075 625f 6b65  c { 'sshd_pub_ke
│ │ │ +002df6e0: 7927 3a0a 2020 2020 636f 6d6d 616e 6420  y':.    command 
│ │ │ +002df6f0: 3d26 6774 3b20 2263 686d 6f64 2030 3634  => "chmod 064
│ │ │ +002df700: 3420 2f65 7463 2f73 7368 2f2a 2e70 7562  4 /etc/ssh/*.pub
│ │ │ +002df710: 222c 0a20 2020 2070 6174 6820 2020 203d  ",.    path    =
│ │ │ +002df720: 2667 743b 2027 2f62 696e 3a2f 7573 722f  > '/bin:/usr/
│ │ │ +002df730: 6269 6e27 0a20 207d 0a7d 0a3c 2f63 6f64  bin'.  }.}.
Remediat │ │ │ -002e1410: 696f 6e20 5075 7070 6574 2073 6e69 7070 ion Puppet snipp │ │ │ -002e1420: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -002e1460: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -002e1470: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -002e1480: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -002e1490: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -002e14a0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ -002e14b0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -002e14c0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ -002e1500: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -002e1510: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ -002e1530: 3c74 643e 6469 7361 626c 653c 2f74 643e disable │ │ │ -002e1540: 3c2f 7472 3e3c 2f74 6162 6c65 3e3c 7072 .include │ │ │ -002e1560: 2072 656d 6f76 655f 786f 7267 2d78 3131 remove_xorg-x11 │ │ │ -002e1570: 2d73 6572 7665 722d 636f 6d6d 6f6e 0a0a -server-common.. │ │ │ -002e1580: 636c 6173 7320 7265 6d6f 7665 5f78 6f72 class remove_xor │ │ │ +002e1410: 696f 6e20 416e 7369 626c 6520 736e 6970 ion Ansible snip │ │ │ +002e1420: 7065 7420 e287 b23c 2f61 3e3c 6272 3e3c pet ...
< │ │ │ +002e1430: 6469 7620 636c 6173 733d 2270 616e 656c div class="panel │ │ │ +002e1440: 2d63 6f6c 6c61 7073 6520 636f 6c6c 6170 -collapse collap │ │ │ +002e1450: 7365 2220 6964 3d22 6964 3132 3337 223e se" id="id1237"> │ │ │ +002e1460: 3c74 6162 6c65 2063 6c61 7373 3d22 7461 < │ │ │ +002e14d0: 7468 3e44 6973 7275 7074 696f 6e3a 3c2f th>Disruption:< │ │ │ +002e14f0: 2f74 723e 3c74 723e 3c74 683e 5265 626f /tr>< │ │ │ +002e1520: 7468 3e53 7472 6174 6567 793a 3c2f 7468 th>Strategy:
Comple │ │ │ +002e14b0: 7869 7479 3a3c 2f74 683e 3c74 643e 6c6f xity:lo │ │ │ +002e14c0: 773c 2f74 643e 3c2f 7472 3e3c 7472 3e3c w
low
Rebo │ │ │ +002e1500: 6f74 3a3c 2f74 683e 3c74 643e 6661 6c73 ot:fals │ │ │ +002e1510: 653c 2f74 643e 3c2f 7472 3e3c 7472 3e3c e
disable

- name: │ │ │ +002e1560: 2027 5265 6d6f 7665 2074 6865 2058 2057 'Remove the X W │ │ │ +002e1570: 696e 646f 7773 2050 6163 6b61 6765 2047 indows Package G │ │ │ +002e1580: 726f 7570 3a20 456e 7375 7265 2078 6f72 roup: Ensure xor │ │ │ 002e1590: 672d 7831 312d 7365 7276 6572 2d63 6f6d g-x11-server-com │ │ │ -002e15a0: 6d6f 6e20 7b0a 2020 7061 636b 6167 6520 mon {. package │ │ │ -002e15b0: 7b20 2778 6f72 672d 7831 312d 7365 7276 { 'xorg-x11-serv │ │ │ -002e15c0: 6572 2d63 6f6d 6d6f 6e27 3a0a 2020 2020 er-common':. │ │ │ -002e15d0: 656e 7375 7265 203d 2667 743b 2027 7075 ensure => 'pu │ │ │ -002e15e0: 7267 6564 272c 0a20 207d 0a7d 0a3c 2f63 rged',. }.}.

│ │ │ -002e1600: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ -002e16a0: 6d65 6469 6174 696f 6e20 416e 7369 626c mediation Ansibl │ │ │ -002e16b0: 6520 736e 6970 7065 7420 e287 b23c 2f61 e snippet ...
│ │ │ -002e1750: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 Reboot:false
-
│ │ │ -002e17f0: 206e 616d 653a 2027 5265 6d6f 7665 2074   name: 'Remove t
│ │ │ -002e1800: 6865 2058 2057 696e 646f 7773 2050 6163  he X Windows Pac
│ │ │ -002e1810: 6b61 6765 2047 726f 7570 3a20 456e 7375  kage Group: Ensu
│ │ │ -002e1820: 7265 2078 6f72 672d 7831 312d 7365 7276  re xorg-x11-serv
│ │ │ -002e1830: 6572 2d63 6f6d 6d6f 6e20 6973 2072 656d  er-common is rem
│ │ │ -002e1840: 6f76 6564 270a 2020 616e 7369 626c 652e  oved'.  ansible.
│ │ │ -002e1850: 6275 696c 7469 6e2e 7061 636b 6167 653a  builtin.package:
│ │ │ -002e1860: 0a20 2020 206e 616d 653a 2078 6f72 672d  .    name: xorg-
│ │ │ -002e1870: 7831 312d 7365 7276 6572 2d63 6f6d 6d6f  x11-server-commo
│ │ │ -002e1880: 6e0a 2020 2020 7374 6174 653a 2061 6273  n.    state: abs
│ │ │ -002e1890: 656e 740a 2020 7461 6773 3a0a 2020 2d20  ent.  tags:.  - 
│ │ │ -002e18a0: 4e49 5354 2d38 3030 2d35 332d 434d 2d36  NIST-800-53-CM-6
│ │ │ -002e18b0: 2861 290a 2020 2d20 4e49 5354 2d38 3030  (a).  - NIST-800
│ │ │ -002e18c0: 2d35 332d 434d 2d37 2861 290a 2020 2d20  -53-CM-7(a).  - 
│ │ │ -002e18d0: 4e49 5354 2d38 3030 2d35 332d 434d 2d37  NIST-800-53-CM-7
│ │ │ -002e18e0: 2862 290a 2020 2d20 6469 7361 626c 655f  (b).  - disable_
│ │ │ -002e18f0: 7374 7261 7465 6779 0a20 202d 206c 6f77  strategy.  - low
│ │ │ -002e1900: 5f63 6f6d 706c 6578 6974 790a 2020 2d20  _complexity.  - 
│ │ │ -002e1910: 6c6f 775f 6469 7372 7570 7469 6f6e 0a20  low_disruption. 
│ │ │ -002e1920: 202d 206d 6564 6975 6d5f 7365 7665 7269   - medium_severi
│ │ │ -002e1930: 7479 0a20 202d 206e 6f5f 7265 626f 6f74  ty.  - no_reboot
│ │ │ -002e1940: 5f6e 6565 6465 640a 2020 2d20 7061 636b  _needed.  - pack
│ │ │ -002e1950: 6167 655f 786f 7267 2d78 3131 2d73 6572  age_xorg-x11-ser
│ │ │ -002e1960: 7665 722d 636f 6d6d 6f6e 5f72 656d 6f76  ver-common_remov
│ │ │ -002e1970: 6564 0a3c 2f63 6f64 653e 3c2f 7072 653e  ed.
│ │ │ +002e15a0: 6d6f 6e20 6973 2072 656d 6f76 6564 270a mon is removed'. │ │ │ +002e15b0: 2020 616e 7369 626c 652e 6275 696c 7469 ansible.builti │ │ │ +002e15c0: 6e2e 7061 636b 6167 653a 0a20 2020 206e n.package:. n │ │ │ +002e15d0: 616d 653a 2078 6f72 672d 7831 312d 7365 ame: xorg-x11-se │ │ │ +002e15e0: 7276 6572 2d63 6f6d 6d6f 6e0a 2020 2020 rver-common. │ │ │ +002e15f0: 7374 6174 653a 2061 6273 656e 740a 2020 state: absent. │ │ │ +002e1600: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ +002e1610: 3030 2d35 332d 434d 2d36 2861 290a 2020 00-53-CM-6(a). │ │ │ +002e1620: 2d20 4e49 5354 2d38 3030 2d35 332d 434d - NIST-800-53-CM │ │ │ +002e1630: 2d37 2861 290a 2020 2d20 4e49 5354 2d38 -7(a). - NIST-8 │ │ │ +002e1640: 3030 2d35 332d 434d 2d37 2862 290a 2020 00-53-CM-7(b). │ │ │ +002e1650: 2d20 6469 7361 626c 655f 7374 7261 7465 - disable_strate │ │ │ +002e1660: 6779 0a20 202d 206c 6f77 5f63 6f6d 706c gy. - low_compl │ │ │ +002e1670: 6578 6974 790a 2020 2d20 6c6f 775f 6469 exity. - low_di │ │ │ +002e1680: 7372 7570 7469 6f6e 0a20 202d 206d 6564 sruption. - med │ │ │ +002e1690: 6975 6d5f 7365 7665 7269 7479 0a20 202d ium_severity. - │ │ │ +002e16a0: 206e 6f5f 7265 626f 6f74 5f6e 6565 6465 no_reboot_neede │ │ │ +002e16b0: 640a 2020 2d20 7061 636b 6167 655f 786f d. - package_xo │ │ │ +002e16c0: 7267 2d78 3131 2d73 6572 7665 722d 636f rg-x11-server-co │ │ │ +002e16d0: 6d6d 6f6e 5f72 656d 6f76 6564 0a3c 2f63 mmon_removed. │ │ │ +002e16f0: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Re │ │ │ +002e1790: 6d65 6469 6174 696f 6e20 5075 7070 6574 mediation Puppet │ │ │ +002e17a0: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ +002e17b0: 3c62 723e 3c64 6976 2063 6c61 7373 3d22
│ │ │ -002e1740: 436f 6d70 6c65 7869 7479 3a3c 2f74 683e Complexity:low
Disrupt │ │ │ -002e1770: 696f 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 ion:low │ │ │ -002e1780: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
Strateg │ │ │ -002e17c0: 793a 3c2f 7468 3e3c 7464 3e64 6973 6162 y:disab │ │ │ -002e17d0: 6c65 3c2f 7464 3e3c 2f74 723e 3c2f 7461 le
< │ │ │ +002e1840: 7464 3e6c 6f77 3c2f 7464 3e3c 2f74 723e td>low │ │ │ +002e1850: 3c74 723e 3c74 683e 4469 7372 7570 7469 │ │ │ +002e18a0: 3c74 723e 3c74 683e 5374 7261 7465 6779
.i
│ │ │ +002e18e0: 6e63 6c75 6465 2072 656d 6f76 655f 786f  nclude remove_xo
│ │ │ +002e18f0: 7267 2d78 3131 2d73 6572 7665 722d 636f  rg-x11-server-co
│ │ │ +002e1900: 6d6d 6f6e 0a0a 636c 6173 7320 7265 6d6f  mmon..class remo
│ │ │ +002e1910: 7665 5f78 6f72 672d 7831 312d 7365 7276  ve_xorg-x11-serv
│ │ │ +002e1920: 6572 2d63 6f6d 6d6f 6e20 7b0a 2020 7061  er-common {.  pa
│ │ │ +002e1930: 636b 6167 6520 7b20 2778 6f72 672d 7831  ckage { 'xorg-x1
│ │ │ +002e1940: 312d 7365 7276 6572 2d63 6f6d 6d6f 6e27  1-server-common'
│ │ │ +002e1950: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ +002e1960: 743b 2027 7075 7267 6564 272c 0a20 207d  t; 'purged',.  }
│ │ │ +002e1970: 0a7d 0a3c 2f63 6f64 653e 3c2f 7072 653e  .}.
│ │ │ 002e1980: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22 │ │ │ -004a81b0: 5265 6d65 6469 6174 696f 6e20 4f53 4275 Remediation OSBu │ │ │ -004a81c0: 696c 6420 426c 7565 7072 696e 7420 736e ild Blueprint sn │ │ │ -004a81d0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
.[[
│ │ │ -004a8220: 7061 636b 6167 6573 5d5d 0a6e 616d 6520  packages]].name 
│ │ │ -004a8230: 3d20 2261 7564 6973 7064 2d70 6c75 6769  = "audispd-plugi
│ │ │ -004a8240: 6e73 220a 7665 7273 696f 6e20 3d20 222a  ns".version = "*
│ │ │ -004a8250: 220a 3c2f 636f 6465 3e3c 2f70 7265 3e3c  ".
< │ │ │ -004a8260: 2f64 6976 3e3c 6120 636c 6173 733d 2262 /div>Remediation P │ │ │ -004a8310: 7570 7065 7420 736e 6970 7065 7420 e287 uppet snippet .. │ │ │ -004a8320: b23c 2f61 3e3c 6272 3e3c 6469 7620 636c .
C │ │ │ +002e1830: 6f6d 706c 6578 6974 793a 3c2f 7468 3e3c omplexity:
Disrupti │ │ │ +002e1860: 6f6e 3a3c 2f74 683e 3c74 643e 6c6f 773c on:low< │ │ │ +002e1870: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Reboot:false
Strategy │ │ │ +002e18b0: 3a3c 2f74 683e 3c74 643e 6469 7361 626c :disabl │ │ │ +002e18c0: 653c 2f74 643e 3c2f 7472 3e3c 2f74 6162 e
│ │ │ -004a83a0: 3c74 683e 436f 6d70 6c65 7869 7479 3a3c │ │ │ -004a83c0: 3c2f 7472 3e3c 7472 3e3c 7468 3e44 6973 │ │ │ -004a8410: 3c2f 7472 3e3c 7472 3e3c 7468 3e53 7472 < │ │ │ -004a8440: 2f74 6162 6c65 3e3c 7072 653e 3c63 6f64 /table>
include instal
│ │ │ -004a8460: 6c5f 6175 6469 7370 642d 706c 7567 696e  l_audispd-plugin
│ │ │ -004a8470: 730a 0a63 6c61 7373 2069 6e73 7461 6c6c  s..class install
│ │ │ -004a8480: 5f61 7564 6973 7064 2d70 6c75 6769 6e73  _audispd-plugins
│ │ │ -004a8490: 207b 0a20 2070 6163 6b61 6765 207b 2027   {.  package { '
│ │ │ -004a84a0: 6175 6469 7370 642d 706c 7567 696e 7327  audispd-plugins'
│ │ │ -004a84b0: 3a0a 2020 2020 656e 7375 7265 203d 2667  :.    ensure =&g
│ │ │ -004a84c0: 743b 2027 696e 7374 616c 6c65 6427 2c0a  t; 'installed',.
│ │ │ -004a84d0: 2020 7d0a 7d0a 3c2f 636f 6465 3e3c 2f70    }.}.

Remediati │ │ │ -004a8590: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ -004a85a0: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ -004a85e0: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ -004a85f0: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ -004a8600: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ -004a8610: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ -004a8620: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >
Disruption:Strategy: │ │ │ -004a86b0: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c < │ │ │ -004a86c0: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
Complexity:< │ │ │ -004a83b0: 2f74 683e 3c74 643e 6c6f 773c 2f74 643e /th>low
Dis │ │ │ -004a83d0: 7275 7074 696f 6e3a 3c2f 7468 3e3c 7464 ruption:low
Reboot:false
Str │ │ │ -004a8420: 6174 6567 793a 3c2f 7468 3e3c 7464 3e65 ategy:e │ │ │ -004a8430: 6e61 626c 653c 2f74 643e 3c2f 7472 3e3c nable
Complex │ │ │ -004a8630: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ -004a8640: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
low
Reboo │ │ │ -004a8680: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ -004a8690: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74
enable
- name: G
│ │ │ -004a86e0: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ -004a86f0: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ -004a8700: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ -004a8710: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ -004a8720: 733a 0a20 202d 2050 4349 2d44 5353 2d52  s:.  - PCI-DSS-R
│ │ │ -004a8730: 6571 2d31 302e 352e 330a 2020 2d20 5043  eq-10.5.3.  - PC
│ │ │ -004a8740: 492d 4453 5376 342d 3130 2e33 0a20 202d  I-DSSv4-10.3.  -
│ │ │ -004a8750: 2050 4349 2d44 5353 7634 2d31 302e 332e   PCI-DSSv4-10.3.
│ │ │ -004a8760: 330a 2020 2d20 656e 6162 6c65 5f73 7472  3.  - enable_str
│ │ │ -004a8770: 6174 6567 790a 2020 2d20 6c6f 775f 636f  ategy.  - low_co
│ │ │ -004a8780: 6d70 6c65 7869 7479 0a20 202d 206c 6f77  mplexity.  - low
│ │ │ -004a8790: 5f64 6973 7275 7074 696f 6e0a 2020 2d20  _disruption.  - 
│ │ │ -004a87a0: 6d65 6469 756d 5f73 6576 6572 6974 790a  medium_severity.
│ │ │ -004a87b0: 2020 2d20 6e6f 5f72 6562 6f6f 745f 6e65    - no_reboot_ne
│ │ │ -004a87c0: 6564 6564 0a20 202d 2070 6163 6b61 6765  eded.  - package
│ │ │ -004a87d0: 5f61 7564 6974 2d61 7564 6973 7064 2d70  _audit-audispd-p
│ │ │ -004a87e0: 6c75 6769 6e73 5f69 6e73 7461 6c6c 6564  lugins_installed
│ │ │ -004a87f0: 0a0a 2d20 6e61 6d65 3a20 456e 7375 7265  ..- name: Ensure
│ │ │ -004a8800: 2061 7564 6973 7064 2d70 6c75 6769 6e73   audispd-plugins
│ │ │ -004a8810: 2069 7320 696e 7374 616c 6c65 640a 2020   is installed.  
│ │ │ -004a8820: 616e 7369 626c 652e 6275 696c 7469 6e2e  ansible.builtin.
│ │ │ -004a8830: 7061 636b 6167 653a 0a20 2020 206e 616d  package:.    nam
│ │ │ -004a8840: 653a 2061 7564 6973 7064 2d70 6c75 6769  e: audispd-plugi
│ │ │ -004a8850: 6e73 0a20 2020 2073 7461 7465 3a20 7072  ns.    state: pr
│ │ │ -004a8860: 6573 656e 740a 2020 7768 656e 3a20 2722  esent.  when: '"
│ │ │ -004a8870: 6c69 6e75 782d 6261 7365 2220 696e 2061  linux-base" in a
│ │ │ -004a8880: 6e73 6962 6c65 5f66 6163 7473 2e70 6163  nsible_facts.pac
│ │ │ -004a8890: 6b61 6765 7327 0a20 2074 6167 733a 0a20  kages'.  tags:. 
│ │ │ -004a88a0: 202d 2050 4349 2d44 5353 2d52 6571 2d31   - PCI-DSS-Req-1
│ │ │ -004a88b0: 302e 352e 330a 2020 2d20 5043 492d 4453  0.5.3.  - PCI-DS
│ │ │ -004a88c0: 5376 342d 3130 2e33 0a20 202d 2050 4349  Sv4-10.3.  - PCI
│ │ │ -004a88d0: 2d44 5353 7634 2d31 302e 332e 330a 2020  -DSSv4-10.3.3.  
│ │ │ -004a88e0: 2d20 656e 6162 6c65 5f73 7472 6174 6567  - enable_strateg
│ │ │ -004a88f0: 790a 2020 2d20 6c6f 775f 636f 6d70 6c65  y.  - low_comple
│ │ │ -004a8900: 7869 7479 0a20 202d 206c 6f77 5f64 6973  xity.  - low_dis
│ │ │ -004a8910: 7275 7074 696f 6e0a 2020 2d20 6d65 6469  ruption.  - medi
│ │ │ -004a8920: 756d 5f73 6576 6572 6974 790a 2020 2d20  um_severity.  - 
│ │ │ -004a8930: 6e6f 5f72 6562 6f6f 745f 6e65 6564 6564  no_reboot_needed
│ │ │ -004a8940: 0a20 202d 2070 6163 6b61 6765 5f61 7564  .  - package_aud
│ │ │ -004a8950: 6974 2d61 7564 6973 7064 2d70 6c75 6769  it-audispd-plugi
│ │ │ -004a8960: 6e73 5f69 6e73 7461 6c6c 6564 0a3c 2f63  ns_installed.
Complexity: │ │ │ +004a82a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ +004a82b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ +004a8300: 2d20 6e61 6d65 3a20 4761 7468 6572 2074  - name: Gather t
│ │ │ +004a8310: 6865 2070 6163 6b61 6765 2066 6163 7473  he package facts
│ │ │ +004a8320: 0a20 2070 6163 6b61 6765 5f66 6163 7473  .  package_facts
│ │ │ +004a8330: 3a0a 2020 2020 6d61 6e61 6765 723a 2061  :.    manager: a
│ │ │ +004a8340: 7574 6f0a 2020 7461 6773 3a0a 2020 2d20  uto.  tags:.  - 
│ │ │ +004a8350: 5043 492d 4453 532d 5265 712d 3130 2e35  PCI-DSS-Req-10.5
│ │ │ +004a8360: 2e33 0a20 202d 2050 4349 2d44 5353 7634  .3.  - PCI-DSSv4
│ │ │ +004a8370: 2d31 302e 330a 2020 2d20 5043 492d 4453  -10.3.  - PCI-DS
│ │ │ +004a8380: 5376 342d 3130 2e33 2e33 0a20 202d 2065  Sv4-10.3.3.  - e
│ │ │ +004a8390: 6e61 626c 655f 7374 7261 7465 6779 0a20  nable_strategy. 
│ │ │ +004a83a0: 202d 206c 6f77 5f63 6f6d 706c 6578 6974   - low_complexit
│ │ │ +004a83b0: 790a 2020 2d20 6c6f 775f 6469 7372 7570  y.  - low_disrup
│ │ │ +004a83c0: 7469 6f6e 0a20 202d 206d 6564 6975 6d5f  tion.  - medium_
│ │ │ +004a83d0: 7365 7665 7269 7479 0a20 202d 206e 6f5f  severity.  - no_
│ │ │ +004a83e0: 7265 626f 6f74 5f6e 6565 6465 640a 2020  reboot_needed.  
│ │ │ +004a83f0: 2d20 7061 636b 6167 655f 6175 6469 742d  - package_audit-
│ │ │ +004a8400: 6175 6469 7370 642d 706c 7567 696e 735f  audispd-plugins_
│ │ │ +004a8410: 696e 7374 616c 6c65 640a 0a2d 206e 616d  installed..- nam
│ │ │ +004a8420: 653a 2045 6e73 7572 6520 6175 6469 7370  e: Ensure audisp
│ │ │ +004a8430: 642d 706c 7567 696e 7320 6973 2069 6e73  d-plugins is ins
│ │ │ +004a8440: 7461 6c6c 6564 0a20 2061 6e73 6962 6c65  talled.  ansible
│ │ │ +004a8450: 2e62 7569 6c74 696e 2e70 6163 6b61 6765  .builtin.package
│ │ │ +004a8460: 3a0a 2020 2020 6e61 6d65 3a20 6175 6469  :.    name: audi
│ │ │ +004a8470: 7370 642d 706c 7567 696e 730a 2020 2020  spd-plugins.    
│ │ │ +004a8480: 7374 6174 653a 2070 7265 7365 6e74 0a20  state: present. 
│ │ │ +004a8490: 2077 6865 6e3a 2027 226c 696e 7578 2d62   when: '"linux-b
│ │ │ +004a84a0: 6173 6522 2069 6e20 616e 7369 626c 655f  ase" in ansible_
│ │ │ +004a84b0: 6661 6374 732e 7061 636b 6167 6573 270a  facts.packages'.
│ │ │ +004a84c0: 2020 7461 6773 3a0a 2020 2d20 5043 492d    tags:.  - PCI-
│ │ │ +004a84d0: 4453 532d 5265 712d 3130 2e35 2e33 0a20  DSS-Req-10.5.3. 
│ │ │ +004a84e0: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +004a84f0: 330a 2020 2d20 5043 492d 4453 5376 342d  3.  - PCI-DSSv4-
│ │ │ +004a8500: 3130 2e33 2e33 0a20 202d 2065 6e61 626c  10.3.3.  - enabl
│ │ │ +004a8510: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +004a8520: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +004a8530: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +004a8540: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +004a8550: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +004a8560: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +004a8570: 636b 6167 655f 6175 6469 742d 6175 6469  ckage_audit-audi
│ │ │ +004a8580: 7370 642d 706c 7567 696e 735f 696e 7374  spd-plugins_inst
│ │ │ +004a8590: 616c 6c65 640a 3c2f 636f 6465 3e3c 2f70  alled.

Remediati │ │ │ +004a8650: 6f6e 2050 7570 7065 7420 736e 6970 7065 on Puppet snippe │ │ │ +004a8660: 7420 e287 b23c 2f61 3e3c 6272 3e3c 6469 t ...
│ │ │ +004a86e0: 3c74 723e 3c74 683e 436f 6d70 6c65 7869
< │ │ │ +004a8770: 7464 3e65 6e61 626c 653c 2f74 643e 3c2f td>enable
low
Disru │ │ │ +004a8280: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ +004a8290: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ +004a82d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ +004a82e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Complexi │ │ │ +004a86f0: 7479 3a3c 2f74 683e 3c74 643e 6c6f 773c ty:low< │ │ │ +004a8700: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Disruption:low
Reboot │ │ │ +004a8740: 3a3c 2f74 683e 3c74 643e 6661 6c73 653c :false< │ │ │ +004a8750: 2f74 643e 3c2f 7472 3e3c 7472 3e3c 7468 /td>
Strategy:
│ │ │ +004a8790: 3c63 6f64 653e 696e 636c 7564 6520 696e  include in
│ │ │ +004a87a0: 7374 616c 6c5f 6175 6469 7370 642d 706c  stall_audispd-pl
│ │ │ +004a87b0: 7567 696e 730a 0a63 6c61 7373 2069 6e73  ugins..class ins
│ │ │ +004a87c0: 7461 6c6c 5f61 7564 6973 7064 2d70 6c75  tall_audispd-plu
│ │ │ +004a87d0: 6769 6e73 207b 0a20 2070 6163 6b61 6765  gins {.  package
│ │ │ +004a87e0: 207b 2027 6175 6469 7370 642d 706c 7567   { 'audispd-plug
│ │ │ +004a87f0: 696e 7327 3a0a 2020 2020 656e 7375 7265  ins':.    ensure
│ │ │ +004a8800: 203d 2667 743b 2027 696e 7374 616c 6c65   => 'installe
│ │ │ +004a8810: 6427 2c0a 2020 7d0a 7d0a 3c2f 636f 6465  d',.  }.}.
Remed │ │ │ +004a88d0: 6961 7469 6f6e 204f 5342 7569 6c64 2042 iation OSBuild B │ │ │ +004a88e0: 6c75 6570 7269 6e74 2073 6e69 7070 6574 lueprint snippet │ │ │ +004a88f0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
.[[packa │ │ │ +004a8940: 6765 735d 5d0a 6e61 6d65 203d 2022 6175 ges]].name = "au │ │ │ +004a8950: 6469 7370 642d 706c 7567 696e 7322 0a76 dispd-plugins".v │ │ │ +004a8960: 6572 7369 6f6e 203d 2022 2a22 0a3c 2f63 ersion = "*".
│ │ │ 004a8980: 3c61 2063 6c61 7373 3d22 6274 6e20 6274 Remediati │ │ │ -004a9c20: 6f6e 204f 5342 7569 6c64 2042 6c75 6570 on OSBuild Bluep │ │ │ -004a9c30: 7269 6e74 2073 6e69 7070 6574 20e2 87b2 rint snippet ... │ │ │ -004a9c40: 3c2f 613e 3c62 723e 3c64 6976 2063 6c61
.[[packages]
│ │ │ -004a9c90: 5d0a 6e61 6d65 203d 2022 6175 6469 7464  ].name = "auditd
│ │ │ -004a9ca0: 220a 7665 7273 696f 6e20 3d20 222a 220a  ".version = "*".
│ │ │ -004a9cb0: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -004a9d70: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -004a9d80: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -004a9e50: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -004a9e60: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -004a9eb0: 696e 636c 7564 6520 696e 7374 616c 6c5f  include install_
│ │ │ -004a9ec0: 6175 6469 7464 0a0a 636c 6173 7320 696e  auditd..class in
│ │ │ -004a9ed0: 7374 616c 6c5f 6175 6469 7464 207b 0a20  stall_auditd {. 
│ │ │ -004a9ee0: 2070 6163 6b61 6765 207b 2027 6175 6469   package { 'audi
│ │ │ -004a9ef0: 7464 273a 0a20 2020 2065 6e73 7572 6520  td':.    ensure 
│ │ │ -004a9f00: 3d26 6774 3b20 2769 6e73 7461 6c6c 6564  => 'installed
│ │ │ -004a9f10: 272c 0a20 207d 0a7d 0a3c 2f63 6f64 653e  ',.  }.}.
│ │ │ -004a9f20: 3c2f 7072 653e 3c2f 6469 763e 3c61 2063  
Remedi │ │ │ -004a9fd0: 6174 696f 6e20 416e 7369 626c 6520 736e ation Ansible sn │ │ │ -004a9fe0: 6970 7065 7420 e287 b23c 2f61 3e3c 6272 ippet ...
low
Disru │ │ │ -004a9e30: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -004a9e40: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -004a9e80: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -004a9e90: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
Comp │ │ │ -004aa070: 6c65 7869 7479 3a3c 2f74 683e 3c74 643e lexity: │ │ │ -004aa080: 6c6f 773c 2f74 643e 3c2f 7472 3e3c 7472 low
Disruption: │ │ │ -004aa0a0: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 low
Re │ │ │ -004aa0c0: 626f 6f74 3a3c 2f74 683e 3c74 643e 6661 boot:fa │ │ │ -004aa0d0: 6c73 653c 2f74 643e 3c2f 7472 3e3c 7472 lse
Strategy:enable
< │ │ │ -004aa110: 7072 653e 3c63 6f64 653e 2d20 6e61 6d65 pre>- name │ │ │ -004aa120: 3a20 4761 7468 6572 2074 6865 2070 6163 : Gather the pac │ │ │ -004aa130: 6b61 6765 2066 6163 7473 0a20 2070 6163 kage facts. pac │ │ │ -004aa140: 6b61 6765 5f66 6163 7473 3a0a 2020 2020 kage_facts:. │ │ │ -004aa150: 6d61 6e61 6765 723a 2061 7574 6f0a 2020 manager: auto. │ │ │ -004aa160: 7461 6773 3a0a 2020 2d20 4e49 5354 2d38 tags:. - NIST-8 │ │ │ -004aa170: 3030 2d35 332d 4143 2d37 2861 290a 2020 00-53-AC-7(a). │ │ │ -004aa180: 2d20 4e49 5354 2d38 3030 2d35 332d 4155 - NIST-800-53-AU │ │ │ -004aa190: 2d31 3228 3229 0a20 202d 204e 4953 542d -12(2). - NIST- │ │ │ -004aa1a0: 3830 302d 3533 2d41 552d 3134 0a20 202d 800-53-AU-14. - │ │ │ -004aa1b0: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -004aa1c0: 3228 6129 0a20 202d 204e 4953 542d 3830 2(a). - NIST-80 │ │ │ -004aa1d0: 302d 3533 2d41 552d 3728 3129 0a20 202d 0-53-AU-7(1). - │ │ │ -004aa1e0: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -004aa1f0: 3728 3229 0a20 202d 204e 4953 542d 3830 7(2). - NIST-80 │ │ │ -004aa200: 302d 3533 2d43 4d2d 3628 6129 0a20 202d 0-53-CM-6(a). - │ │ │ -004aa210: 2050 4349 2d44 5353 2d52 6571 2d31 302e PCI-DSS-Req-10. │ │ │ -004aa220: 310a 2020 2d20 5043 492d 4453 5376 342d 1. - PCI-DSSv4- │ │ │ -004aa230: 3130 2e32 0a20 202d 2050 4349 2d44 5353 10.2. - PCI-DSS │ │ │ -004aa240: 7634 2d31 302e 322e 310a 2020 2d20 656e v4-10.2.1. - en │ │ │ -004aa250: 6162 6c65 5f73 7472 6174 6567 790a 2020 able_strategy. │ │ │ -004aa260: 2d20 6c6f 775f 636f 6d70 6c65 7869 7479 - low_complexity │ │ │ -004aa270: 0a20 202d 206c 6f77 5f64 6973 7275 7074 . - low_disrupt │ │ │ -004aa280: 696f 6e0a 2020 2d20 6d65 6469 756d 5f73 ion. - medium_s │ │ │ -004aa290: 6576 6572 6974 790a 2020 2d20 6e6f 5f72 everity. - no_r │ │ │ -004aa2a0: 6562 6f6f 745f 6e65 6564 6564 0a20 202d eboot_needed. - │ │ │ -004aa2b0: 2070 6163 6b61 6765 5f61 7564 6974 5f69 package_audit_i │ │ │ -004aa2c0: 6e73 7461 6c6c 6564 0a0a 2d20 6e61 6d65 nstalled..- name │ │ │ -004aa2d0: 3a20 456e 7375 7265 2061 7564 6974 6420 : Ensure auditd │ │ │ -004aa2e0: 6973 2069 6e73 7461 6c6c 6564 0a20 2061 is installed. a │ │ │ -004aa2f0: 6e73 6962 6c65 2e62 7569 6c74 696e 2e70 nsible.builtin.p │ │ │ -004aa300: 6163 6b61 6765 3a0a 2020 2020 6e61 6d65 ackage:. name │ │ │ -004aa310: 3a20 6175 6469 7464 0a20 2020 2073 7461 : auditd. sta │ │ │ -004aa320: 7465 3a20 7072 6573 656e 740a 2020 7768 te: present. wh │ │ │ -004aa330: 656e 3a20 2722 6c69 6e75 782d 6261 7365 en: '"linux-base │ │ │ -004aa340: 2220 696e 2061 6e73 6962 6c65 5f66 6163 " in ansible_fac │ │ │ -004aa350: 7473 2e70 6163 6b61 6765 7327 0a20 2074 ts.packages'. t │ │ │ -004aa360: 6167 733a 0a20 202d 204e 4953 542d 3830 ags:. - NIST-80 │ │ │ -004aa370: 302d 3533 2d41 432d 3728 6129 0a20 202d 0-53-AC-7(a). - │ │ │ -004aa380: 204e 4953 542d 3830 302d 3533 2d41 552d NIST-800-53-AU- │ │ │ -004aa390: 3132 2832 290a 2020 2d20 4e49 5354 2d38 12(2). - NIST-8 │ │ │ -004aa3a0: 3030 2d35 332d 4155 2d31 340a 2020 2d20 00-53-AU-14. - │ │ │ -004aa3b0: 4e49 5354 2d38 3030 2d35 332d 4155 2d32 NIST-800-53-AU-2 │ │ │ -004aa3c0: 2861 290a 2020 2d20 4e49 5354 2d38 3030 (a). - NIST-800 │ │ │ -004aa3d0: 2d35 332d 4155 2d37 2831 290a 2020 2d20 -53-AU-7(1). - │ │ │ -004aa3e0: 4e49 5354 2d38 3030 2d35 332d 4155 2d37 NIST-800-53-AU-7 │ │ │ -004aa3f0: 2832 290a 2020 2d20 4e49 5354 2d38 3030 (2). - NIST-800 │ │ │ -004aa400: 2d35 332d 434d 2d36 2861 290a 2020 2d20 -53-CM-6(a). - │ │ │ -004aa410: 5043 492d 4453 532d 5265 712d 3130 2e31 PCI-DSS-Req-10.1 │ │ │ -004aa420: 0a20 202d 2050 4349 2d44 5353 7634 2d31 . - PCI-DSSv4-1 │ │ │ -004aa430: 302e 320a 2020 2d20 5043 492d 4453 5376 0.2. - PCI-DSSv │ │ │ -004aa440: 342d 3130 2e32 2e31 0a20 202d 2065 6e61 4-10.2.1. - ena │ │ │ -004aa450: 626c 655f 7374 7261 7465 6779 0a20 202d ble_strategy. - │ │ │ -004aa460: 206c 6f77 5f63 6f6d 706c 6578 6974 790a low_complexity. │ │ │ -004aa470: 2020 2d20 6c6f 775f 6469 7372 7570 7469 - low_disrupti │ │ │ -004aa480: 6f6e 0a20 202d 206d 6564 6975 6d5f 7365 on. - medium_se │ │ │ -004aa490: 7665 7269 7479 0a20 202d 206e 6f5f 7265 verity. - no_re │ │ │ -004aa4a0: 626f 6f74 5f6e 6565 6465 640a 2020 2d20 boot_needed. - │ │ │ -004aa4b0: 7061 636b 6167 655f 6175 6469 745f 696e package_audit_in │ │ │ -004aa4c0: 7374 616c 6c65 640a 3c2f 636f 6465 3e3c stalled.< │ │ │ +004a9c20: 6f6e 2041 6e73 6962 6c65 2073 6e69 7070 on Ansible snipp │ │ │ +004a9c30: 6574 20e2 87b2 3c2f 613e 3c62 723e 3c64 et ...
< │ │ │ +004a9c70: 7461 626c 6520 636c 6173 733d 2274 6162 table class="tab │ │ │ +004a9c80: 6c65 2074 6162 6c65 2d73 7472 6970 6564 le table-striped │ │ │ +004a9c90: 2074 6162 6c65 2d62 6f72 6465 7265 6420 table-bordered │ │ │ +004a9ca0: 7461 626c 652d 636f 6e64 656e 7365 6422 table-condensed" │ │ │ +004a9cb0: 3e3c 7472 3e3c 7468 3e43 6f6d 706c 6578 >Complex │ │ │ +004a9cc0: 6974 793a 3c2f 7468 3e3c 7464 3e6c 6f77 ity:low │ │ │ +004a9cd0: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Disruption:lowReboo │ │ │ +004a9d10: 743a 3c2f 7468 3e3c 7464 3e66 616c 7365 t:false │ │ │ +004a9d20: 3c2f 7464 3e3c 2f74 723e 3c74 723e 3c74 Strategy: │ │ │ +004a9d40: 3c74 643e 656e 6162 6c65 3c2f 7464 3e3c enable< │ │ │ +004a9d50: 2f74 723e 3c2f 7461 626c 653e 3c70 7265 /tr>
- name: G
│ │ │ +004a9d70: 6174 6865 7220 7468 6520 7061 636b 6167  ather the packag
│ │ │ +004a9d80: 6520 6661 6374 730a 2020 7061 636b 6167  e facts.  packag
│ │ │ +004a9d90: 655f 6661 6374 733a 0a20 2020 206d 616e  e_facts:.    man
│ │ │ +004a9da0: 6167 6572 3a20 6175 746f 0a20 2074 6167  ager: auto.  tag
│ │ │ +004a9db0: 733a 0a20 202d 204e 4953 542d 3830 302d  s:.  - NIST-800-
│ │ │ +004a9dc0: 3533 2d41 432d 3728 6129 0a20 202d 204e  53-AC-7(a).  - N
│ │ │ +004a9dd0: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +004a9de0: 2832 290a 2020 2d20 4e49 5354 2d38 3030  (2).  - NIST-800
│ │ │ +004a9df0: 2d35 332d 4155 2d31 340a 2020 2d20 4e49  -53-AU-14.  - NI
│ │ │ +004a9e00: 5354 2d38 3030 2d35 332d 4155 2d32 2861  ST-800-53-AU-2(a
│ │ │ +004a9e10: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004a9e20: 332d 4155 2d37 2831 290a 2020 2d20 4e49  3-AU-7(1).  - NI
│ │ │ +004a9e30: 5354 2d38 3030 2d35 332d 4155 2d37 2832  ST-800-53-AU-7(2
│ │ │ +004a9e40: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004a9e50: 332d 434d 2d36 2861 290a 2020 2d20 5043  3-CM-6(a).  - PC
│ │ │ +004a9e60: 492d 4453 532d 5265 712d 3130 2e31 0a20  I-DSS-Req-10.1. 
│ │ │ +004a9e70: 202d 2050 4349 2d44 5353 7634 2d31 302e   - PCI-DSSv4-10.
│ │ │ +004a9e80: 320a 2020 2d20 5043 492d 4453 5376 342d  2.  - PCI-DSSv4-
│ │ │ +004a9e90: 3130 2e32 2e31 0a20 202d 2065 6e61 626c  10.2.1.  - enabl
│ │ │ +004a9ea0: 655f 7374 7261 7465 6779 0a20 202d 206c  e_strategy.  - l
│ │ │ +004a9eb0: 6f77 5f63 6f6d 706c 6578 6974 790a 2020  ow_complexity.  
│ │ │ +004a9ec0: 2d20 6c6f 775f 6469 7372 7570 7469 6f6e  - low_disruption
│ │ │ +004a9ed0: 0a20 202d 206d 6564 6975 6d5f 7365 7665  .  - medium_seve
│ │ │ +004a9ee0: 7269 7479 0a20 202d 206e 6f5f 7265 626f  rity.  - no_rebo
│ │ │ +004a9ef0: 6f74 5f6e 6565 6465 640a 2020 2d20 7061  ot_needed.  - pa
│ │ │ +004a9f00: 636b 6167 655f 6175 6469 745f 696e 7374  ckage_audit_inst
│ │ │ +004a9f10: 616c 6c65 640a 0a2d 206e 616d 653a 2045  alled..- name: E
│ │ │ +004a9f20: 6e73 7572 6520 6175 6469 7464 2069 7320  nsure auditd is 
│ │ │ +004a9f30: 696e 7374 616c 6c65 640a 2020 616e 7369  installed.  ansi
│ │ │ +004a9f40: 626c 652e 6275 696c 7469 6e2e 7061 636b  ble.builtin.pack
│ │ │ +004a9f50: 6167 653a 0a20 2020 206e 616d 653a 2061  age:.    name: a
│ │ │ +004a9f60: 7564 6974 640a 2020 2020 7374 6174 653a  uditd.    state:
│ │ │ +004a9f70: 2070 7265 7365 6e74 0a20 2077 6865 6e3a   present.  when:
│ │ │ +004a9f80: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +004a9f90: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +004a9fa0: 7061 636b 6167 6573 270a 2020 7461 6773  packages'.  tags
│ │ │ +004a9fb0: 3a0a 2020 2d20 4e49 5354 2d38 3030 2d35  :.  - NIST-800-5
│ │ │ +004a9fc0: 332d 4143 2d37 2861 290a 2020 2d20 4e49  3-AC-7(a).  - NI
│ │ │ +004a9fd0: 5354 2d38 3030 2d35 332d 4155 2d31 3228  ST-800-53-AU-12(
│ │ │ +004a9fe0: 3229 0a20 202d 204e 4953 542d 3830 302d  2).  - NIST-800-
│ │ │ +004a9ff0: 3533 2d41 552d 3134 0a20 202d 204e 4953  53-AU-14.  - NIS
│ │ │ +004aa000: 542d 3830 302d 3533 2d41 552d 3228 6129  T-800-53-AU-2(a)
│ │ │ +004aa010: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004aa020: 2d41 552d 3728 3129 0a20 202d 204e 4953  -AU-7(1).  - NIS
│ │ │ +004aa030: 542d 3830 302d 3533 2d41 552d 3728 3229  T-800-53-AU-7(2)
│ │ │ +004aa040: 0a20 202d 204e 4953 542d 3830 302d 3533  .  - NIST-800-53
│ │ │ +004aa050: 2d43 4d2d 3628 6129 0a20 202d 2050 4349  -CM-6(a).  - PCI
│ │ │ +004aa060: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ +004aa070: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ +004aa080: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ +004aa090: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ +004aa0a0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ +004aa0b0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ +004aa0c0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ +004aa0d0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ +004aa0e0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ +004aa0f0: 745f 6e65 6564 6564 0a20 202d 2070 6163  t_needed.  - pac
│ │ │ +004aa100: 6b61 6765 5f61 7564 6974 5f69 6e73 7461  kage_audit_insta
│ │ │ +004aa110: 6c6c 6564 0a3c 2f63 6f64 653e 3c2f 7072  lled.
Remediatio │ │ │ +004aa1d0: 6e20 5075 7070 6574 2073 6e69 7070 6574 n Puppet snippet │ │ │ +004aa1e0: 20e2 87b2 3c2f 613e 3c62 723e 3c64 6976 ...
< │ │ │ +004aa260: 7472 3e3c 7468 3e43 6f6d 706c 6578 6974 tr>Complexit │ │ │ +004aa270: 793a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f y:low │ │ │ +004aa290: 4469 7372 7570 7469 6f6e 3a3c 2f74 683e Disruption: │ │ │ +004aa2a0: 3c74 643e 6c6f 773c 2f74 643e 3c2f 7472 lowReboot: │ │ │ +004aa2c0: 3c2f 7468 3e3c 7464 3e66 616c 7365 3c2f false │ │ │ +004aa2e0: 5374 7261 7465 6779 3a3c 2f74 683e 3c74 Strategy:enable
<
│ │ │ +004aa310: 636f 6465 3e69 6e63 6c75 6465 2069 6e73  code>include ins
│ │ │ +004aa320: 7461 6c6c 5f61 7564 6974 640a 0a63 6c61  tall_auditd..cla
│ │ │ +004aa330: 7373 2069 6e73 7461 6c6c 5f61 7564 6974  ss install_audit
│ │ │ +004aa340: 6420 7b0a 2020 7061 636b 6167 6520 7b20  d {.  package { 
│ │ │ +004aa350: 2761 7564 6974 6427 3a0a 2020 2020 656e  'auditd':.    en
│ │ │ +004aa360: 7375 7265 203d 2667 743b 2027 696e 7374  sure => 'inst
│ │ │ +004aa370: 616c 6c65 6427 2c0a 2020 7d0a 7d0a 3c2f  alled',.  }.}.
R │ │ │ +004aa430: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +004aa440: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +004aa450: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +004aa460: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[[p
│ │ │ +004aa4a0: 6163 6b61 6765 735d 5d0a 6e61 6d65 203d  ackages]].name =
│ │ │ +004aa4b0: 2022 6175 6469 7464 220a 7665 7273 696f   "auditd".versio
│ │ │ +004aa4c0: 6e20 3d20 222a 220a 3c2f 636f 6465 3e3c  n = "*".<
│ │ │  004aa4d0: 2f70 7265 3e3c 2f64 6976 3e3c 6120 636c  /pre>
Remediation O │ │ │ -004ac170: 5342 7569 6c64 2042 6c75 6570 7269 6e74 SBuild Blueprint │ │ │ -004ac180: 2073 6e69 7070 6574 20e2 87b2 3c2f 613e snippet ... │ │ │ -004ac190: 3c62 723e 3c64 6976 2063 6c61 7373 3d22

│ │ │ -004ac1d0: 0a5b 6375 7374 6f6d 697a 6174 696f 6e73  .[customizations
│ │ │ -004ac1e0: 2e73 6572 7669 6365 735d 0a65 6e61 626c  .services].enabl
│ │ │ -004ac1f0: 6564 203d 205b 2261 7564 6974 6422 5d0a  ed = ["auditd"].
│ │ │ -004ac200: 3c2f 636f 6465 3e3c 2f70 7265 3e3c 2f64  
Remediation Pup │ │ │ -004ac2c0: 7065 7420 736e 6970 7065 7420 e287 b23c pet snippet ...< │ │ │ -004ac2d0: 2f61 3e3c 6272 3e3c 6469 7620 636c 6173 /a>
Complexity: │ │ │ -004ac3a0: 3c74 683e 5265 626f 6f74 3a3c 2f74 683e │ │ │ -004ac3b0: 3c74 643e 6661 6c73 653c 2f74 643e 3c2f

│ │ │ -004ac400: 696e 636c 7564 6520 656e 6162 6c65 5f61  include enable_a
│ │ │ -004ac410: 7564 6974 640a 0a63 6c61 7373 2065 6e61  uditd..class ena
│ │ │ -004ac420: 626c 655f 6175 6469 7464 207b 0a20 2073  ble_auditd {.  s
│ │ │ -004ac430: 6572 7669 6365 207b 2761 7564 6974 6427  ervice {'auditd'
│ │ │ -004ac440: 3a0a 2020 2020 656e 6162 6c65 203d 2667  :.    enable =&g
│ │ │ -004ac450: 743b 2074 7275 652c 0a20 2020 2065 6e73  t; true,.    ens
│ │ │ -004ac460: 7572 6520 3d26 6774 3b20 2772 756e 6e69  ure => 'runni
│ │ │ -004ac470: 6e67 272c 0a20 207d 0a7d 0a3c 2f63 6f64  ng',.  }.}.
Reme │ │ │ -004ac530: 6469 6174 696f 6e20 416e 7369 626c 6520 diation Ansible │ │ │ -004ac540: 736e 6970 7065 7420 e287 b23c 2f61 3e3c snippet ...< │ │ │ -004ac550: 6272 3e3c 6469 7620 636c 6173 733d 2270 br>
low
Disru │ │ │ -004ac380: 7074 696f 6e3a 3c2f 7468 3e3c 7464 3e6c ption:l │ │ │ -004ac390: 6f77 3c2f 7464 3e3c 2f74 723e 3c74 723e ow
Reboot:false
Strat │ │ │ -004ac3d0: 6567 793a 3c2f 7468 3e3c 7464 3e65 6e61 egy:ena │ │ │ -004ac3e0: 626c 653c 2f74 643e 3c2f 7472 3e3c 2f74 ble
low< │ │ │ -004ac5f0: 7472 3e3c 7468 3e44 6973 7275 7074 696f tr>< │ │ │ -004ac640: 7472 3e3c 7468 3e53 7472 6174 6567 793a tr>
Co │ │ │ -004ac5d0: 6d70 6c65 7869 7479 3a3c 2f74 683e 3c74 mplexity:
Disruptio │ │ │ -004ac600: 6e3a 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f n:low
│ │ │ -004ac620: 5265 626f 6f74 3a3c 2f74 683e 3c74 643e Reboot: │ │ │ -004ac630: 6661 6c73 653c 2f74 643e 3c2f 7472 3e3c false
Strategy: │ │ │ -004ac650: 3c2f 7468 3e3c 7464 3e65 6e61 626c 653c enable< │ │ │ -004ac660: 2f74 643e 3c2f 7472 3e3c 2f74 6162 6c65 /td>
- na
│ │ │ -004ac680: 6d65 3a20 4761 7468 6572 2074 6865 2070  me: Gather the p
│ │ │ -004ac690: 6163 6b61 6765 2066 6163 7473 0a20 2070  ackage facts.  p
│ │ │ -004ac6a0: 6163 6b61 6765 5f66 6163 7473 3a0a 2020  ackage_facts:.  
│ │ │ -004ac6b0: 2020 6d61 6e61 6765 723a 2061 7574 6f0a    manager: auto.
│ │ │ -004ac6c0: 2020 7461 6773 3a0a 2020 2d20 434a 4953    tags:.  - CJIS
│ │ │ -004ac6d0: 2d35 2e34 2e31 2e31 0a20 202d 204e 4953  -5.4.1.1.  - NIS
│ │ │ -004ac6e0: 542d 3830 302d 3137 312d 332e 332e 310a  T-800-171-3.3.1.
│ │ │ -004ac6f0: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ -004ac700: 2d33 2e33 2e32 0a20 202d 204e 4953 542d  -3.3.2.  - NIST-
│ │ │ -004ac710: 3830 302d 3137 312d 332e 332e 360a 2020  800-171-3.3.6.  
│ │ │ -004ac720: 2d20 4e49 5354 2d38 3030 2d35 332d 4143  - NIST-800-53-AC
│ │ │ -004ac730: 2d32 2867 290a 2020 2d20 4e49 5354 2d38  -2(g).  - NIST-8
│ │ │ -004ac740: 3030 2d35 332d 4143 2d36 2839 290a 2020  00-53-AC-6(9).  
│ │ │ -004ac750: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -004ac760: 2d31 300a 2020 2d20 4e49 5354 2d38 3030  -10.  - NIST-800
│ │ │ -004ac770: 2d35 332d 4155 2d31 3228 6329 0a20 202d  -53-AU-12(c).  -
│ │ │ -004ac780: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ -004ac790: 3134 2831 290a 2020 2d20 4e49 5354 2d38  14(1).  - NIST-8
│ │ │ -004ac7a0: 3030 2d35 332d 4155 2d32 2864 290a 2020  00-53-AU-2(d).  
│ │ │ -004ac7b0: 2d20 4e49 5354 2d38 3030 2d35 332d 4155  - NIST-800-53-AU
│ │ │ -004ac7c0: 2d33 0a20 202d 204e 4953 542d 3830 302d  -3.  - NIST-800-
│ │ │ -004ac7d0: 3533 2d43 4d2d 3628 6129 0a20 202d 204e  53-CM-6(a).  - N
│ │ │ -004ac7e0: 4953 542d 3830 302d 3533 2d53 492d 3428  IST-800-53-SI-4(
│ │ │ -004ac7f0: 3233 290a 2020 2d20 5043 492d 4453 532d  23).  - PCI-DSS-
│ │ │ -004ac800: 5265 712d 3130 2e31 0a20 202d 2050 4349  Req-10.1.  - PCI
│ │ │ -004ac810: 2d44 5353 7634 2d31 302e 320a 2020 2d20  -DSSv4-10.2.  - 
│ │ │ -004ac820: 5043 492d 4453 5376 342d 3130 2e32 2e31  PCI-DSSv4-10.2.1
│ │ │ -004ac830: 0a20 202d 2065 6e61 626c 655f 7374 7261  .  - enable_stra
│ │ │ -004ac840: 7465 6779 0a20 202d 206c 6f77 5f63 6f6d  tegy.  - low_com
│ │ │ -004ac850: 706c 6578 6974 790a 2020 2d20 6c6f 775f  plexity.  - low_
│ │ │ -004ac860: 6469 7372 7570 7469 6f6e 0a20 202d 206d  disruption.  - m
│ │ │ -004ac870: 6564 6975 6d5f 7365 7665 7269 7479 0a20  edium_severity. 
│ │ │ -004ac880: 202d 206e 6f5f 7265 626f 6f74 5f6e 6565   - no_reboot_nee
│ │ │ -004ac890: 6465 640a 2020 2d20 7365 7276 6963 655f  ded.  - service_
│ │ │ -004ac8a0: 6175 6469 7464 5f65 6e61 626c 6564 0a0a  auditd_enabled..
│ │ │ -004ac8b0: 2d20 6e61 6d65 3a20 456e 6162 6c65 2061  - name: Enable a
│ │ │ -004ac8c0: 7564 6974 6420 5365 7276 6963 6520 2d20  uditd Service - 
│ │ │ -004ac8d0: 456e 6162 6c65 2073 6572 7669 6365 2061  Enable service a
│ │ │ -004ac8e0: 7564 6974 640a 2020 626c 6f63 6b3a 0a0a  uditd.  block:..
│ │ │ -004ac8f0: 2020 2d20 6e61 6d65 3a20 4761 7468 6572    - name: Gather
│ │ │ -004ac900: 2074 6865 2070 6163 6b61 6765 2066 6163   the package fac
│ │ │ -004ac910: 7473 0a20 2020 2061 6e73 6962 6c65 2e62  ts.    ansible.b
│ │ │ -004ac920: 7569 6c74 696e 2e70 6163 6b61 6765 5f66  uiltin.package_f
│ │ │ -004ac930: 6163 7473 3a0a 2020 2020 2020 6d61 6e61  acts:.      mana
│ │ │ -004ac940: 6765 723a 2061 7574 6f0a 0a20 202d 206e  ger: auto..  - n
│ │ │ -004ac950: 616d 653a 2045 6e61 626c 6520 6175 6469  ame: Enable audi
│ │ │ -004ac960: 7464 2053 6572 7669 6365 202d 2045 6e61  td Service - Ena
│ │ │ -004ac970: 626c 6520 5365 7276 6963 6520 6175 6469  ble Service audi
│ │ │ -004ac980: 7464 0a20 2020 2061 6e73 6962 6c65 2e62  td.    ansible.b
│ │ │ -004ac990: 7569 6c74 696e 2e73 7973 7465 6d64 3a0a  uiltin.systemd:.
│ │ │ -004ac9a0: 2020 2020 2020 6e61 6d65 3a20 6175 6469        name: audi
│ │ │ -004ac9b0: 7464 0a20 2020 2020 2065 6e61 626c 6564  td.      enabled
│ │ │ -004ac9c0: 3a20 7472 7565 0a20 2020 2020 2073 7461  : true.      sta
│ │ │ -004ac9d0: 7465 3a20 7374 6172 7465 640a 2020 2020  te: started.    
│ │ │ -004ac9e0: 2020 6d61 736b 6564 3a20 6661 6c73 650a    masked: false.
│ │ │ -004ac9f0: 2020 2020 7768 656e 3a0a 2020 2020 2d20      when:.    - 
│ │ │ -004aca00: 2722 6175 6469 7464 2220 696e 2061 6e73  '"auditd" in ans
│ │ │ -004aca10: 6962 6c65 5f66 6163 7473 2e70 6163 6b61  ible_facts.packa
│ │ │ -004aca20: 6765 7327 0a20 2074 6167 733a 0a20 202d  ges'.  tags:.  -
│ │ │ -004aca30: 2043 4a49 532d 352e 342e 312e 310a 2020   CJIS-5.4.1.1.  
│ │ │ -004aca40: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ -004aca50: 2e33 2e31 0a20 202d 204e 4953 542d 3830  .3.1.  - NIST-80
│ │ │ -004aca60: 302d 3137 312d 332e 332e 320a 2020 2d20  0-171-3.3.2.  - 
│ │ │ -004aca70: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ -004aca80: 2e36 0a20 202d 204e 4953 542d 3830 302d  .6.  - NIST-800-
│ │ │ -004aca90: 3533 2d41 432d 3228 6729 0a20 202d 204e  53-AC-2(g).  - N
│ │ │ -004acaa0: 4953 542d 3830 302d 3533 2d41 432d 3628  IST-800-53-AC-6(
│ │ │ -004acab0: 3929 0a20 202d 204e 4953 542d 3830 302d  9).  - NIST-800-
│ │ │ -004acac0: 3533 2d41 552d 3130 0a20 202d 204e 4953  53-AU-10.  - NIS
│ │ │ -004acad0: 542d 3830 302d 3533 2d41 552d 3132 2863  T-800-53-AU-12(c
│ │ │ -004acae0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ -004acaf0: 332d 4155 2d31 3428 3129 0a20 202d 204e  3-AU-14(1).  - N
│ │ │ -004acb00: 4953 542d 3830 302d 3533 2d41 552d 3228  IST-800-53-AU-2(
│ │ │ -004acb10: 6429 0a20 202d 204e 4953 542d 3830 302d  d).  - NIST-800-
│ │ │ -004acb20: 3533 2d41 552d 330a 2020 2d20 4e49 5354  53-AU-3.  - NIST
│ │ │ -004acb30: 2d38 3030 2d35 332d 434d 2d36 2861 290a  -800-53-CM-6(a).
│ │ │ -004acb40: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ -004acb50: 5349 2d34 2832 3329 0a20 202d 2050 4349  SI-4(23).  - PCI
│ │ │ -004acb60: 2d44 5353 2d52 6571 2d31 302e 310a 2020  -DSS-Req-10.1.  
│ │ │ -004acb70: 2d20 5043 492d 4453 5376 342d 3130 2e32  - PCI-DSSv4-10.2
│ │ │ -004acb80: 0a20 202d 2050 4349 2d44 5353 7634 2d31  .  - PCI-DSSv4-1
│ │ │ -004acb90: 302e 322e 310a 2020 2d20 656e 6162 6c65  0.2.1.  - enable
│ │ │ -004acba0: 5f73 7472 6174 6567 790a 2020 2d20 6c6f  _strategy.  - lo
│ │ │ -004acbb0: 775f 636f 6d70 6c65 7869 7479 0a20 202d  w_complexity.  -
│ │ │ -004acbc0: 206c 6f77 5f64 6973 7275 7074 696f 6e0a   low_disruption.
│ │ │ -004acbd0: 2020 2d20 6d65 6469 756d 5f73 6576 6572    - medium_sever
│ │ │ -004acbe0: 6974 790a 2020 2d20 6e6f 5f72 6562 6f6f  ity.  - no_reboo
│ │ │ -004acbf0: 745f 6e65 6564 6564 0a20 202d 2073 6572  t_needed.  - ser
│ │ │ -004acc00: 7669 6365 5f61 7564 6974 645f 656e 6162  vice_auditd_enab
│ │ │ -004acc10: 6c65 640a 2020 2d20 7370 6563 6961 6c5f  led.  - special_
│ │ │ -004acc20: 7365 7276 6963 655f 626c 6f63 6b0a 2020  service_block.  
│ │ │ -004acc30: 7768 656e 3a0a 2020 2d20 2722 6c69 6e75  when:.  - '"linu
│ │ │ -004acc40: 782d 6261 7365 2220 696e 2061 6e73 6962  x-base" in ansib
│ │ │ -004acc50: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ -004acc60: 7327 0a20 202d 2027 2261 7564 6974 6422  s'.  - '"auditd"
│ │ │ -004acc70: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ -004acc80: 732e 7061 636b 6167 6573 270a 3c2f 636f  s.packages'.Remediation A
│ │ │ +004ac170: 6e73 6962 6c65 2073 6e69 7070 6574 20e2  nsible snippet .
│ │ │ +004ac180: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063  ..
Complexity: │ │ │ +004ac210: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +004ac230: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +004ac250: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +004ac280: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +004ac290: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +004ac2a0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
- name: Gathe
│ │ │ +004ac2c0: 7220 7468 6520 7061 636b 6167 6520 6661  r the package fa
│ │ │ +004ac2d0: 6374 730a 2020 7061 636b 6167 655f 6661  cts.  package_fa
│ │ │ +004ac2e0: 6374 733a 0a20 2020 206d 616e 6167 6572  cts:.    manager
│ │ │ +004ac2f0: 3a20 6175 746f 0a20 2074 6167 733a 0a20  : auto.  tags:. 
│ │ │ +004ac300: 202d 2043 4a49 532d 352e 342e 312e 310a   - CJIS-5.4.1.1.
│ │ │ +004ac310: 2020 2d20 4e49 5354 2d38 3030 2d31 3731    - NIST-800-171
│ │ │ +004ac320: 2d33 2e33 2e31 0a20 202d 204e 4953 542d  -3.3.1.  - NIST-
│ │ │ +004ac330: 3830 302d 3137 312d 332e 332e 320a 2020  800-171-3.3.2.  
│ │ │ +004ac340: 2d20 4e49 5354 2d38 3030 2d31 3731 2d33  - NIST-800-171-3
│ │ │ +004ac350: 2e33 2e36 0a20 202d 204e 4953 542d 3830  .3.6.  - NIST-80
│ │ │ +004ac360: 302d 3533 2d41 432d 3228 6729 0a20 202d  0-53-AC-2(g).  -
│ │ │ +004ac370: 204e 4953 542d 3830 302d 3533 2d41 432d   NIST-800-53-AC-
│ │ │ +004ac380: 3628 3929 0a20 202d 204e 4953 542d 3830  6(9).  - NIST-80
│ │ │ +004ac390: 302d 3533 2d41 552d 3130 0a20 202d 204e  0-53-AU-10.  - N
│ │ │ +004ac3a0: 4953 542d 3830 302d 3533 2d41 552d 3132  IST-800-53-AU-12
│ │ │ +004ac3b0: 2863 290a 2020 2d20 4e49 5354 2d38 3030  (c).  - NIST-800
│ │ │ +004ac3c0: 2d35 332d 4155 2d31 3428 3129 0a20 202d  -53-AU-14(1).  -
│ │ │ +004ac3d0: 204e 4953 542d 3830 302d 3533 2d41 552d   NIST-800-53-AU-
│ │ │ +004ac3e0: 3228 6429 0a20 202d 204e 4953 542d 3830  2(d).  - NIST-80
│ │ │ +004ac3f0: 302d 3533 2d41 552d 330a 2020 2d20 4e49  0-53-AU-3.  - NI
│ │ │ +004ac400: 5354 2d38 3030 2d35 332d 434d 2d36 2861  ST-800-53-CM-6(a
│ │ │ +004ac410: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004ac420: 332d 5349 2d34 2832 3329 0a20 202d 2050  3-SI-4(23).  - P
│ │ │ +004ac430: 4349 2d44 5353 2d52 6571 2d31 302e 310a  CI-DSS-Req-10.1.
│ │ │ +004ac440: 2020 2d20 5043 492d 4453 5376 342d 3130    - PCI-DSSv4-10
│ │ │ +004ac450: 2e32 0a20 202d 2050 4349 2d44 5353 7634  .2.  - PCI-DSSv4
│ │ │ +004ac460: 2d31 302e 322e 310a 2020 2d20 656e 6162  -10.2.1.  - enab
│ │ │ +004ac470: 6c65 5f73 7472 6174 6567 790a 2020 2d20  le_strategy.  - 
│ │ │ +004ac480: 6c6f 775f 636f 6d70 6c65 7869 7479 0a20  low_complexity. 
│ │ │ +004ac490: 202d 206c 6f77 5f64 6973 7275 7074 696f   - low_disruptio
│ │ │ +004ac4a0: 6e0a 2020 2d20 6d65 6469 756d 5f73 6576  n.  - medium_sev
│ │ │ +004ac4b0: 6572 6974 790a 2020 2d20 6e6f 5f72 6562  erity.  - no_reb
│ │ │ +004ac4c0: 6f6f 745f 6e65 6564 6564 0a20 202d 2073  oot_needed.  - s
│ │ │ +004ac4d0: 6572 7669 6365 5f61 7564 6974 645f 656e  ervice_auditd_en
│ │ │ +004ac4e0: 6162 6c65 640a 0a2d 206e 616d 653a 2045  abled..- name: E
│ │ │ +004ac4f0: 6e61 626c 6520 6175 6469 7464 2053 6572  nable auditd Ser
│ │ │ +004ac500: 7669 6365 202d 2045 6e61 626c 6520 7365  vice - Enable se
│ │ │ +004ac510: 7276 6963 6520 6175 6469 7464 0a20 2062  rvice auditd.  b
│ │ │ +004ac520: 6c6f 636b 3a0a 0a20 202d 206e 616d 653a  lock:..  - name:
│ │ │ +004ac530: 2047 6174 6865 7220 7468 6520 7061 636b   Gather the pack
│ │ │ +004ac540: 6167 6520 6661 6374 730a 2020 2020 616e  age facts.    an
│ │ │ +004ac550: 7369 626c 652e 6275 696c 7469 6e2e 7061  sible.builtin.pa
│ │ │ +004ac560: 636b 6167 655f 6661 6374 733a 0a20 2020  ckage_facts:.   
│ │ │ +004ac570: 2020 206d 616e 6167 6572 3a20 6175 746f     manager: auto
│ │ │ +004ac580: 0a0a 2020 2d20 6e61 6d65 3a20 456e 6162  ..  - name: Enab
│ │ │ +004ac590: 6c65 2061 7564 6974 6420 5365 7276 6963  le auditd Servic
│ │ │ +004ac5a0: 6520 2d20 456e 6162 6c65 2053 6572 7669  e - Enable Servi
│ │ │ +004ac5b0: 6365 2061 7564 6974 640a 2020 2020 616e  ce auditd.    an
│ │ │ +004ac5c0: 7369 626c 652e 6275 696c 7469 6e2e 7379  sible.builtin.sy
│ │ │ +004ac5d0: 7374 656d 643a 0a20 2020 2020 206e 616d  stemd:.      nam
│ │ │ +004ac5e0: 653a 2061 7564 6974 640a 2020 2020 2020  e: auditd.      
│ │ │ +004ac5f0: 656e 6162 6c65 643a 2074 7275 650a 2020  enabled: true.  
│ │ │ +004ac600: 2020 2020 7374 6174 653a 2073 7461 7274      state: start
│ │ │ +004ac610: 6564 0a20 2020 2020 206d 6173 6b65 643a  ed.      masked:
│ │ │ +004ac620: 2066 616c 7365 0a20 2020 2077 6865 6e3a   false.    when:
│ │ │ +004ac630: 0a20 2020 202d 2027 2261 7564 6974 6422  .    - '"auditd"
│ │ │ +004ac640: 2069 6e20 616e 7369 626c 655f 6661 6374   in ansible_fact
│ │ │ +004ac650: 732e 7061 636b 6167 6573 270a 2020 7461  s.packages'.  ta
│ │ │ +004ac660: 6773 3a0a 2020 2d20 434a 4953 2d35 2e34  gs:.  - CJIS-5.4
│ │ │ +004ac670: 2e31 2e31 0a20 202d 204e 4953 542d 3830  .1.1.  - NIST-80
│ │ │ +004ac680: 302d 3137 312d 332e 332e 310a 2020 2d20  0-171-3.3.1.  - 
│ │ │ +004ac690: 4e49 5354 2d38 3030 2d31 3731 2d33 2e33  NIST-800-171-3.3
│ │ │ +004ac6a0: 2e32 0a20 202d 204e 4953 542d 3830 302d  .2.  - NIST-800-
│ │ │ +004ac6b0: 3137 312d 332e 332e 360a 2020 2d20 4e49  171-3.3.6.  - NI
│ │ │ +004ac6c0: 5354 2d38 3030 2d35 332d 4143 2d32 2867  ST-800-53-AC-2(g
│ │ │ +004ac6d0: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004ac6e0: 332d 4143 2d36 2839 290a 2020 2d20 4e49  3-AC-6(9).  - NI
│ │ │ +004ac6f0: 5354 2d38 3030 2d35 332d 4155 2d31 300a  ST-800-53-AU-10.
│ │ │ +004ac700: 2020 2d20 4e49 5354 2d38 3030 2d35 332d    - NIST-800-53-
│ │ │ +004ac710: 4155 2d31 3228 6329 0a20 202d 204e 4953  AU-12(c).  - NIS
│ │ │ +004ac720: 542d 3830 302d 3533 2d41 552d 3134 2831  T-800-53-AU-14(1
│ │ │ +004ac730: 290a 2020 2d20 4e49 5354 2d38 3030 2d35  ).  - NIST-800-5
│ │ │ +004ac740: 332d 4155 2d32 2864 290a 2020 2d20 4e49  3-AU-2(d).  - NI
│ │ │ +004ac750: 5354 2d38 3030 2d35 332d 4155 2d33 0a20  ST-800-53-AU-3. 
│ │ │ +004ac760: 202d 204e 4953 542d 3830 302d 3533 2d43   - NIST-800-53-C
│ │ │ +004ac770: 4d2d 3628 6129 0a20 202d 204e 4953 542d  M-6(a).  - NIST-
│ │ │ +004ac780: 3830 302d 3533 2d53 492d 3428 3233 290a  800-53-SI-4(23).
│ │ │ +004ac790: 2020 2d20 5043 492d 4453 532d 5265 712d    - PCI-DSS-Req-
│ │ │ +004ac7a0: 3130 2e31 0a20 202d 2050 4349 2d44 5353  10.1.  - PCI-DSS
│ │ │ +004ac7b0: 7634 2d31 302e 320a 2020 2d20 5043 492d  v4-10.2.  - PCI-
│ │ │ +004ac7c0: 4453 5376 342d 3130 2e32 2e31 0a20 202d  DSSv4-10.2.1.  -
│ │ │ +004ac7d0: 2065 6e61 626c 655f 7374 7261 7465 6779   enable_strategy
│ │ │ +004ac7e0: 0a20 202d 206c 6f77 5f63 6f6d 706c 6578  .  - low_complex
│ │ │ +004ac7f0: 6974 790a 2020 2d20 6c6f 775f 6469 7372  ity.  - low_disr
│ │ │ +004ac800: 7570 7469 6f6e 0a20 202d 206d 6564 6975  uption.  - mediu
│ │ │ +004ac810: 6d5f 7365 7665 7269 7479 0a20 202d 206e  m_severity.  - n
│ │ │ +004ac820: 6f5f 7265 626f 6f74 5f6e 6565 6465 640a  o_reboot_needed.
│ │ │ +004ac830: 2020 2d20 7365 7276 6963 655f 6175 6469    - service_audi
│ │ │ +004ac840: 7464 5f65 6e61 626c 6564 0a20 202d 2073  td_enabled.  - s
│ │ │ +004ac850: 7065 6369 616c 5f73 6572 7669 6365 5f62  pecial_service_b
│ │ │ +004ac860: 6c6f 636b 0a20 2077 6865 6e3a 0a20 202d  lock.  when:.  -
│ │ │ +004ac870: 2027 226c 696e 7578 2d62 6173 6522 2069   '"linux-base" i
│ │ │ +004ac880: 6e20 616e 7369 626c 655f 6661 6374 732e  n ansible_facts.
│ │ │ +004ac890: 7061 636b 6167 6573 270a 2020 2d20 2722  packages'.  - '"
│ │ │ +004ac8a0: 6175 6469 7464 2220 696e 2061 6e73 6962  auditd" in ansib
│ │ │ +004ac8b0: 6c65 5f66 6163 7473 2e70 6163 6b61 6765  le_facts.package
│ │ │ +004ac8c0: 7327 0a3c 2f63 6f64 653e 3c2f 7072 653e  s'.
│ │ │ +004ac8d0: 3c2f 6469 763e 3c61 2063 6c61 7373 3d22
Remediation │ │ │ +004ac980: 5075 7070 6574 2073 6e69 7070 6574 20e2 Puppet snippet . │ │ │ +004ac990: 87b2 3c2f 613e 3c62 723e 3c64 6976 2063 ..
Complexity: │ │ │ +004aca20: 3c2f 7468 3e3c 7464 3e6c 6f77 3c2f 7464 lowDi │ │ │ +004aca40: 7372 7570 7469 6f6e 3a3c 2f74 683e 3c74 sruption:low< │ │ │ +004aca60: 7472 3e3c 7468 3e52 6562 6f6f 743a 3c2f tr>Reboot:falseSt │ │ │ +004aca90: 7261 7465 6779 3a3c 2f74 683e 3c74 643e rategy: │ │ │ +004acaa0: 656e 6162 6c65 3c2f 7464 3e3c 2f74 723e enable │ │ │ +004acab0: 3c2f 7461 626c 653e 3c70 7265 3e3c 636f
include enabl
│ │ │ +004acad0: 655f 6175 6469 7464 0a0a 636c 6173 7320  e_auditd..class 
│ │ │ +004acae0: 656e 6162 6c65 5f61 7564 6974 6420 7b0a  enable_auditd {.
│ │ │ +004acaf0: 2020 7365 7276 6963 6520 7b27 6175 6469    service {'audi
│ │ │ +004acb00: 7464 273a 0a20 2020 2065 6e61 626c 6520  td':.    enable 
│ │ │ +004acb10: 3d26 6774 3b20 7472 7565 2c0a 2020 2020  => true,.    
│ │ │ +004acb20: 656e 7375 7265 203d 2667 743b 2027 7275  ensure => 'ru
│ │ │ +004acb30: 6e6e 696e 6727 2c0a 2020 7d0a 7d0a 3c2f  nning',.  }.}.
R │ │ │ +004acbf0: 656d 6564 6961 7469 6f6e 204f 5342 7569 emediation OSBui │ │ │ +004acc00: 6c64 2042 6c75 6570 7269 6e74 2073 6e69 ld Blueprint sni │ │ │ +004acc10: 7070 6574 20e2 87b2 3c2f 613e 3c62 723e ppet ...
│ │ │ +004acc20: 3c64 6976 2063 6c61 7373 3d22 7061 6e65
.[cu
│ │ │ +004acc60: 7374 6f6d 697a 6174 696f 6e73 2e73 6572  stomizations.ser
│ │ │ +004acc70: 7669 6365 735d 0a65 6e61 626c 6564 203d  vices].enabled =
│ │ │ +004acc80: 205b 2261 7564 6974 6422 5d0a 3c2f 636f   ["auditd"].
< │ │ │ 004acca0: 6120 636c 6173 733d 2262 746e 2062 746e a class="btn btn │ │ │ 004accb0: 2d73 7563 6365 7373 2220 6461 7461 2d74 -success" data-t │ │ │ 004accc0: 6f67 676c 653d 2263 6f6c 6c61 7073 6522 oggle="collapse" │ │ │ 004accd0: 2064 6174 612d 7461 7267 6574 3d22 2369 data-target="#i │ │ │ 004acce0: 6431 3436 3122 2074 6162 696e 6465 783d d1461" tabindex= │ │ │ 004accf0: 2230 2220 726f 6c65 3d22 6275 7474 6f6e "0" role="button │ │ │ ├── html2text {} │ │ │ │ @@ -123,31 +123,14 @@ │ │ │ │ _n_i_s_t_-_c_s_f DE.CM-1, DE.CM-7, PR.DS-1, PR.DS-6, PR.DS-8, PR.IP-1, PR.IP-3 │ │ │ │ _p_c_i_d_s_s Req-11.5 │ │ │ │ _o_s_-_s_r_g SRG-OS-000445-GPOS-00199 │ │ │ │ _a_n_s_s_i R76, R79 │ │ │ │ _c_i_s 6.3.1 │ │ │ │ _i_s_m 1034, 1288, 1341, 1417 │ │ │ │ _p_c_i_d_s_s_4 11.5.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 = "aide" │ │ │ │ -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_aide │ │ │ │ - │ │ │ │ -class install_aide { │ │ │ │ - package { 'aide': │ │ │ │ - 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: │ │ │ │ @@ -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 │ │ │ │ @@ -1508,27 +1508,14 @@ │ │ │ │ Rationale: 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_gdm │ │ │ │ - │ │ │ │ -class remove_gdm { │ │ │ │ - package { 'gdm': │ │ │ │ - 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: │ │ │ │ @@ -1555,14 +1542,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_gdm │ │ │ │ + │ │ │ │ +class remove_gdm { │ │ │ │ + package { 'gdm': │ │ │ │ + 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$'; then │ │ │ │ @@ -1596,31 +1596,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: │ │ │ │ @@ -1647,14 +1630,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 │ │ │ │ @@ -6304,31 +6304,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: │ │ │ │ @@ -6349,14 +6332,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 │ │ │ │ @@ -6373,31 +6373,14 @@ │ │ │ │ Rationale: Password complexity, or strength, is a measure of the effectiveness of a password in resisting attempts │ │ │ │ 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 │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000480-GPOS-00225 │ │ │ │ _c_i_s 5.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_ _⇲ │ │ │ │ - │ │ │ │ -[[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: │ │ │ │ @@ -6418,14 +6401,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -6438,31 +6438,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: │ │ │ │ @@ -6471,14 +6454,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" │ │ │ │ @@ -9154,31 +9154,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: │ │ │ │ @@ -9188,14 +9171,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 │ │ │ │ @@ -9211,31 +9211,14 @@ │ │ │ │ system will be available. │ │ │ │ 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- │ │ │ │ References: GPOS-00124, SRG-OS-000324-GPOS-00125, SRG-OS-000370-GPOS-00155 │ │ │ │ _a_n_s_s_i R45 │ │ │ │ _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" │ │ │ │ -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: │ │ │ │ @@ -9245,14 +9228,31 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -9854,31 +9854,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: │ │ │ │ @@ -9899,14 +9882,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$'; then │ │ │ │ @@ -9931,31 +9931,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: │ │ │ │ @@ -9991,14 +9974,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$' && { ( ( │ │ │ │ @@ -10023,31 +10023,14 @@ │ │ │ │ Rationale: 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: │ │ │ │ @@ -10082,14 +10065,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 │ │ │ │ @@ -11048,31 +11048,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: │ │ │ │ @@ -11095,14 +11078,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 │ │ │ │ @@ -11130,31 +11130,14 @@ │ │ │ │ _i_s_o_2_7_0_0_1_-_2_0_1_3 A.12.1.3, A.12.4.1, A.12.4.2, A.12.4.3, A.12.4.4, A.12.7.1, A.14.2.7, A.15.2.1, │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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: │ │ │ │ @@ -11191,14 +11174,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$'; then │ │ │ │ @@ -11544,31 +11544,14 @@ │ │ │ │ ****** RRuullee? ?  IInnssttaallll iippttaabblleess--ppeerrssiisstteenntt PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The iptables-persistent package can be installed with the following command: │ │ │ │ $ apt-get install iptables-persistent │ │ │ │ Rationale: A method of configuring and maintaining firewall rules is necessary to configure a Host Based Firewall. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables-persistent_installed │ │ │ │ References: _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables-persistent" │ │ │ │ -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_iptables-persistent │ │ │ │ - │ │ │ │ -class install_iptables-persistent { │ │ │ │ - package { 'iptables-persistent': │ │ │ │ - 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: │ │ │ │ @@ -11589,14 +11572,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables-persistent_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_iptables-persistent │ │ │ │ + │ │ │ │ +class install_iptables-persistent { │ │ │ │ + package { 'iptables-persistent': │ │ │ │ + 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 = "iptables-persistent" │ │ │ │ +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}' 'iptables' 2>/dev/null | grep -q '^installed$'; then │ │ │ │ @@ -11613,31 +11613,14 @@ │ │ │ │ set up firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_iptables_installed │ │ │ │ _n_i_s_t CM-6(a) │ │ │ │ References: _p_c_i_d_s_s Req-1.4.1 │ │ │ │ _o_s_-_s_r_g SRG-OS-000480-GPOS-00227 │ │ │ │ _c_i_s 4.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "iptables" │ │ │ │ -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_iptables │ │ │ │ - │ │ │ │ -class install_iptables { │ │ │ │ - package { 'iptables': │ │ │ │ - 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: │ │ │ │ @@ -11662,14 +11645,31 @@ │ │ │ │ - PCI-DSS-Req-1.4.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_iptables_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_iptables │ │ │ │ + │ │ │ │ +class install_iptables { │ │ │ │ + package { 'iptables': │ │ │ │ + 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 = "iptables" │ │ │ │ +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 ( ( ! (systemctl is-active nftables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -11683,27 +11683,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: │ │ │ │ @@ -11724,14 +11711,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 │ │ │ │ @@ -17522,31 +17522,14 @@ │ │ │ │ $ apt-get install nftables │ │ │ │ Rationale: nftables is a subsystem of the Linux kernel that can protect against threats originating from within a │ │ │ │ corporate network to include malicious mobile code and poorly configured software on a host. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_nftables_installed │ │ │ │ References: _c_i_s 4.3.1 │ │ │ │ _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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "nftables" │ │ │ │ -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_nftables │ │ │ │ - │ │ │ │ -class install_nftables { │ │ │ │ - package { 'nftables': │ │ │ │ - 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: │ │ │ │ @@ -17571,14 +17554,31 @@ │ │ │ │ - PCI-DSSv4-1.2.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_nftables_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_nftables │ │ │ │ + │ │ │ │ +class install_nftables { │ │ │ │ + package { 'nftables': │ │ │ │ + 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 = "nftables" │ │ │ │ +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 ( ( ! (systemctl is-active iptables &>/dev/null) && ! (systemctl is-active ufw &>/dev/null) && dpkg-query -- │ │ │ │ @@ -17594,31 +17594,14 @@ │ │ │ │ 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.3.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: │ │ │ │ @@ -17652,14 +17635,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 -q '^installed$' && ! │ │ │ │ @@ -17682,31 +17682,14 @@ │ │ │ │ systemctl disable nftables │ │ │ │ Rationale: Running both firewalld and nftables may lead to conflict. nftables is actually one of the backends for │ │ │ │ firewalld management tools. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_nftables_disabled │ │ │ │ References: _c_i_s 4.4.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_ _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: │ │ │ │ @@ -17762,14 +17745,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_nftables_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "firewalld" in ansible_facts.packages and "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 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"] │ │ │ │ ****** RRuullee? ?  EEnnssuurree nnffttaabblleess DDeeffaauulltt DDeennyy FFiirreewwaallll PPoolliiccyy ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Base chain policy is the default verdict that will be applied to packets reaching the end of the chain. There are │ │ │ │ two policies: accept (Default) and drop. If the policy is set to accept, the firewall will accept any packet that │ │ │ │ is not configured to be denied and the packet will continue traversing the network stack. Run the following │ │ │ │ commands and verify that base chains contain a policy of DROP. │ │ │ │ $ nft list ruleset | grep 'hook input' │ │ │ │ type filter hook input priority 0; policy drop; │ │ │ │ @@ -18231,31 +18231,14 @@ │ │ │ │ $ apt-get install ufw │ │ │ │ Rationale: ufw controls the Linux kernel network packet filtering code. ufw allows system operators to set up │ │ │ │ firewalls and IP masquerading, etc. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_installed │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = "ufw" │ │ │ │ -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_ufw │ │ │ │ - │ │ │ │ -class install_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -18276,14 +18259,31 @@ │ │ │ │ tags: │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class install_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 = "ufw" │ │ │ │ +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 │ │ │ │ @@ -18296,27 +18296,14 @@ │ │ │ │ ****** RRuullee? ?  RReemmoovvee uuffww PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ufw package can be removed with the following command: │ │ │ │ $ apt-get remove ufw │ │ │ │ Rationale: Running iptables.persistent with ufw enabled may lead to conflict and unexpected results. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_package_ufw_removed │ │ │ │ References: _c_i_s 4.3.2, 4.4.1.3 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ -CCoommpplleexxiittyy:: low │ │ │ │ -DDiissrruuppttiioonn:: low │ │ │ │ -RReebboooott:: false │ │ │ │ -SSttrraatteeggyy:: disable │ │ │ │ - │ │ │ │ -include remove_ufw │ │ │ │ - │ │ │ │ -class remove_ufw { │ │ │ │ - package { 'ufw': │ │ │ │ - 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: │ │ │ │ @@ -18337,14 +18324,27 @@ │ │ │ │ tags: │ │ │ │ - disable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_ufw_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_ufw │ │ │ │ + │ │ │ │ +class remove_ufw { │ │ │ │ + package { 'ufw': │ │ │ │ + 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 │ │ │ │ @@ -18365,31 +18365,14 @@ │ │ │ │ The ufw service can be enabled with the following command: │ │ │ │ $ sudo systemctl enable ufw.service │ │ │ │ Rationale: The ufw service must be enabled and running in order for ufw to protect the system │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_ufw_enabled │ │ │ │ References: _o_s_-_s_r_g SRG-OS-000297-GPOS-00115 │ │ │ │ _c_i_s 4.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 = ["ufw"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_ufw │ │ │ │ - │ │ │ │ -class enable_ufw { │ │ │ │ - service {'ufw': │ │ │ │ - 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: │ │ │ │ @@ -18424,14 +18407,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_ufw_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( "ufw" 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_ufw │ │ │ │ + │ │ │ │ +class enable_ufw { │ │ │ │ + service {'ufw': │ │ │ │ + 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 = ["ufw"] │ │ │ │ _R_e_m_e_d_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$' && { ( │ │ │ │ @@ -18736,31 +18736,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_ _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: │ │ │ │ @@ -18824,14 +18807,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDeeaaccttiivvaattee WWiirreelleessss NNeettwwoorrkk IInntteerrffaacceess ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Deactivating wireless network interfaces should prevent normal usage of the wireless capability. │ │ │ │ │ │ │ │ Configure the system to disable all wireless network interfaces with the following command: │ │ │ │ $ sudo nmcli radio all off │ │ │ │ The use of wireless networking can introduce many different attack vectors into the organization's │ │ │ │ network. Common attack vectors such as malicious association and ad hoc networks will allow an attacker │ │ │ │ @@ -25589,27 +25589,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: │ │ │ │ @@ -25618,14 +25605,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 │ │ │ │ @@ -25663,31 +25663,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_ _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: │ │ │ │ @@ -25748,14 +25731,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDiissaabbllee MMoouunnttiinngg ooff ccrraammffss ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ To configure the system to prevent the cramfs kernel module from being loaded, add the following line to the file │ │ │ │ /etc/modprobe.d/cramfs.conf: │ │ │ │ install cramfs /bin/false │ │ │ │ This entry will cause a non-zero return value during a cramfs module installation and additionally convey the │ │ │ │ meaning of the entry to the user in form of an error message. If you would like to omit a non-zero return value │ │ │ │ and an error message, you may want to add a different line instead (both /bin/true and /bin/false are allowed by │ │ │ │ @@ -31573,27 +31573,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 │ │ │ │ - │ │ │ │ -class remove_avahi { │ │ │ │ - package { 'avahi': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -31605,14 +31592,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 │ │ │ │ + │ │ │ │ +class remove_avahi { │ │ │ │ + package { 'avahi': │ │ │ │ + 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 │ │ │ │ @@ -31639,31 +31639,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_ _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: │ │ │ │ @@ -31725,14 +31708,31 @@ │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_avahi-daemon_disabled │ │ │ │ - special_service_block │ │ │ │ when: ( "avahi" 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 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"] │ │ │ │ Group   Cron and At Daemons   Group contains 1 group and 32 rules │ │ │ │ _[_r_e_f_]   The cron and at services are used to allow commands to be executed at a later time. The cron service is │ │ │ │ required by almost all systems to perform necessary maintenance tasks, while at may or may not be required on a │ │ │ │ given system. Both daemons should be configured defensively. │ │ │ │ Group   Restrict at and cron to Authorized Users if Necessary   Group contains 12 rules │ │ │ │ _[_r_e_f_]   The /etc/cron.allow and /etc/at.allow files contain lists of users who are allowed to use cron and at to │ │ │ │ delay execution of processes. If these files exist and if the corresponding files /etc/cron.deny and /etc/at.deny │ │ │ │ @@ -32748,31 +32748,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: │ │ │ │ @@ -32799,14 +32782,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 │ │ │ │ @@ -32833,31 +32833,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: │ │ │ │ @@ -32892,14 +32875,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 │ │ │ │ @@ -34673,27 +34673,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: │ │ │ │ @@ -34702,14 +34689,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 │ │ │ │ @@ -34748,27 +34748,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_dhcp │ │ │ │ - │ │ │ │ -class remove_dhcp { │ │ │ │ - package { 'dhcp': │ │ │ │ - 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 dhcp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -34782,14 +34769,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_dhcp │ │ │ │ + │ │ │ │ +class remove_dhcp { │ │ │ │ + package { 'dhcp': │ │ │ │ + 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 dhcp │ │ │ │ @@ -34805,31 +34805,14 @@ │ │ │ │ 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_ _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: │ │ │ │ @@ -34879,14 +34862,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  DDiissaabbllee DDHHCCPP SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dhcpd service should be disabled on any system that does not need to act as a DHCP server. The dhcpd service │ │ │ │ can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now dhcpd.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 │ │ │ │ @@ -34898,31 +34898,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 = ["dhcpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -34978,14 +34961,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   DNS Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   Most organizations have an operational need to run at least one nameserver. However, there are many common │ │ │ │ attacks involving DNS server software, and this server software should be disabled on any system on which it is not │ │ │ │ needed. │ │ │ │ Group   Disable DNS Server   Group contains 2 rules │ │ │ │ _[_r_e_f_]   DNS software should be disabled on any systems which does not need to be a nameserver. Note that the BIND │ │ │ │ DNS server software is not installed on Debian 12 by default. The remainder of this section discusses secure │ │ │ │ @@ -35004,27 +35004,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_bind │ │ │ │ - │ │ │ │ -class remove_bind { │ │ │ │ - package { 'bind': │ │ │ │ - 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 bind is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35036,14 +35023,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_bind │ │ │ │ + │ │ │ │ +class remove_bind { │ │ │ │ + package { 'bind': │ │ │ │ + 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 bind │ │ │ │ @@ -35068,31 +35068,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_ _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: │ │ │ │ @@ -35148,37 +35131,41 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddnnssmmaassqq PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ dnsmasq is a lightweight tool that provides DNS caching, DNS forwarding and DHCP (Dynamic Host Configuration │ │ │ │ Protocol) services. │ │ │ │ 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: │ │ │ │ @@ -35187,14 +35174,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 │ │ │ │ @@ -35209,31 +35209,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_ _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: │ │ │ │ @@ -35283,14 +35266,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   FTP Server   Group contains 1 group and 4 rules │ │ │ │ _[_r_e_f_]   FTP is a common method for allowing remote access to files. Like telnet, the FTP protocol is unencrypted, │ │ │ │ which means that passwords and other data transmitted during the session can be captured and that the session is │ │ │ │ vulnerable to hijacking. Therefore, running the FTP server software is not recommended. │ │ │ │ │ │ │ │ However, there are some FTP server configurations which may be appropriate for some environments, particularly │ │ │ │ those which allow only read-only anonymous access as a means of downloading data available to the public. │ │ │ │ @@ -35310,27 +35310,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: │ │ │ │ @@ -35346,14 +35333,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 │ │ │ │ @@ -35379,31 +35379,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_ _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: │ │ │ │ @@ -35459,41 +35442,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  RReemmoovvee ffttpp PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ FTP (File Transfer Protocol) is a traditional and widely used standard tool for transferring files between a │ │ │ │ server and clients over a network, especially where no authentication is necessary (permits anonymous users to │ │ │ │ connect to a server). │ │ │ │ The ftp package can be removed with the following command: │ │ │ │ $ apt-get remove ftp │ │ │ │ FTP does not protect the confidentiality of data or authentication credentials. It is recommended SFTP │ │ │ │ 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: │ │ │ │ @@ -35504,14 +35491,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 │ │ │ │ @@ -35529,27 +35529,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: │ │ │ │ @@ -35558,14 +35545,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 │ │ │ │ @@ -35603,27 +35603,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_httpd │ │ │ │ - │ │ │ │ -class remove_httpd { │ │ │ │ - package { 'httpd': │ │ │ │ - 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 httpd Package: Ensure httpd is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35635,14 +35622,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_httpd │ │ │ │ + │ │ │ │ +class remove_httpd { │ │ │ │ + package { 'httpd': │ │ │ │ + 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 httpd │ │ │ │ @@ -35667,31 +35667,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 = ["httpd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_httpd │ │ │ │ - │ │ │ │ -class disable_httpd { │ │ │ │ - service {'httpd': │ │ │ │ - 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: │ │ │ │ @@ -35747,14 +35730,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_httpd │ │ │ │ + │ │ │ │ +class disable_httpd { │ │ │ │ + service {'httpd': │ │ │ │ + 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 = ["httpd"] │ │ │ │ Group   Disable NGINX if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If NGINX was installed and activated, but the system does not need to act as a web server, then it should │ │ │ │ be removed from the system. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnggiinnxx PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nginx package can be removed with the following command: │ │ │ │ $ apt-get remove nginx │ │ │ │ Rationale: If there is no need to make the web server software available, removing it provides a safeguard against │ │ │ │ @@ -35767,27 +35767,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: │ │ │ │ @@ -35799,14 +35786,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 │ │ │ │ @@ -35821,31 +35821,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_ _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: │ │ │ │ @@ -35895,41 +35878,45 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   IMAP and POP3 Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Dovecot provides IMAP and POP3 services. It is not installed by default. The project page at _h_t_t_p_:_/_/ │ │ │ │ _w_w_w_._d_o_v_e_c_o_t_._o_r_g contains more detailed information about Dovecot configuration. │ │ │ │ Group   Disable Dovecot   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If the system does not need to operate as an IMAP or POP3 server, the dovecot software should be disabled │ │ │ │ and removed. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll ddoovveeccoott PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The dovecot package can be removed with the following command: │ │ │ │ $ apt-get remove dovecot │ │ │ │ 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 │ │ │ │ - │ │ │ │ -class remove_dovecot { │ │ │ │ - package { 'dovecot': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -35938,14 +35925,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 │ │ │ │ + │ │ │ │ +class remove_dovecot { │ │ │ │ + package { 'dovecot': │ │ │ │ + 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 │ │ │ │ @@ -35960,31 +35960,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_ _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: │ │ │ │ @@ -36034,14 +36017,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   LDAP   Group contains 2 groups and 3 rules │ │ │ │ _[_r_e_f_]   LDAP is a popular directory service, that is, a standardized way of looking up information from a central │ │ │ │ database. Debian 12 includes software that enables a system to act as both an LDAP client and server. │ │ │ │ Group   Configure OpenLDAP Clients   Group contains 1 rule │ │ │ │ _[_r_e_f_]   This section provides information on which security settings are important to configure in OpenLDAP clients │ │ │ │ by manually editing the appropriate configuration files. Debian 12 provides an automated configuration tool called │ │ │ │ authconfig and a graphical wrapper for authconfig called system-config-authentication. However, these tools do not │ │ │ │ @@ -36055,27 +36055,14 @@ │ │ │ │ from a central database. The openldap-clients package can be removed with the following command: │ │ │ │ $ apt-get remove openldap-clients │ │ │ │ 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_openldap-clients │ │ │ │ - │ │ │ │ -class remove_openldap-clients { │ │ │ │ - package { 'openldap-clients': │ │ │ │ - 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 openldap-clients is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36084,14 +36071,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_openldap-clients │ │ │ │ + │ │ │ │ +class remove_openldap-clients { │ │ │ │ + package { 'openldap-clients': │ │ │ │ + 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 openldap-clients │ │ │ │ @@ -36120,27 +36120,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_openldap-servers │ │ │ │ - │ │ │ │ -class remove_openldap-servers { │ │ │ │ - package { 'openldap-servers': │ │ │ │ - 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 openldap-servers Package: Ensure openldap-servers is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -36152,14 +36139,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_openldap-servers │ │ │ │ + │ │ │ │ +class remove_openldap-servers { │ │ │ │ + package { 'openldap-servers': │ │ │ │ + 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 openldap-servers │ │ │ │ @@ -36174,31 +36174,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_ _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: │ │ │ │ @@ -36248,14 +36231,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Mail Server Software   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   Mail servers are used to send and receive email over the network. Mail is a very common service, and Mail │ │ │ │ Transfer Agents (MTAs) are obvious targets of network attack. Ensure that systems are not running MTAs │ │ │ │ unnecessarily, and configure needed MTAs as defensively as possible. │ │ │ │ │ │ │ │ Very few systems at any site should be configured to directly receive email over the network. Users should instead │ │ │ │ use mail client programs to retrieve email from a central server that supports protocols such as IMAP or POP3. │ │ │ │ @@ -36324,27 +36324,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: │ │ │ │ @@ -36365,14 +36352,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 │ │ │ │ @@ -36398,31 +36398,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_ _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: │ │ │ │ @@ -36476,14 +36459,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Configure NFS Clients   Group contains 1 group and 1 rule │ │ │ │ _[_r_e_f_]   The steps in this section are appropriate for systems which operate as NFS clients. │ │ │ │ Group   Disable NFS Server Daemons   Group contains 1 rule │ │ │ │ _[_r_e_f_]   There is no need to run the NFS server daemons nfs and rpcsvcgssd except on a small number of properly │ │ │ │ secured systems designated as NFS servers. Ensure that these daemons are turned off on clients. │ │ │ │ ****** RRuullee? ?  DDiissaabbllee NNeettwwoorrkk FFiillee SSyysstteemm ((nnffss)) ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The Network File System (NFS) service allows remote hosts to mount and interact with shared filesystems on the │ │ │ │ @@ -36500,31 +36500,14 @@ │ │ │ │ 4.3.3.6.8, 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 │ │ │ │ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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_ _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: │ │ │ │ @@ -36581,35 +36564,39 @@ │ │ │ │ - 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_ _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"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll nnffss--kkeerrnneell--sseerrvveerr PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The nfs-kernel-server package can be removed with the following command: │ │ │ │ $ 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 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -36618,14 +36605,27 @@ │ │ │ │ tags: │ │ │ │ - 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 │ │ │ │ @@ -36688,31 +36688,14 @@ │ │ │ │ _o_s_p_p FMT_SMF_EXT.1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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_ _⇲ │ │ │ │ - │ │ │ │ -[[packages]] │ │ │ │ -name = "chrony" │ │ │ │ -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_chrony │ │ │ │ - │ │ │ │ -class install_chrony { │ │ │ │ - package { 'chrony': │ │ │ │ - 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: │ │ │ │ @@ -36739,14 +36722,31 @@ │ │ │ │ - PCI-DSSv4-10.6.1 │ │ │ │ - enable_strategy │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - package_chrony_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_chrony │ │ │ │ + │ │ │ │ +class install_chrony { │ │ │ │ + package { 'chrony': │ │ │ │ + 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 = "chrony" │ │ │ │ +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 │ │ │ │ @@ -36768,31 +36768,14 @@ │ │ │ │ _i_s_a_-_6_2_4_4_3_-_2_0_0_9 4.3.3.3.9, 4.3.3.5.8, 4.3.4.4.7, 4.4.2.1, 4.4.2.2, 4.4.2.4 │ │ │ │ _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 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.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 = "systemd-timesyncd" │ │ │ │ -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-timesyncd │ │ │ │ - │ │ │ │ -class install_systemd-timesyncd { │ │ │ │ - package { 'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -36817,14 +36800,31 @@ │ │ │ │ - PCI-DSS-Req-10.4 │ │ │ │ - enable_strategy │ │ │ │ - high_severity │ │ │ │ - low_complexity │ │ │ │ - low_disruption │ │ │ │ - no_reboot_needed │ │ │ │ - package_timesyncd_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-timesyncd │ │ │ │ + │ │ │ │ +class install_systemd-timesyncd { │ │ │ │ + package { 'systemd-timesyncd': │ │ │ │ + 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-timesyncd" │ │ │ │ +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 │ │ │ │ @@ -36844,31 +36844,14 @@ │ │ │ │ working properly. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_enabled │ │ │ │ _o_s_-_s_r_g SRG-OS-000355-GPOS-00143 │ │ │ │ References: _a_n_s_s_i R71 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _i_s_m 0988, 1405 │ │ │ │ -_R_e_m_e_d_i_a_t_i_o_n_ _O_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 = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class enable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -36903,14 +36886,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" 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_chrony │ │ │ │ + │ │ │ │ +class enable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ + 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 = ["chrony"] │ │ │ │ _R_e_m_e_d_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$' && │ │ │ │ @@ -36943,31 +36943,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), AU-8(1)(a) │ │ │ │ _n_i_s_t_-_c_s_f PR.PT-1 │ │ │ │ _p_c_i_d_s_s Req-10.4 │ │ │ │ _c_i_s 2.3.1.1 │ │ │ │ _p_c_i_d_s_s_4 10.6.1, 10.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] │ │ │ │ -enabled = ["systemd-timesyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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-timesyncd │ │ │ │ - │ │ │ │ -class enable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ - 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: │ │ │ │ @@ -37013,14 +36996,31 @@ │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_enabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - ( not ( "chrony" in ansible_facts.packages ) and not ( "ntp" 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-timesyncd │ │ │ │ + │ │ │ │ +class enable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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-timesyncd"] │ │ │ │ _R_e_m_e_d_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$' && { ( ( ! │ │ │ │ @@ -37040,31 +37040,14 @@ │ │ │ │ ****** RRuullee? ?  TThhee CChhrroonnyydd sseerrvviiccee iiss ddiissaabblleedd ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The chrony service can be disabled with the following command: │ │ │ │ $ sudo systemctl mask --now chrony.service │ │ │ │ Rationale: Disabling the chrony service ensures that there is only single one time service running. │ │ │ │ Severity:  medium │ │ │ │ Rule ID: xccdf_org.ssgproject.content_rule_service_chronyd_disabled │ │ │ │ References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["chrony"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_chrony │ │ │ │ - │ │ │ │ -class disable_chrony { │ │ │ │ - service {'chrony': │ │ │ │ - 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: │ │ │ │ @@ -37117,41 +37100,41 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_chronyd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"chrony" in ansible_facts.packages' │ │ │ │ -****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ -The systemd_timesyncd service can be disabled with the following command: │ │ │ │ -$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ - Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ -Rationale: │ │ │ │ - Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ - _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ -Severity:  medium │ │ │ │ -Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ -References: _c_i_s 2.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_ _⇲ │ │ │ │ - │ │ │ │ -[customizations.services] │ │ │ │ -masked = ["systemd-timesyncd"] │ │ │ │ _R_e_m_e_d_i_a_t_i_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_systemd-timesyncd │ │ │ │ +include disable_chrony │ │ │ │ │ │ │ │ -class disable_systemd-timesyncd { │ │ │ │ - service {'systemd-timesyncd': │ │ │ │ +class disable_chrony { │ │ │ │ + service {'chrony': │ │ │ │ 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 = ["chrony"] │ │ │ │ +****** RRuullee? ?  DDiissaabbllee ssyysstteemmdd__ttiimmeessyynnccdd SSeerrvviiccee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ +The systemd_timesyncd service can be disabled with the following command: │ │ │ │ +$ sudo systemctl mask --now systemd_timesyncd.service │ │ │ │ + Disabling the systemd_timesyncd service ensures that there is only single one time service running. │ │ │ │ +Rationale: │ │ │ │ + Additional information on Ubuntu network time protocol is available at _h_t_t_p_s_:_/_/_u_b_u_n_t_u_._c_o_m_/_s_e_r_v_e_r_/_d_o_c_s_/ │ │ │ │ + _a_b_o_u_t_-_t_i_m_e_-_s_y_n_c_h_r_o_n_i_s_a_t_i_o_n. │ │ │ │ +Severity:  medium │ │ │ │ +Rule ID: xccdf_org.ssgproject.content_rule_service_timesyncd_disabled │ │ │ │ +References: _c_i_s 2.3.1.1 │ │ │ │ _R_e_m_e_d_i_a_t_i_o_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: │ │ │ │ @@ -37205,14 +37188,31 @@ │ │ │ │ - medium_severity │ │ │ │ - no_reboot_needed │ │ │ │ - service_timesyncd_disabled │ │ │ │ - special_service_block │ │ │ │ when: │ │ │ │ - '"linux-base" in ansible_facts.packages' │ │ │ │ - '"systemd-timesyncd" 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 disable_systemd-timesyncd │ │ │ │ + │ │ │ │ +class disable_systemd-timesyncd { │ │ │ │ + service {'systemd-timesyncd': │ │ │ │ + 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 = ["systemd-timesyncd"] │ │ │ │ ****** RRuullee? ?  CChhrroonnyy CCoonnffiigguurree PPooooll aanndd SSeerrvveerr ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ Chrony is a daemon which implements the Network Time Protocol (NTP). It is designed to synchronize system clocks │ │ │ │ across a variety of systems and use a source that is highly accurate. More information on chrony can be found at │ │ │ │ _h_t_t_p_s_:_/_/_c_h_r_o_n_y_-_p_r_o_j_e_c_t_._o_r_g_/. Chrony can be configured to be a client and/or a server. Add or edit server or pool │ │ │ │ lines to /etc/chrony/chrony.conf as appropriate: │ │ │ │ server │ │ │ │ Multiple servers may be configured. │ │ │ │ @@ -37607,27 +37607,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: │ │ │ │ @@ -37658,14 +37645,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 │ │ │ │ @@ -37704,31 +37704,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_ _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: │ │ │ │ @@ -37786,14 +37769,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   NIS   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Network Information Service (NIS), also known as 'Yellow Pages' (YP), and its successor NIS+ have been │ │ │ │ made obsolete by Kerberos, LDAP, and other modern centralized authentication services. NIS should not be used │ │ │ │ because it suffers from security problems inherent in its design, such as inadequate protection of important │ │ │ │ authentication information. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll yyppsseerrvv PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The ypserv package can be removed with the following command: │ │ │ │ @@ -37819,27 +37819,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: │ │ │ │ @@ -37855,14 +37842,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 │ │ │ │ @@ -37878,31 +37878,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_ _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: │ │ │ │ @@ -37952,14 +37935,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Rlogin, Rsh, and Rexec   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Berkeley r-commands are legacy services which allow cleartext remote access and have an insecure trust │ │ │ │ model. │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrsshh PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ The rsh package contains the client commands for the rsh services │ │ │ │ These legacy clients contain numerous security exposures and have been replaced with the more secure │ │ │ │ Rationale: SSH package. Even if the server is removed, it is best to ensure the clients are also removed to │ │ │ │ @@ -37970,27 +37970,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 │ │ │ │ - │ │ │ │ -class remove_rsh { │ │ │ │ - package { 'rsh': │ │ │ │ - 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 is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38002,14 +37989,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 │ │ │ │ + │ │ │ │ +class remove_rsh { │ │ │ │ + package { 'rsh': │ │ │ │ + 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 │ │ │ │ @@ -38059,27 +38059,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: │ │ │ │ @@ -38090,14 +38077,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 │ │ │ │ @@ -38116,27 +38116,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 Debian 12. │ │ │ │ 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: │ │ │ │ @@ -38145,14 +38132,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 │ │ │ │ @@ -38174,27 +38174,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: │ │ │ │ @@ -38206,14 +38193,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 │ │ │ │ @@ -38253,27 +38253,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_tftp-server │ │ │ │ - │ │ │ │ -class remove_tftp-server { │ │ │ │ - package { 'tftp-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 tftp-server Package: Ensure tftp-server is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -38287,14 +38274,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_tftp-server │ │ │ │ + │ │ │ │ +class remove_tftp-server { │ │ │ │ + package { 'tftp-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 tftp-server │ │ │ │ @@ -38322,31 +38322,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 = ["tftp"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_tftp │ │ │ │ - │ │ │ │ -class disable_tftp { │ │ │ │ - service {'tftp': │ │ │ │ - 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: │ │ │ │ @@ -38402,35 +38385,39 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_tftp │ │ │ │ + │ │ │ │ +class disable_tftp { │ │ │ │ + service {'tftp': │ │ │ │ + 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 = ["tftp"] │ │ │ │ ****** RRuullee? ?  UUnniinnssttaallll rrssyynncc PPaacckkaaggee ? ? _[[_rr_ee_ff_]] ****** │ │ │ │ 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: │ │ │ │ @@ -38439,14 +38426,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 │ │ │ │ @@ -38461,31 +38461,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 = ["rsyncd"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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: │ │ │ │ @@ -38540,14 +38523,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Print Support   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The Common Unix Printing System (CUPS) service provides both local and network printing support. A system │ │ │ │ running the CUPS service can accept print jobs from other systems, process them, and send them to the appropriate │ │ │ │ printer. It also provides an interface for remote administration through a web browser. The CUPS service is │ │ │ │ installed and activated by default. The project homepage and more detailed documentation are available at _h_t_t_p_:_/_/ │ │ │ │ _w_w_w_._c_u_p_s_._o_r_g. │ │ │ │ │ │ │ │ @@ -38565,27 +38565,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: │ │ │ │ @@ -38597,14 +38584,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 │ │ │ │ @@ -38628,31 +38628,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_ _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: │ │ │ │ @@ -38708,14 +38691,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Proxy Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   A proxy server is a very desirable target for a potential adversary because much (or all) sensitive data │ │ │ │ for a given infrastructure may flow through it. Therefore, if one is required, the system acting as a proxy server │ │ │ │ should be dedicated to that purpose alone and be stored in a physically secure location. The system's default proxy │ │ │ │ server software is Squid, and provided in an RPM package of the same name. │ │ │ │ Group   Disable Squid if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   If Squid was installed and activated, but the system does not need to act as a proxy server, then it should │ │ │ │ @@ -38725,27 +38725,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: │ │ │ │ @@ -38754,14 +38741,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 │ │ │ │ @@ -38777,31 +38777,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_ _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: │ │ │ │ @@ -38852,14 +38835,31 @@ │ │ │ │ - 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_ _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"] │ │ │ │ Group   Samba(SMB) Microsoft Windows File Sharing Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   When properly configured, the Samba service allows Linux systems to provide file and print sharing to │ │ │ │ Microsoft Windows systems. There are two software packages that provide Samba support. The first, samba-client, │ │ │ │ provides a series of command line tools that enable a client system to access Samba shares. The second, simply │ │ │ │ labeled samba, provides the Samba service. It is this second package that allows a Linux system to act as an Active │ │ │ │ Directory server, a domain controller, or as a domain member. Only the samba-client package is installed by │ │ │ │ default. │ │ │ │ @@ -38870,27 +38870,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: │ │ │ │ @@ -38899,14 +38886,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 │ │ │ │ @@ -38920,31 +38920,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 = ["smb"] │ │ │ │ -_R_e_m_e_d_i_a_t_i_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_smb │ │ │ │ - │ │ │ │ -class disable_smb { │ │ │ │ - service {'smb': │ │ │ │ - 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: │ │ │ │ @@ -38994,14 +38977,31 @@ │ │ │ │ - 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_ _P_u_p_p_e_t_ _s_n_i_p_p_e_t_ _⇲ │ │ │ │ +CCoommpplleexxiittyy:: low │ │ │ │ +DDiissrruuppttiioonn:: low │ │ │ │ +RReebboooott:: false │ │ │ │ +SSttrraatteeggyy:: enable │ │ │ │ +include disable_smb │ │ │ │ + │ │ │ │ +class disable_smb { │ │ │ │ + service {'smb': │ │ │ │ + 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 = ["smb"] │ │ │ │ Group   SNMP Server   Group contains 1 group and 2 rules │ │ │ │ _[_r_e_f_]   The Simple Network Management Protocol allows administrators to monitor the state of network devices, │ │ │ │ including computers. Older versions of SNMP were well-known for weak security, such as plaintext transmission of │ │ │ │ the community string (used for authentication) and usage of easily-guessable choices for the community string. │ │ │ │ Group   Disable SNMP Server if Possible   Group contains 2 rules │ │ │ │ _[_r_e_f_]   The system includes an SNMP daemon that allows for its remote monitoring, though it not installed by │ │ │ │ default. If it was installed and activated but is not needed, the software should be disabled and removed. │ │ │ │ @@ -39010,27 +39010,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_net-snmp │ │ │ │ - │ │ │ │ -class remove_net-snmp { │ │ │ │ - package { 'net-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 net-snmp is removed' │ │ │ │ ansible.builtin.package: │ │ │ │ @@ -39041,14 +39028,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_net-snmp │ │ │ │ + │ │ │ │ +class remove_net-snmp { │ │ │ │ + package { 'net-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 net-snmp │ │ │ │ @@ -39063,31 +39063,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 │ │ │ │ TRUNCATED DUE TO SIZE LIMIT: 10485760 bytes