Ignore:
Timestamp:
2024-01-11T13:24:42+13:00 (5 months ago)
Author:
davidb
Message:

Nascent 2nd task added to compile up Greenstone3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/ansible-playbooks/compile-and-install/playbook.yml

    r38518 r38520  
    11
    2 # Playbook to install required packages, and then configure, compile
    3 # and install Greenstone3
     2# Playbook to install required command-line packages, and then
     3# configure, compile and install Greenstone3
     4
     5# Assumes you have already:
     6#    svn checkout https://svn.greenstone.org/main/trunk/greenstone3 greenstone3-svn
     7
     8# And installed ansible:
     9#     sudo apt update
     10#     sudo apt install software-properties-common
     11#     sudo add-apt-repository --yes --update ppa:ansible/ansible
     12#     sudo apt install ansible
    413
    514---
     
    716  connection: local
    817  become:     true
     18  #become_user: '{{ root_user }}' # i.e., what the default is
    919#  vars_files:
    1020#    - vars/default.yml
     
    1929    - name: Install prerequisites
    2030      apt: name={{ item }} update_cache=yes state=latest
    21       loop: [ 'build-essential', 'emacs-nox' ]
     31      loop: [
     32        'build-essential', 'wget',
    2233
     34    # 'zip' is currently used in one or two places when compiling/configure
     35    # => Would be good to eliminate reliance on this in the future
     36    'zip',
     37
     38    # Choosing to install the latest, rather than work with the one included
     39    # as an Greenstone3 extension, as that latter is getting a bit old
     40    'imagemagick',
     41   
     42    # The following needed for WebSwing on a headless server
     43    'libxrender1', 'libxtst6', 'libxi6', 'xvfb',
     44
     45    # The following are nice to have in general
     46    'plocate', 'emacs-nox'
     47      ]
     48
     49- hosts:      localhost
     50  connection: local
     51  vars_files:
     52    - vars/default.yml
     53
     54  tasks:
     55    - name: Generate build.properties for Greenstone3
     56      shell: cd {{ gsdl3srchome }} && ant
     57
     58    - name: Prepare Greenstone3
     59      shell: cd {{ gsdl3srchome }} && ant prepare
     60
     61    - name: Compile and Install Greenstone3
     62      shell: cd {{ gsdl3srchome }} && ant install
     63
Note: See TracChangeset for help on using the changeset viewer.