1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

'when: X' -> 'when: X | bool' for Ansibl 2.8

This commit is contained in:
holta 2019-05-24 18:33:10 -04:00
parent 176abdd2f5
commit 3a1ccf3638
89 changed files with 248 additions and 248 deletions

View file

@ -9,7 +9,7 @@
package:
name: postgresql-client
state: present
when: is_debuntu
when: is_debuntu | bool
tags:
- download
@ -41,11 +41,11 @@
lineinfile:
dest: /etc/locale.gen
line: "{{ postgresql_locale }} UTF-8"
when: is_debuntu
when: is_debuntu | bool
- name: Generate locales (debuntu)
command: /usr/sbin/locale-gen
when: is_debuntu
when: is_debuntu | bool
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (debuntu)
#command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
@ -54,7 +54,7 @@
creates: /library/pgsql-iiab/pg_hba.conf
become: yes
become_user: postgres
when: is_debuntu
when: is_debuntu | bool
- name: Initialize the PostgreSQL db, creating /library/pgsql-iiab/pg_hba.conf (OS's other than debuntu)
#command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab"
@ -91,7 +91,7 @@
name: postgresql-iiab
state: started
enabled: yes
when: postgresql_enabled
when: postgresql_enabled | bool
- name: Disable postgresql-iiab service, if not postgresql_enabled
systemd: