Do you have the log when the task was skipped? 

Which task was it? 
Run your playbook with "-vvvv" and post it here.

On Tuesday, July 2, 2019 at 2:49:50 AM UTC-7, Ajay Kannan wrote:
>
> ---
> - name: "zabbix maintenance"
>   hosts: hostname
>   become: True
>   gather_facts: false
>
>   tasks:
>     - name: "Set facts to store RITM and log name."
>       set_fact:
>         ID: "{{ ID }}"
>         Main: "{{ Name }}"
>         Dur: "{{ Time }}"
>         Host: "{{ Server_name }}"
>         Link: "{{ Link }}"
>         Tool_Username: "{{ Tool_Username }}"
>         Tool_Password: "{{ Tool_Password }}"
>
>     - name: "Zabbix"
>       zabbix_maintenance:
>         name: "{{ Main }}"
>         host_name: "{{ Host }}"
>         state: present
>         minutes: "{{ Dur }}"
>         server_url: "{{ Link }}"
>         login_user: "{{ Tool_Username }}"
>         login_password: "{{ Tool_Password }}"
>
>     
>     - name: "test"
>       mail:
>         host: smtp server
>         port: 25
>         to: mail id
>         from: mail id
>         subject: Zabbix maintenance
>         body: "Hello Team, <br> </br> Following host are put in 
> maintenance mode in zabbix by {{ ID }}. <br> </br> {{ Host }} -- {{ Dur 
> }}Minutes"
>         charset: utf8
>         subtype: html
>       delegate_to: localhost
>
>
>
> On Tuesday, July 2, 2019 at 1:10:15 PM UTC+5:30, Ludovic Petetin wrote:
>>
>> Hi,
>>
>> We really need more information to help you.
>>
>> Can you paste your playbook and the result when skipped.
>>
>> Thanks
>>
>> Le mardi 2 juillet 2019 09:36:41 UTC+2, Ajay Kannan a écrit :
>>>
>>> Hi team,
>>>
>>> am new to anisble and currently stuck up with one issue.
>>> have developed script for maintenance mode and it was working fine. 
>>> But for few time it skips the tasks often.
>>> Can anyone guide me from here.
>>>
>>>
>>> Thanks in advance
>>>
>>> regards
>>> ajay
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/25855411-b86c-425c-98ab-9b0f44b13411%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to