After adding your configuration with aws configure, when you try to connect to AWS the following error occurs [ansible@awsclient ~]$ aws s3 ls An error occurred (RequestTimeTooSkewed) when calling the ListBuckets operation: The difference between the request time and the current time is too large. Solution: Install and Configure NTP client for your AWS Client …
CentOS Alternatives
CentOS (Community Enterprise Operating System) is the Project affiliated with RedHat, initially released in the month of May 2004 under FOSS (Free and Open-Source Software) & General Public License. CentOS released the versions according to the Red Hat Enterprise Linux (RHEL) life cycle which is Commercial under RedHat EULA (End User License Agreement). The Presence…
Amazon Linux On-Premise VM
Use the Amazon Linux 2 virtual machine (VM) images for on-premises development and testing. These images are available for use on the following virtualization platforms: VMWare, KVM, VirtualBox (Oracle VM), Microsoft Hyper-V https://cdn.amazonlinux.com/os-images/2.0.20201111.0/vmware/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/kvm/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/virtualbox/ https://cdn.amazonlinux.com/os-images/2.0.20201111.0/hyperv/ How to Install Amazon Linux on On-Premises VMWare 1. Download the VM Image and upload to VM Datastore: For…
Ansible Vault
The ansible vault allows file encryption and requires a password to unencrypt Command: ansible-vault encrypt <file> The ansible-vault rekey command will allow you to re–encrypt a file and reset the password To supply the vault password during play execution, you must use either of the –ask-vault-password or –ask-vault-file flags Ansible 2.4 introduces the –vault-id feature…
Ansible Parallelism
It is possible to control the number of hosts acted upon at once tie by Ansible. The Ansible process will create forks to execute actions in parallel. Parallelism is the word used for Ansible default ability to interact with multiple hosts at the same time. The parallel processes spawned by Ansible are known as forks…
Ansible Galaxy
Ansible Galaxy (https://galaxy.ansible.com/) is essentially a large public repository for sharing and downloading community developed ansible roles. Roles ship with readmes detailing role use and available variables. Galaxy contains a large number of roles that are constantly evolving and increasing. Galaxy can use git allowing for other role sources such as GitHub. The ansible-galaxy utility…
Ansible Roles
Roles The default location for roles is /etc/ansible/roles Roles provide a way to automatically load certain vars_files, tasks and handlers based on a known file structure Roles expect a particular directory structure Directories not being used may be excluded Each directory in use contains a main.yml with relevant content Roles Directories Tasks – Contains the…
Ansible Variables and Templates
Variables can contain letters, numbers and underscore, but must begin with a letter Can be stored as dictionaries which map keys to values. Dictionary variables can be refenced using bracket notation or dot notation, ex: dictionary_name [‘filed’] or dictionary.field Variables stored as a list (array) may be accessed by putting the element number in brackets:…
Ansible Error Handling
ignore_errors – Ignore any errors force_handlers – Force previously notified handler to run failed_when – Define failure conditions changed_when – Override the “changed” status result any_errors_fatal – Abort an entire play if any task fails block / rescue / always – Implement a block in order to logically group tasks and provide error handling
CentOS/RHEL 8 Boot Loader File
Grub Parameter File : /boot/grub2/grubenv # GRUB Environment Block saved_entry=82c1b57e69f343e28fe48516f70a9866-4.18.0-193.28.1.el8_2.x86_64 kernelopts=root=/dev/mapper/cl-root ro console=ttyS0,115200n8 no_timer_nvme_core.io_timeout=4294967295 nvme_core.max_retries=10 crashkernel=auto resume=/dev/mapper/cl-swap rd.lvm.lv=cl/root rd.lvm.lv=cl/swap boot_success=0 boot_indeterminate=0 ON BIOS (Basic Input/Output System) Systems : /boot/grub2/grub.cfg On Systems with UEFI (Unified Extensible Firmware Interface) : /boot/efi/EFI/centos/grub.cfg OR /boot/efi/EFI/rhel/grub.cfg To Generate Grub config file : grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg