Ignore:
Timestamp:
2024-01-12T17:09:35+13:00 (5 months ago)
Author:
davidb
Message:

Further tidy up

File:
1 edited

Legend:

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

    r38536 r38538  
    1 # Self-contained Ansible playbook to install required Unix
    2 # command-line packages, and then configure, compile and install
    3 # a basic Greenstone3, running tomcat over http, and accessed
    4 # directly, e.g. http://localhost:8383/greenstone3/library
     1# Ansible playbook to install required Unix command-line packages, and
     2# then configure, compile and install a base (basic) Greenstone3
     3# system, running tomcat over http, and accessed directly,
     4# e.g. http://localhost:8383/greenstone3/library
    55
    66
     
    88# Greenstone installation is to occur (i.e., localhost)
    99
    10 # To install ansible:
    11 #     sudo apt update
    12 #     sudo apt install software-properties-common
    13 #     sudo add-apt-repository --yes --update ppa:ansible/ansible
    14 #     sudo apt install ansible
    15 
    1610# To run this playbook to svn checkout Greenstone3 and compile it up:
    1711#
    18 #     ansible-playbook -l localhost -u $USER ./greenstone3-svn-playbook.yml
     12#     ansible-playbook -l localhost -u $USER ./greenstone3-svn-base-playbook.yml
     13
     14# Ideally have the playbook install and setup Greenstone3 for the user 'greenstone'
    1915
    2016---
     
    3026    - vars/default-core.yml
    3127   
    32 #  ####
    33 #  # Edit variable values below as needed
    34 #  ####
    35 #  vars:
    36 #    gsdl3srchome: /home/{{ ansible_user }}/greenstone3-svn
    37 #    # gsdl3srchome: /mnt/<mydisk>/greenstone3-svn
    38 #    # gsdl3srchome: /mnt/intermuse/greenstone3-ansible-svn
    39 #    gsdl3port:     8383
    40 
    4128  tasks:
    4229    - name: Setting gsdl3srchome
     
    5239    - debug: msg="gsdl3ports = {{ hostvars['localhost']['gsdl3ports'] }}"
    5340
    54 - name:       Installing required command-line tools
     41
     42- name: Installing required command-line tools
    5543  hosts:      localhost
    5644  connection: local
     
    8573      ]
    8674
    87 - hosts:      localhost
     75- name: Checking out Greenstone3 code from svn, configure and installing base system
     76  hosts:      localhost
    8877  connection: local
    8978  vars_files:
     
    154143    environment: "{{ env_vars }}"
    155144
    156   - name: Setting localhost.port.http in build.properties
    157     ansible.builtin.lineinfile:
    158       path: "{{ gsdl3srchome }}/build.properties"
    159       regexp: '^localhost.port.http='
    160       line: localhost.port.http={{ gsdl3port }}
     145#  - name: Deprecated Setting localhost.port.http in build.properties (only changes 1 value)
     146#    ansible.builtin.lineinfile:
     147#      path: "{{ gsdl3srchome }}/build.properties"
     148#      regexp: '^localhost.port.http='
     149#      line: localhost.port.http={{ gsdl3port }}
    161150
    162151  - name: Setting ports in build.properties
Note: See TracChangeset for help on using the changeset viewer.