Skip to content

Commit dc3ef42

Browse files
Tronderichm
andauthored
Added some example playbooks (#110)
* Added some example playbooks Signed-off-by: Joerg Kastning <jkastning@my-it-brain.de> * Fixed the name of the task to match the semantic. Signed-off-by: Joerg Kastning <jkastning@my-it-brain.de> * Fixed yamllint error: too few spaces after comma. Signed-off-by: Joerg Kastning <jkastning@my-it-brain.de> * Add the missing space as @richm has suggested. Co-authored-by: Richard Megginson <richm@stanfordalumni.org> Signed-off-by: Joerg Kastning <jkastning@my-it-brain.de> Co-authored-by: Richard Megginson <richm@stanfordalumni.org>
1 parent 536f2be commit dc3ef42

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: Disable cockpit and dhcpv6-client service in default zone
3+
hosts: "{{ targets }}"
4+
5+
vars:
6+
firewall:
7+
- service: [cockpit, dhcpv6-client]
8+
state: disabled
9+
roles:
10+
- linux-system-roles.firewall

examples/enable-http-and-https.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- name: Enable http and https service in default zone
3+
hosts: "{{ targets }}"
4+
5+
vars:
6+
firewall:
7+
- service: [http, https]
8+
state: enabled
9+
roles:
10+
- linux-system-roles.firewall

examples/enable-ssh-only.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
- name: Erase existing config and enable ssh service
3+
hosts: "{{ targets }}"
4+
5+
vars:
6+
firewall:
7+
- previous: replaced
8+
- service: ssh
9+
state: enabled
10+
roles:
11+
- linux-system-roles.firewall

0 commit comments

Comments
 (0)