def ensure_host(self, host_name, ip):
        self.ensure_line('%s        %s' % (ip, host_name), '/etc/hosts', sudo=True)
Makes sure that a certain host is configured in the hosts file.
dataset/ETHPy150Open python-provy/provy/provy/more/linux/networking/hosts.py/HostsRole.ensure_host