mirror of
				https://git.lapiole.org/dani/ansible-roles.git
				synced 2025-10-30 18:31:28 +01:00 
			
		
		
		
	Update to 2022-09-08 18:00
This commit is contained in:
		| @@ -40,7 +40,7 @@ | ||||
|     content: | | ||||
|       complete -C {{ consul_root_dir }}/bin/consul consul | ||||
|     dest: /etc/bash_completion.d/consul | ||||
|     mode: 755 | ||||
|     mode: 0644 | ||||
|   tags: consul | ||||
|  | ||||
| - name: Deploy systemd service unit | ||||
|   | ||||
| @@ -6,10 +6,10 @@ | ||||
|     state: "{{ (('tcp' in consul_services[item].proto or 'udp' in consul_services[item].proto) and consul_services[item].src_ip | length > 0) | ternary('present', 'absent') }}" | ||||
|     rules: | | ||||
|       {% if 'tcp' in consul_services[item].proto %} | ||||
|       -A INPUT -m state --state NEW -p tcp --dport {{ consul_services[item].port }} -s {{ consul_services[item].src_ip | join(',') }} -j ACCEPT | ||||
|       -A INPUT -m state --state NEW -p tcp --dport {{ consul_services[item].port }} -s {{ consul_services[item].src_ip | flatten | join(',') }} -j ACCEPT | ||||
|       {% endif %} | ||||
|       {% if 'udp' in consul_services[item].proto %} | ||||
|       -A INPUT -m state --state NEW -p udp --dport {{ consul_services[item].port }} -s {{ consul_services[item].src_ip | join(',') }} -j ACCEPT | ||||
|       -A INPUT -m state --state NEW -p udp --dport {{ consul_services[item].port }} -s {{ consul_services[item].src_ip | flatten | join(',') }} -j ACCEPT | ||||
|       {% endif %} | ||||
|   loop: "{{ consul_services.keys() | list }}" | ||||
|   tags: firewall,consul | ||||
|   | ||||
| @@ -14,7 +14,8 @@ ExecStart={{ consul_root_dir }}/bin/consul agent -config-dir={{ consul_root_dir | ||||
| ExecReload=/bin/kill --signal HUP $MAINPID | ||||
| SuccessExitStatus=1 | ||||
| Restart=on-failure | ||||
| RestartSec=2 | ||||
| RestartSec=5 | ||||
| StartLimitInterval=0 | ||||
| LimitNOFILE=65536 | ||||
|  | ||||
| [Install] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Daniel Berteaud
					Daniel Berteaud