]> git.immae.eu Git - github/fretlink/ansible-postgresql-role.git/blobdiff - tasks/postgres-common-postinstall.yml
Allow to use any ansible become method
[github/fretlink/ansible-postgresql-role.git] / tasks / postgres-common-postinstall.yml
index 715782c5a2ed5f8ba580314b945dd3272dfc4c45..9be3bde5bbce3564094189fa66257053d9b08608 100644 (file)
@@ -7,7 +7,7 @@
   command: ssh-keygen -b 4096 -f /var/lib/postgresql/.ssh/id_rsa -N "" -q
   become: yes
   become_user: postgres
-  become_method: su
+  become_method: "{{ postgres_become_method }}"
   args:
     creates: /var/lib/postgresql/.ssh/id_rsa