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

Remove "| bool" 1.5yrs later, as Ansible 2.10 changed conditional_bare_variables default

This commit is contained in:
root 2020-10-16 16:46:19 -04:00
parent 2968a8a20e
commit ca171fbc1c
158 changed files with 2072 additions and 2072 deletions

View file

@ -7,7 +7,7 @@
package:
name: postgresql-client
state: present
when: is_debuntu | bool
when: is_debuntu
- name: Install 'postgresql-server' package (OS's other than debuntu)
package:
@ -35,11 +35,11 @@
lineinfile:
dest: /etc/locale.gen
line: "{{ postgresql_locale }} UTF-8"
when: is_debuntu | bool
when: is_debuntu
- name: Generate locales (debuntu)
command: /usr/sbin/locale-gen
when: is_debuntu | bool
when: is_debuntu
- 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"
@ -48,7 +48,7 @@
creates: /library/pgsql-iiab/pg_hba.conf
become: yes
become_user: postgres
when: is_debuntu | bool
when: is_debuntu
- 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"

View file

@ -37,7 +37,7 @@
daemon_reload: yes
enabled: yes
state: started
when: postgresql_enabled | bool
when: postgresql_enabled
- name: Disable & Stop 'postgresql-iiab' systemd service, if not postgresql_enabled
systemd: