--- - name: Set flag require_reboot set_fact: require_reboot: "{{ True if network_fqdn != ansible_fqdn else False }}" - include_tasks: config.yml