Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Package Request] - ansible #57

Closed
lucab85 opened this issue Dec 5, 2021 · 35 comments
Closed

[Package Request] - ansible #57

lucab85 opened this issue Dec 5, 2021 · 35 comments
Labels
enhancement New feature or request packages Package request pending Will be addressed with an upcoming release
Milestone

Comments

@lucab85
Copy link

lucab85 commented Dec 5, 2021

What package is missing from Amazon Linux 2022? Please describe and include package name.
ansible
Package ansible is available in Fedora repository: https://src.fedoraproject.org/rpms/ansible

Is this an update to existing package or new package request?
new package request

Is this package available in Amazon Linux 2?
Yes, it's available as “ansible2” topic in the Amazon Extras Library repository and as "ansible" in EPEL.

Number of users impacted
N/A

I'm trying to install ansible in Amazon Linux 2022 but it's not available in the internal repository neither is possible to install EPEL.

# dnf install ansible
Last metadata expiration check: 0:18:12 ago on Sun 05 Dec 2021 12:51:14 PM UTC.
No match for argument: ansible
Error: Unable to find a match: ansible
# cat /etc/image-id 
image_name="al2022-ami"
image_version="2022"
image_arch="x86_64"
image_file="al2022-ami-2022.0.20211118.0-kernel-5.10-x86_64.xfs.gpt"
image_stamp="6548-3b38"
image_date="20211119011708"
recipe_name="al2022 ami"
recipe_id="a9b1edc7-a202-b09e-9e6e-3ad0-b75b-4a14-2961cce6"
# dnf repoinfo
Last metadata expiration check: 0:18:37 ago on Sun 05 Dec 2021 12:51:14 PM UTC.
Repo-id            : amazonlinux
Repo-name          : Amazon Linux 2022 repository
Repo-revision      : 1637274479
Repo-updated       : Thu 18 Nov 2021 10:27:59 PM UTC
Repo-pkgs          : 17,541
Repo-available-pkgs: 17,541
Repo-size          : 18 G
Repo-mirrors       : https://al2022-repos-eu-west-1-9761ab97.s3.dualstack.eu-west-1.amazonaws.com/core/mirrors/2022.0.20211118/x86_64/mirror.list
Repo-baseurl       : https://al2022-repos-eu-west-1-9761ab97.s3.dualstack.eu-west-1.amazonaws.com/core/guids/0e6a211c72356e21402b561f1623752c9bfcd8a88b18993d5477d5f94327f88a/x86_64/
                   : (0 more)
Repo-expire        : 172,800 second(s) (last: Sun 05 Dec 2021 12:51:14 PM UTC)
Repo-filename      : /etc/yum.repos.d/amazonlinux.repo
Total packages: 17,541
# yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
Last metadata expiration check: 0:15:29 ago on Sun 05 Dec 2021 12:51:14 PM UTC.
epel-release-latest-8.noarch.rpm                                    63 kB/s |  23 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides redhat-release >= 8 needed by epel-release-8-13.el8.noarch
(try to add '--skip-broken' to skip uninstallable packages)

Amazon Linux 2 via Amazon Extras Library

# cat /etc/image-id
image_name="amzn2-ami-kernel-5.10-hvm"
image_version="2"
image_arch="x86_64"
image_file="amzn2-ami-kernel-5.10-hvm-2.0.20211201.0-x86_64.xfs.gpt"
image_stamp="7143-c998"
image_date="20211201182203"
recipe_name="amzn2 ami"
recipe_id="d46c60d3-613d-8f76-a3cd-4476-405e-a3e2-088c7229"
# yum update
Failed to set locale, defaulting to C
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                  | 3.7 kB  00:00:00     
amzn2extra-docker                                                           | 3.0 kB  00:00:00     
amzn2extra-kernel-5.10                                                      | 3.0 kB  00:00:00     
No packages marked for update
# amazon-linux-extras install ansible2
Installing ansible
Failed to set locale, defaulting to C
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
Cleaning repos: amzn2-core amzn2extra-ansible2 amzn2extra-docker amzn2extra-kernel-5.10
17 metadata files removed
6 sqlite files removed
0 metadata files removed
Failed to set locale, defaulting to C
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
amzn2-core                                                                  | 3.7 kB  00:00:00     
amzn2extra-ansible2                                                         | 3.0 kB  00:00:00     
amzn2extra-docker                                                           | 3.0 kB  00:00:00     
amzn2extra-kernel-5.10                                                      | 3.0 kB  00:00:00     
(1/9): amzn2-core/2/x86_64/group_gz                                         | 2.5 kB  00:00:00     
(2/9): amzn2-core/2/x86_64/updateinfo                                       | 424 kB  00:00:00     
(3/9): amzn2extra-docker/2/x86_64/primary_db                                |  86 kB  00:00:00     
(4/9): amzn2extra-kernel-5.10/2/x86_64/updateinfo                           |   76 B  00:00:00     
(5/9): amzn2extra-kernel-5.10/2/x86_64/primary_db                           | 5.3 MB  00:00:00     
(6/9): amzn2extra-ansible2/2/x86_64/primary_db                              |  39 kB  00:00:00     
(7/9): amzn2extra-docker/2/x86_64/updateinfo                                | 4.7 kB  00:00:00     
(8/9): amzn2extra-ansible2/2/x86_64/updateinfo                              |   76 B  00:00:00     
(9/9): amzn2-core/2/x86_64/primary_db                                       |  58 MB  00:00:00     
Resolving Dependencies
--> Running transaction check
---> Package ansible.noarch 0:2.9.23-1.amzn2 will be installed
--> Processing Dependency: sshpass for package: ansible-2.9.23-1.amzn2.noarch
--> Processing Dependency: python-paramiko for package: ansible-2.9.23-1.amzn2.noarch
--> Processing Dependency: python-keyczar for package: ansible-2.9.23-1.amzn2.noarch
--> Processing Dependency: python-httplib2 for package: ansible-2.9.23-1.amzn2.noarch
--> Processing Dependency: python-crypto for package: ansible-2.9.23-1.amzn2.noarch
--> Running transaction check
---> Package python-keyczar.noarch 0:0.71c-2.amzn2 will be installed
---> Package python2-crypto.x86_64 0:2.6.1-13.amzn2.0.3 will be installed
--> Processing Dependency: libtomcrypt.so.1()(64bit) for package: python2-crypto-2.6.1-13.amzn2.0.3.x86_64
---> Package python2-httplib2.noarch 0:0.18.1-3.amzn2 will be installed
---> Package python2-paramiko.noarch 0:1.16.1-3.amzn2.0.2 will be installed
--> Processing Dependency: python2-ecdsa for package: python2-paramiko-1.16.1-3.amzn2.0.2.noarch
---> Package sshpass.x86_64 0:1.06-1.amzn2.0.1 will be installed
--> Running transaction check
---> Package libtomcrypt.x86_64 0:1.18.2-1.amzn2.0.1 will be installed
--> Processing Dependency: libtommath >= 1.0 for package: libtomcrypt-1.18.2-1.amzn2.0.1.x86_64
--> Processing Dependency: libtommath.so.1()(64bit) for package: libtomcrypt-1.18.2-1.amzn2.0.1.x86_64
---> Package python2-ecdsa.noarch 0:0.13.3-1.amzn2.0.1 will be installed
--> Running transaction check
---> Package libtommath.x86_64 0:1.0.1-4.amzn2.0.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================
 Package                 Arch          Version                    Repository                  Size
===================================================================================================
Installing:
 ansible                 noarch        2.9.23-1.amzn2             amzn2extra-ansible2         17 M
Installing for dependencies:
 libtomcrypt             x86_64        1.18.2-1.amzn2.0.1         amzn2extra-ansible2        409 k
 libtommath              x86_64        1.0.1-4.amzn2.0.1          amzn2extra-ansible2         36 k
 python-keyczar          noarch        0.71c-2.amzn2              amzn2extra-ansible2        218 k
 python2-crypto          x86_64        2.6.1-13.amzn2.0.3         amzn2extra-ansible2        476 k
 python2-ecdsa           noarch        0.13.3-1.amzn2.0.1         amzn2extra-ansible2         94 k
 python2-httplib2        noarch        0.18.1-3.amzn2             amzn2extra-ansible2        125 k
 python2-paramiko        noarch        1.16.1-3.amzn2.0.2         amzn2extra-ansible2        259 k
 sshpass                 x86_64        1.06-1.amzn2.0.1           amzn2extra-ansible2         22 k
Transaction Summary
===================================================================================================
Install  1 Package (+8 Dependent packages)
Total download size: 19 M
Installed size: 110 M
Is this ok [y/d/N]: y
Downloading packages:
(1/9): libtomcrypt-1.18.2-1.amzn2.0.1.x86_64.rpm                            | 409 kB  00:00:00     
(2/9): libtommath-1.0.1-4.amzn2.0.1.x86_64.rpm                              |  36 kB  00:00:00     
(3/9): python-keyczar-0.71c-2.amzn2.noarch.rpm                              | 218 kB  00:00:00     
(4/9): python2-crypto-2.6.1-13.amzn2.0.3.x86_64.rpm                         | 476 kB  00:00:00     
(5/9): ansible-2.9.23-1.amzn2.noarch.rpm                                    |  17 MB  00:00:00     
(6/9): python2-ecdsa-0.13.3-1.amzn2.0.1.noarch.rpm                          |  94 kB  00:00:00     
(7/9): python2-httplib2-0.18.1-3.amzn2.noarch.rpm                           | 125 kB  00:00:00     
(8/9): sshpass-1.06-1.amzn2.0.1.x86_64.rpm                                  |  22 kB  00:00:00     
(9/9): python2-paramiko-1.16.1-3.amzn2.0.2.noarch.rpm                       | 259 kB  00:00:00     
---------------------------------------------------------------------------------------------------
Total                                                               44 MB/s |  19 MB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : sshpass-1.06-1.amzn2.0.1.x86_64                                                 1/9 
  Installing : python2-httplib2-0.18.1-3.amzn2.noarch                                          2/9 
  Installing : libtommath-1.0.1-4.amzn2.0.1.x86_64                                             3/9 
  Installing : libtomcrypt-1.18.2-1.amzn2.0.1.x86_64                                           4/9 
  Installing : python2-crypto-2.6.1-13.amzn2.0.3.x86_64                                        5/9 
  Installing : python-keyczar-0.71c-2.amzn2.noarch                                             6/9 
  Installing : python2-ecdsa-0.13.3-1.amzn2.0.1.noarch                                         7/9 
  Installing : python2-paramiko-1.16.1-3.amzn2.0.2.noarch                                      8/9 
  Installing : ansible-2.9.23-1.amzn2.noarch                                                   9/9 
  Verifying  : python2-ecdsa-0.13.3-1.amzn2.0.1.noarch                                         1/9 
  Verifying  : libtommath-1.0.1-4.amzn2.0.1.x86_64                                             2/9 
  Verifying  : python2-crypto-2.6.1-13.amzn2.0.3.x86_64                                        3/9 
  Verifying  : ansible-2.9.23-1.amzn2.noarch                                                   4/9 
  Verifying  : python-keyczar-0.71c-2.amzn2.noarch                                             5/9 
  Verifying  : libtomcrypt-1.18.2-1.amzn2.0.1.x86_64                                           6/9 
  Verifying  : python2-paramiko-1.16.1-3.amzn2.0.2.noarch                                      7/9 
  Verifying  : python2-httplib2-0.18.1-3.amzn2.noarch                                          8/9 
  Verifying  : sshpass-1.06-1.amzn2.0.1.x86_64                                                 9/9
Installed:
  ansible.noarch 0:2.9.23-1.amzn2
Dependency Installed:
  libtomcrypt.x86_64 0:1.18.2-1.amzn2.0.1           libtommath.x86_64 0:1.0.1-4.amzn2.0.1          
  python-keyczar.noarch 0:0.71c-2.amzn2             python2-crypto.x86_64 0:2.6.1-13.amzn2.0.3     
  python2-ecdsa.noarch 0:0.13.3-1.amzn2.0.1         python2-httplib2.noarch 0:0.18.1-3.amzn2       
  python2-paramiko.noarch 0:1.16.1-3.amzn2.0.2      sshpass.x86_64 0:1.06-1.amzn2.0.1
Complete!
@liesenml
Copy link
Contributor

Hello, thank you for submitting your request! We review all requests on a weekly basis and will reply to this ticket by with our evaluation.

@driverpt
Copy link

Can't this be installed via pip?

@lucab85
Copy link
Author

lucab85 commented Dec 29, 2021

Amazon Linux 2 has the ansible package in the system. Most users prefer the system packages to pip

@driverpt
Copy link

What's wrong with pip install ansible?

@lucab85
Copy link
Author

lucab85 commented Dec 29, 2021

I see different implications from the supportability and technical point of view. From the supportability I see system packages directly maintained by the distribution, rather than pip community. From the technical point of view some system administrator simply don't want to manage all the python dependency via pip.
At the moment Ansible is supported by Amazon Linux 2, why isn't not in Amazon Linux 2022 (Preview)?

@driverpt
Copy link

Tbh I don't see why a Sys Admin would not want to install ansible via pip . pip install ansible=2.x.x if you want to pin the version. It's pretty much the same as installing as "System" Package.

Disclaimer: I used to be Sys Admin before becoming a Software Developer.

@lucab85
Copy link
Author

lucab85 commented Dec 29, 2021

As user I was surprised not to find ansible package out-of-the-box because it's included in Fedora, CentOS and RHEL.
This article spotlight some drawbacks and implications of pip:
https://opensource.com/article/19/4/managing-python-packages

@stewartsmith stewartsmith added enhancement New feature or request packages Package request labels Jan 3, 2022
@lucab85
Copy link
Author

lucab85 commented Jan 19, 2022

What about including ansible as part of the EPEL repository? It's already open at #49

@lkravi
Copy link

lkravi commented Apr 20, 2022

I experienced the following issue when I use ansible installed using python3 pip

ansible/ansible#62722

@lagerfeuer
Copy link

Any news here? I was surprised that this package is missing.

@ScottHull
Copy link

EPEL missing in Amazon Linux 2022 is a big problem. Inclusion of EPEL (preferably updated relative to Amazon Linux 2 as I think Amazon Linux 2 is running the older EPEL 7) would be greatly appreciated.

@billyjbryant
Copy link

Has there ever been a resolution to this? You still cannot install EPEL in AL2022 as you could in AL2, leaving a lot of packages without install candidates (such as ansible, but also others like htop).

@stewartsmith
Copy link
Member

htop is available in the core AL2022 repositories (at least in recent versions).

@b3rgman
Copy link

b3rgman commented Jan 4, 2023

Any update here? I am also surprised this is missing.

@chrislea
Copy link

Just another vote for having maintained Ansible packages available for AL2023.

@caili-zhang-sas
Copy link

caili-zhang-sas commented Mar 22, 2023

amazon-linux-extras is missing in AL 2023.
how can I install ansible?

$amazon-linux-extras install ansible2
-bash: amazon-linux-extras: command not found
$ cat /etc/image-id
image_name="al2023-ami"
image_version="2023"
image_arch="x86_64"
image_file="al2023-ami-2023.0.20230315.0-kernel-6.1-x86_64.xfs.gpt"
image_stamp="448c-c5b7"
image_date="20230313233759"
recipe_name="al2023 ami"
recipe_id="bcb3e25a-498c-a3f8-c35f-0903-d0b7-3394-21fcc6db"

@daniejstriata
Copy link

daniejstriata commented Mar 22, 2023

This has been referenced a couple of times:
#290
#236

AL2023 depreacted amazon-linux-extras for Stream modules.

@chrislea
Copy link

I will additionally point out that the AL2023 FAQ seems to indicate Ansible will be available.

Examples of changes in the minor releases include latest language runtimes, like PHP and other popular software packages such as Ansible and Docker.

@AnilKumar107
Copy link

How i can install ansible in linux2023 machine
when i try using the below commands it was not working

yum-config-manager --enable epel >> ENABLE Extra Package Enterprise Linux (EPEL) Repo
amazon-linux-extras install ansible2 --- for ansible installation
Could you please suggest

@daniejstriata
Copy link

There is no EPEL for AL2023 since AL2023 is based on Fedora and not RHEL.

@nmeyerhans
Copy link
Contributor

We'll be adding ansible in an upcoming AL2023 release. I don't have an ETA yet.

@AnilKumar107
Copy link

What is the alternative approach to install ansible on AL2023
Could please suggest

@driverpt
Copy link

pip install ansible?

@AnilKumar107
Copy link

I have installed the ansible by using pip
But how i can use the host file to include the groups to write the playbooks. I mean where i can find that.
Earlier it was installed at path cd /etc/ansible / there i can able to see the hosts.

@AnilKumar107
Copy link

With Pip I have installed Ansible and it was working fine
Thanks

@amankumar4all
Copy link

pip install ansible
is not showing /etc/ansible/hosts file.

@makmiller-clgx
Copy link

I ran pip install ansible, create and add localhost to /etc/ansible/hosts. It will be great to see Ansible as part of the package or an alternative repository to EPEL or amazon-linux-extras.

bash script
#!/bin/bash
pip install ansible
sudo mkdir -p /etc/ansible
sudo touch /etc/ansible/hosts
sudo sh -c 'echo "localhost" >> /etc/ansible/hosts'

@AnilKumar107
Copy link

AnilKumar107 commented May 9, 2023 via email

@makmiller-clgx
Copy link

makmiller-clgx commented May 9, 2023

@AnilKumar107
Are you able to see the version of Ansible? Command: ansible --version
Command: ansible-playbook gives a list of Ansible options. What happens if you close the space between "ansible -playbook"?

@AnilKumar107
Copy link

AnilKumar107 commented May 10, 2023 via email

@curlzip
Copy link

curlzip commented May 12, 2023

Which command are you running to call playbook from host to node?
Have you added the node in the group?

@AnilKumar107
Copy link

AnilKumar107 commented May 12, 2023 via email

@curlzip
Copy link

curlzip commented May 15, 2023

use with ansible-playbook -i /etc/ansible/mainplaybook.yml

@nmeyerhans nmeyerhans added the pending Will be addressed with an upcoming release label Jun 2, 2023
@aaronk1
Copy link

aaronk1 commented Jul 24, 2023

The AL2 packages were often outdated by months. It's probably best Amazon doesn't maintain a package for ansible.

@stewartsmith
Copy link
Member

We have added Ansible packages in AL2023.2, as mentioned in the release notes for the first AL2023.2 release.

bash-5.2# dnf search ansible
Last metadata expiration check: 0:13:12 ago on Fri Sep 22 22:03:39 2023.
=================================================================================================== Name & Summary Matched: ansible ===================================================================================================
ansible.noarch : Curated set of Ansible collections included in addition to ansible-core
ansible-packaging.noarch : RPM packaging macros and generators for Ansible collections
ansible-packaging-tests.noarch : Dependencies for Ansible collection package unit tests
ansible-srpm-macros.noarch : SRPM stage RPM packaging macros for Ansible collections
ansible-test.aarch64 : Tool for testing ansible plugin and module code
======================================================================================================== Name Matched: ansible ========================================================================================================
ansible-core.aarch64 : SSH-based configuration management, deployment, and task execution system

@stewartsmith stewartsmith added this to the AL2023.2 milestone Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request packages Package request pending Will be addressed with an upcoming release
Projects
Development

No branches or pull requests