Thanks .. I am not sure , if enable_plugin option under YUM ansible module
is related to such plugins , as description in documentation is not
sufficient for end user to understand.
I am looking for smallest play which make use of enable_plugin option while
using yum module for better understanding of same.

Regards
Rahul

On Wed, 17 Jul 2019 at 14:03, [email protected] <[email protected]>
wrote:

> See what you mean now. Seems that others have raised a similar issue,
> previously, but not sure there has ever been a resolution? Possibly worth
> searching for something useful in Galaxy perhaps (see eg below, if not used
> before)?
>
>
>
> # ansible-galaxy search plugins
>
> # ansible-galaxy info <Author Name>
>
>
>
> Regards
>
> Phil
>
>
>
> *From:* [email protected] <[email protected]>
> *On Behalf Of *[email protected]
> *Sent:* 17 July 2019 08:46
> *To:* [email protected]
> *Subject:* Re: [ansible-project] yum downgrade <RPM> is not working in
> Ansible Command module
>
>
>
> Hi Phil,
>
> I have already filed a issue as requested by Ansible Team, All Details can
> be found here:
>
> https://github.com/ansible/ansible/issues/59146’
>
>
>
> Regards
>
> Rahul
>
>
>
> On Wed, 17 Jul 2019 at 13:13, [email protected] <[email protected]>
> wrote:
>
> Can you clarify what constraint the “yum” module has as I would be
> surprised if it can’t accommodate all common yum related tasks? Can’t you
> just specify package name with version (name) and enable downgrade
> (allow_downgrade)?
>
>
>
> https://docs.ansible.com/ansible/latest/modules/yum_module.html#yum-module
>
>
>
> Regards
>
> Phil
>
>
>
> *From:* [email protected] <[email protected]>
> *On Behalf Of *[email protected]
> *Sent:* 17 July 2019 07:54
> *To:* [email protected]
> *Subject:* Re: [ansible-project] yum downgrade <RPM> is not working in
> Ansible Command module
>
>
>
> Well , it is same behavior as of command module . i.e if I use -y option ,
> both rpms will be there in system and task is stuck and i have to manually
> terminate.
>
> How is it possible, 2 version of same rpms on machine and even task is
> stuck.
>
>
>
> On Wed, 17 Jul 2019 at 12:19, Dick Visser <[email protected]> wrote:
>
> Exactly, by doing it manually your environment has different variables
> set.
>
> What happens if you use the shell module instead of command?
>
>
>
> On Wed, 17 Jul 2019 at 08:45, Rahul Kumar <[email protected]> wrote:
>
> Yes , its custom enterprise specific rpm . But if i do manually (outside
> ansible), these commands work perfectly . Morover it dont have any
> dependency on other rpm and even on env.
>
>
>
> On Wed, 17 Jul 2019 at 12:06, Dick Visser <[email protected]> wrote:
>
> Could it be that this is some custom package and that it’s installation
> somehow depends on environment variables being present?
>
> What is the rpmname?
>
>
>
> Dick
>
>
>
>
>
>
>
> On Wed, 17 Jul 2019 at 08:33, Rahul Kumar <[email protected]> wrote:
>
> Well , I tried again  and found some abnormal behaviour.
>
> Observed once i use -y option as below:
>
> ---
> - hosts: localhost
>   tasks:
>      - name: Install specific version of a package in Ansible.
>        command: yum -y downgrade <rpmname>
> ~
>
>
>
> TASK is stuck and no logs as below:
>
> TASK [Install specific version of a package in Ansible.]
> ************************************************************************************************************************************
> task path: /var/opt/OC/iso/downgrade_playbook.yml:4
>
> And i abormally terminates this after some time. But surprisingly i found
> both version of rpm install once i do :
>
> rpm -qa | grep <rpm name>
>
> rpmname.v1
>
> rpmname.v2
>
>
>
> Its strange and its not the behaviour of yum downgrade as compared to once
> someone run manually this command.
>
>
>
> On Wed, 17 Jul 2019 at 11:54, Pshem Kowalczyk <[email protected]> wrote:
>
> Run playbook with '-vv' appended and show us the output.
>
>
>
> kind regards
>
> Pshem
>
>
>
>
>
> On Wed, 17 Jul 2019 at 18:18, Rahul Kumar <[email protected]> wrote:
>
> No -y option also does not work.   Well yum downgrade <rpm> is a valid
> command and working outside Ansible.
>
>
>
> On Wed, 17 Jul 2019 at 11:44, Michael Mullay <[email protected]> wrote:
>
> I think you just need the '-y' switch.
>
> yum -y downgrade <rpm_name>
>
> On Tue, Jul 16, 2019 at 11:04 PM Rahul Kumar <[email protected]>
> wrote:
> >
> > This is the playbook.
> > ---
> > - hosts: localhost
> >   tasks:
> >      - name: Install specific version of a package in Ansible.
> >        command: yum downgrade <rpm_name>
> >
> > Task is stuck at this point of time, however all other yum commands such
> as (yum info <rpmname> etc. ) are working fine in command module.
> > But if i try same command 'yum downgrade <rpm_name>' manually , it works.
> >
> > On Wednesday, 17 July 2019 11:27:38 UTC+5:30, Dick Visser wrote:
> >>
> >> On Wed, 17 Jul 2019 at 07:36, Rahul Kumar <[email protected]> wrote:
> >>>
> >>> I am using Ansible command module to downgrade the package (assuming
> higher version is already installed and
> >>> repo has both lower and higher version). I dont want to use Anisble
> yum module due to some constraints.
> >>> I am not able to invoke yum downgrade <rpmname> from command module.
> >>
> >>
> >> What does this mean?
> >> Did you get an error message?
> >> Or did the task run OK but the package wasn’t downgraded?
> >> Without knowing what you did it’s impossible to help. So please show
> the task.
> >>
> >> You should be able to invoke any command using the command module.
> >>
> >> Dick
> >>
> >>
> >>> --
> >>> 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/446ee6a4-519d-4711-87e1-be3ea35a09e0%40googlegroups.com
> .
> >>> For more options, visit https://groups.google.com/d/optout.
> >>
> >> --
> >> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
> >
> > --
> > 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/172d66ef-3633-4117-af54-4443a9c0c899%40googlegroups.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/CAH4rTPtKNJbhcODCfn_EezwNFqSviH2_NN%3DO1xTpjuseW%2B%2BZBw%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/CAGH8rEywUuKmUJydXqg5T2yr%3DVEH2RHcBt%3D9P_zRn8cvwKMzbg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEywUuKmUJydXqg5T2yr%3DVEH2RHcBt%3D9P_zRn8cvwKMzbg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAEaZiRUiZrjHdgF8C0b%2B0r7KqR4jFALh8%2BCuQ0GibvpO2wswwQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEaZiRUiZrjHdgF8C0b%2B0r7KqR4jFALh8%2BCuQ0GibvpO2wswwQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAGH8rExNqRDKTJnKGN8Gvv%3DsLbTO5Dx6MVDg5o4FVbFNkt7OkQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rExNqRDKTJnKGN8Gvv%3DsLbTO5Dx6MVDg5o4FVbFNkt7OkQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
>
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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/CAL8fbwP2aDw-kUdHuGMmQfozUv%3DVWOGP_NOXYMzeRNn%3D2tF8ew%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwP2aDw-kUdHuGMmQfozUv%3DVWOGP_NOXYMzeRNn%3D2tF8ew%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAGH8rExm0Baatynzr%3DvaKfG4ErWt-MdQyqwRxXKNFL1pi%2B10rw%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rExm0Baatynzr%3DvaKfG4ErWt-MdQyqwRxXKNFL1pi%2B10rw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
> --
>
> Sent from a mobile device - please excuse the brevity, spelling and
> punctuation.
>
> --
> 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/CAL8fbwMQ4F6QoFm%2BWRBTYoQkYXvxf6rhvbA06Obq0myGTT-JBg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL8fbwMQ4F6QoFm%2BWRBTYoQkYXvxf6rhvbA06Obq0myGTT-JBg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/CAGH8rExRmXActPGcnxVM0REhC4%2B33M-WagD4L0FF0ZWMspDVJQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rExRmXActPGcnxVM0REhC4%2B33M-WagD4L0FF0ZWMspDVJQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/883ac4d407a2407ebd6efb08ccc222b1%40bham.ac.uk
> <https://groups.google.com/d/msgid/ansible-project/883ac4d407a2407ebd6efb08ccc222b1%40bham.ac.uk?utm_medium=email&utm_source=footer>
> .
> 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/CAGH8rEzBGPooAezosFvdUatk_j46ykB0oTfewjmLSXKnbxdRVg%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAGH8rEzBGPooAezosFvdUatk_j46ykB0oTfewjmLSXKnbxdRVg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> 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/c710a66312c44ebfab05460581ac6f81%40bham.ac.uk
> <https://groups.google.com/d/msgid/ansible-project/c710a66312c44ebfab05460581ac6f81%40bham.ac.uk?utm_medium=email&utm_source=footer>
> .
> 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/CAGH8rEwtXevgvJmy-iwbWsisD61ws_AT0RpFv_w3OkkB5f62LQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to