+ - file:
+ path: /var/spool/cron/crontabs/postgres
+ contents: |
+ # m h dom mon dow command
+ # MAILTO=?
+ 0 4 * * * /var/lib/postgresql/take-database-backup
+
+run:
+ # Make sure this matches the postgresql version template above
+ - replace:
+ filename: "/etc/postgresql/13/main/postgresql.conf"
+ from: /#?max_connections *=.*/
+ to: "max_connections = $db_max_connections"