Skip to content

Commit

Permalink
Consul: Make sure the unzip package are present on the control host
Browse files Browse the repository at this point in the history
this is necessary to unpack and install the consul package located in the 'consul/files' directory to remote servers, instead of downloading the package from the Internet.
  • Loading branch information
vitabaks committed Jun 23, 2023
1 parent 0449e67 commit f94da57
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions consul.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,18 @@
delay: 5
retries: 3

- name: Make sure the unzip package are present on the control host
run_once: true # noqa run-once
delegate_to: 127.0.0.1
package:
name: unzip
state: present
register: package_status
until: package_status is success
delay: 5
retries: 3
ignore_errors: true

- name: Build a firewall_ports_dynamic_var
set_fact:
firewall_ports_dynamic_var: "{{ firewall_ports_dynamic_var | default([]) + (firewall_allowed_tcp_ports_for[item] | default([])) }}"
Expand Down
File renamed without changes.

0 comments on commit f94da57

Please sign in to comment.