@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Restart postgres
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: postgresql
|
||||
state: restarted
|
||||
become: true
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
---
|
||||
- name: Update apt cache
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
become: true
|
||||
|
||||
- name: Install ansible dependencies
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: "{{ ansible_dependencies }}"
|
||||
become: true
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
---
|
||||
- name: Install postgres
|
||||
apt:
|
||||
ansible.builtin.apt:
|
||||
name: "{{ postgres_packages }}"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Start and enable the service
|
||||
systemd:
|
||||
ansible.builtin.systemd:
|
||||
name: postgresql
|
||||
state: started
|
||||
daemon_reload: true
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
---
|
||||
- include_tasks: ansible_deps.yml
|
||||
- include_tasks: installation.yml
|
||||
- include_tasks: configuration.yml
|
||||
- name: Install ansible dependencies for this role
|
||||
ansible.builtin.include_tasks: ansible_deps.yml
|
||||
- name: Install postgres
|
||||
ansible.builtin.include_tasks: installation.yml
|
||||
- name: Configure Database
|
||||
ansible.builtin.include_tasks: configuration.yml
|
||||
|
||||
Reference in New Issue
Block a user