mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
ubuntu-17.yml
This commit is contained in:
parent
caa9b28c7e
commit
ddf2129e5d
3 changed files with 26 additions and 8 deletions
|
@ -44,12 +44,7 @@
|
||||||
- name: Initialize the postgres db
|
- name: Initialize the postgres db
|
||||||
command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
command: su - postgres -c "/usr/lib/postgresql/{{ postgresql_version }}/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
||||||
creates=/library/pgsql-iiab/pg_hba.conf
|
creates=/library/pgsql-iiab/pg_hba.conf
|
||||||
when: is_debian
|
when: is_debuntu
|
||||||
|
|
||||||
- name: Initialize the postgres db
|
|
||||||
command: su - postgres -c "/usr/lib/postgresql/9.5/bin/initdb -E 'UTF-8' --locale={{ postgresql_locale }} -D /library/pgsql-iiab"
|
|
||||||
creates=/library/pgsql-iiab/pg_hba.conf
|
|
||||||
when: is_ubuntu
|
|
||||||
|
|
||||||
- name: Initialize the postgres db
|
- name: Initialize the postgres db
|
||||||
command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab"
|
command: su - postgres -c "/usr/bin/initdb -E 'UTF-8' --lc-collate={{ postgresql_locale }} --lc-ctype={{ postgresql_locale }} -D /library/pgsql-iiab"
|
||||||
|
@ -80,8 +75,8 @@
|
||||||
enabled=yes
|
enabled=yes
|
||||||
when: postgresql_enabled
|
when: postgresql_enabled
|
||||||
|
|
||||||
- name: Stop and disable postgresql service if not postgresql_enabled
|
- name: Stop and disable postgresql-iiab service if not postgresql_enabled
|
||||||
service: name=postgresql
|
service: name=postgresql-iiab
|
||||||
state=stopped
|
state=stopped
|
||||||
enabled=no
|
enabled=no
|
||||||
when: not postgresql_enabled
|
when: not postgresql_enabled
|
||||||
|
|
|
@ -12,6 +12,7 @@ case $OS_VER in
|
||||||
"debian-8" | \
|
"debian-8" | \
|
||||||
"debian-9" | \
|
"debian-9" | \
|
||||||
"ubuntu-16" | \
|
"ubuntu-16" | \
|
||||||
|
"ubuntu-17" | \
|
||||||
"centos-7" | \
|
"centos-7" | \
|
||||||
"raspbian-8"| \
|
"raspbian-8"| \
|
||||||
"raspbian-9")
|
"raspbian-9")
|
||||||
|
|
22
vars/ubuntu-17.yml
Normal file
22
vars/ubuntu-17.yml
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
is_debuntu: True
|
||||||
|
is_ubuntu: True
|
||||||
|
dns_service: bind9
|
||||||
|
dns_user: bind
|
||||||
|
dhcp_service: isc-dhcp-server
|
||||||
|
proxy: squid
|
||||||
|
proxy_user: proxy
|
||||||
|
apache_service: apache2
|
||||||
|
apache_user: www-data
|
||||||
|
apache_config_dir: apache2/sites-available
|
||||||
|
apache_log_dir: /var/log/apache2
|
||||||
|
smb_service: smbd
|
||||||
|
nmb_service: nmbd
|
||||||
|
systemctl_program: /bin/systemctl
|
||||||
|
mysql_service: mysql
|
||||||
|
apache_log: /var/log/apache2/access.log
|
||||||
|
# cups lp module not available in raspbian, causes systemd-modueles-load to fail
|
||||||
|
# which in turn cause netfilter-persistent to fail, which is essential
|
||||||
|
sshd_service: ssh
|
||||||
|
php_version: 7.0
|
||||||
|
postgresql_version: 9.6
|
||||||
|
systemd_location: /lib/systemd/system
|
Loading…
Add table
Add a link
Reference in a new issue