Skip to content

Commit

Permalink
Added some example playbooks (#110)
Browse files Browse the repository at this point in the history
* Added some example playbooks

Signed-off-by: Joerg Kastning <[email protected]>

* Fixed the name of the task to match the semantic.

Signed-off-by: Joerg Kastning <[email protected]>

* Fixed yamllint error: too few spaces after comma.

Signed-off-by: Joerg Kastning <[email protected]>

* Add the missing space as @richm has suggested.

Co-authored-by: Richard Megginson <[email protected]>

Signed-off-by: Joerg Kastning <[email protected]>
Co-authored-by: Richard Megginson <[email protected]>
  • Loading branch information
Tronde and richm authored Dec 7, 2022
1 parent 536f2be commit dc3ef42
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
10 changes: 10 additions & 0 deletions examples/disable-cockpit-and-dhcpv6-client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Disable cockpit and dhcpv6-client service in default zone
hosts: "{{ targets }}"

vars:
firewall:
- service: [cockpit, dhcpv6-client]
state: disabled
roles:
- linux-system-roles.firewall
10 changes: 10 additions & 0 deletions examples/enable-http-and-https.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Enable http and https service in default zone
hosts: "{{ targets }}"

vars:
firewall:
- service: [http, https]
state: enabled
roles:
- linux-system-roles.firewall
11 changes: 11 additions & 0 deletions examples/enable-ssh-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
- name: Erase existing config and enable ssh service
hosts: "{{ targets }}"

vars:
firewall:
- previous: replaced
- service: ssh
state: enabled
roles:
- linux-system-roles.firewall

0 comments on commit dc3ef42

Please sign in to comment.