Ignore:
Timestamp:
2024-01-12T11:48:43+13:00 (5 months ago)
Author:
davidb
Message:

Further refinements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/ansible-playbooks/greenstone3-svn-playbook.yml

    r38524 r38526  
    8989      checkout: yes
    9090      update: no
    91       dest: '{{ gsdl3srchome }}'
     91      dest: "{{ gsdl3srchome }}"
    9292
    93   - name: Downloading and unpacking self-contained command-line tools for Greenstone3 (JDK)
     93  - name: Downloading and unpacking self-contained command-line tools for Greenstone3 (JDK, Apache Ant)
    9494    ansible.builtin.shell:
    95       # executable: /bin/bash
    9695      chdir:     "{{ gsdl3srchome }}/ext-cli"
    9796      cmd:       "./get-selfcontained-jdk.sh && ./get-selfcontained-ant.sh"
     
    116115  - name: Source Greenstone3's SETUP.bash
    117116    ansible.builtin.shell:
    118       # executable: /bin/bash
     117      executable: /bin/bash
    119118      chdir:      "{{ gsdl3srchome }}"     
    120119      cmd:        . ./SETUP.bash 1>/dev/null 2>&1 && env
     
    137136    ansible.builtin.command:
    138137      chdir: "{{ gsdl3srchome }}"
    139       #cmd:   ". ./SETUP.bash && ant"
    140138      cmd:   ant
    141139    environment: "{{ env_vars }}"
    142      
    143 #  - name: Prepare Greenstone3 (Compliated appoach using 'expect')
    144 #    ansible.builtin.expect:
    145 #      chdir:       "{{ gsdl3srchome }}"
    146 #      command:     ant prepare
    147 #      timeout:     null
    148 #      responses:
    149 #        "\\[input\\]\\s+\\(y, n\\)": "y"
    150 #    environment: "{{ env_vars }}"
    151140
     141  - name: Setting localhost.port.http in build.properties
     142    ansible.builtin.lineinfile:
     143      path: {{ gsdl3srchome }}/build.properties
     144      regexp: '^localhost.port.http='
     145      line: localhost.port.http={{ gsdl3port }}
    152146
    153147  - name: Prepare Greenstone3
     
    159153    environment: "{{ env_vars }}"
    160154
     155#  - name: Prepare Greenstone3 (A more complicated approach using 'expect')
     156#    ansible.builtin.expect:
     157#      chdir:       "{{ gsdl3srchome }}"
     158#      command:     ant prepare
     159#      timeout:     null
     160#      responses:
     161#        "\\[input\\]\\s+\\(y, n\\)": "y"
     162#    environment: "{{ env_vars }}"
    161163
    162 
    163 #  - name: Prepare Greenstone3 II (untested)
     164#  - name: Prepare Greenstone3 II (untested, and even more complicated, requiring 'expect' to be installed)
    164165#    ansible.builtin.shell: |
    165166#      cd {{ gsdl3srchome }}
     
    174175
    175176
     177  - name: Compile and Install Greenstone3 (command)
     178    ansible.builtin.command:
     179      chdir: "{{ gsdl3srchome }}"
     180      cmd:   ant install
     181    environment: "{{ env_vars }}"
    176182
    177   - name: Compile and Install Greenstone3
    178     ansible.builtin.shell:
    179       chdir: "{{ gsdl3srchome }}"
    180       cmd:   . ./SETUP.bash && ant install
     183#  - name: Compile and Install Greenstone3 (shell)
     184#    ansible.builtin.shell:
     185#      chdir: "{{ gsdl3srchome }}"
     186#      cmd:   . ./SETUP.bash && ant install
    181187   
Note: See TracChangeset for help on using the changeset viewer.