How to skip hostname setup #1111
Replies: 2 comments
-
@bioinfornatics, I'm having the same issues, if I use podman. I was able to execute the deployment using Docker. I'm still investigating the issue, as something like CLI installation is working if you use podman with freiipa-container. Running the deployment roles, with podman, is very high on my TODO list, but unfortunately I have no solution yet. |
Beta Was this translation helpful? Give feedback.
-
Hi @rjeffman converge.yml ---
- name: Converge
hosts: client
gather_facts: false
tasks:
- name: 'Enable identity management module'
ansible.builtin.command: dnf module enable -y idm:DL1
- name: 'Install IPA server packages'
dnf:
name:
- 'net-tools'
- 'ipa-server'
- 'ipa-server-dns'
- 'bind-dyndb-ldap'
- 'httpd'
state: 'latest'
#- name: Include ipaserver role
# include_role:
# name: freeipa.ansible_freeipa.ipaserver
- name: 'Configure freeipa server'
ansible.builtin.command: |
ipa-server-install -U \
--setup-dns \
--ntp-pool='pool.ntp.org' \
--auto-reverse \
--ssh-trust-dns \
--ds-password="{{ipadm_password}}" \
--admin-password="{{ipaadmin_password}}" \
--domain="{{ipa_domain}}" \
--realm="{{ipa_realm}}" \
--ip-address="{{inventory_ip}}" \
--auto-forwarders
But that fail it is wrote into the installation log this:
|
Beta Was this translation helpful? Give feedback.
-
Dear,
I have to skip the hostname setup as I use podman/rootless container.
So it is not allowed to change the container hostname in this case.
I take a look to the code and maybe they are a little gap by the use of
_hostname_overridden
Indeed it seems that I could skip this step if the variable is set to false.
We can see at install.yml line 194 that the variable take the value from
result_ipaserver_test
object.The object
result_ipaserver_test
is define between line 60 and line 128 but the key_hostname_overridden
is not set.then it is impossible to not override hostname
my goal is to avoid the call
['hostnamectl', 'set-hostname', hostname]
.as Example I have a
molecule.yml
and
prepare.yml
actual Error
@rjeffman did you have an idea how to fix it ?
Beta Was this translation helpful? Give feedback.
All reactions