mirror of
https://github.com/iiab/iiab.git
synced 2025-02-12 19:22:24 +00:00
cleaner Ansible messaging
This commit is contained in:
parent
b1ec762ffb
commit
d3017d764c
1 changed files with 7 additions and 7 deletions
|
@ -1,4 +1,4 @@
|
|||
- name: Install postgresql packages
|
||||
- name: Install PostgreSQL packages
|
||||
package: name={{ item }}
|
||||
state=present
|
||||
with_items:
|
||||
|
@ -6,13 +6,13 @@
|
|||
tags:
|
||||
- download
|
||||
|
||||
- name: Install postgresql for debian
|
||||
- name: Install PostgreSQL for Debian
|
||||
package: name=postgresql-client
|
||||
when: is_debuntu
|
||||
tags:
|
||||
- download
|
||||
|
||||
- name: Install postgresql for fedora
|
||||
- name: Install PostgreSQL for Fedora
|
||||
package: name=postgresql-server
|
||||
when: not is_debuntu
|
||||
tags:
|
||||
|
@ -32,12 +32,12 @@
|
|||
mode=0700
|
||||
state=directory
|
||||
|
||||
- name: make sure that the en_US locale is enabled
|
||||
- name: Make sure that the en_US locale is enabled
|
||||
lineinfile: dest=/etc/locale.gen
|
||||
line="{{ postgresql_locale }} UTF-8"
|
||||
when: is_debuntu
|
||||
|
||||
- name: generate the selected locales
|
||||
- name: Generate the selected locales
|
||||
command: /usr/sbin/locale-gen
|
||||
when: is_debuntu
|
||||
|
||||
|
@ -56,7 +56,7 @@
|
|||
creates=/library/pgsql-iiab/pg_hba.conf
|
||||
when: not is_debuntu
|
||||
|
||||
- name: Configure postgres
|
||||
- name: Configure PostgreSQL
|
||||
template: backup=yes
|
||||
src=postgresql.conf.j2
|
||||
dest=/library/pgsql-iiab/postgresql.conf
|
||||
|
@ -80,7 +80,7 @@
|
|||
enabled=yes
|
||||
when: postgresql_enabled
|
||||
|
||||
- name: Stop and disable postgresql-iiab service
|
||||
- name: Stop and disable postgresql service if not postgresql_enabled
|
||||
service: name=postgresql
|
||||
state=stopped
|
||||
enabled=no
|
||||
|
|
Loading…
Reference in a new issue