updated lbdns parameter with domain_name

This commit is contained in:
asift91 2020-06-18 16:16:12 +05:30
Родитель d9be5ba6fb
Коммит 189875a7ee
3 изменённых файлов: 13 добавлений и 15 удалений

Просмотреть файл

@ -1,30 +1,29 @@
# Below parameters will be updated in run time.
vm_ip: IP
vm_password: password
user_name: azusername
hostname: moodle
domain_name: domain
lbdns: dns
webroot: /var/www/html
moodle_download_url: https://download.moodle.org/stable38/moodle
moodle_data_direc_path: /azlamp/moodledata
moodle_download_path: /tmp/moodle
version: 3.8.3
default_permission: www-data
#database details will be updated in run time
dbservername: localhost
dbusername: dbname
dbpassword: dbpass
moodle_db_name: moodle
moodle_login_id: admin
moodle_pass:
moodle_admin_mail: test@gmail.com
moodle_full_name: Moodle LMS
moodle_short_name: Moodle
moodle_db_user: moodle
# Passwords are auto-genrated.
moodle_pass:
moodle_db_pass:
version: 3.8.3
moodle_download_url: https://download.moodle.org/stable38/moodle
replication_url: https://raw.githubusercontent.com/Azure/LAMP/master/scripts/moodle_replication.sh
repli_script_name: moodle_replication.sh
repli_script_name: moodle_replication.sh
webroot: /var/www/html
moodle_data_direc_path: /azlamp/moodledata
moodle_download_path: /tmp/moodle
default_permission: www-data

Просмотреть файл

@ -47,7 +47,7 @@
- debug: var=outputpremission.stdout_lines
- name: install moodle
command: /usr/bin/php /tmp/moodle/admin/cli/install.php --chmod=770 --lang=en_us --wwwroot=https://{{lbdns}} --dataroot={{moodle_data_direc_path}} --dbhost={{dbservername}} --dbname={{moodle_db_name}} --dbuser={{dbusername}} --dbpass={{dbpassword}} --dbtype=mysqli --fullname='{{moodle_full_name}}' --shortname='{{moodle_short_name}}' --adminuser={{moodle_login_id}} --adminpass={{moodle_pass}} --adminemail={{moodle_admin_mail}} --non-interactive=true --agree-license=true --allow-unstable=true
command: /usr/bin/php /tmp/moodle/admin/cli/install.php --chmod=770 --lang=en_us --wwwroot=https://{{domain_name}} --dataroot={{moodle_data_direc_path}} --dbhost={{dbservername}} --dbname={{moodle_db_name}} --dbuser={{dbusername}} --dbpass={{dbpassword}} --dbtype=mysqli --fullname='{{moodle_full_name}}' --shortname='{{moodle_short_name}}' --adminuser={{moodle_login_id}} --adminpass={{moodle_pass}} --adminemail={{moodle_admin_mail}} --non-interactive=true --agree-license=true --allow-unstable=true
become: true
-

Просмотреть файл

@ -34,7 +34,6 @@ run_moodle_playbook() {
sudo sed -i "s~dbusername: dbname~dbusername: ${5}~" ${vars_path}
sudo sed -i "s~dbpassword: dbpass~dbpassword: ${6}~" ${vars_path}
sudo sed -i "s~domain_name: domain~domain_name: ${7}~" ${vars_path}
sudo sed -i "s~lbdns: dns~lbdns: ${7}~" ${vars_path}
sudo sed -i "s~moodle_db_name: moodle~moodle_db_name: ${8}~" ${vars_path}
sudo sed -i "s~moodle_db_pass: ~moodle_db_pass: ${moodle_db_pass}~" ${vars_path}
sudo sed -i "s~moodle_pass: ~moodle_pass: ${moodle_pass}~" ${vars_path}