diff --git a/roles/common/tasks/webadmin-user.yml b/roles/common/tasks/webadmin-user.yml index 43008d8..eb5170c 100644 --- a/roles/common/tasks/webadmin-user.yml +++ b/roles/common/tasks/webadmin-user.yml @@ -196,8 +196,8 @@ loop_control: label: '{{ item.item.name }}' when: - - item.stat.exists - - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc') + - item.stat.exists + - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc') != '' tags: - webadmin - bash @@ -240,7 +240,7 @@ label: '{{ item.item.name }}' when: - item.stat.exists - - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile') + - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile') != '' tags: - webadmin - profile @@ -261,7 +261,7 @@ label: '{{ item.item.name }}' when: - item.stat.exists - - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc') + - lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc') != '' tags: - webadmin - vim @@ -288,4 +288,3 @@ tags: - webadmin - vim -