Skip to content

Commit

Permalink
Add ansible for gnome messsage banner UBTU-20-010003
Browse files Browse the repository at this point in the history
This commit will add in the ansible remediation for the gnome message banner text for ubuntu.
  • Loading branch information
dexterle committed Sep 7, 2023
1 parent 2060bc6 commit 3e936dc
Showing 1 changed file with 25 additions and 0 deletions.
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

0 comments on commit 3e936dc

Please sign in to comment.