arregla bugs en seleccion de default vhost

y deshabilita synchronize peligroso al que ademas no le cabe 'creates'
This commit is contained in:
Bet@ 2024-09-14 12:30:27 -03:00
parent 780a848f25
commit 219ede45ec
2 changed files with 12 additions and 11 deletions

View File

@ -16,7 +16,7 @@
template:
src: "{{ default_vhost }}"
dest: "{{ vhost_dest }}"
when: custom_vhost is undefined or custom_vhost is not is_file
when: (vhost.roles is undefined or vhost.roles[0] == 'proxy') or (custom_vhost is undefined or custom_vhost is not is_file)
notify:
- reload proxy
@ -24,6 +24,6 @@
template:
src: "{{ custom_vhost }}"
dest: "{{ vhost_dest }}"
when: custom_vhost is defined and custom_vhost is is_file
when: (vhost.roles is defined and vhost.roles[0] != 'proxy') and custom_vhost is defined and custom_vhost is is_file
notify:
- reload proxy

View File

@ -4,15 +4,16 @@
state: present
tags: installation
- name: copiar el codigo fuente
synchronize:
src: ../roles/rap/code/rap/
dest: "{{ rap_path }}"
perms: true
rsync_opts:
- "--exclude=.git"
tags: rap
creates: "{{ rap_path }}"
# TODO: ERROR! conflicting action statements: synchronize, creates
# - name: copiar el codigo fuente
# synchronize:
# src: ../roles/rap/code/rap/
# dest: "{{ rap_path }}"
# perms: true
# rsync_opts:
# - "--exclude=.git"
# tags: rap
# creates: "{{ rap_path }}"
- name: agregar nodos a la VPN
shell: