Skip to content

Instantly share code, notes, and snippets.

Created September 26, 2014 15:11
Show Gist options
  • Save anonymous/dc1de03995dc9ae147af to your computer and use it in GitHub Desktop.
Save anonymous/dc1de03995dc9ae147af to your computer and use it in GitHub Desktop.
ansible task breaking
- name: postgresql.conf
lineinfile: dest=/var/lib/pgsql/9.3/data/postgresql.conf regexp={{ item.regexp }} line="{{ item.line }}"
with_items:
- { regexp: "^listen_addresses=", line: "listen_addresses='*'" }
- { regexp: "^wal_level=", line: "wal_level='hot_standby'" }
- { regexp: "^archive_mode=", line: "archive_mode=on" }
- { regexp: "^archive_command=", line: "archive_command='exit 0'" }
- { regexp: "^max_wal_senders=", line: "max_wal_senders=10" }
- { regexp: "^wal_keep_segments=", line: "wal_keep_segments=1000" }
- { regexp: "^hot_standby=", line: "hot_standby=on" }
- { regexp: "^synchronous_standby_names=", line: "synchronous_standby_names=''" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment