fix role and ansible-lint errors
This commit is contained in:
@@ -6,7 +6,7 @@ galaxy_info:
|
|||||||
description: Install PostgreSQL (1C version) as a system service
|
description: Install PostgreSQL (1C version) as a system service
|
||||||
platforms:
|
platforms:
|
||||||
- name: "Ubuntu"
|
- name: "Ubuntu"
|
||||||
versions: [ "jammy" ]
|
versions: ["jammy", "noble"]
|
||||||
company: Genlab, LLC
|
company: Genlab, LLC
|
||||||
license: BSD
|
license: BSD
|
||||||
min_ansible_version: "2.1"
|
min_ansible_version: "2.1"
|
||||||
|
|||||||
@@ -2,11 +2,14 @@
|
|||||||
- name: Verify
|
- name: Verify
|
||||||
hosts: all
|
hosts: all
|
||||||
gather_facts: false
|
gather_facts: false
|
||||||
|
vars:
|
||||||
|
postgres1c_major_ver: 15
|
||||||
|
postgres1c_version: 15
|
||||||
tasks:
|
tasks:
|
||||||
- name: "Include default role vars"
|
- name: "Include default role vars"
|
||||||
ansible.builtin.include_vars:
|
ansible.builtin.include_vars:
|
||||||
dir: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/defaults/"
|
dir: "{{ lookup('env', 'MOLECULE_PROJECT_DIRECTORY') }}/defaults/"
|
||||||
extensions: [ 'yml' ]
|
extensions: ['yml']
|
||||||
|
|
||||||
- name: "Get 'postgres' user password"
|
- name: "Get 'postgres' user password"
|
||||||
tags: [postgres1c]
|
tags: [postgres1c]
|
||||||
@@ -37,8 +40,8 @@
|
|||||||
ansible.builtin.service:
|
ansible.builtin.service:
|
||||||
name: "postgrespro-1c-{{ postgres1c_version }}"
|
name: "postgrespro-1c-{{ postgres1c_version }}"
|
||||||
state: started
|
state: started
|
||||||
register: start_postgrespro1c
|
register: postgres1c_start_postgrespro1c
|
||||||
failed_when: start_postgrespro1c.changed
|
failed_when: postgres1c_start_postgrespro1c.changed
|
||||||
|
|
||||||
- name: Create a new database with name "test"
|
- name: Create a new database with name "test"
|
||||||
tags: [postgres1c]
|
tags: [postgres1c]
|
||||||
|
|||||||
Reference in New Issue
Block a user