A Python package to automate Ansible TargetNode installation and configuration.
Project description
Ansible Target Machine
Ansible Target Machine is a Python package designed to automate the setup of an Ansible target node. It simplifies the configuration of remote systems by handling user creation, SSH key authentication, and inventory setup, making it easier for Ansible Master Nodes to manage multiple machines effortlessly.
This package ensures that target machines are correctly configured to accept commands from an Ansible Controller, reducing manual setup effort and streamlining infrastructure automation.
Installation
pip install git+https://github.com/mohammdnoorain/Devops/blob/main/Ansible-TargetNode-Updated-code.txt
ChatGPT
Ansible Target Machine Setup
Ansible Target Machine Setup is a Python package designed to automate the configuration of a target machine to work with an Ansible master node. This package simplifies the process of setting up SSH keys, user creation, and inventory grouping for seamless Ansible automation.
Features
✅ Automates target machine setup for Ansible control
✅ Creates a dedicated user for Ansible communication
✅ Generates and saves public-private key pairs for secure SSH connections
✅ Supports inventory grouping for better infrastructure management
✅ Simplifies the onboarding of new target machines
Installation & Setup Instructions
Follow these steps to install and configure the Ansible Target Machine Setup package on your target machine.
Step 1: Switch to Root User
sudo -i
Step 2: Update the Package Manager
Ensure your system has the latest package updates:
sudo apt update
Step 3: Install Python and Pip
sudo apt install python3-pip -y
Step 4: Install the Package
Use pip to install the Ansible Target Machine Setup package:
pip install ansible-targetnode-setup
Step 5: Run the Package
Once installed, execute the setup command:
ansible_targetnode_setup
step 6: paste the public key of ansible master node which you have saved if forget then go to ansible master vm >user>
cat .ssh/id_ecdsa.pub
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansible_targetnode_setup-0.1.tar.gz.
File metadata
- Download URL: ansible_targetnode_setup-0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ad3d6a3b8f8109fa11f1eabca8ae9d513a03540c5066e69c1e1556330f72b86
|
|
| MD5 |
edb6df73046e55d96d2313965afef27b
|
|
| BLAKE2b-256 |
61ccbf703f5cd2fff06f6f0170aae11bd57d2893aac5a2e1b0c8b74d46192177
|
File details
Details for the file ansible_targetnode_setup-0.1-py3-none-any.whl.
File metadata
- Download URL: ansible_targetnode_setup-0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17f6b7532567c295cb5aa6b37fbb5484f66d4467c422d2964fc066b8c74e19f7
|
|
| MD5 |
f09389d612012346150d373228391b90
|
|
| BLAKE2b-256 |
3ff3c68a22fc504b2d43acb35a0cabb2e3c11c9584857ac3c3add10d39d19c78
|