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