Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Some tasks are always run even if they are not needed #78

Closed
romaincabassot opened this issue Oct 12, 2016 · 1 comment
Closed

Some tasks are always run even if they are not needed #78

romaincabassot opened this issue Oct 12, 2016 · 1 comment
Labels

Comments

@romaincabassot
Copy link

Hello,

It's not a major problem but it's usefull to really know what is changed when we execute a playbook and those task always return a 'changed' state:

TASK [dev-sec.ssh-hardening : check and compile policy] ************************
changed: [server]

TASK [dev-sec.ssh-hardening : create selinux policy module package] ************
changed: [server]

TASK [dev-sec.ssh-hardening : install selinux policy] **************************
changed: [server]

It would be nice if they weren't executed if don't needed or don't produce a changed state if not necessary.

Romain

@rndmh3ro
Copy link
Member

Hi Romain,

yes, you're right and I already coded it here:
https://github.com/dev-sec/ansible-ssh-hardening/tree/check_selinux_module

I still have to create a PR, though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants