Skip to content

Commit

Permalink
Merge pull request #60 from fitz123/include-tags_bugfix
Browse files Browse the repository at this point in the history
Include tasks specify tags in only one way
  • Loading branch information
Sebastian Gumprich committed Jan 17, 2016
2 parents 3f797f8 + a9d0804 commit 0d99de2
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,33 @@
include_vars: "{{ ansible_os_family }}.yml"
tags: always

- include: limits.yml tags=limits
- include: login_defs.yml tags=login_defs
- include: minimize_access.yml tags=minimize_acces
- include: pam.yml tags=pam
- include: profile.yml tags=profile
- include: securetty.yml tags=securetty
- include: suid_sgid.yml tags=suid_sgid
- include: limits.yml
tags: limits
- include: login_defs.yml
tags: login_defs
- include: minimize_access.yml
tags: minimize_acces
- include: pam.yml
tags: pam
- include: profile.yml
tags: profile
- include: securetty.yml
tags: securetty
- include: suid_sgid.yml
tags: suid_sgid
when: os_security_suid_sgid_enforce

- include: sysctl.yml tags=sysctl
- include: user_accounts.yml tags=user_accounts
- include: rhosts.yml tags=rhosts
- include: sysctl.yml
tags: sysctl
- include: user_accounts.yml
tags: user_accounts
- include: rhosts.yml
tags: rhosts

- include: yum.yml tags=yum
- include: yum.yml
tags: yum
when: ansible_os_family == 'RedHat' or ansible_os_family == 'Oracle Linux'

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

0 comments on commit 0d99de2

Please sign in to comment.