Skip to content

Commit e36cdb4

Browse files
committed
Use fully qualified connection names (FQCNs) for task names
1 parent 54dfb27 commit e36cdb4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/playbook.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
22
- name: Import base image playbook
3-
import_playbook: base.yml
3+
ansible.builtin.import_playbook: base.yml
44

55
- name: Import UFW playbook
6-
import_playbook: ufw.yml
6+
ansible.builtin.import_playbook: ufw.yml
77

88
- name: Import OpenVPN playbook
9-
import_playbook: openvpn.yml
9+
ansible.builtin.import_playbook: openvpn.yml
1010

1111
- name: Import VENOM playbook
12-
import_playbook: venom.yml
12+
ansible.builtin.import_playbook: venom.yml
1313

1414
- name: Import AWS playbook
15-
import_playbook: aws.yml
15+
ansible.builtin.import_playbook: aws.yml
1616

1717
- name: Import hardening playbook
18-
import_playbook: harden.yml
18+
ansible.builtin.import_playbook: harden.yml

src/ufw.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
- name: Configure default policies
3232
block:
3333
- name: Set all default policies to deny
34-
ufw:
34+
community.general.ufw:
3535
default: deny
3636
direction: "{{ item }}"
3737
loop:
@@ -43,7 +43,7 @@
4343
# The OpenVPN port is already opened in
4444
# cisagov/ansible-role-openvpn
4545
- name: Allow ssh only from lo
46-
ufw:
46+
community.general.ufw:
4747
comment: Allow ssh only from lo
4848
direction: in
4949
interface: lo
@@ -53,15 +53,15 @@
5353
- name: Configure outgoing traffic
5454
block:
5555
- name: Allow various outgoing traffic
56-
ufw:
56+
community.general.ufw:
5757
comment: Allow {{ item.port }} via {{ item.proto | upper }}
5858
direction: out
5959
proto: "{{ item.proto }}"
6060
rule: allow
6161
to_port: "{{ item.port }}"
6262
loop: "{{ outgoing_only_ports }}"
6363
- name: Allow outgoing NTP traffic to AWS
64-
ufw:
64+
community.general.ufw:
6565
comment: Allow NTP via UDP to AWS
6666
direction: out
6767
proto: udp
@@ -70,7 +70,7 @@
7070
to_ip: 169.254.169.123
7171
to_port: ntp
7272
- name: Allow outgoing DHCP traffic
73-
ufw:
73+
community.general.ufw:
7474
comment: Allow outgoing DHCP via UDP
7575
direction: out
7676
from_port: bootpc
@@ -85,15 +85,15 @@
8585
# of the law, not the intent. Next thing you know I'll be
8686
# chasing ambulances. :(
8787
- name: Allow routed packets from anywhere to anywhere
88-
ufw:
88+
community.general.ufw:
8989
comment: Allow routed packets from anywhere to anywhere
9090
route: yes
9191
rule: allow
9292
- name: Configure loopback traffic
9393
# CIS hardening demands these changes.
9494
block:
9595
- name: Allow any traffic in or out from lo
96-
ufw:
96+
community.general.ufw:
9797
comment: Allow any traffic in or out from lo
9898
direction: "{{ item }}"
9999
interface: lo
@@ -102,7 +102,7 @@
102102
- in
103103
- out
104104
- name: Deny any traffic in from 127.0.0.0/8 or ::1
105-
ufw:
105+
community.general.ufw:
106106
comment: Deny any traffic in from 127.0.0.0/8 or ::1
107107
direction: in
108108
from_ip: "{{ item }}"

src/venom.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
third_party_bucket_name: "{{ build_bucket }}"
3333
tasks:
3434
- name: Configure UFW for VENOM traffic
35-
ufw:
35+
community.general.ufw:
3636
comment: >
3737
Allow {{ item.port }} {{ item.direction }} via
3838
{{ item.proto | upper }}

0 commit comments

Comments
 (0)