summaryrefslogtreecommitdiff
path: root/ansible/roles/srv01/tasks/set_hostname.yaml
blob: 6e04085a25c65c7ba878191a5f9b1df3e17c0b8b (plain)
1
2
3
4
5
- 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 }}"