If you are using Ansible to configure chrony which is a versatile implementation of the Network Time Protocol (NTP), you may want to take a look at the simple script below
If you are doing a dnf install on hdf5 packages, you will notice errors like the one below
nothing provides libsz.so.2()(64bit) needed by hdf5-1.10.5-4.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
To resolve the issue, you will need to install and enable PowerTools
Step 1: Install DNF plugins package
dnf install dnf-plugins-core
Step 2: Install EPEL
The reason is that some software from its source code requires some dependencies that are available in EPEL
dnf install epel-release
Step 3: Enable PowerTools repository on Rocky Linux 8
ansible.cfg is used to customize the behavior of Ansible and define various settings and options for managing infrastructure and deploying applications. Inside you ansible_cluster. Create an ansible.cfg
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
You can resolve the issue by installing the xcb package
# dnf install xcb*
Last metadata expiration check: 1:39:51 ago on Tue 09 May 2023 11:47:04 AM +08.
Package xcb-util-0.4.0-10.el8.x86_64 is already installed.
Dependencies resolved.
====================================================================================================================================================================================================================
Package Architecture Version Repository Size
====================================================================================================================================================================================================================
Installing:
xcb-util-image x86_64 0.4.0-9.el8 appstream 20 k
xcb-util-keysyms x86_64 0.4.0-7.el8 appstream 15 k
xcb-util-renderutil x86_64 0.3.9-10.el8 appstream 18 k
xcb-util-wm x86_64 0.4.1-12.el8 appstream 31 k
Transaction Summary
====================================================================================================================================================================================================================
Install 4 Packages
Total download size: 83 k
Installed size: 134 k
Is this ok [y/N]: y
$ dnf install git
================================================================================
Package Architecture Version Repository Size
================================================================================
Upgrading:
git x86_64 2.31.1-3.el8_7 appstream 160 k
git-core x86_64 2.31.1-3.el8_7 appstream 4.8 M
git-core-doc noarch 2.31.1-3.el8_7 appstream 2.6 M
perl-Git noarch 2.31.1-3.el8_7 appstream 77 k
Transaction Summary
================================================================================
Upgrade 4 Packages
Total download size: 7.6 M
Is this ok [y/N]:
At github.com,
Do sign up for an account if you have not done so. At github.com, create a new Repository and give it a new name. Look at the pix for more information
Once you have created the repository, you should have something like this
At the profile Icon, click settings, you should enter the page where “SSH and GPG Keys” are present
Click the new SSH icon
Type the name of the key (Your Choice) and copy your ssh public keys into the key box. This can be found at ~/.ssh/id_rsa.pub or ~/.ssh/ed25519.pub. Copy the whole string and paste into the key box
Git Clone the Repository URL
Go back to your repository and copy the code
Next
At the Linux Server….
git clone the URL
$ git clone git@github.com:XXXXXXXXXX/ansible_cluster.git
Cloning into 'ansible_cluster'...
Warning: Permanently added 'github.com,20.205.243.166' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (3/3), done.
At your directory go to the ansible_cluster folder, you should be able to see the README.md file which is same as your git repository.
$ cd ansible_cluster
$ cat README.md
# ansible_cluster
Setting some basic git information like user name and email address
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: README.md
no changes added to commit (use "git add" and/or "git commit -a")
Add the changes, coming and pushing the changes to git
$ git add README.md
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: README.md
$ git commit -m "Updated Readme file on 8/5/2023"
[main 06583ec] Updated Readme file on 8/5/2023
1 file changed, 3 insertions(+), 1 deletion(-)
$ git push origin main
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Writing objects: 100% (3/3), 308 bytes | 102.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
To github.com:kittycooldew/ansible_cluster.git
5524665..62b9b0a main -> main