Skip to content

Commit

Permalink
add ansible remediation (currently broken)
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtapolasek committed Sep 8, 2020
1 parent 649880f commit f72aeee
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# platform = Oracle Linux 7,Oracle Linux 8,Red Hat Enterprise Linux 6,Red Hat Enterprise Linux 7,Red Hat Enterprise Linux 8,Red Hat Virtualization 4,WRLinux 1019
# reboot = false
# complexity = low
# strategy = configure
# disruption = low

{{{ ansible_instantiate_variables("tftpd_secure_directory") }}}

- name: "Ensure that TFTP server is configured to start with secure directory"
lineinfile:
path: "/etc/xinetd.d/tftp"
regexp: '^[\s]*(serger_args[\s]+=[\s]+.*?)(-s[\s]+[/\.\w]+)(.*)$'
line: '\1 -s {{ tftpd_secure_directory {{ \3'
state: present
backrefs: true

0 comments on commit f72aeee

Please sign in to comment.