- hosts: centos
tasks:
- name: Install git
yum:
name: git
state: present
become: true
become_method: su
- name: yum install
yum:
name: "{{ item }}"
state: present
with_items:
- python36-pip
- httpd
- npm
- python36-paramiko
- java-1.8.0-openjdk
become: true
become_method: su
- name: install python modules
command: pip3 install {{ item }}
with_items:
- allure-behave
- jsonschema
- python-dateutil
- pytz
- requests
- simplejson
- xmltodict
become: true
become_method: su