hostname.yml 461 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2 3 4 5
---
- name: set hostname
  hostname: "name=las{{ ip_suffix }}.las.kit.edu"
  become: yes

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
- name: install needed network manager libs
  dnf:
    name: '{{ item }}'
    state: installed
  with_items:
    - NetworkManager-glib
    - libnm-qt-devel.x86_64
    - nm-connection-editor.x86_64
    - libsemanage-python
    - policycoreutils-python

- name: set DNS Server
  nmcli: 
    dns4:
      - 129.13.64.5
      - 141.3.175.65
      - 8.8.8.8
    state: present