From 8a5d7f48d6e560bce442349041ef126f15b99b49 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Mon, 29 Apr 2024 21:53:50 +0100 Subject: [PATCH] Fix python role for new installs --- roles/python/tasks/Unix.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/python/tasks/Unix.yaml b/roles/python/tasks/Unix.yaml index 471cbbf..0cc1e13 100644 --- a/roles/python/tasks/Unix.yaml +++ b/roles/python/tasks/Unix.yaml @@ -25,7 +25,7 @@ register: pip_conf - name: remove pip.conf if its a symbolic link - when: pip_conf.stat.islnk + when: pip_conf.stat.exists and pip_conf.stat.islnk file: state: absent path: ~/.config/pip/pip.conf @@ -46,7 +46,7 @@ register: ipython_config_py - name: remove ipython_conifg.py if its a symbolic link - when: ipython_config_py.stat.islnk + when: ipython_config_py.stat.exists and ipython_config_py.stat.islnk file: state: absent path: ~/.config/ipython/profile_default/ipython_config.py