I have googled this, and found I am not the first to ask. I have the following:
- name: Check if NetworkManager is running shell: "systemctl status NetworkManager" register: nm_status changed_when: false ignore_errors: yes when: ansible_distribution_major_version == '7' When it errors out, thanks to systemd, there is a whole bunch of garbage. I would like the following instead msg: "NetworkManager not enabled" I haven't been able to get this to work yet with what I have googled.... anyone else been able to do something like this? -- 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/e1b27ff3-a8c1-427b-ae01-7b0d43fda242%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
