An open API service indexing awesome lists of open source software.

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.

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