1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
type: bool default: false help: Enable/disable root login over ssh update: if [ \"$VAR(@)\" == \"true\" ]; then sudo ed - /etc/ssh/sshd_config <<-"EOF" /^PermitRootLogin/s/no/yes/ wq EOF else sudo ed - /etc/ssh/sshd_config <<-"EOF" /^PermitRootLogin/s/yes/no/ wq EOF fi /bin/true