Selaa lähdekoodia

working on firewalls now

master
Erin Sims 2 vuotta sitten
vanhempi
commit
d3b62fdda2
1 muutettua tiedostoa jossa 32 lisäystä ja 32 poistoa
  1. +32
    -32
      playbooks/create_droplet.yml

+ 32
- 32
playbooks/create_droplet.yml Näytä tiedosto

@@ -42,38 +42,38 @@
- 'mpdb'
register: created_droplets_backend
loop: "{{ range(1,count| int + 1) }}"
- name: Create a Firewall named mpd-firewall
digital_ocean_firewall:
name: mpd-firewall
state: present
inbound_rules:
- protocol: "tcp"
ports: "22"
sources:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "tcp"
ports: "6600-6605"
sources:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "tcp"
ports: "6700-6705"
sources:
tags: ["ansible"]
addresses: ["0.0.0.0/0", "::/0"]
outbound_rules:
- protocol: "tcp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "udp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "icmp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
tags: ["mpdf", "mpdb"]
- name: Create a Firewall named mpd-firewall
digital_ocean_firewall:
name: mpd-firewall
state: present
inbound_rules:
- protocol: "tcp"
ports: "22"
sources:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "tcp"
ports: "6600-6605"
sources:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "tcp"
ports: "6700-6705"
sources:
tags: ["ansible"]
addresses: ["0.0.0.0/0", "::/0"]
outbound_rules:
- protocol: "tcp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "udp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
- protocol: "icmp"
ports: "1-65535"
destinations:
addresses: ["0.0.0.0/0", "::/0"]
tags: ["mpdf", "mpdb"]
- name: mpdb
ansible.builtin.import_playbook: mpdb.yaml
- name: mpdf


Ladataan…
Peruuta
Tallenna