Something that was done at current job was use the last 5 digits of the mac
address was a prefix for the host names. The  mac pretty much guarentees a
unique name with added bonus of assisting network finding on the network
when there is a connectivity issue

On Wed, Aug 2, 2023, 8:56 PM Prady A <[email protected]> wrote:

> Hi Experts,
>
> Not exactly an ansible issue but any thought would be greatly appreciated.
> We use AD for Password synchronization between different kinds of systems.
> For password synchronization we also use mainframe system which accepts
> only 8 charters as a hostname.
> So now we are trimming the hostname and sending it to the mainframe
> system.
> Ex: *domain: ansible_hostname[:3] }}{{ ansible_hostname[-5:] }} *
> Earlier based on the datacenter the hostnames were given(EX:VANC+1001).
> Since the datacenter names are quite different, by trimming also there are
> no duplicates.
> But now the hostname will be decided on the business unit so less number
> of combinations in hostnames.
> For Ex: for BU's : abcd, abcf, abciq
> hostnames will be
> abc*d*10001
> abc*f*10001
> abc*iq*10001
> For above all the hostnames the above ansible will return me the same
> hostname. which will be duplicated in the mainframe system.
> *domain: ansible_hostname[:3] }}{{ ansible_hostname[-5:] }} *
> abc10001
> abc10001
> abc10001
>
> Any insight would be greatly helpful.
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq14AaNqJGGcKC%3D-C0CH4dkGRC6uOsCzFe-f4YysYyKiQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEuB3Aq14AaNqJGGcKC%3D-C0CH4dkGRC6uOsCzFe-f4YysYyKiQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEcFzYz5Zdb-yx3jrxLMLNKWnMBfzuqmvfASDUj8uYZqtqxeGg%40mail.gmail.com.

Reply via email to