Posts

Ansible Installation

Image
Once you have compared and weighed your options and decided to go for Ansible, the next step is to have it installed on your system. We will go through the steps of installation in different   Linux   distributions, the most popular ones, in the next small tutorial. Install Ansible on Centos/RedHat systems Step 1)  Install EPEL repo [root@ansible-server ~]# sudo yum install epel-release Step 2)  Install ansible package [root@ansible-server ~]# sudo yum install -y ansible Install ansible on Ubuntu/Debian systems Step 1)  Perform an update to the packages $ sudo apt update Step 2)  Install the software-properties-common package $ sudo apt install software-properties-common Step 3)  Install ansible personal package archive $ sudo apt-add-repository ppa:ansible/ansible Step 4)  Install ansible $ sudo apt update $ sudo apt install ansible

Introduction of Ansible

  Ansible   is an open source automation and orchestration tool for software provisioning, configuration management, and software deployment. Ansible can easily run and configure Unix-like systems as well as Windows systems to provide infrastructure as code. It contains its own declarative programming language for system configuration and management. Ansible is popular for its simplicity of installation, ease of use in what concerns the connectivity to clients, its lack of agent for Ansible clients and the multitude of skills. It functions by connecting via  SSH  to the clients, so it doesn’t need a special agent on the client-side, and by pushing modules to the clients, the modules are then executed locally on the client-side and the output is pushed back to the Ansible server. Since it uses SSH, it can very easily connect to clients using SSH-Keys, simplifying though the whole process. Client details, like hostnames or IP addresses and SSH ports, are stored in file...

OpenSSH key management

  Most authentication in Windows environments is done with a username-password pair, which works well for systems that share a common domain. When working across domains, such as between on-premises and cloud-hosted systems, it becomes vulnerable to brute force intrusions. By comparison, Linux environments commonly use public-key/private-key pairs to drive authentication which doesn't require the use of guessable passwords. OpenSSH includes tools to help support this, specifically: ssh-keygen  for generating secure keys ssh-agent  and  ssh-add  for securely storing private keys scp  and  sftp  to securely copy public key files during initial use of a server About key pairs Key pairs refer to the public and private key files that are used by certain authentication protocols. SSH public key authentication uses asymmetric cryptographic algorithms to generate two key files – one "private" and the other "public". The private key files are the equivalen...

Install OpenSSH on Windows

  OpenSSH components can be installed using Windows Settings on Windows Server 2019 and Windows 10 devices. To install the OpenSSH components: Open  Settings , select  Apps > Apps & Features , then select  Optional Features . Scan the list to see if the OpenSSH is already installed. If not, at the top of the page, select  Add a feature , then: Find  OpenSSH Client , then click  Install Find  OpenSSH Server , then click  Install Once setup completes, return to  Apps > Apps & Features  and  Optional Features  and you should see OpenSSH listed.   Note Installing OpenSSH Server will create and enable a firewall rule named  OpenSSH-Server-In-TCP . This allows inbound SSH traffic on port 22. If this rule is not enabled and this port is not open, connections will be refused or reset. Install OpenSSH using PowerShell To install OpenSSH using PowerShell, run PowerShell as an Administrator. To make sure that ...