From ba9e7663218b73332419ca7950b81e7dd8bde896 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 3 Feb 2017 20:23:00 +0200 Subject: [PATCH] - Link both python to python2 to python2.7. --- tasks/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2e52677..0dca410 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -20,9 +20,12 @@ setup: - name: Symlink python + with_items: + - python + - python2 ignore_errors: '{{ ansible_check_mode }}' file: - path: /usr/bin/python + path: '/usr/local/bin/{{ item }}' src: /usr/local/bin/python2.7 state: link owner: root -- GitLab