Skip to content

Commit

Permalink
Update syntax to 2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjpfan committed Jan 23, 2018
1 parent 7daabdc commit 15b0c17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ It will not:

## Requirements

* Ansible 2.2.1
* Ansible 2.4.2


## Warning
Expand Down
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ galaxy_info:
description: 'This Ansible role provides numerous security-related configurations, providing all-round base protection.'
company: Hardening Framework Team
license: Apache License 2.0
min_ansible_version: '2.2.1'
min_ansible_version: '2.4.2'
platforms:
- name: EL
versions:
Expand Down
26 changes: 13 additions & 13 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,44 +13,44 @@
skip: true
tags: always

- include: limits.yml
- include_tasks: limits.yml
tags: limits

- include: login_defs.yml
- include_tasks: login_defs.yml
tags: login_defs

- include: minimize_access.yml
- include_tasks: minimize_access.yml
tags: minimize_access

- include: modprobe.yml
- include_tasks: modprobe.yml
tags: modprobe

- include: pam.yml
- include_tasks: pam.yml
tags: pam

- include: profile.yml
- include_tasks: profile.yml
tags: profile

- include: securetty.yml
- include_tasks: securetty.yml
tags: securetty

- include: suid_sgid.yml
- include_tasks: suid_sgid.yml
when: os_security_suid_sgid_enforce
tags: suid_sgid

- include: sysctl.yml
- include_tasks: sysctl.yml
tags: sysctl

- include: user_accounts.yml
- include_tasks: user_accounts.yml
tags: user_accounts

- include: rhosts.yml
- include_tasks: rhosts.yml
tags: rhosts

- include: yum.yml
- include_tasks: yum.yml
when: ansible_os_family == 'RedHat'
tags: yum

- include: apt.yml
- include_tasks: apt.yml
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
tags: apt

0 comments on commit 15b0c17

Please sign in to comment.