Browse Source

Remove the unnecessary space

Change-Id: I4edb409131d122b2e426d115ee94c4a986bd3606
zhulingjie 9 months ago
parent
commit
7c8e10977d
3 changed files with 13 additions and 13 deletions
  1. 7
    7
      handlers/main.yml
  2. 5
    5
      tasks/repo_install.yml
  3. 1
    1
      tests/test-repo-server-functional.yml

+ 7
- 7
handlers/main.yml View File

@@ -20,7 +20,7 @@
20 20
     state: restarted
21 21
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
22 22
   register: _restart
23
-  until: _restart  is success
23
+  until: _restart is success
24 24
   retries: 5
25 25
   delay: 2
26 26
 
@@ -31,7 +31,7 @@
31 31
     state: restarted
32 32
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
33 33
   register: _restart
34
-  until: _restart  is success
34
+  until: _restart is success
35 35
   retries: 5
36 36
   delay: 2
37 37
 
@@ -42,7 +42,7 @@
42 42
     state: restarted
43 43
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
44 44
   register: _restart
45
-  until: _restart  is success
45
+  until: _restart is success
46 46
   retries: 5
47 47
   delay: 2
48 48
 
@@ -53,7 +53,7 @@
53 53
     state: restarted
54 54
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
55 55
   register: _restart
56
-  until: _restart  is success
56
+  until: _restart is success
57 57
   retries: 5
58 58
   delay: 2
59 59
 
@@ -64,7 +64,7 @@
64 64
     state: restarted
65 65
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
66 66
   register: _restart
67
-  until: _restart  is success
67
+  until: _restart is success
68 68
   retries: 5
69 69
   delay: 2
70 70
 
@@ -75,7 +75,7 @@
75 75
     state: restarted
76 76
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
77 77
   register: _restart
78
-  until: _restart  is success
78
+  until: _restart is success
79 79
   retries: 5
80 80
   delay: 2
81 81
 
@@ -86,7 +86,7 @@
86 86
     state: restarted
87 87
     daemon_reload: "{{ (ansible_service_mgr == 'systemd') | ternary('yes', omit) }}"
88 88
   register: _restart
89
-  until: _restart  is success
89
+  until: _restart is success
90 90
   retries: 5
91 91
   delay: 2
92 92
 

+ 5
- 5
tasks/repo_install.yml View File

@@ -20,7 +20,7 @@
20 20
   when:
21 21
     - ansible_pkg_mgr in ['yum', 'dnf']
22 22
   register: _add_yum_keys
23
-  until: _add_yum_keys  is success
23
+  until: _add_yum_keys is success
24 24
   retries: 5
25 25
   delay: 2
26 26
 
@@ -60,7 +60,7 @@
60 60
     update_cache: "{{ (ansible_pkg_mgr == 'apt') | ternary('yes', omit) }}"
61 61
     cache_valid_time: "{{ (ansible_pkg_mgr == 'apt') | ternary(cache_timeout, omit) }}"
62 62
   register: install_packages
63
-  until: install_packages  is success
63
+  until: install_packages is success
64 64
   retries: 5
65 65
   delay: 5
66 66
 
@@ -91,7 +91,7 @@
91 91
       {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
92 92
       {{ pip_install_options | default('') }}
93 93
   register: install_packages
94
-  until: install_packages  is success
94
+  until: install_packages is success
95 95
   retries: 5
96 96
   delay: 2
97 97
 
@@ -112,7 +112,7 @@
112 112
           {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
113 113
           {{ pip_install_options | default('') }}
114 114
       register: install_packages
115
-      until: install_packages  is success
115
+      until: install_packages is success
116 116
       retries: 5
117 117
       delay: 2
118 118
       notify:
@@ -130,7 +130,7 @@
130 130
           {{ (pip_install_upper_constraints is defined) | ternary('--constraint ' + pip_install_upper_constraints | default(''),'') }}
131 131
           {{ pip_install_options | default('') }}
132 132
       register: install_packages
133
-      until: install_packages  is success
133
+      until: install_packages is success
134 134
       retries: 5
135 135
       delay: 2
136 136
       notify:

+ 1
- 1
tests/test-repo-server-functional.yml View File

@@ -62,7 +62,7 @@
62 62
     - name: Check apt-cacher-ng is running
63 63
       command: "pgrep apt-cacher-ng"
64 64
       register: pgrep_apt_cacher_ng
65
-      until: pgrep_apt_cacher_ng  is success
65
+      until: pgrep_apt_cacher_ng is success
66 66
       retries: 5
67 67
       delay: 2
68 68
       tags:

Loading…
Cancel
Save