mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-15 16:40:45 +02:00
Encapsulated SAN in block with when
This commit is contained in:
parent
5709935c92
commit
e4cc928eea
@ -1,11 +1,11 @@
|
|||||||
- name: Install certbundle
|
- block:
|
||||||
|
- name: Install certbundle
|
||||||
include_role:
|
include_role:
|
||||||
name: pkgmgr-install
|
name: pkgmgr-install
|
||||||
vars:
|
vars:
|
||||||
package_name: certbundle
|
package_name: certbundle
|
||||||
when: run_once_san_certs is not defined
|
|
||||||
|
|
||||||
- name: Generate SAN certificate with certbundle
|
- name: Generate SAN certificate with certbundle
|
||||||
command: >-
|
command: >-
|
||||||
certbundle
|
certbundle
|
||||||
--domains "{{ current_play_domains_all | join(',') }}"
|
--domains "{{ current_play_domains_all | join(',') }}"
|
||||||
@ -24,9 +24,8 @@
|
|||||||
failed_when: >
|
failed_when: >
|
||||||
certbundle_result.rc != 0
|
certbundle_result.rc != 0
|
||||||
and 'too many certificates' not in certbundle_result.stderr
|
and 'too many certificates' not in certbundle_result.stderr
|
||||||
when: run_once_san_certs is not defined
|
|
||||||
|
|
||||||
- name: run the san tasks once
|
- name: run the san tasks once
|
||||||
set_fact:
|
set_fact:
|
||||||
run_once_san_certs: true
|
run_once_san_certs: true
|
||||||
when: run_once_san_certs is not defined
|
when: run_once_san_certs is not defined
|
Loading…
x
Reference in New Issue
Block a user