Handlers not found

11 views
Skip to first unread message

rubod singh

unread,
Dec 20, 2020, 4:05:21 PM12/20/20
to ansible...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages