create cli with venv installation for new ansible workspace
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -16,3 +16,4 @@ roles/vendor/
|
||||
password.txt
|
||||
!/dockerfiles/services/sslproxy/certs/live/
|
||||
|
||||
venv/
|
||||
|
||||
0
ansible-5/cli/.bash_cli
Normal file
0
ansible-5/cli/.bash_cli
Normal file
1
ansible-5/cli/env/.help
vendored
Normal file
1
ansible-5/cli/env/.help
vendored
Normal file
@@ -0,0 +1 @@
|
||||
TODO: Add help for this directory
|
||||
7
ansible-5/cli/env/freeze
vendored
Executable file
7
ansible-5/cli/env/freeze
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
pip freeze > requirements.txt
|
||||
ls -l requirements.txt
|
||||
|
||||
python --version > pythonversion.txt
|
||||
ls -l pythonversion.txt
|
||||
3
ansible-5/cli/env/freeze.help
vendored
Normal file
3
ansible-5/cli/env/freeze.help
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
ARGS - The arguments you wish to provide to this command
|
||||
|
||||
TODO: Fill out the help information for this command.
|
||||
1
ansible-5/cli/env/freeze.usage
vendored
Normal file
1
ansible-5/cli/env/freeze.usage
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ARGS...
|
||||
7
ansible-5/cli/env/install
vendored
Executable file
7
ansible-5/cli/env/install
vendored
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
venvironment='venv'
|
||||
|
||||
source ${venvironment}/bin/activate
|
||||
|
||||
pip install -r requirements.txt
|
||||
python -m pip install ansible
|
||||
3
ansible-5/cli/env/install.help
vendored
Normal file
3
ansible-5/cli/env/install.help
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
ARGS - The arguments you wish to provide to this command
|
||||
|
||||
TODO: Fill out the help information for this command.
|
||||
1
ansible-5/cli/env/install.usage
vendored
Normal file
1
ansible-5/cli/env/install.usage
vendored
Normal file
@@ -0,0 +1 @@
|
||||
ARGS...
|
||||
7
ansible-5/cli/install-python
Executable file
7
ansible-5/cli/install-python
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
venvironment='venv'
|
||||
|
||||
sudo apt install -y python-is-python3 python3-pip python3-argcomplete
|
||||
python -m pip install --user virtualenv
|
||||
|
||||
python -m virtualenv ${venvironment}
|
||||
3
ansible-5/cli/install-python.help
Normal file
3
ansible-5/cli/install-python.help
Normal file
@@ -0,0 +1,3 @@
|
||||
ARGS - The arguments you wish to provide to this command
|
||||
|
||||
TODO: Fill out the help information for this command.
|
||||
1
ansible-5/cli/install-python.usage
Normal file
1
ansible-5/cli/install-python.usage
Normal file
@@ -0,0 +1 @@
|
||||
ARGS...
|
||||
1
ansible-5/pythonversion.txt
Normal file
1
ansible-5/pythonversion.txt
Normal file
@@ -0,0 +1 @@
|
||||
Python 3.8.10
|
||||
11
ansible-5/requirements.txt
Normal file
11
ansible-5/requirements.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
ansible==5.1.0
|
||||
ansible-core==2.12.1
|
||||
cffi==1.15.0
|
||||
cryptography==36.0.1
|
||||
Jinja2==3.0.3
|
||||
MarkupSafe==2.0.1
|
||||
packaging==21.3
|
||||
pycparser==2.21
|
||||
pyparsing==3.0.6
|
||||
PyYAML==6.0
|
||||
resolvelib==0.5.4
|
||||
Reference in New Issue
Block a user