2 # file: roles/common/tasks/main.yaml
4 - name: Add permanent proxy settings
6 path: "/etc/environment"
8 line: "{{ item.key }}={{ item.value }}"
9 with_dict: "{{ proxy_env }}"
10 when: proxy_env is defined
14 - name: Inst - Update package cache (apt)
17 cache_valid_time: 3600
19 - ansible_distribution|lower == 'ubuntu'
21 - common-inst-prerequisites
23 - name: Inst - Prerequisites
25 name: "{{ packages | flatten(levels=1) }}"
28 - common-inst-prerequisites
30 - name: Install CSIT PIP requirements
39 - "robotframework==3.1.2"
45 - "hdrhistogram==0.6.1"
49 - "sphinx-rtd-theme==0.4.0"
50 - "sphinxcontrib-programoutput==0.15"
51 - "sphinxcontrib-robotdoc==0.11.0"
55 - "certifi==2019.9.11"
71 - "python-dateutil==2.8.1"
75 - "snowballstemmer==2.0.0"
76 - "sphinxcontrib-applehelp==1.0.1"
77 - "sphinxcontrib-devhelp==1.0.1"
78 - "sphinxcontrib-htmlhelp==1.0.2"
79 - "sphinxcontrib-jsmath==1.0.1"
80 - "sphinxcontrib-qthelp==1.0.2"
81 - "sphinxcontrib-serializinghtml==1.1.3"
86 - name: Install CSIT PIP requirements - Pandas and SciPy workaround
94 - name: Install Meson (repository version is too old)
101 - name: Set sudoers admin
105 regexp: "^%admin ALL="
106 line: "%admin ALL=(ALL) ALL"
107 validate: "/usr/sbin/visudo -cf %s"
111 - name: Set sudoers sudo
116 line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
117 validate: "/usr/sbin/visudo -cf %s"
121 - meta: flush_handlers