Hi All,

i wrote simple windows app pool playbook , to test handlers but
everything works fine except that part of handlers being notified.

can someone please point me where am i going wrong or what am i missing ?


---
- name: Create AppPool and its settings
  hosts: all

  vars:
    apppool_name: Test22
    attributes:
      version: v4.0
      autoStart: no


  tasks:

    - name: Create a new application pool in 'Stopped' state
      win_iis_webapppool:
        name: "{{apppool_name}}"
        state: stopped

    - name: Change application pool attributes
      win_iis_webapppool:
        name: "{{apppool_name}}"
        attributes:
        managedRuntimeVersion: "{{attributes['version']}}"
        autoStart: "{{attributes['autoStart']}}"
      notify:
      - Start AppPool

  handlers:
    - name: Start AppPool
      win_iis_webapppool:
        name: "{{apppool_name}}"
        state: started

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CADiG6us1JVzS-FvDN2oZEmtvQy%3DxaMFOMv55uQmpb%2BYjWC_%3D%3DQ%40mail.gmail.com.

Reply via email to