Ansible setup  [draft]

This guide explains how to install Ansible using Python 3 and PIP. It covers checking for Python 3, installing Ansible with PIP, and providing shell scripts for automation. It also includes an introduction to Ansible and a brief conclusion. We can check which version of Python3 is installed on our system by running the command: which python3 To check the version of Ansible installed on our system, we can run:...

September 24, 2022 · Marcin M

Ansible  [draft]

First steps I made to start my adventure with Ansible Please go to the official web for instructions on installing Ansible - this is the best way. Installing and upgrading Ansible Ansible’s installation and version ansible --version Create Inventory #inventory file 192.168.1.171 192.168.1.172 192.168.1.173 Create ansible.cfg #ansible.cfg [defaults] inventory = inventory private_key_file = ~/.ssh/ansible/ remote_user = ubuntu Test Ansible is working ansible all --key-file ~/.ssh/ansible -i inventory -m ping After creating config....

July 14, 2022 · Marcin M

Generate an SSH Key for Ansible  [draft]

Generating and Using an SSH Key for Secure Server Access To generate a strong SSH key, run the following command: ssh-keygen -t ed25519 -C "ansible" You will be prompted to choose a folder and name for the SSH key: Generating public/private ed25519 key pair. Enter file in which to save the key (/home/marcin/.ssh/id_ed25519): /home/marcin/.ssh/ansible/ansible Next, copy the SSH key to the server(s) you want to access. However, before you do so, you must first log in to the server(s) using your name and password:...

July 14, 2022 · Marcin M