Yep, it was a problem with my when: statements.  I changed to the following 
and things are behaving as expected now:

---
# handlers file for dns_update
- name: Networking
  debug:
  changed_when: true
  notify:
    - 6 network restart
    - 7 network restart
    - 7 NetworkManager restart

- name: ensure stopped
  service:
    name: NetworkManager
    state: stopped

- name: 6 network restart
  service:
    name: network
    state: restarted
  when: ansible_distribution_major_version == '6' and not 
ansible_distribution_major_version == '7'

- name: 7 network restart
  service:
    name: network
    state: restarted
  when: ansible_distribution_major_version == '7' and "NetworkManager.service; 
disabled;" | string in nm_status.stdout
  notify: ensure stopped

- name: 7 NetworkManager restart
  service:
    name: NetworkManager
    state: restarted
  when: ansible_distribution_major_version == '7' and "NetworkManager.service; 
disabled;" | string not in nm_status.stdout


-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/228551d9-6b0e-427f-84e6-af8437f3dffa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to