I have this role dagman62.apache_php it is installing apache/apr with php 
from source. I am registered variables and when: changed to determine if a 
tarball changed and needs to be UN-archived, configured, then built. I am 
getting these annoying warnings about using handlers, but I dont see the 
logic. It has been my understanding that handlers can be used to restart an 
app lets say in  case a configuration changed. I dont want my configure and 
make to run only if an archive changed. It would never get built. 

Excerpt from upload

 

./galaxy/downloads/tmpQjSwNY/tasks/main.yml:40: [E503] Tasks that run when 
changed should likely be handlers

 

If someone would be so kind as to give me some pointers on where to look in 
order to resolve these warnings, it would be appreciated.

 

dagman62.apache_php

 

Thanks in advance

 

Gaetano

 

The block in question is:

 

  - name: Unpacking Apache APR

    unarchive:

      copy: no

      dest: /tmp/

      src: "{{ apr_source.dest }}"

    when: apr_source is changed
    register: apr_source_unpack

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/3aee82a5-d707-41c5-858b-ab9317033de8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to