Signed-off-by: Bhagyashree-shetty <Bhagyashree_Shetty@dellteam.com>
@@ -16,6 +16,7 @@
- name: Check if AllowUsers entry exixts
shell: cat "{{ sshd_conf_file }}"
register: file_content
+ changed_when: false
- name: Check if user is specified
debug:
@@ -67,4 +68,4 @@
- file_content.stdout.find('DenyUsers') != -1
when:
- - user | length > 1
+ - user | length > 1