forked from ansible-collections/ansible-consul
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Keep gossip encryption in main tasks until we sort cross play var - Compact YAML style for all tasks - Fix task items, shorten timeouts - Update documentation
- Loading branch information
1 parent
cb0ab1b
commit dbd8e3e
Showing
9 changed files
with
229 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,49 @@ | ||
--- | ||
# File: tasks/iptables.yml - iptables tasks for Consul | ||
|
||
- name: install iptables | ||
apt: name=iptables | ||
- name: Install iptables | ||
apt: | ||
name: iptables | ||
|
||
- name: redirect local DNS (1/4) | ||
iptables: table=nat chain=PREROUTING protocol=udp match=udp destination_port=53 jump=REDIRECT to_ports=8600 | ||
- name: Redirect local DNS (1/4) | ||
iptables: | ||
table: nat | ||
chain: PREROUTING | ||
protocol: udp | ||
match: udp | ||
destination_port: 53 | ||
jump: REDIRECT | ||
to_ports: 8600 | ||
|
||
- name: redirect local DNS (2/4) | ||
iptables: table=nat chain=PREROUTING protocol=tcp match=tcp destination_port=53 jump=REDIRECT to_ports=8600 | ||
- name: Redirect local DNS (2/4) | ||
iptables: | ||
table: nat | ||
chain: PREROUTING | ||
protocol: tcp | ||
match: tcp | ||
destination_port: 53 | ||
jump: REDIRECT | ||
to_ports: 8600 | ||
|
||
- name: redirect local DNS (3/4) | ||
iptables: table=nat chain=OUTPUT protocol=udp match=udp destination_port=53 jump=REDIRECT to_ports=8600 destination=localhost | ||
- name: Redirect local DNS (3/4) | ||
iptables: | ||
table: nat | ||
chain: OUTPUT | ||
protocol: udp | ||
match: udp | ||
destination_port: 53 | ||
jump: REDIRECT | ||
to_ports: 8600 | ||
destination: localhost | ||
|
||
- name: redirect local DNS (4/4) | ||
iptables: table=nat chain=OUTPUT protocol=tcp match=tcp destination_port=53 jump=REDIRECT to_ports=8600 destination=localhost | ||
- name: Redirect local DNS (4/4) | ||
iptables: | ||
table: nat | ||
chain: OUTPUT | ||
protocol: tcp | ||
match: tcp | ||
destination_port: 53 | ||
jump: REDIRECT | ||
to_ports: 8600 | ||
destination: localhost | ||
|
Oops, something went wrong.