Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Handlers not found
11 views
Skip to first unread message
rubod singh
unread,
Dec 20, 2020, 4:05:21 PM
12/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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