diff --git a/playbooks/roles/services/deploy/lrproxy/meta/argument_specs.yml b/playbooks/roles/services/deploy/lrproxy/meta/argument_specs.yml index 4a43ae8..e2a80e2 100644 --- a/playbooks/roles/services/deploy/lrproxy/meta/argument_specs.yml +++ b/playbooks/roles/services/deploy/lrproxy/meta/argument_specs.yml @@ -24,6 +24,9 @@ argument_specs: type: "dict" elem: "dict" required: true + services_deploy_lrproxy_ignore_unreachable_rproxy: + type: "bool" + required: true services_host_services: lrproxy: rproxy_host: diff --git a/playbooks/roles/services/deploy/lrproxy/tasks/main.yml b/playbooks/roles/services/deploy/lrproxy/tasks/main.yml index 7ee46c3..2f685b3 100644 --- a/playbooks/roles/services/deploy/lrproxy/tasks/main.yml +++ b/playbooks/roles/services/deploy/lrproxy/tasks/main.yml @@ -99,6 +99,7 @@ register: services_deploy_lrproxy_keypair - name: "configure public key on {{ services_host_services.lrproxy.rproxy_host }}" + ignore_unreachable: "{{ services_deploy_lrproxy_ignore_unreachable_rproxy }}" delegate_to: "{{ services_host_services.lrproxy.rproxy_host }}" become_user: "{{ services_host_services.lrproxy.rproxy_user }}" ansible.posix.authorized_key: diff --git a/playbooks/services.yml b/playbooks/services.yml index 8c9f4f0..93c6787 100644 --- a/playbooks/services.yml +++ b/playbooks/services.yml @@ -52,6 +52,9 @@ - "services:deploy" - "services:deploy:{{ services_service_name }}" - "services:{{ services_service_name }}:deploy" + vars: + services_deploy_lrproxy_ignore_unreachable_rproxy: "\ + {{ not (the_nine_worlds_production | bool) }}" loop: "{{ services_host_services | dict2items | map(attribute='key') }}" loop_control: loop_var: "services_service_name"