Anything needed to install Ansible into a virtualenv in three files.
- Execute the
install.sh
withbash
or make it executable and run it afterwards - ????????
- Profit!
After the installation you have to activate the virtualenv with the command source venv/bin/activate
to use ansible magic in your CLI.
When you're done you can just close your terminal or deactivate
the virtualenv.
install.sh
: Installspython3-virtualenv
viaapt
, creates a virtualenv, installsansible
,ansible-lint
andyamllint
into it and installs all collections and roles written into therequirements.yml
requirements.txt
: Contents all Python modules needed for Ansible and linting with thelint.sh
script- You can expand it with other Python modules if you want to! Or remove those ugly linters, yuck.
requirements.yml
: Is needed by ansible-galaxy; It contents the collections and roles you need for your playbook(s) (you should ask Google again here if you don't know about ansible-galaxy)- This is an empty template. Fill it with life! But you don't have to.
.yamllint.yml
: Configuration file for yamllint (try it without the config after installation, then you know why it's needed)lint.sh
: Tests all your yaml files inside this directory for bad syntax or other errors withyamllint
andansible-lint
ansible.cfg
: Configuration file for all ansible executables (google it for more information)