- fix logic in roles/resolv_conf

- revert roles/hostname; however we're going to go another way
This commit is contained in:
2023-12-09 23:55:36 -05:00
parent c81ddb4015
commit 8707fb0c91
3 changed files with 6 additions and 11 deletions

View File

@ -1,15 +1,9 @@
---
# - name: Set hostname for host
# hostname:
# name: "{{ inventory_hostname }}"
# notify:
# - "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
- name: Set hostname for host
ansible.builtin.lineinfile:
path: /etc/hostname
line: "{{ inventory_hostname }}"
hostname:
name: "{{ inventory_hostname }}"
notify:
- "restart_syslog_{{ ansible_distribution | lower }}_{{ ansible_distribution_major_version }}"
...