Skip to content

Commit f6cb915

Browse files
committed
re-apply aac1b93
remove duplicated tasks that exist in realms_config.yml from main.yml
1 parent 72130c0 commit f6cb915

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

tasks/main.yml

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -374,47 +374,6 @@
374374
- "not pve_cluster_enabled | bool or (pve_cluster_enabled | bool and inventory_hostname == _init_node)"
375375
- "pve_datacenter_cfg | length > 0"
376376

377-
- name: Check domains.cfg exists
378-
stat:
379-
path: "/etc/pve/domains.cfg"
380-
register: _domains_cfg
381-
when:
382-
- not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
383-
- pve_domains_cfg | length > 0
384-
385-
- name: Create domains.cfg if it does not exist
386-
file:
387-
path: "/etc/pve/domains.cfg"
388-
state: "touch"
389-
when:
390-
- not pve_cluster_enabled | bool or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
391-
- pve_domains_cfg | length > 0
392-
- not _domains_cfg.stat.exists
393-
394-
- name: Configure domains.cfg
395-
# The parser for domains.cfg requires a blank line after each domain,
396-
# and there's a TAB character before printing each key / value pair for a domain
397-
copy:
398-
dest: "/etc/pve/domains.cfg"
399-
owner: "root"
400-
group: "www-data"
401-
mode: "0640"
402-
content: |
403-
{% for domain in pve_domains_cfg %}
404-
{{ domain.type }}: {{ domain.name }}
405-
{% for k,v in domain.items() %}
406-
{% if k != 'name' %}
407-
{% if k != 'type' %}
408-
{{ k }} {{ v }}
409-
{% endif %}
410-
{% endif %}
411-
{% endfor %}
412-
413-
{% endfor %}
414-
when:
415-
- not pve_cluster_enabled | bool or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
416-
- pve_domains_cfg | length > 0
417-
418377
- import_tasks: ssl_config.yml
419378
when:
420379
- "pve_ssl_private_key is defined"

0 commit comments

Comments
 (0)