Skip to content

Commit 7568316

Browse files
committed
remove FQCN from roles in examples
Ansible does not work with FQCN and collections sepcified for including roles. It is currently expecting to only get the role name in this context. Verified with Ansible 2.10.5 Signed-off-by: Martin Schurz <[email protected]>
1 parent 5d55d29 commit 7568316

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

roles/mysql_hardening/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It configures:
2424
collections:
2525
- devsec.hardening
2626
roles:
27-
- devsec.hardening.mysql_hardening
27+
- mysql_hardening
2828
```
2929
3030
This role expects an existing installation of MySQL or MariaDB. Please ensure that the following variables are set accordingly:

roles/nginx_hardening/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ It works with the following nginx-roles, including, but not limited to:
8383
collections:
8484
- devsec.hardening
8585
roles:
86-
- devsec.hardening.nginx_hardening
86+
- nginx_hardening
8787
```
8888

8989
[nginx_client_body_buffer_size]: http://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_buffer_size

roles/os_hardening/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ To prevent some of the filesystems from being disabled, add them to the `os_file
219219
collections:
220220
- devsec.hardening
221221
roles:
222-
- devsec.hardening.os_hardening
222+
- os_hardening
223223
```
224224
225225
## Changing sysctl variables
@@ -232,7 +232,7 @@ So for example if you want to change the IPv4 traffic forwarding variable to `1`
232232
collections:
233233
- devsec.hardening
234234
roles:
235-
- devsec.hardening.os_hardening
235+
- os_hardening
236236
vars:
237237
sysctl_overwrite:
238238
# Enable IPv4 traffic forwarding.

roles/ssh_hardening/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ Warning: This role disables root-login on the target server! Please make sure yo
244244
collections:
245245
- devsec.hardening
246246
roles:
247-
- devsec.hardening.ssh_hardening
247+
- ssh_hardening
248248
```
249249
250250
## Configuring settings not listed in role-variables
@@ -258,7 +258,7 @@ Example playbook:
258258
collections:
259259
- devsec.hardening
260260
roles:
261-
- devsec.hardening.ssh_hardening
261+
- ssh_hardening
262262
vars:
263263
ssh_custom_options:
264264
- "Include /etc/ssh/ssh_config.d/*"

0 commit comments

Comments
 (0)