commit | 7ef274b7c986445f80abf95500c5de6ea1f8c645 | [log] [tgz] |
---|---|---|
author | Yuriy Taraday <yorik.sar@gmail.com> | Thu Jun 22 16:56:45 2017 +0400 |
committer | Yuriy Taraday <yorik.sar@gmail.com> | Thu Jun 22 16:56:45 2017 +0400 |
tree | cbc3904cfb5c9b90ada56d9a7c5daadac640198f | |
parent | 2f3040f26497379516e44eff20b3274028e51456 [diff] |
Add unless to repo install
diff --git a/helm/client.sls b/helm/client.sls index 274c5be..2c83899 100644 --- a/helm/client.sls +++ b/helm/client.sls
@@ -57,6 +57,7 @@ - name: helm repo add {{ repo_name }} {{ repo_url }} - env: - HELM_HOME: {{ helm_home }} + - unless: helm repo list | grep '^{{ repo_name }}[[:space:]]{{ repo_url|replace(".", "\.") }}' - require: - cmd: prepare_client {%- endfor %}