Commit 45cebcee authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Move to packages instead of items. Follow upstream best practice

parent 84d8124e
---
- name: Install CentOS system packages
yum:
name: "{{ item }}"
name: "{{ packages }}"
update_cache: "True"
with_items:
- libssh2
- libssh2-devel
vars:
packages:
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
---
- name: Install Debian system packages
apt:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- libssh2-1
- libssh2-1-dev
vars:
packages:
- libssh2-1
- libssh2-1-dev
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
---
- name: Install OEL system packages
yum:
name: "{{ item }}"
name: "{{ packages }}"
update_cache: "True"
with_items:
- libssh2
- libssh2-devel
vars:
packages:
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
---
- name: Install RedHat system packages
yum:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
with_items:
- libssh2
- libssh2-devel
vars:
packages:
- libssh2
- libssh2-devel
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
---
- name: Install Ubuntu system packages
apt:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- libssh2-1
- libssh2-1-dev
vars:
packages:
- libssh2-1
- libssh2-1-dev
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
......@@ -15,11 +15,13 @@
- name: Install CentOS system packages 1/2
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "False"
with_items:
- epel-release
update_cache: "True"
become: "True"
vars:
packages:
- epel-release
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......@@ -28,24 +30,25 @@
- name: Install CentOS system packages 2/2
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "True"
with_items:
- git
- patch
- python-virtualenv
- gcc
- postgresql{{ postgres_version|replace(".","") }}
- postgresql-devel
- postgresql{{ postgres_version|replace(".","") }}-devel
- libffi
- libffi-devel
- libmemcached
- libmemcached-devel
- zlib-devel
- jemalloc
- bzip2
vars:
packages:
- git
- patch
- python-virtualenv
- gcc
- postgresql{{ postgres_version|replace(".","") }}
- postgresql-devel
- postgresql{{ postgres_version|replace(".","") }}-devel
- libffi
- libffi-devel
- libmemcached
- libmemcached-devel
- zlib-devel
- jemalloc
- bzip2
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
---
- name: Install Debian system packages
apt:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- python
- python-dev
- python-virtualenv
- git
- libjemalloc1
- gcc
- libpq-dev
- libffi6
- libffi-dev
- libmemcached11
- libmemcached-dev
- zlib1g-dev
- patch
- bzip2
vars:
packages:
- python
- python-dev
- python-virtualenv
- git
- libjemalloc1
- gcc
- libpq-dev
- libffi6
- libffi-dev
- libmemcached11
- libmemcached-dev
- zlib1g-dev
- patch
- bzip2
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
......@@ -47,24 +47,25 @@
- name: Install OEL system packages
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "True"
with_items:
- git
- patch
- python-virtualenv
- gcc
- postgresql{{ postgres_version|replace(".","") }}
- postgresql-devel
- postgresql{{ postgres_version|replace(".","") }}-devel
- libffi
- libffi-devel
- libmemcached
- libmemcached-devel
- zlib-devel
- jemalloc
- bzip2
vars:
packages:
- git
- patch
- python-virtualenv
- gcc
- postgresql{{ postgres_version|replace(".","") }}
- postgresql-devel
- postgresql{{ postgres_version|replace(".","") }}-devel
- libffi
- libffi-devel
- libmemcached
- libmemcached-devel
- zlib-devel
- jemalloc
- bzip2
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -36,21 +36,22 @@
- name: Install RedHat system packages 1/2
yum:
name: "{{item}}"
name: "{{ packages }}"
state: present
update_cache: "True"
with_items:
- git
- python-virtualenv
- gcc
- postgresql{{postgres_version|replace(".","")}}
- postgresql{{postgres_version|replace(".","")}}-devel
- patch
- libffi
- libffi-devel
- libmemcached
- zlib-devel
- bzip2
vars:
packages:
- git
- python-virtualenv
- gcc
- postgresql{{postgres_version|replace(".","")}}
- postgresql{{postgres_version|replace(".","")}}-devel
- patch
- libffi
- libffi-devel
- libmemcached
- zlib-devel
- bzip2
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......@@ -59,11 +60,12 @@
- name: Install RedHat system packages 2/2
yum:
name: "{{item}}"
name: "{{ packages }}"
state: present
with_items:
- jemalloc
- libmemcached-devel
vars:
packages:
- jemalloc
- libmemcached-devel
environment:
http_proxy: "{{http_proxy}}"
......
---
- name: Install Ubuntu system packages
apt:
name: "{{ item }}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
with_items:
- python
- python-dev
- python-virtualenv
- git
- libjemalloc1
- gcc
- libpq-dev
- libffi6
- libffi-dev
- libmemcached11
- libmemcached-dev
- patch
- bzip2
- zlib1g-dev
vars:
packages:
- python
- python-dev
- python-virtualenv
- git
- libjemalloc1
- gcc
- libpq-dev
- libffi6
- libffi-dev
- libmemcached11
- libmemcached-dev
- patch
- bzip2
- zlib1g-dev
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -7,6 +7,7 @@
become: "True"
when:
- http_proxy is defined
- http_proxy
tags:
- config
......@@ -18,16 +19,17 @@
- name: Install CentOS system packages pre
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "True"
become: "True"
with_items:
- unzip
- ca-certificates
vars:
packages:
- unzip
- ca-certificates
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
tags:
- requirements
......
---
- name: Install Debian system packages
apt:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
- ca-certificates
- unzip
- sudo
- curl
- apt-transport-https
- dbus # to setup hostname
vars:
packages:
- ca-certificates
- unzip
- sudo
- curl
- apt-transport-https
- dbus # to setup hostname
become: "True"
environment:
https_proxy: "{{http_proxy}}"
......
......@@ -18,13 +18,14 @@
- name: Install CentOS system packages pre
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "True"
become: "True"
with_items:
- unzip
- ca-certificates
vars:
packages:
- unzip
- ca-certificates
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
......@@ -29,12 +29,13 @@
- name: Install Rhel system packages pre
become: "True"
yum:
name: "{{ item }}"
name: "{{ packages }}"
state: present
update_cache: "True"
with_items:
- unzip
- ca-certificates
vars:
packages:
- unzip
- ca-certificates
environment:
https_proxy: "{{http_proxy}}"
http_proxy: "{{http_proxy}}"
......
......@@ -2,10 +2,11 @@
- name: Install Ubuntu system packages
become: "True"
apt:
name: "{{item}}"
name: "{{ packages }}"
update_cache: "True"
cache_valid_time: "{{apt_cache_valid_time | default (3600)}}"
with_items:
vars:
packages:
- ca-certificates
- unzip
- sudo
......
......@@ -28,11 +28,12 @@
- name: Install CH
yum:
name: "{{item}}"
name: "{{ packages }}"
state: present
with_items:
- clickhouse-client
- clickhouse-server-common
vars:
packages:
- clickhouse-client
- clickhouse-server-common
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -29,12 +29,13 @@
- name: Install CH
apt:
name: "{{item}}"
name: "{{ packages }}"
state: present
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
with_items:
- clickhouse-client
- clickhouse-server-common
vars:
packages:
- clickhouse-client
- clickhouse-server-common
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -14,11 +14,12 @@
- name: Install CH
yum:
name: "{{item}}"
name: "{{ packages }}"
state: present
with_items:
- clickhouse-client
- clickhouse-server-common
vars:
packages:
- clickhouse-client
- clickhouse-server-common
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -28,11 +28,12 @@
- name: Install CH
yum:
name: "{{item}}"
name: "{{ packages }}"
state: present
with_items:
- clickhouse-client
- clickhouse-server-common
vars:
packages:
- clickhouse-client
- clickhouse-server-common
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
......@@ -29,12 +29,13 @@
- name: Install CH
apt:
name: "{{item}}"
name: "{{ packages }}"
state: present
cache_valid_time: "{{ apt_cache_valid_time | default (3600) }}"
with_items:
- clickhouse-client
- clickhouse-server-common
vars:
packages:
- clickhouse-client
- clickhouse-server-common
environment:
https_proxy: "{{ http_proxy }}"
http_proxy: "{{ http_proxy }}"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment