summaryrefslogtreecommitdiff
path: root/ansible/roles/srv01/tasks/set_hostname.yaml
blob: 40a9a8ed292cb8901f7c94a8fdf0375e3f4f10a7 (plain)
1
2
3
4
5
- name: "{{ main_linux_srv01_hostname }}.{{ main_domain_name }}: update /etc/hosts"
  ansible.builtin.replace:
    path: /etc/hosts
    regexp: "ubuntu-server2404"
    replace: "{{ main_linux_srv01_hostname }}.{{ main_domain_name }} {{ main_linux_srv01_hostname }}"