Allow kwargs for template context when deploying sudoers file

This commit is contained in:
Lance Edgar 2020-09-16 15:48:34 -05:00
parent d6a11908ce
commit 6cb6ddaba7

View file

@ -208,7 +208,7 @@ class Deployer(object):
put(c, local_path, remote_path, **kwargs)
def sudoers(self, c, local_path, remote_path, owner='root:', mode='0440', **kwargs):
self.deploy(c, local_path, '/tmp/sudoers', owner=owner, mode=mode, use_sudo=True)
self.deploy(c, local_path, '/tmp/sudoers', owner=owner, mode=mode, use_sudo=True, **kwargs)
c.sudo('mv /tmp/sudoers {}'.format(remote_path))
def apache_site(self, c, local_path, name, **kwargs):