1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
| [ansible@master ansible_playbooks]$ ansible-playbook pip.yml -v
Using /etc/ansible/ansible.cfg as config file
PLAY [node1] ***********************************************************************************************************
TASK [Gathering Facts] *************************************************************************************************
ok: [node1]
TASK [Install package in virtualenv] ***********************************************************************************
changed: [node1] => {"changed": true, "cmd": ["/my_app/venv/bin/pip", "install", "bottle==0.11.1"], "name": ["bottle==0.11.1"], "requirements": null, "state": "present", "stderr": "", "stderr_lines": [], "stdout": "created virtual environment CPython3.6.8.final.0-64 in 607ms\n creator CPython3Posix(dest=/my_app/venv, clear=False, no_vcs_ignore=False, global=False)\n seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)\n added seed packages: pip==21.3.1, setuptools==59.6.0, wheel==0.37.1\n activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator\nLooking in indexes: http://mirrors.tencentyun.com/pypi/simple\nCollecting bottle==0.11.1\n Downloading http://mirrors.tencentyun.com/pypi/packages/22/2d/9c655556710de1eefd4cdd9307320a232e66b347bd445ec241aedf97fbd1/bottle-0.11.1.tar.gz (60 kB)\n Preparing metadata (setup.py): started\n Preparing metadata (setup.py): finished with status 'done'\nBuilding wheels for collected packages: bottle\n Building wheel for bottle (setup.py): started\n Building wheel for bottle (setup.py): finished with status 'done'\n Created wheel for bottle: filename=bottle-0.11.1-py3-none-any.whl size=76243 sha256=6e2381242a7438d1c50c49ce757e762491a9fe2036e1d4e52981a3d7e4b17723\n Stored in directory: /root/.cache/pip/wheels/ac/37/50/4c8f13aed6beb3310781cf78ed031489e5b72a87226e6cc610\nSuccessfully built bottle\nInstalling collected packages: bottle\nSuccessfully installed bottle-0.11.1\n", "stdout_lines": ["created virtual environment CPython3.6.8.final.0-64 in 607ms", " creator CPython3Posix(dest=/my_app/venv, clear=False, no_vcs_ignore=False, global=False)", " seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/root/.local/share/virtualenv)", " added seed packages: pip==21.3.1, setuptools==59.6.0, wheel==0.37.1", " activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator", "Looking in indexes: http://mirrors.tencentyun.com/pypi/simple", "Collecting bottle==0.11.1", " Downloading http://mirrors.tencentyun.com/pypi/packages/22/2d/9c655556710de1eefd4cdd9307320a232e66b347bd445ec241aedf97fbd1/bottle-0.11.1.tar.gz (60 kB)", " Preparing metadata (setup.py): started", " Preparing metadata (setup.py): finished with status 'done'", "Building wheels for collected packages: bottle", " Building wheel for bottle (setup.py): started", " Building wheel for bottle (setup.py): finished with status 'done'", " Created wheel for bottle: filename=bottle-0.11.1-py3-none-any.whl size=76243 sha256=6e2381242a7438d1c50c49ce757e762491a9fe2036e1d4e52981a3d7e4b17723", " Stored in directory: /root/.cache/pip/wheels/ac/37/50/4c8f13aed6beb3310781cf78ed031489e5b72a87226e6cc610", "Successfully built bottle", "Installing collected packages: bottle", "Successfully installed bottle-0.11.1"], "version": null, "virtualenv": "/my_app/venv"}
PLAY RECAP *************************************************************************************************************
node1 : ok=2 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
[ansible@master ansible_playbooks]$
|