]> git.phdru.name Git - ansible.git/commitdiff
Feat(postgres): Install PostgreSQL and docs
authorOleg Broytman <phd@phdru.name>
Sun, 5 Apr 2020 13:04:00 +0000 (16:04 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 5 Apr 2020 13:04:00 +0000 (16:04 +0300)
playbooks/roles/postgres/tasks/main.yml [new file with mode: 0644]

diff --git a/playbooks/roles/postgres/tasks/main.yml b/playbooks/roles/postgres/tasks/main.yml
new file mode 100644 (file)
index 0000000..c306d57
--- /dev/null
@@ -0,0 +1,11 @@
+- name: Install PostgreSQL packages For Debian
+  become: true
+  apt:
+    autoclean: yes
+    autoremove: yes
+    cache_valid_time: 3600
+    install_recommends: no
+    name: ['postgresql', 'postgresql-doc']
+    state: latest
+    update_cache: yes
+  when: ansible_facts.os_family == 'Debian'