2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

fix for debain and centos

This commit is contained in:
Ameya Shenoy 2018-03-01 03:51:48 +05:30
parent 3fb4d8f6c2
commit 93f25d7343
No known key found for this signature in database
GPG Key ID: 735490161CD5C91E
5 changed files with 84 additions and 50 deletions

View File

@ -1,56 +1,24 @@
--- ---
- name: Install prerequisites using apt-get - name: Setup OpenSSL dependancy
become: yes pip: name=pyOpenSSL version=16.2.0
become_user: root
apt: pkg={{ item }} state=present force=yes
with_items:
- dnsmasq
- fontconfig
- git # Version control
- htop # Server stats
- libcrypto++-dev
- libfreetype6-dev
- liblcms2-dev
- libssl-dev
- libwebp-dev
- libxext6
- libxrender1
- libxslt1-dev
- libxslt1.1
- libffi-dev
- ntp # Clock synchronization
- postfix # Mail Server
- python-dev # Installing python developer suite
- python3-dev
- python-tk # Why !?
- screen
- vim
- xfonts-75dpi
- xfonts-base
- zlib1g-dev
- apt-transport-https
- libsasl2-dev
- libldap2-dev
- name: Install pillow prerequisites for Debian < 8 and Ubuntu < 14.04 - name: install pillow prerequisites for Debian < 8
apt: pkg={{ item }} state=present force=yes apt: pkg={{ item }} state=present
with_items: with_items:
- libjpeg8-dev - libjpeg8-dev
- libtiff4-dev - libtiff4-dev
- tcl8.5-dev - tcl8.5-dev
- tk8.5-dev - tk8.5-dev
when: (ansible_distribution == "Debian" and ansible_distribution_major_version < "8") or when: ansible_distribution_version | version_compare('8', 'lt')
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version < "14")
- name: Install pillow prerequisites for Debian >= 8 and Ubuntu >= 14.04 - name: install pillow prerequisites for Debian >= 8
apt: pkg={{ item }} state=present force=yes apt: pkg={{ item }} state=present
with_items: with_items:
- libjpeg8-dev - libjpeg62-turbo-dev
- libtiff5-dev - libtiff5-dev
- tcl8.6-dev - tcl8.5-dev
- tk8.6-dev - tk8.5-dev
when: (ansible_distribution == "Debian" and ansible_distribution_major_version >= "8") or when: ansible_distribution_version | version_compare('8', 'ge')
(ansible_distribution == "Ubuntu" and ansible_distribution_major_version >= "16")
... ...

View File

@ -0,0 +1,42 @@
---
- name: Install prerequisites using apt-get
become: yes
become_user: root
apt: pkg={{ item }} state=present force=yes
with_items:
- dnsmasq
- fontconfig
- git # Version control
- htop # Server stats
- libcrypto++-dev
- libfreetype6-dev
- liblcms2-dev
- libssl-dev
- libwebp-dev
- libxext6
- libxrender1
- libxslt1-dev
- libxslt1.1
- libffi-dev
- ntp # Clock synchronization
- postfix # Mail Server
- python-dev # Installing python developer suite
- python3-dev
- python-tk # Why !?
- screen
- vim
- xfonts-75dpi
- xfonts-base
- zlib1g-dev
- apt-transport-https
- libsasl2-dev
- libldap2-dev
- include_tasks: debian.yml
when: ansible_os_family == 'Debian'
- include_tasks: ubuntu.yml
when: ansible_os_family == 'Ubuntu'
...

View File

@ -1,6 +1,9 @@
--- ---
# Install's prerequisites, like fonts, image libraries, vim, screen, python-dev and gcc # Install's prerequisites, like fonts, image libraries, vim, screen, python-dev and gcc
- include_tasks: debian.yml - include_tasks: debian_family.yml
when: ansible_os_family == 'Debian' when: ansible_os_family == 'Debian'
- include_tasks: redhat_family.yml
when: ansible_os_family == "RedHat"
... ...

View File

@ -1,6 +1,6 @@
--- ---
- name: "Setup prerequisites" - name: "Setup prerequisites using yum"
become: yes become: yes
become_user: root become_user: root
tasks: tasks:

View File

@ -0,0 +1,21 @@
---
- name: install pillow prerequisites for Ubuntu < 14.04
apt: pkg={{ item }} state=present force=yes
with_items:
- libjpeg8-dev
- libtiff4-dev
- tcl8.5-dev
- tk8.5-dev
when: ansible_distribution_version | version_compare('14.04', 'lt')
- name: install pillow prerequisites for Ubuntu >= 14.04
apt: pkg={{ item }} state=present force=yes
with_items:
- libjpeg8-dev
- libtiff5-dev
- tcl8.6-dev
- tk8.6-dev
when: ansible_distribution_version | version_compare('14.04', 'ge')
...