https://github.com/christophercatt/ansible-install
A simple install script to automate Ansible installation within a Python3.7 virtual environment on Ubuntu systems.
https://github.com/christophercatt/ansible-install
ansible bash install-script python3-7
Last synced: 9 months ago
JSON representation
A simple install script to automate Ansible installation within a Python3.7 virtual environment on Ubuntu systems.
- Host: GitHub
- URL: https://github.com/christophercatt/ansible-install
- Owner: christophercatt
- Created: 2020-01-30T09:08:01.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-16T09:20:06.000Z (about 5 years ago)
- Last Synced: 2025-01-24T15:35:11.098Z (11 months ago)
- Topics: ansible, bash, install-script, python3-7
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ansible-install
Note: This is a work in progress and is currently undergoing testing and improvements.
This is a lightweight install script to install Ansible within a Python3 virtual environment (for extra security).
To change install location, simply change the path within the $dir variable.
## Usage
* Make sure git is installed:
sudo apt install git
* Clone this Repo to desired download folder:
git clone https://github.com/christophercatt/ansible-install.git
* Change directory into Repo:
cd ansible-install/
* Run install script as 'sudo' user:
sudo ./ans-install.sh
* To default into the virtual environment and start using anisible, use:
ansible-go
Note: to use 'ansible-go' command, please either log out or open a new terminal session for alias to take effect or change directory to that specified in $dir within the script and run:
source venv/bin/activate
Use the following to exit the virtual environment:
deactivate
## To-Do
- [x] Testing
- [x] Stop file creation from setting owner as 'root'
- [x] Add Alias to user's .bashrc file
- [x] Update to use Python 3
- [x] Add module to add ansible-go command to .bashrc
- [x] Fix bug where virtual environment isn't activated