Friday, August 13, 2021

How to Preserv /etc/resolv.conf file after the reboot.

---
- hosts: all
  become: yes
  tasks:
  - name: To preserve the  /etc/resolv.conf entry
    command : chattr +i /etc/resolv.conf

No comments:

Post a Comment