Skip to content

Commit 8c25201

Browse files
committed
Fix ansible-lint
Signed-off-by: Tim Beermann <tibeer@berryit.de>
1 parent 2b59066 commit 8c25201

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roles/ovn/handlers/certificates.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
key_usage:
1313
- keyCertSign
1414
key_usage_critical: true
15-
register: ca_csr
15+
register: ovn_ca_csr
1616
notify: Issue CA certificate
1717
throttle: 1
1818

1919
- name: Issue CA certificate
2020
delegate_to: 127.0.0.1
2121
community.crypto.x509_certificate:
2222
path: "{{ ovn_config_dir }}/ca.crt"
23-
csr_content: "{{ ca_csr.csr }}"
23+
csr_content: "{{ ovn_ca_csr.csr }}"
2424
privatekey_path: "{{ ovn_config_dir }}/ca.key"
2525
provider: selfsigned
2626
throttle: 1
@@ -31,14 +31,14 @@
3131
privatekey_path: "{{ ovn_config_dir }}/{{ inventory_hostname }}.key"
3232
common_name: "OVN certificate for {{ inventory_hostname }}"
3333
use_common_name_for_san: false
34-
register: cert_csr
34+
register: ovn_cert_csr
3535
notify: Issue server certificate
3636

3737
- name: Issue server certificate
3838
delegate_to: 127.0.0.1
3939
community.crypto.x509_certificate:
4040
path: "{{ ovn_config_dir }}/{{ inventory_hostname }}.crt"
41-
csr_content: "{{ cert_csr.csr }}"
41+
csr_content: "{{ ovn_cert_csr.csr }}"
4242
ownca_path: "{{ ovn_config_dir }}/ca.crt"
4343
ownca_privatekey_path: "{{ ovn_config_dir }}/ca.key"
4444
ownca_not_after: "+3650d"
@@ -52,7 +52,7 @@
5252
privatekey_path: "{{ ovn_config_dir }}/{{ item.item }}.key"
5353
common_name: "OVN client certificate for {{ item.item }}"
5454
use_common_name_for_san: false
55-
register: client_csr
55+
register: ovn_client_csr
5656
notify: Issue client certificate
5757
loop: "{{ ovn_client_key.results }}"
5858

@@ -66,5 +66,5 @@
6666
ownca_not_after: "+3650d"
6767
ownca_not_before: "-1d"
6868
provider: ownca
69-
loop: "{{ client_csr.results }}"
69+
loop: "{{ ovn_client_csr.results }}"
7070
throttle: 1

0 commit comments

Comments
 (0)