##### SUMMARY
`esc_period` is mandatory even with `state: absent` - should be optional in that case.

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
zabbix_action

##### ANSIBLE VERSION
latest

##### CONFIGURATION
Not relevant.

##### OS / ENVIRONMENT
Not relevant.

##### STEPS TO REPRODUCE
```yaml
  - name: "Report problems to Zabbix administrators"
    event_source: 'trigger'
    state: absent
```

##### EXPECTED RESULTS
Action, if exists, is removed.

##### ACTUAL RESULTS
```paste below
"msg": "missing required arguments: esc_period"
```
"""
    Compares d1 and d2 dictionaries and adds the items that are different
    to the diff_dict dictionary.
    Used in recursion with compare_lists() function.
    Args:
        d1: first dictionary to compare
        d2: second dictionary to compare
        diff_dict: dictionary to store the difference
    Returns:
        dict: items that are different
    """
    for k, v in d1.items():
        if k not in d2:
            diff_dict[k] = v
            continue
        if isinstance(v, dict):
            diff_dict[k] = {}
            compare_dictionaries(v, d2[k], diff_dict[k])