Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
las-it-organisation
32-0-IT instructions and rules
ansible
Commits
c8684662
Commit
c8684662
authored
May 07, 2018
by
julian.gethmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the MAC address to IPA
parent
4e703dd2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
roles/ipa_hosts/tasks/add_ipa_host.yml
roles/ipa_hosts/tasks/add_ipa_host.yml
+4
-2
No files found.
roles/ipa_hosts/tasks/add_ipa_host.yml
View file @
c8684662
---
# 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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment