Update conditions for checking user configuration files in webadmin-user.yml
This commit is contained in:
@@ -196,8 +196,8 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: '{{ item.item.name }}'
|
label: '{{ item.item.name }}'
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- item.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc')
|
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_bashrc') != ''
|
||||||
tags:
|
tags:
|
||||||
- webadmin
|
- webadmin
|
||||||
- bash
|
- bash
|
||||||
@@ -240,7 +240,7 @@
|
|||||||
label: '{{ item.item.name }}'
|
label: '{{ item.item.name }}'
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- item.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile')
|
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_profile') != ''
|
||||||
tags:
|
tags:
|
||||||
- webadmin
|
- webadmin
|
||||||
- profile
|
- profile
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
label: '{{ item.item.name }}'
|
label: '{{ item.item.name }}'
|
||||||
when:
|
when:
|
||||||
- item.stat.exists
|
- item.stat.exists
|
||||||
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc')
|
- lookup('fileglob', inventory_dir + '/files/homedirs/' + item.item.name + '/_vimrc') != ''
|
||||||
tags:
|
tags:
|
||||||
- webadmin
|
- webadmin
|
||||||
- vim
|
- vim
|
||||||
@@ -288,4 +288,3 @@
|
|||||||
tags:
|
tags:
|
||||||
- webadmin
|
- webadmin
|
||||||
- vim
|
- vim
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user