-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ansible for gnome messsage banner UBTU-20-010003
This commit will add in the ansible remediation for the gnome message banner text for ubuntu.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...counts/accounts-banners/gui_login_banner/dconf_gnome_login_banner_text/ansible/ubuntu.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# platform = multi_platform_ubuntu | ||
# reboot = false | ||
# strategy = unknown | ||
# complexity = low | ||
# disruption = medium | ||
{{{ ansible_instantiate_variables("login_banner_text") }}} | ||
|
||
- name: "{{{ rule_title }}}" | ||
lineinfile: | ||
path: /etc/gdm3/greeter.dconf-defaults | ||
regexp: ^(#.*)(banner-message-text=) | ||
line: \2 | ||
backrefs: true | ||
|
||
- name: "{{{ rule_title }}}" | ||
ini_file: | ||
dest: /etc/gdm3/greeter.dconf-defaults | ||
section: org/gnome/login-screen | ||
option: banner-message-text | ||
value: '{{{ ansible_deregexify_banner_dconf_gnome("login_banner_text") }}}' | ||
create: yes | ||
no_extra_spaces: yes | ||
|
||
- name: Dconf Update | ||
command: dconf update |