Hello!
Unfortunately, we are using version 2.4, don't think upgrading is an option
(at least at this point) any other ideas ?

On Sat, Oct 20, 2018 at 2:52 PM Dick Visser <[email protected]> wrote:

> I don't know the hponcfg module, but from
>
> https://docs.ansible.com/ansible/latest/modules/hponcfg_module.html#examples
> it looks like you have to first copy an XML fragment with some
> specific configuration code, and then use that with the hponcfg
> module.
> If you are able to use ansible 2.7, then you can use this expression
> for the new ILO IP in your XML fragment:
>
> {{ ansible_default_ipv4.address  | ipmath(2**24 + 2**16 + 2**8) }}"
>
> This basically increases the first 3 octets by 1, by adding 2^24,
> 2^16, and 2^8 to them.
> If you don't like your co-workers, use:
>
> {{ ansible_default_ipv4.address  | ipmath(16843008) }}"
>
> Dick
>
>
> On Sat, 20 Oct 2018 at 17:38, LJ Medina <[email protected]> wrote:
> >
> > Hello,
> > I'm trying to assign ILO IP addresses to a range of systems, using a
> different subnet than their host IP, just matching the fourth octet.  For
> example, if their IP would be 10.10.10.10, I want their ILO IP to be
> 11.11.11.10.( Plan is to use "hponcfg" module to configure the host's ILO
> after I obtain this address)
> > What is the best way to achieve this with ansible?
> >
> > --
> > 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 post to this group, send email to [email protected].
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/53e0e0d5-6ec2-408a-9af9-8dce2384caba%40googlegroups.com
> .
> > For more options, visit https://groups.google.com/d/optout.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/ansible-project/ubGw-T7WwJI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAL8fbwN5kHWxaDzV0ri%2Bf6iBQw8QSh1UWDMGKxHpew06cvDghg%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAJThwu5MXSdukaYqqY0U%3DB4YicXttj8c1EwSpniWRkK%3D%2B7m9WQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to