1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 19:22:24 +00:00

PR16 and PR17 -- moodle/templates/install -- /etc/hosts

This commit is contained in:
George Hunt 2017-06-19 17:16:23 -07:00 committed by georgejhunt
parent 68243f1a74
commit 3f862da6a2
2 changed files with 7 additions and 7 deletions

View file

@ -1,8 +1,8 @@
#!/bin/bash -x
sudo -u {{ apache_user }} /usr/bin/php {{moodle_base}}/admin/cli/install.php \
--wwwroot=http://schoolserver.lan/moodle --dataroot={{moodle_data}} \
--dbtype=pgsql --dbname=moodle --dbuser=Admin --dbpass=changeme \
sudo -u {{ apache_user }} /usr/bin/php {{ moodle_base }}/admin/cli/install.php \
--wwwroot=http://{{ iiab_hostname }}.{{ iiab_domain }}/moodle --dataroot={{ moodle_data }} \
--dbtype=pgsql --dbname={{ moodle_database_name }} --dbuser=Admin --dbpass=changeme \
--fullname=Your_School --shortname=School \
--adminuser=admin --adminpass=changeme \
--non-interactive --agree-license
chown {{ apache_user}}:{{ apache_user }} {{ moodle_base }}/config.php
chown {{ apache_user }}:{{ apache_user }} {{ moodle_base }}/config.php

View file

@ -2,7 +2,7 @@
- name: Configure short hostname in /etc/hosts
lineinfile: dest=/etc/hosts
regexp='^127\.0\.0\.1'
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}'
line='127.0.0.1 localhost.localdomain localhost box {{ iiab_hostname }}'
owner=root
group=root
mode=0644
@ -16,14 +16,14 @@
- name: Configure fqdn in /etc/hosts with LAN
lineinfile: dest=/etc/hosts
regexp='^172\.18\.96\.1'
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }}'
line='172.18.96.1 {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box'
state=present
when: iiab_lan_iface != "none" and not installing
- name: Configure fqdn in /etc/hosts appliance mode
lineinfile: dest=/etc/hosts
regexp='^127\.0\.0\.1'
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }}'
line='127.0.0.1 localhost.localdomain localhost {{ iiab_hostname }}.{{ iiab_domain }} {{ iiab_hostname }} box '
owner=root
group=root
mode=0644