Преглед изворни кода

Issue #328: Porting management station OS to centOS 8.3

Signed-off-by: DeepikaKrishnaiah <deepika_k2@dell.com>
DeepikaKrishnaiah пре 3 година
родитељ
комит
4330a9f028
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      roles/cluster_validation/tasks/fetch_password.yml

+ 3 - 3
roles/cluster_validation/tasks/fetch_password.yml

@@ -102,7 +102,7 @@
     path: "{{ ansible_conf_file_path }}"
     state: directory
     mode: "{{ file_perm }}"
-  when: ansible_conf_exists.stat.exists == false
+  when: not ansible_conf_exists.stat.exists
 
 - name: Create ansible config file if it does not exist
   copy:
@@ -111,14 +111,14 @@
     content: |
       [defaults]
       log_path = /var/log/omnia.log
-  when: ansible_conf_exists.stat.exists == false
+  when: not ansible_conf_exists.stat.exists
 
 - name: Set omnia.log file
   replace:
     path: "{{ ansible_conf_file_path }}/ansible.cfg"
     regexp: '#log_path = /var/log/ansible.log'
     replace: 'log_path = /var/log/omnia.log'
-  when: ansible_conf_exists.stat.exists == true
+  when: ansible_conf_exists.stat.exists
 
 - name: Encrypt input config file
   command: >-