Update conditions for checking user configuration files in webadmin-user.yml
This commit is contained in:
@@ -197,7 +197,7 @@
|
||||
label: '{{ item.item.name }}'
|
||||
when:
|
||||
- item.stat.exists
|
||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc')
|
||||
- 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user