``` 1.) register Redhat subscription manager using root subscription-manager register username : tsmc_ismd1 password : 1XXXXXXX The system has been registered with ID: ea38cd90-3fc8-4042-92e1-273c2b03d0d1 The registered system name is: repo.ansi.example.com 2.) set a role for your system [root@repo ~]# subscription-manager role --set="Red Hat Enterprise Linux Server" role set to "Red Hat Enterprise Linux Server". 3.) find your Red Hat ansible Engine subscrition subscription-manager list --available |grep -E 'Pool ID|Name' Subscription Name: Red Hat Beta Access Pool ID: 2c9280817bcaabee017bf60a26a92133 Subscription Name: Red Hat Developer Subscription for Individuals Pool ID: 2c9280817d76f32c017e4ced7d8524c5 Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f9895e18399a015e186e428c42db Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f99a74d0f5f50174d8d5ed6f790c Subscription Name: Red Hat Enterprise Linux Extended Life Cycle Support (Physical or Virtual Nodes) Pool ID: 8a85f99a74d0f5f50174d8d5ef5f790e Subscription Name: Red Hat Developer Subscription for Individuals Pool ID: 8a85f99a7acf294d017af62a17f94c79 Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f99a7c18bfe3017c31c2b06d0ecd Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f99b74d0f71e0174d8d6002669bf Subscription Name: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes) Pool ID: 8a85f99b74d0f71e0174d8d6041669c1 Subscription Name: High Availability Pool ID: 8a85f99b7db4828b017de691b6143590 Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f99b7db4828b017de691c6323592 Subscription Name: Red Hat Developer Subscription for Individuals Pool ID: 8a85f99c7c710ef1017c9540fd8f4471 Subscription Name: High Availability Pool ID: 8a85f99c7db48285017de5175eaf0c75 Subscription Name: Red Hat Enterprise Linux Server Entry Level, Self-support Pool ID: 8a85f99f74d0fbc00174dc831d41204e Subscription Name: Red Hat JBoss Enterprise Application Platform, 16-Core Premium Pool ID: 8a85f99f74d0fbc00174dc831dd02050 Subscription Name: High Availability Pool ID: 8a85f99f7acf230d017b198fa1893a3f Subscription Name: Red Hat Developer Subscription for Individuals Pool ID: 8a85f99f7b54dac0017b862f01c0151b Subscription Name: Red Hat Developer Subscription for Individuals Pool ID: 8a85f99f7ed94226017f1f79f44c1357 4.) Use the pool ID of the subscription too attach the pool to the system [root@repo ~]# subscription-manager attach --pool=8a85f99b74d0f71e0174d8d6041669c1 Successfully attached a subscription for: Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes) 5.) enable the Red Hat ansible engine repository subscription-manager repos --enable ansible-2-for-rhel-8-x86_64-rpms 6.) install Redhat ansible engine [root@control ~]# yum -y install ansible Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 5.6 MB/s | 44 MB 00:07 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 6.2 MB/s | 48 MB 00:07 Last metadata expiration check: 0:00:07 ago on Sat 18 Jun 2022 05:53:12 AM UTC. Dependencies resolved. ======================================================================================================================================================================================================================================== Package Arch Version Repository Size ======================================================================================================================================================================================================================================== Installing: ansible noarch 5.4.0-2.el8 epel 40 M Installing dependencies: perl-Error noarch 1:0.17025-2.el8 apps 46 k perl-TermReadKey x86_64 2.37-7.el8 apps 40 k python38-idna noarch 2.8-6.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 87 k python38-markupsafe x86_64 1.1.1-6.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 36 k python38-pycparser noarch 2.19-3.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 128 k python38-pytz noarch 2019.3-3.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 55 k python38-cryptography x86_64 2.8-3.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 553 k python38-cffi x86_64 1.13.2-3.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 248 k python38 x86_64 3.8.6-3.module+el8.4.0+9579+e9717e18 rhel-8-for-x86_64-appstream-rpms 79 k python38-six noarch 1.12.0-10.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 39 k python38-asn1crypto noarch 1.2.0-3.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 184 k python38-setuptools noarch 41.6.0-4.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 668 k python38-ply noarch 3.11-10.module+el8.4.0+9579+e9717e18 rhel-8-for-x86_64-appstream-rpms 112 k python38-libs x86_64 3.8.6-3.module+el8.4.0+9579+e9717e18 rhel-8-for-x86_64-appstream-rpms 8.3 M python38-jinja2 noarch 2.10.3-5.module+el8.5.0+10542+ba057329 rhel-8-for-x86_64-appstream-rpms 263 k python38-setuptools-wheel noarch 41.6.0-5.module+el8.5.0+12205+a865257a rhel-8-for-x86_64-appstream-rpms 304 k python38-babel noarch 2.7.0-11.module+el8.5.0+11015+9c1c7c42 rhel-8-for-x86_64-appstream-rpms 5.9 M python38-pyyaml x86_64 5.4.1-1.module+el8.5.0+10721+14d8e0d5 rhel-8-for-x86_64-appstream-rpms 212 k ansible-core x86_64 2.12.2-3.1.el8 rhel-8-for-x86_64-appstream-rpms 2.4 M python38-resolvelib noarch 0.5.4-5.el8 rhel-8-for-x86_64-appstream-rpms 30 k git-core-doc noarch 2.31.1-2.el8 rhel-8-for-x86_64-appstream-rpms 2.6 M python38-pip-wheel noarch 19.3.1-5.module+el8.6.0+13002+70cfc74a rhel-8-for-x86_64-appstream-rpms 1.0 M perl-Git noarch 2.31.1-2.el8 rhel-8-for-x86_64-appstream-rpms 78 k git x86_64 2.31.1-2.el8 rhel-8-for-x86_64-appstream-rpms 161 k git-core x86_64 2.31.1-2.el8 rhel-8-for-x86_64-appstream-rpms 4.7 M Installing weak dependencies: python3-jmespath noarch 0.9.0-11.el8 apps 45 k python38-pip noarch 19.3.1-1.module+el8.4.0+8888+89bc7e79 rhel-8-for-x86_64-appstream-rpms 1.9 M Enabling module streams: python38 3.8 Transaction Summary ======================================================================================================================================================================================================================================== Install 28 Packages Total download size: 70 M Installed size: 427 M Is this ok [y/N]: y Downloading Packages: (1/28): perl-TermReadKey-2.37-7.el8.x86_64.rpm 9.5 MB/s | 40 kB 00:00 (2/28): perl-Error-0.17025-2.el8.noarch.rpm 8.5 MB/s | 46 kB 00:00 (3/28): python3-jmespath-0.9.0-11.el8.noarch.rpm 33 MB/s | 45 kB 00:00 (4/28): python38-markupsafe-1.1.1-6.module+el8.4.0+8888+89bc7e79.x86_64.rpm 14 kB/s | 36 kB 00:02 (5/28): python38-idna-2.8-6.module+el8.4.0+8888+89bc7e79.noarch.rpm 29 kB/s | 87 kB 00:03 (6/28): python38-pycparser-2.19-3.module+el8.4.0+8888+89bc7e79.noarch.rpm 63 kB/s | 128 kB 00:02 (7/28): python38-pip-19.3.1-1.module+el8.4.0+8888+89bc7e79.noarch.rpm 666 kB/s | 1.9 MB 00:02 (8/28): python38-pytz-2019.3-3.module+el8.4.0+8888+89bc7e79.noarch.rpm 28 kB/s | 55 kB 00:01 (9/28): python38-cryptography-2.8-3.module+el8.4.0+8888+89bc7e79.x86_64.rpm 244 kB/s | 553 kB 00:02 (10/28): python38-cffi-1.13.2-3.module+el8.4.0+8888+89bc7e79.x86_64.rpm 114 kB/s | 248 kB 00:02 (11/28): python38-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64.rpm 39 kB/s | 79 kB 00:01 (12/28): python38-six-1.12.0-10.module+el8.4.0+8888+89bc7e79.noarch.rpm 20 kB/s | 39 kB 00:01 (13/28): python38-asn1crypto-1.2.0-3.module+el8.4.0+8888+89bc7e79.noarch.rpm 84 kB/s | 184 kB 00:02 (14/28): python38-setuptools-41.6.0-4.module+el8.4.0+8888+89bc7e79.noarch.rpm 265 kB/s | 668 kB 00:02 (15/28): python38-ply-3.11-10.module+el8.4.0+9579+e9717e18.noarch.rpm 51 kB/s | 112 kB 00:02 (16/28): python38-jinja2-2.10.3-5.module+el8.5.0+10542+ba057329.noarch.rpm 110 kB/s | 263 kB 00:02 (17/28): python38-libs-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64.rpm 2.2 MB/s | 8.3 MB 00:03 (18/28): ansible-5.4.0-2.el8.noarch.rpm 2.1 MB/s | 40 MB 00:18 (19/28): python38-setuptools-wheel-41.6.0-5.module+el8.5.0+12205+a865257a.noarch.rpm 126 kB/s | 304 kB 00:02 (20/28): ansible-core-2.12.2-3.1.el8.x86_64.rpm 4.2 MB/s | 2.4 MB 00:00 (21/28): python38-resolvelib-0.5.4-5.el8.noarch.rpm 111 kB/s | 30 kB 00:00 (22/28): python38-babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.noarch.rpm 1.7 MB/s | 5.9 MB 00:03 (23/28): git-core-doc-2.31.1-2.el8.noarch.rpm 4.3 MB/s | 2.6 MB 00:00 (24/28): python38-pyyaml-5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64.rpm 91 kB/s | 212 kB 00:02 (25/28): perl-Git-2.31.1-2.el8.noarch.rpm 173 kB/s | 78 kB 00:00 (26/28): git-2.31.1-2.el8.x86_64.rpm 412 kB/s | 161 kB 00:00 (27/28): git-core-2.31.1-2.el8.x86_64.rpm 6.4 MB/s | 4.7 MB 00:00 (28/28): python38-pip-wheel-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch.rpm 445 kB/s | 1.0 MB 00:02 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.9 MB/s | 70 MB 00:24 warning: /var/cache/dnf/epel-fafd94c310c51e1e/packages/ansible-5.4.0-2.el8.noarch.rpm: Header V4 RSA/SHA256 Signature, key ID 2f86d6a1: NOKEY Extra Packages for Enterprise Linux 8 - x86_64 1.6 MB/s | 1.6 kB 00:00 Importing GPG key 0x2F86D6A1: Userid : "Fedora EPEL (8) <epel@fedoraproject.org>" Fingerprint: 94E2 79EB 8D8F 25B2 1810 ADF1 21EA 45AB 2F86 D6A1 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Installing : git-core-2.31.1-2.el8.x86_64 1/28 Installing : git-core-doc-2.31.1-2.el8.noarch 2/28 Installing : python38-pip-wheel-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch 3/28 Installing : python38-setuptools-wheel-41.6.0-5.module+el8.5.0+12205+a865257a.noarch 4/28 Installing : python38-libs-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 5/28 Installing : python38-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 6/28 Running scriptlet: python38-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 6/28 Installing : python38-setuptools-41.6.0-4.module+el8.4.0+8888+89bc7e79.noarch 7/28 Running scriptlet: python38-setuptools-41.6.0-4.module+el8.4.0+8888+89bc7e79.noarch 7/28 Installing : python38-pip-19.3.1-1.module+el8.4.0+8888+89bc7e79.noarch 8/28 Running scriptlet: python38-pip-19.3.1-1.module+el8.4.0+8888+89bc7e79.noarch 8/28 Installing : python38-six-1.12.0-10.module+el8.4.0+8888+89bc7e79.noarch 9/28 Installing : python38-idna-2.8-6.module+el8.4.0+8888+89bc7e79.noarch 10/28 Installing : python38-markupsafe-1.1.1-6.module+el8.4.0+8888+89bc7e79.x86_64 11/28 Installing : python38-pytz-2019.3-3.module+el8.4.0+8888+89bc7e79.noarch 12/28 Installing : python38-babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.noarch 13/28 Installing : python38-jinja2-2.10.3-5.module+el8.5.0+10542+ba057329.noarch 14/28 Installing : python38-asn1crypto-1.2.0-3.module+el8.4.0+8888+89bc7e79.noarch 15/28 Installing : python38-ply-3.11-10.module+el8.4.0+9579+e9717e18.noarch 16/28 Installing : python38-pycparser-2.19-3.module+el8.4.0+8888+89bc7e79.noarch 17/28 Installing : python38-cffi-1.13.2-3.module+el8.4.0+8888+89bc7e79.x86_64 18/28 Installing : python38-cryptography-2.8-3.module+el8.4.0+8888+89bc7e79.x86_64 19/28 Installing : python38-pyyaml-5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64 20/28 Installing : python38-resolvelib-0.5.4-5.el8.noarch 21/28 Installing : python3-jmespath-0.9.0-11.el8.noarch 22/28 Installing : perl-TermReadKey-2.37-7.el8.x86_64 23/28 Installing : perl-Error-1:0.17025-2.el8.noarch 24/28 Installing : git-2.31.1-2.el8.x86_64 25/28 Installing : perl-Git-2.31.1-2.el8.noarch 26/28 Installing : ansible-core-2.12.2-3.1.el8.x86_64 27/28 Installing : ansible-5.4.0-2.el8.noarch 28/28 Running scriptlet: ansible-5.4.0-2.el8.noarch 28/28 Verifying : ansible-5.4.0-2.el8.noarch 1/28 Verifying : perl-Error-1:0.17025-2.el8.noarch 2/28 Verifying : perl-TermReadKey-2.37-7.el8.x86_64 3/28 Verifying : python3-jmespath-0.9.0-11.el8.noarch 4/28 Verifying : python38-idna-2.8-6.module+el8.4.0+8888+89bc7e79.noarch 5/28 Verifying : python38-markupsafe-1.1.1-6.module+el8.4.0+8888+89bc7e79.x86_64 6/28 Verifying : python38-pycparser-2.19-3.module+el8.4.0+8888+89bc7e79.noarch 7/28 Verifying : python38-pip-19.3.1-1.module+el8.4.0+8888+89bc7e79.noarch 8/28 Verifying : python38-pytz-2019.3-3.module+el8.4.0+8888+89bc7e79.noarch 9/28 Verifying : python38-cryptography-2.8-3.module+el8.4.0+8888+89bc7e79.x86_64 10/28 Verifying : python38-cffi-1.13.2-3.module+el8.4.0+8888+89bc7e79.x86_64 11/28 Verifying : python38-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 12/28 Verifying : python38-six-1.12.0-10.module+el8.4.0+8888+89bc7e79.noarch 13/28 Verifying : python38-asn1crypto-1.2.0-3.module+el8.4.0+8888+89bc7e79.noarch 14/28 Verifying : python38-setuptools-41.6.0-4.module+el8.4.0+8888+89bc7e79.noarch 15/28 Verifying : python38-ply-3.11-10.module+el8.4.0+9579+e9717e18.noarch 16/28 Verifying : python38-libs-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 17/28 Verifying : python38-jinja2-2.10.3-5.module+el8.5.0+10542+ba057329.noarch 18/28 Verifying : python38-setuptools-wheel-41.6.0-5.module+el8.5.0+12205+a865257a.noarch 19/28 Verifying : python38-babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.noarch 20/28 Verifying : python38-pyyaml-5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64 21/28 Verifying : ansible-core-2.12.2-3.1.el8.x86_64 22/28 Verifying : python38-resolvelib-0.5.4-5.el8.noarch 23/28 Verifying : git-core-doc-2.31.1-2.el8.noarch 24/28 Verifying : python38-pip-wheel-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch 25/28 Verifying : perl-Git-2.31.1-2.el8.noarch 26/28 Verifying : git-2.31.1-2.el8.x86_64 27/28 Verifying : git-core-2.31.1-2.el8.x86_64 28/28 Installed products updated. Installed: ansible-5.4.0-2.el8.noarch python3-jmespath-0.9.0-11.el8.noarch python38-pip-19.3.1-1.module+el8.4.0+8888+89bc7e79.noarch perl-Error-1:0.17025-2.el8.noarch perl-TermReadKey-2.37-7.el8.x86_64 python38-idna-2.8-6.module+el8.4.0+8888+89bc7e79.noarch python38-markupsafe-1.1.1-6.module+el8.4.0+8888+89bc7e79.x86_64 python38-pycparser-2.19-3.module+el8.4.0+8888+89bc7e79.noarch python38-pytz-2019.3-3.module+el8.4.0+8888+89bc7e79.noarch python38-cryptography-2.8-3.module+el8.4.0+8888+89bc7e79.x86_64 python38-cffi-1.13.2-3.module+el8.4.0+8888+89bc7e79.x86_64 python38-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 python38-six-1.12.0-10.module+el8.4.0+8888+89bc7e79.noarch python38-asn1crypto-1.2.0-3.module+el8.4.0+8888+89bc7e79.noarch python38-setuptools-41.6.0-4.module+el8.4.0+8888+89bc7e79.noarch python38-ply-3.11-10.module+el8.4.0+9579+e9717e18.noarch python38-libs-3.8.6-3.module+el8.4.0+9579+e9717e18.x86_64 python38-jinja2-2.10.3-5.module+el8.5.0+10542+ba057329.noarch python38-setuptools-wheel-41.6.0-5.module+el8.5.0+12205+a865257a.noarch python38-babel-2.7.0-11.module+el8.5.0+11015+9c1c7c42.noarch python38-pyyaml-5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64 ansible-core-2.12.2-3.1.el8.x86_64 python38-resolvelib-0.5.4-5.el8.noarch git-core-doc-2.31.1-2.el8.noarch python38-pip-wheel-19.3.1-5.module+el8.6.0+13002+70cfc74a.noarch perl-Git-2.31.1-2.el8.noarch git-2.31.1-2.el8.x86_64 git-core-2.31.1-2.el8.x86_64 yum -y install tree nc bash-completion # Also you can now have a more complete file by including existing plugins: ansible-config init --disabled -t all > ansible.cfg ```