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

Update tester role for configuration | refs #37409

parents d368bc27 d1f08541
No related branches found
No related tags found
No related merge requests found
---
# Packages needed for the UbiCast tester installation
tester_packages:
- ubicast-env
- ubicast-tester
- ubicast-tester-nudgis
- ubicast-tester-system
# Name of the system in the reports
#tester_system_name: "hostname"
# Sender of the email report
#tester_email_from: "ubicast.tester"
# Reciever of the email report
#tester_email_to: "customer@email.com"
# UbiCast admin reciever of the email report for premiums
#tester_email_admin: "sysadmin+premium@ubicast.eu"
# List of tests to ignore when executing the ubicast-tester
#tester_tests_ignored:
# - ntp.sh
# - email.sh
...
---
- name: install tester packages
ansible.builtin.apt:
force_apt_get: true
......@@ -8,3 +9,18 @@
register: apt_status
retries: 60
until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
- name: tester configuration
ansible.builtin.replace:
path: /etc/ubicast-tester/config.yml
regexp: '^(\s*)#?{{ item.name }}:(\s*).*$'
replace: '\1{{item.name}}:\2{{ item.value }}'
loop:
- { name: 'name', value: '"{{ tester_system_name | d() }}"' }
- { name: 'from', value: '"{{ tester_email_from | d() }}"' }
- { name: 'to', value: '"{{ tester_email_to | d() }}"' }
- { name: 'admin', value: '"{{ tester_email_admin | d() }}"' }
- { name: 'ignored', value: '{{ tester_tests_ignored | d() }}' }
when: item.value != "" and item.value != '""'
...
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