mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +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 }}
|
package: name={{ item }}
|
||||||
state=present
|
state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
@ -6,13 +6,13 @@
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install postgresql for debian
|
- name: Install PostgreSQL for Debian
|
||||||
package: name=postgresql-client
|
package: name=postgresql-client
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
tags:
|
tags:
|
||||||
- download
|
- download
|
||||||
|
|
||||||
- name: Install postgresql for fedora
|
- name: Install PostgreSQL for Fedora
|
||||||
package: name=postgresql-server
|
package: name=postgresql-server
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
tags:
|
tags:
|
||||||
|
@ -32,12 +32,12 @@
|
||||||
mode=0700
|
mode=0700
|
||||||
state=directory
|
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
|
lineinfile: dest=/etc/locale.gen
|
||||||
line="{{ postgresql_locale }} UTF-8"
|
line="{{ postgresql_locale }} UTF-8"
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
- name: generate the selected locales
|
- name: Generate the selected locales
|
||||||
command: /usr/sbin/locale-gen
|
command: /usr/sbin/locale-gen
|
||||||
when: is_debuntu
|
when: is_debuntu
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@
|
||||||
creates=/library/pgsql-iiab/pg_hba.conf
|
creates=/library/pgsql-iiab/pg_hba.conf
|
||||||
when: not is_debuntu
|
when: not is_debuntu
|
||||||
|
|
||||||
- name: Configure postgres
|
- name: Configure PostgreSQL
|
||||||
template: backup=yes
|
template: backup=yes
|
||||||
src=postgresql.conf.j2
|
src=postgresql.conf.j2
|
||||||
dest=/library/pgsql-iiab/postgresql.conf
|
dest=/library/pgsql-iiab/postgresql.conf
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: postgresql_enabled
|
when: postgresql_enabled
|
||||||
|
|
||||||
- name: Stop and disable postgresql-iiab service
|
- name: Stop and disable postgresql service if not postgresql_enabled
|
||||||
service: name=postgresql
|
service: name=postgresql
|
||||||
state=stopped
|
state=stopped
|
||||||
enabled=no
|
enabled=no
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue