On Mon, Dec 19, 2022 at 8:11 AM sathish subramani
<ssathish0...@gmail.com> wrote:
>
> Hi Team,
>
> We have checked ansible-core for RHEL8 comes from  
> ansible-automation-platform Repo which is not part of our default 
> subscription.
>
> So we have decided to build the ansible-core 2.14.1 RPM for our deliverable 
> from Opensource.

Check my notes at https://github.com/nkadel/ansiblerepo/README.md
ansible-core 2.14 requires python 3.8 or later, and a small stack of
dependencies. My notes there use "mock" to build clean RPMs in a clean
locally generated environment. I also have tools there to build the
ansible package as well, and a set of individual ansible_collections
modules from Fedora.


> Please let us know procedure to do the same.
>
> we have tried below procedure as per documentation it doesn't work.
>
> $ git clone https://github.com/ansible/ansible.git
> $ cd ./ansible
> $ make rpm

Yeah, that's not going to work due to the missing python RPM
dependencies and the lack of a local "make rpm" seutp.


> Error Message:
>
> [root@node1 ansible]# make rpm
>
> make: *** No rule to make target 'rpm'.  Stop.
>
>
> Thanks and Regards,
> S Sathish
>
> On Saturday, December 17, 2022 at 9:04:23 AM UTC+5:30 nka...@gmail.com wrote:
>>
>> On Fri, Dec 16, 2022 at 6:52 AM sathish subramani
>> <ssathi...@gmail.com> wrote:
>> >
>> > Hi Team,
>> >
>> > we are using RHEL 8 , you have mentioned to use the upstream RPMs for 
>> > ansible-core instead of build the RPMs.
>> >
>> > can you provide link where we can use upstream RPMs for 
>> > ansisble-core.2.14.1 version.
>> >
>> > Thanks and Regards,
>> > S Sathish
>>
>> On CentOS, it is:
>>
>> sudo dnf install -y ansible-core
>>
>> It's in the "appstream" channel. I don't like the RHEL channels, but I
>> believe that one is available by default? If not, you may have to use
>> "subscription-manager" to enable the channel.
>>
>> Nico Kadel-Garcia
>>
>>
>> > On Friday, December 16, 2022 at 5:13:17 PM UTC+5:30 nka...@gmail.com wrote:
>> >>
>> >> On Thu, Dec 15, 2022 at 1:48 AM sathish subramani
>> >> <ssathi...@gmail.com> wrote:
>> >> >
>> >> > Hi Team,
>> >> >
>> >> > In older version of ansible till 2.9 we download ansible source tar 
>> >> > from below Ansible URL
>> >> >
>> >> > URL: https://releases.ansible.com/ansible/
>> >> >
>> >> > Step Followed:
>> >> >
>> >> > tar xvf ansible-2.8.3.tar.gz
>> >> >
>> >> > cp ansible-2.8.3.tar.gz /root/rpmbuild/SOURCES/
>> >>
>> >> Stop. Grab my tools from https:/github.com/nkadel/ansiblerepo/ , and
>> >> work from those for RHEL 7. If you have RHEL 8 or 9, use the upstream
>> >> RPMs for ansible-core instead, and do *not* try to build the
>> >> mislabeled ansible collections package, now published as "ansible",
>> >> without reading my .spec files.
>> >>
>> >> The split of ansible to "ansible-core", which actually contains usable
>> >> ansible binaries and tools, and the mislabeled and very large
>> >> "ansible" tarball built of more than 100 distinct ansible collections
>> >> modules from many distinct third parties has been a source of agony
>> >> for ansible users since it was first published. You need
>> >> "ansible-core". Most of us have no use for the "ansible" package at
>> >> all now, since its more than 100 modules can be installed more safely
>> >> and far more compactly by only installing them if or when needed, and
>> >> updated independently fro meach other.
>> >>
>> >> I publish RPM building tools for RHEL 7, 8, 9, and Fedora over at
>> >> https://github.com/nkadel/ansiblerepo/ . If you have RHEL 8 or later,
>> >> the published RPMs from Red Hat for ansible-coreare nearly as recent,
>> >> but there is no upstream published "ansible" RPM for RHEL. You don't
>> >> need it, and you probably don't want it, but my repo includes for
>> >> building as recent a version as your RHEL can handle if you need. RHEL
>> >> 7 has a default of python 3.6 maximum. RHEL 8 and later have python
>> >> 3.10 available, and can use that for building current ansible-core and
>> >> ansible releases.
>> >
>> > --
>> > 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 ansible-proje...@googlegroups.com.
>> > To view this discussion on the web visit 
>> > https://groups.google.com/d/msgid/ansible-project/eb194da9-778f-4e46-9327-844663dd040fn%40googlegroups.com.
>
> --
> 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 ansible-project+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-project/171c5c2d-e292-407f-aedf-04949a4e870an%40googlegroups.com.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAOCN9rwwuubdVMrp2bLxffmCK%2BTfdMarTfHg3WeyTK_rGv9wEg%40mail.gmail.com.

Reply via email to