From db698b595e7ff088c96d00ef5285a0d634aff1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Mon, 12 Dec 2022 22:15:01 +0100 Subject: refactor: pass ansible-lint with yaml header --- roles/postgres/defaults/main.yml | 2 ++ roles/postgres/tasks/create_db.yml | 2 ++ roles/postgres/tasks/create_user.yml | 2 ++ roles/postgres/tasks/main.yml | 2 ++ 4 files changed, 8 insertions(+) (limited to 'roles/postgres') diff --git a/roles/postgres/defaults/main.yml b/roles/postgres/defaults/main.yml index 963e594..856ac50 100644 --- a/roles/postgres/defaults/main.yml +++ b/roles/postgres/defaults/main.yml @@ -1,3 +1,5 @@ +--- + postgres_dir: /data/postgresql postgres_default_dir: /var/postgresql postgres_user: _postgresql diff --git a/roles/postgres/tasks/create_db.yml b/roles/postgres/tasks/create_db.yml index 5f8db70..d2f3676 100644 --- a/roles/postgres/tasks/create_db.yml +++ b/roles/postgres/tasks/create_db.yml @@ -1,3 +1,5 @@ +--- + - name: create database # noqa: no-changed-when ansible.builtin.command: createdb -U postgres -O "{{ postgres_db_user }}" "{{ postgres_db_name }}" register: result diff --git a/roles/postgres/tasks/create_user.yml b/roles/postgres/tasks/create_user.yml index 483e507..793676e 100644 --- a/roles/postgres/tasks/create_user.yml +++ b/roles/postgres/tasks/create_user.yml @@ -1,3 +1,5 @@ +--- + - name: create database user # noqa: no-changed-when ansible.builtin.command: createuser -U postgres "{{ postgres_db_user }}" register: result diff --git a/roles/postgres/tasks/main.yml b/roles/postgres/tasks/main.yml index 8046d40..302fba4 100644 --- a/roles/postgres/tasks/main.yml +++ b/roles/postgres/tasks/main.yml @@ -1,3 +1,5 @@ +--- + - name: install postgres ansible.builtin.package: name: -- cgit v1.2.3