X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=playbooks%2Fdebian%2Froles%2Finit-system%2Ftasks%2Fpython.yml;h=ead9aa5ee235fe4bd64b104eaf1c254296939152;hb=9e362f765b63334b5f48c40da7ebdd2431e79e7e;hp=584c4f4d25423717354f4c92cb833a737b5d9996;hpb=4ec49f791b6d1f1eb8cb4cb00475ebeb665cfda0;p=ansible.git diff --git a/playbooks/debian/roles/init-system/tasks/python.yml b/playbooks/debian/roles/init-system/tasks/python.yml index 584c4f4..ead9aa5 100644 --- a/playbooks/debian/roles/init-system/tasks/python.yml +++ b/playbooks/debian/roles/init-system/tasks/python.yml @@ -3,11 +3,11 @@ apt: autoclean: yes autoremove: yes + cache_valid_time: 3600 install_recommends: no name: ['python', 'python2.7', 'python3', 'python-pip', 'python3-pip', 'python-setuptools', 'python3-setuptools', ] - purge: yes state: latest update_cache: yes register: python @@ -17,5 +17,5 @@ shell: 'umask 022; {{ item }} -m pip install --upgrade "pip < 19.1" setuptools tox virtualenv virtualenvwrapper "wheel < 0.31.1" flake8 sphinx twine' - loop: ['python3', 'python2'] when: python.changed + loop: ['python3', 'python2']