]> git.phdru.name Git - ansible.git/commitdiff
Style(init-system): `loop` over `when`
authorOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 22:20:43 +0000 (01:20 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 22:20:43 +0000 (01:20 +0300)
playbooks/debian/roles/init-system/tasks/python.yml

index 584c4f4d25423717354f4c92cb833a737b5d9996..447cb423986a8845ef714cddb69b95603456a257 100644 (file)
@@ -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']