2024-09-19 23:10:00 +02:00
|
|
|
---
|
|
|
|
- name: Install postgres
|
2024-10-08 11:31:26 +02:00
|
|
|
ansible.builtin.apt:
|
2024-09-19 23:10:00 +02:00
|
|
|
name: "{{ postgres_packages }}"
|
|
|
|
state: present
|
|
|
|
become: true
|
|
|
|
|
|
|
|
- name: Start and enable the service
|
2024-10-08 11:31:26 +02:00
|
|
|
ansible.builtin.systemd:
|
2024-09-19 23:10:00 +02:00
|
|
|
name: postgresql
|
|
|
|
state: started
|
2024-09-20 15:01:33 +02:00
|
|
|
daemon_reload: true
|
2024-09-19 23:10:00 +02:00
|
|
|
enabled: true
|
|
|
|
become: true
|