LTS: Performance testing
[csit.git] / resources / tools / testbed-setup / ansible / roles / common / tasks / main.yaml
1 ---
2 # file: roles/common/tasks/main.yaml
3
4 - name: Add permanent proxy settings
5   lineinfile:
6     path: "/etc/environment"
7     state: "present"
8     line: "{{ item.key }}={{ item.value }}"
9   with_dict: "{{ proxy_env }}"
10   when: proxy_env is defined
11   tags:
12     - set-proxy
13
14 - name: Install Distribution - Release - Machine Prerequisites
15   package:
16     name: "{{ packages | flatten(levels=1) }}"
17     state: latest
18     update_cache: true
19   tags:
20     - install-dependencies
21
22 - name: Install CSIT PIP requirements
23   pip:
24     name:
25       - "ecdsa==0.13.3"
26       - "paramiko==2.6.0"
27       - "pycrypto==2.6.1"
28       - "pypcap==1.2.3"
29       - "PyYAML==5.1.1"
30       - "requests==2.22.0"
31       - "robotframework==3.1.2"
32       - "scapy==2.4.3"
33       - "scp==0.13.2"
34       - "ansible==2.7.8"
35       - "dill==0.2.8.2"
36       - "numpy==1.17.3"
37       - "hdrhistogram==0.6.1"
38       - "pandas==0.25.3"
39       - "plotly==4.1.1"
40       - "PTable==0.9.2"
41       - "Sphinx==2.2.1"
42       - "sphinx-rtd-theme==0.4.0"
43       - "sphinxcontrib-programoutput==0.15"
44       - "sphinxcontrib-robotdoc==0.11.0"
45       - "alabaster==0.7.12"
46       - "Babel==2.7.0"
47       - "bcrypt==3.1.7"
48       - "certifi==2019.9.11"
49       - "cffi==1.13.2"
50       - "chardet==3.0.4"
51       - "cryptography==2.8"
52       - "docutils==0.15.2"
53       - "future==0.18.2"
54       - "idna==2.8"
55       - "imagesize==1.1.0"
56       - "Jinja2==2.10.3"
57       - "MarkupSafe==1.1.1"
58       - "packaging==19.2"
59       - "pbr==5.4.3"
60       - "pycparser==2.19"
61       - "Pygments==2.4.2"
62       - "PyNaCl==1.3.0"
63       - "pyparsing==2.4.4"
64       - "python-dateutil==2.8.1"
65       - "pytz==2019.3"
66       - "retrying==1.3.3"
67       - "six==1.13.0"
68       - "snowballstemmer==2.0.0"
69       - "sphinxcontrib-applehelp==1.0.1"
70       - "sphinxcontrib-devhelp==1.0.1"
71       - "sphinxcontrib-htmlhelp==1.0.2"
72       - "sphinxcontrib-jsmath==1.0.1"
73       - "sphinxcontrib-qthelp==1.0.2"
74       - "sphinxcontrib-serializinghtml==1.1.3"
75       - "urllib3==1.25.6"
76   tags:
77     - install-pip
78
79 - name: Install CSIT PIP requirements - SciPy workaround
80   pip:
81     name:
82       - "scipy==1.1.0"
83   tags:
84     - install-pip
85
86 - name: Set sudoers admin
87   lineinfile:
88     path: "/etc/sudoers"
89     state: "present"
90     regexp: "^%admin ALL="
91     line: "%admin ALL=(ALL) ALL"
92     validate: "/usr/sbin/visudo -cf %s"
93   tags:
94     - set-sudoers
95
96 - name: Set sudoers sudo
97   lineinfile:
98     path: "/etc/sudoers"
99     state: "present"
100     regexp: "^%sudo"
101     line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL"
102     validate: "/usr/sbin/visudo -cf %s"
103   tags:
104     - set-sudoers
105
106 - meta: flush_handlers