top match and remove_gui state

This commit is contained in:
m0duspwnens
2022-03-29 10:17:21 -04:00
parent 0ddfaf8d74
commit 2f489895ef
2 changed files with 10 additions and 1 deletions

View File

@@ -511,6 +511,10 @@ base:
- filebeat
- idh
'*_workstation and G@saltversion:{{saltversion}}':
'J@workstation:gui:enabled:^[Tt][Rr][Uu][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:CentOS )':
- match: compound
- workstation
'J@workstation:gui:enabled:^[Ff][Aa][Ll][Ss][Ee]$ and ( G@saltversion:{{saltversion}} and G@os:CentOS )':
- match: compound
- workstation.remove_gui

View File

@@ -0,0 +1,5 @@
remove_graphical_target:
file.symlink:
- name: /etc/systemd/system/default.target
- target: /lib/systemd/system/multi-user.target
- force: True