hostname.yml 777 Bytes
Newer Older
Julian Gethmann's avatar
Julian Gethmann committed
1
---
2 3 4 5 6 7 8 9 10 11 12 13
# - name: install needed network manager libs
#   become: yes
#   dnf:
#     name: '{{ item }}'
#     state: present
#   with_items:
#     - NetworkManager-glib
#     - libnm-qt-devel.x86_64
#     - nm-connection-editor.x86_64
#     - libsemanage-python
#     - policycoreutils-python
#   when: ((ansible_distribution == "Fedora" and ansible_distribution_number < 27) or ansible_distribution == "CentOS")
14

julian.gethmann's avatar
julian.gethmann committed
15 16
      # does not work at the moment
      # - name: set DNS Server
julian.gethmann's avatar
julian.gethmann committed
17
      #   nmcli:
julian.gethmann's avatar
julian.gethmann committed
18 19 20 21 22 23 24
      #     conn_name: enp0s31f6
      #     dns4:
      #       - 129.13.64.5
      #       - 141.3.175.65
      #         #  - 8.8.8.8
      #     state: present
      #     type: ethernet
25

26 27 28 29
- name: set hostname
  become: yes
  hostname:
    name: "{{ computer_name }}.las.kit.edu"