X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=fdio.infra.ansible%2Froles%2Fpython_env%2Ftasks%2Fmain.yaml;fp=resources%2Ftools%2Ftestbed-setup%2Fansible%2Froles%2Fcommon%2Ftasks%2Fmain.yaml;h=cddfe63655987b886e9b63957cdf019c2392ab1c;hb=df5672b3d9c29b51397f4770eb992c9f3f3955ce;hp=91fcd188a6adc646ff4fc04e5e704f959819b8d8;hpb=8018da98e0f362bc69fc9600fac222a86fd46b5e;p=csit.git diff --git a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml b/fdio.infra.ansible/roles/python_env/tasks/main.yaml similarity index 68% rename from resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml rename to fdio.infra.ansible/roles/python_env/tasks/main.yaml index 91fcd188a6..cddfe63655 100644 --- a/resources/tools/testbed-setup/ansible/roles/common/tasks/main.yaml +++ b/fdio.infra.ansible/roles/python_env/tasks/main.yaml @@ -1,15 +1,5 @@ --- -# 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 +# file: roles/python_env/tasks/main.yaml - name: Inst - Update package cache (apt) apt: @@ -40,7 +30,7 @@ - "scapy==2.4.3" - "scp==0.13.2" - "ansible==2.10.7" - - "dill==0.2.8.2" + - "dill==0.3.3" - "numpy==1.17.3" - "hdrhistogram==0.6.1" - "plotly==4.1.1" @@ -90,32 +80,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