Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(rhel_09_252035): fix templating and resolv.conf template syntax #27

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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