]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
tests: fix a typo in dev_setup.yml
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 14 May 2019 12:27:19 +0000 (14:27 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 15 May 2019 09:33:26 +0000 (11:33 +0200)
c907ec41ae0698b7627ebcbe97f1c293611d41d7 introduced a typo.
This commit fixes it.

```
[WARNING]: While constructing a mapping from /home/guits/ceph-ansible/tests/functional/dev_setup.yml, line 21, column 9, found a duplicate dict key (replace).
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
tests/functional/dev_setup.yml

index d75a6e5ab3f36b82d272230f2eb6c8b2debb8304..d8c35a5e1c7c5622612024b7e606016abd652921 100644 (file)
@@ -7,28 +7,30 @@
 
 
     - block:
-      - name: set_fact group_vars_path
-        set_fact:
-          group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars/all' }}"
+        - name: set_fact group_vars_path
+          set_fact:
+            group_vars_path: "{{ change_dir + '/hosts' if 'ooo-collocation' in change_dir.split('/') else change_dir + '/group_vars/all' }}"
 
-      - name: change ceph_repository to 'dev'
-        replace:
-          regexp: "ceph_repository:.*"
-          replace: "ceph_repository: dev"
-          dest: "{{ group_vars_path }}"
-        when: change_dir is defined
+        - block:
+            - name: change ceph_repository to 'dev'
+              replace:
+                regexp: "ceph_repository:.*"
+                replace: "ceph_repository: dev"
+                dest: "{{ group_vars_path }}"
 
-      - name: change nfs-ganesha repository to 'dev'
-        replace:
-          regexp: "nfs_ganesha_stable=.*"
-          replace: "nfs_ganesha_stable=False"
-          dest: "{{ group_vars_path }}"
-        replace:
-          regexp: "nfs_ganesha_dev:.*"
-          replace: "nfs_ganesha_dev=True"
-          dest: "{{ group_vars_path }}"
-        when: change_dir is defined
+            - name: ensure nfs_ganesha_stable is set to False
+              replace:
+                regexp: "nfs_ganesha_stable=.*"
+                replace: "nfs_ganesha_stable=False"
+                dest: "{{ group_vars_path }}"
 
-      - name: print contents of {{ group_vars_path }}
-        command: "cat {{ group_vars_path }}"
+            - name: ensure nfs_ganesha_dev is set to True
+              replace:
+                regexp: "nfs_ganesha_dev:.*"
+                replace: "nfs_ganesha_dev=True"
+                dest: "{{ group_vars_path }}"
+          when: change_dir is defined
+
+        - name: print contents of {{ group_vars_path }}
+          command: "cat {{ group_vars_path }}"
       when: dev_setup