From f7da5656ee08b3047b50be88ae2322e416aa2fe1 Mon Sep 17 00:00:00 2001 From: iRaven4522 Date: Sun, 28 Apr 2024 18:38:34 -0500 Subject: [PATCH] Configure dhclient to use the MAC address of the system instead of Client ID --- linux/compliance.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/linux/compliance.yaml b/linux/compliance.yaml index 17272de..8f4635a 100644 --- a/linux/compliance.yaml +++ b/linux/compliance.yaml @@ -64,4 +64,13 @@ ansible.builtin.file: path: /root/.ssh/authorized_keys state: absent - ignore_errors: yes \ No newline at end of file + ignore_errors: yes + + # New 04/28/24: Do not use the DHCP Client ID as our MAC Address. + - name: Configure dhclient to use the MAC address of the system instead of Client ID. + blockinfile: + state: present + insertafter: EOF + dest: /etc/dhclient/dhclient.conf + marker: "# Changed by ansible playbook: Use MAC address instead of DHCP Client ID" + content: \ No newline at end of file