Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
b62735ed
Unverified
Commit
b62735ed
authored
3 years ago
by
Thomas Woerner
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #646 from rjeffman/iparole_fix_test
tests: Fix facts for iparole tests.
parents
8fe41495
4fda36eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/role/env_facts.yml
+12
-6
12 additions, 6 deletions
tests/role/env_facts.yml
with
12 additions
and
6 deletions
tests/role/env_facts.yml
+
12
−
6
View file @
b62735ed
---
---
-
name
:
Get Domain from server name
-
block
:
set_fact
:
-
name
:
Get Domain from server name
ipaserver_domain
:
"
{{
ansible_facts['fqdn'].split('.')[1:]
|
join
('.')
}}"
set_fact
:
ipaserver_domain
:
"
{{
ansible_facts['fqdn'].split('.')[1:]
|
join
('.')
}}"
when
:
"
'fqdn'
in
ansible_facts"
-
name
:
Set Domain to 'ipa.test' if FQDN could not be retrieved.
set_fact
:
ipaserver_domain
:
"
ipa.test"
when
:
"
'fqdn'
not
in
ansible_facts"
when
:
ipaserver_domain is not defined
when
:
ipaserver_domain is not defined
-
name
:
Set
fact for realm name
-
name
:
Set
ipaserver_realm.
set_fact
:
set_fact
:
ipaserver_realm
:
"
{{
ipaserver_domain
}}
|
upper"
ipaserver_realm
:
"
{{
ipaserver_domain
|
upper
}}
"
when
:
ipaserver_
domain
is not defined
when
:
ipaserver_
realm
is not defined
-
name
:
Create FQDN for host01
-
name
:
Create FQDN for host01
set_fact
:
set_fact
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment