Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
FuHsinyu committed Feb 28, 2025
1 parent 898d02f commit 72f40a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions roles/common/tasks/custom_dns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
when: ansible_os_family == 'Debian'


- name: Configure /etc/resolv.conf via Ansible (EL9)
become: true
- name: Update resolv.conf to use Google DNS servers (EL9)
become: true
when: ansible_os_family == 'RedHat'
block:
- name: Create manually configured DNS settings file
ansible.builtin.copy:
Expand All @@ -36,8 +37,7 @@
src: /etc/resolv.conf.manually-configured
dest: /etc/resolv.conf
state: link
force: yes
when: ansible_os_family == 'RedHat'
force: true

- name: Flush handlers for immediate effect of changing DNS configuration
ansible.builtin.meta: flush_handlers
2 changes: 1 addition & 1 deletion roles/common/tasks/main-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

- name: Update local DNS settings
ansible.builtin.import_tasks: custom_dns.yml
when: common_custom_dns_enable
when: common_custom_dns_enable

- name: Setup EPEL repository
ansible.builtin.import_tasks: epel.yml
Expand Down

0 comments on commit 72f40a2

Please # to comment.