diff --git a/lib/ansible/modules/system/crypttab.py b/lib/ansible/modules/system/crypttab.py index d976dbdc2d..2c3f9d22c7 100644 --- a/lib/ansible/modules/system/crypttab.py +++ b/lib/ansible/modules/system/crypttab.py @@ -218,6 +218,7 @@ class Line(object): self.opts = Options(opts) if line is not None: + self.line = self.line.rstrip('\n') if self._line_valid(line): self.name, backing_device, password, opts = self._split_line(line)