diff options
author | Christian Pointner <equinox@spreadspace.org> | 2023-10-24 23:43:20 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2023-10-24 23:43:20 +0200 |
commit | 792ececf6b450ad9588c45d0f4b8652e42145f3d (patch) | |
tree | 121e22f50e91a552a0067640024997d313c8c16a /roles/x509/static/cert/prepare/tasks | |
parent | add new role docker/registry (WIP) (diff) |
x509: some daemons can't be reloaded and need to be restarted...
Diffstat (limited to 'roles/x509/static/cert/prepare/tasks')
-rw-r--r-- | roles/x509/static/cert/prepare/tasks/main.yml | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/roles/x509/static/cert/prepare/tasks/main.yml b/roles/x509/static/cert/prepare/tasks/main.yml index 03df7542..e8848743 100644 --- a/roles/x509/static/cert/prepare/tasks/main.yml +++ b/roles/x509/static/cert/prepare/tasks/main.yml @@ -10,7 +10,9 @@ mode: "{{ static_cert_config.mode | default('0700') }}" owner: "{{ static_cert_config.owner | default(omit) }}" group: "{{ static_cert_config.group | default(omit) }}" - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: install key for static certificate copy: @@ -19,7 +21,9 @@ mode: "{{ static_cert_config.key.mode | default('0600') }}" owner: "{{ static_cert_config.key.owner | default(omit) }}" group: "{{ static_cert_config.key.group | default(omit) }}" - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: install static certificate copy: @@ -28,7 +32,9 @@ mode: "{{ static_cert_config.cert.mode | default('0644') }}" owner: "{{ static_cert_config.cert.owner | default(omit) }}" group: "{{ static_cert_config.cert.group | default(omit) }}" - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: export paths to basic certificate files set_fact: @@ -46,7 +52,9 @@ mode: "{{ static_cert_config.chain.mode | default('0644') }}" owner: "{{ static_cert_config.chain.owner | default(omit) }}" group: "{{ static_cert_config.chain.group | default(omit) }}" - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: install fullchain for static certificate copy: @@ -57,7 +65,9 @@ mode: "{{ static_cert_config.cert.mode | default('0644') }}" owner: "{{ static_cert_config.cert.owner | default(omit) }}" group: "{{ static_cert_config.cert.group | default(omit) }}" - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: export paths to additional certificate files set_fact: @@ -74,7 +84,9 @@ file: path: "{{ static_cert_path }}/{{ static_cert_name }}-{{ item }}.pem" state: absent - notify: reload services for x509 certificates + notify: + - reload services for x509 certificates + - restart services for x509 certificates - name: make sure variable that points to the chain certificate file is unset set_fact: |