--- - name: restart idmap service: name={{ item }} state=restarted with_items: - rpcbind - rpcidmapd when: nfs_type == "nfs4" sudo: true