Commit c8684662 authored by julian.gethmann's avatar julian.gethmann

Add the MAC address to IPA

parent 4e703dd2
---
# THIS ROLE IS NOT IDEMPOTENT, but just for installation!
- name: install host
become: yes
dnf:
......@@ -29,6 +30,7 @@
hostname:
name: "las{{ ip_suffix }}.las.kit.edu"
# This is not idempotent!
- name: add host
become: yes
ipa_host:
......@@ -39,7 +41,7 @@
ns_host_location: "{{ loc }}"
ns_os_version: "{{ ansible_distribution }} {{ ansible_distribution_version }}"
ns_hardware_platform: "{{ ansible_bios_date }}"
# mac_address:
mac_address: "{{ ansible_default_ipv4.macaddress }}"
state: present
ipa_host: "{{ ipaserver1 }}"
ipa_user: admin
......@@ -50,7 +52,7 @@
register: host_installed
- name: get random password
script: "./activate_ipa_host.py {{ansible_fqdn }}"
script: "./activate_ipa_host.py {{ ansible_fqdn }}"
delegate_to: 127.0.0.1
register: random_pass
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment