From 542c444684860a7309536dfdf7426b7be8008070 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torma=20Krist=C3=B3f?= Date: Sat, 8 Jan 2022 21:53:39 +0100 Subject: [PATCH] started mariadb and postgresql --- roles/mariadb/tasks/mariadb.yaml | 13 +++++++++++++ roles/postgresql/tasks/postgresql.yaml | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 roles/mariadb/tasks/mariadb.yaml create mode 100644 roles/postgresql/tasks/postgresql.yaml diff --git a/roles/mariadb/tasks/mariadb.yaml b/roles/mariadb/tasks/mariadb.yaml new file mode 100644 index 0000000..db7dedc --- /dev/null +++ b/roles/mariadb/tasks/mariadb.yaml @@ -0,0 +1,13 @@ +--- +- name: "Install MariaDB via apt" + apt: + update_cache: yes + state: present + name: + - mariadb + +- name: Enable and restart MariaDB daemon + service: + name: mariadb + state: restarted + enabled: yes diff --git a/roles/postgresql/tasks/postgresql.yaml b/roles/postgresql/tasks/postgresql.yaml new file mode 100644 index 0000000..ae61118 --- /dev/null +++ b/roles/postgresql/tasks/postgresql.yaml @@ -0,0 +1,13 @@ +--- +- name: "Install PostgreSQL via apt" + apt: + update_cache: yes + state: present + name: + - postgresql + +- name: Enable and restart PostgreSQL daemon + service: + name: postgresql + state: restarted + enabled: yes