Changeset 38538 for main/trunk/greenstone3
- Timestamp:
- 2024-01-12T17:09:35+13:00 (5 months ago)
- 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 Unix2 # command-line packages, and then configure, compile and install3 # a basic Greenstone3, running tomcat over http, and accessed4 # directly,e.g. http://localhost:8383/greenstone3/library1 # 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 5 5 6 6 … … 8 8 # Greenstone installation is to occur (i.e., localhost) 9 9 10 # To install ansible:11 # sudo apt update12 # sudo apt install software-properties-common13 # sudo add-apt-repository --yes --update ppa:ansible/ansible14 # sudo apt install ansible15 16 10 # To run this playbook to svn checkout Greenstone3 and compile it up: 17 11 # 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' 19 15 20 16 --- … … 30 26 - vars/default-core.yml 31 27 32 # ####33 # # Edit variable values below as needed34 # ####35 # vars:36 # gsdl3srchome: /home/{{ ansible_user }}/greenstone3-svn37 # # gsdl3srchome: /mnt/<mydisk>/greenstone3-svn38 # # gsdl3srchome: /mnt/intermuse/greenstone3-ansible-svn39 # gsdl3port: 838340 41 28 tasks: 42 29 - name: Setting gsdl3srchome … … 52 39 - debug: msg="gsdl3ports = {{ hostvars['localhost']['gsdl3ports'] }}" 53 40 54 - name: Installing required command-line tools 41 42 - name: Installing required command-line tools 55 43 hosts: localhost 56 44 connection: local … … 85 73 ] 86 74 87 - hosts: localhost 75 - name: Checking out Greenstone3 code from svn, configure and installing base system 76 hosts: localhost 88 77 connection: local 89 78 vars_files: … … 154 143 environment: "{{ env_vars }}" 155 144 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 }} 161 150 162 151 - name: Setting ports in build.properties
Note:
See TracChangeset
for help on using the changeset viewer.