infra/roles/tester/tasks/main.yml
Sergey Bubnov (omg) a4d31494a5 initial tester role
2019-07-17 14:07:49 +04:00

29 lines
729 B
YAML

---
# tasks file for tester
- block:
- name: check required variables
fail: msg="{{ item }} is not defined"
when: item not in vars
with_items: "{{ tester_required_vars }}"
- name: install required packages
shell: "apt-get install -y {{ tester_packages | join(' ') }}"
when: (tester_packages | length > 0)
- name: "ensure that the {{ tester_username }} exists"
user:
name: "{{ tester_username }}"
- name: "ensure that the {{ tester_username_sudo }} exists"
user:
name: "{{ tester_username }}"
groups: wheel
append: true
- name: fetch CVE repository
git:
repo: "{{ tester_cve_repo }}"
dist: "/{{ tester_username }}/cve"
become: yes
become_user: "{{ tester_username }}"