Skip to content
Snippets Groups Projects
Commit 62ad1a93 authored by Antoine SCHILDKNECHT's avatar Antoine SCHILDKNECHT
Browse files

Update env vars usage and nudgis portal command | refs #36731

parent 61dc3d1b
No related branches found
No related tags found
No related merge requests found
......@@ -13,5 +13,6 @@ skip_list:
- name[casing] # Skip the rule dictating that all task name should begin with uppercase
- template-instead-of-copy # Skip forcing the use of templates
- name[template] # Skip forcing to use jinja var at the end of a task name
- fqcn[action] # Skip full FQCN for ansible actions
...
......@@ -13,7 +13,7 @@
notify: restart nginx on mediaservers
ansible.builtin.lineinfile:
path: /etc/nginx/conf.d/mediaserver-securelink.conf
line: "{{'\t'}}{{ securelink_ip }} 1;" # noqa no-tabs jinja[spacing]
line: "{{'\t'}}{{ securelink_ip }} 1;" # noqa no-tabs jinja[spacing]
insertafter: ^geo
delegate_to: "{{ item }}"
delegate_facts: true
......
......@@ -52,19 +52,17 @@
- name: create instances
loop: "{{ server_instances }}"
environment:
MS_ID: "{{ item.ms_id }}"
MS_SERVER_NAME: "{{ item.ms_server_name }}"
MS_API_KEY: "{{ item.ms_api_key }}"
CM_SERVER_NAME: "{{ item.cm_server_name }}"
MS_SUPERUSER_PWD: "{{ item.ms_superuser_pwd }}"
MS_ADMIN_PWD: "{{ item.ms_admin_pwd }}"
DB_HOST: "{{ envsetup_db_host | d('127.0.0.1') }}"
DB_PORT: "{{ envsetup_db_port | d('5432') }}"
DB_PG_ROOT_PWD: "{{ envsetup_db_pg_root_pwd | d('') }}"
MS_SECRET: "{{ envsetup_ms_secret | d('') }}"
ansible.builtin.command:
cmd: mscontroller.py add -u {{ item.name }}
cmd: >
mscontroller.py add -u '{{ item.name }}' -t '{
"id": "{{ item.ms_id }}",
"domain": "{{ item.ms_server_name }}",
"api_key": "{{ item.ms_api_key }}",
"secret": "{{ envsetup_ms_secret | d("") }}",
"superuser_pwd": "{{ item.ms_superuser_pwd }}",
"admin_pwd": "{{ item.ms_admin_pwd }}",
"skyreach_url": "{{ item.cm_server_name }}"
}'
creates: /etc/nginx/sites-available/mediaserver-{{ item.name }}.conf
throttle: 1
......
......@@ -14,7 +14,8 @@
ssh_key_file: .ssh/id_ed25519
# MAILER
- include_tasks: mailer.yml
- name: MAILER
ansible.builtin.include_tasks: mailer.yml
# FIREWALL
- name: firewall
......
......@@ -14,8 +14,6 @@
state: started
- name: mirismanager install
environment:
CM_SERVER_NAME: "{{ manager_hostname }}"
ansible.builtin.apt:
force_apt_get: true
install_recommends: false
......
---
- name: install ubicast msmonitor
environment:
MONITOR_SERVER_NAME: "{{ monitor_hostname }}"
MONITOR_SHELL_PWD: "{{ monitor_shell_pwd | password_hash('sha512', 'monitor') }}"
MONITOR_ADMIN_PWD: "{{ monitor_admin_pwd | password_hash('sha512', 'monitor') }}"
MONITOR_SUPERUSER_PWD: "{{ monitor_superuser_pwd }}"
SSH_MAINTENANCE_PORT: "{{ ssh_maintenance_port }}"
ansible.builtin.apt:
force_apt_get: true
install_recommends: false
......
---
- include_tasks: repos.yml
- name: REPOS
ansible.builtin.include_tasks: repos.yml
# Upgrade already installed packages to latest version and clean system
......@@ -121,8 +123,11 @@
ansible.builtin.include_role:
name: ferm-configure
- include_tasks: logs.yml
- name: LOGS
ansible.builtin.include_tasks: logs.yml
- include_tasks: locale.yml
- name: LOCALE
ansible.builtin.include_tasks: locale.yml
- include_tasks: ntp.yml
- name: NTP
ansible.builtin.include_tasks: ntp.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment