X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fcommon%2Ftasks%2Fmain.yaml;fp=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fcommon%2Ftasks%2Fmain.yaml;h=0000000000000000000000000000000000000000;hp=91fcd188a6adc646ff4fc04e5e704f959819b8d8;hb=df5672b3d9c29b51397f4770eb992c9f3f3955ce;hpb=8018da98e0f362bc69fc9600fac222a86fd46b5e diff --git a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml b/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml deleted file mode 100644 index 91fcd188a6..0000000000 --- a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml +++ /dev/null @@ -1,121 +0,0 @@ ---- -# file: roles/common/tasks/main.yaml - -- name: Conf - Add permanent proxy settings - lineinfile: - path: "/etc/environment" - state: "present" - line: "{{ item.key }}={{ item.value }}" - with_dict: "{{ proxy_env }}" - when: proxy_env is defined - tags: - - common-conf-proxy - -- name: Inst - Update package cache (apt) - apt: - update_cache: yes - cache_valid_time: 3600 - when: - - ansible_distribution|lower == 'ubuntu' - tags: - - common-inst-prerequisites - -- name: Inst - Prerequisites - package: - name: "{{ packages | flatten(levels=1) }}" - state: latest - tags: - - common-inst-prerequisites - -- name: Inst - CSIT PIP requirements - pip: - name: - - "ecdsa==0.13.3" - - "paramiko==2.6.0" - - "pycrypto==2.6.1" - - "pypcap==1.2.3" - - "PyYAML==5.1.1" - - "requests==2.22.0" - - "robotframework==3.1.2" - - "scapy==2.4.3" - - "scp==0.13.2" - - "ansible==2.10.7" - - "dill==0.2.8.2" - - "numpy==1.17.3" - - "hdrhistogram==0.6.1" - - "plotly==4.1.1" - - "PTable==0.9.2" - - "Sphinx==2.2.1" - - "sphinx-rtd-theme==0.4.0" - - "sphinxcontrib-programoutput==0.15" - - "sphinxcontrib-robotdoc==0.11.0" - - "alabaster==0.7.12" - - "Babel==2.7.0" - - "bcrypt==3.1.7" - - "certifi==2019.9.11" - - "cffi==1.13.2" - - "chardet==3.0.4" - - "cryptography==2.8" - - "docutils==0.15.2" - - "future==0.18.2" - - "idna==2.8" - - "imagesize==1.1.0" - - "Jinja2==2.10.3" - - "MarkupSafe==1.1.1" - - "packaging==19.2" - - "pbr==5.4.3" - - "pycparser==2.19" - - "Pygments==2.4.2" - - "PyNaCl==1.3.0" - - "pyparsing==2.4.4" - - "python-dateutil==2.8.1" - - "pytz==2019.3" - - "retrying==1.3.3" - - "six==1.13.0" - - "snowballstemmer==2.0.0" - - "sphinxcontrib-applehelp==1.0.1" - - "sphinxcontrib-devhelp==1.0.1" - - "sphinxcontrib-htmlhelp==1.0.2" - - "sphinxcontrib-jsmath==1.0.1" - - "sphinxcontrib-qthelp==1.0.2" - - "sphinxcontrib-serializinghtml==1.1.3" - - "urllib3==1.25.6" - tags: - - common-inst-pip - -- name: Inst - CSIT PIP requirements - Pandas and SciPy workaround - pip: - name: - - "pandas==0.25.3" - - "scipy==1.5.4" - tags: - - common-inst-pip - -- name: Inst - Meson (DPDK) - pip: - name: - - "meson==0.47.1" - tags: - - common-inst-meson - -- name: Conf - sudoers admin - lineinfile: - path: "/etc/sudoers" - state: "present" - regexp: "^%admin ALL=" - line: "%admin ALL=(ALL) ALL" - validate: "/usr/sbin/visudo -cf %s" - tags: - - common-conf-sudoers - -- name: Conf - sudoers nopasswd - lineinfile: - path: "/etc/sudoers" - state: "present" - regexp: "^%sudo" - line: "%sudo ALL=(ALL:ALL) NOPASSWD: ALL" - validate: "/usr/sbin/visudo -cf %s" - tags: - - common-conf-sudoers - -- meta: flush_handlers