Skip to content

Commit

Permalink
Merge pull request #27 from jhomen368/fix-rhel_09_252035
Browse files Browse the repository at this point in the history
fix(rhel_09_252035): fix templating and resolv.conf template syntax
  • Loading branch information
uk-bolly authored Sep 13, 2024
2 parents 3ccfb97 + 7c77be0 commit cd0c06d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tasks/Cat2/RHEL-09-25xxxx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,9 @@
rhel9stig_network_manager_dns.stdout == 'none' or
rhel9stig_network_manager_dns.stdout == 'unmanaged'
ansible.builtin.template:
dest: /etc/resolv.conf.j2
dest: /etc/resolv.conf
mode: '0644'
src: /etc/resolv.conf
src: etc/resolv.conf.j2

- name: "MEDIUM | RHEL-09-252035 | PATCH | RHEL 9 systems using Domain Name Servers (DNS) resolution must have at least two name servers configured."
when:
Expand Down
2 changes: 1 addition & 1 deletion templates/etc/resolv.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Sponsored by MindPointGroup.com
{% if rhel9stig_resolv_domains is defined %}
# Domains
{% for domains in rhel9stig_resolv_domains
{% for domains in rhel9stig_resolv_domains %}
domain {{ rhel9stig_resolv_domains }}
{% endfor %}
{% endif %}
Expand Down

0 comments on commit cd0c06d

Please sign in to comment.