diff options
author | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-03-21 12:32:20 +0000 |
---|---|---|
committer | Michal Ptacek <m.ptacek@partner.samsung.com> | 2019-03-26 09:03:16 +0000 |
commit | 200ae72c05772dab23923bc74c88c8691f7224fc (patch) | |
tree | 40ed2cc3e83bd790c0c41c5f02ea28a577e68cae /ansible/roles/certificates | |
parent | f842b36613c91f86dd371b590e048e5c4e510f34 (diff) |
Fixing some yaml-lint warnings
Scope of this commit is to fix warnings reported by
offline-installer-master-yaml-lint jenkins job
Change-Id: Id858a37ce35d53ad1ffd5e5797607faae484ed15
Issue-ID: OOM-1753
Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com>
Diffstat (limited to 'ansible/roles/certificates')
-rw-r--r-- | ansible/roles/certificates/handlers/main.yml | 5 | ||||
-rw-r--r-- | ansible/roles/certificates/tasks/upload_root_ca.yml | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/ansible/roles/certificates/handlers/main.yml b/ansible/roles/certificates/handlers/main.yml new file mode 100644 index 00000000..b2b81223 --- /dev/null +++ b/ansible/roles/certificates/handlers/main.yml @@ -0,0 +1,5 @@ +--- +- name: Extract root certificate + command: /usr/bin/update-ca-trust extract + changed_when: true # this handler is executed just when there is a new cert + notify: Restart Docker diff --git a/ansible/roles/certificates/tasks/upload_root_ca.yml b/ansible/roles/certificates/tasks/upload_root_ca.yml index b2f1f945..b918187d 100644 --- a/ansible/roles/certificates/tasks/upload_root_ca.yml +++ b/ansible/roles/certificates/tasks/upload_root_ca.yml @@ -3,10 +3,5 @@ copy: src: "{{ certificates_local_dir }}/rootCA.crt" dest: /etc/pki/ca-trust/source/anchors/ - register: copycert - notify: Restart Docker - -- name: Extract root certificate - command: /usr/bin/update-ca-trust extract - when: copycert.changed - notify: Restart Docker + notify: # handler is triggered just when file is changed + - Extract root certificate |