Changeset 38535 for main/trunk/greenstone3/src
- Timestamp:
- 2024-01-12T16:39:26+13:00 (5 months ago)
- Location:
- main/trunk/greenstone3/src/ansible-playbooks
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/ansible-playbooks/01-RUN-ANSIBLE-BASE-INSTALL.sh
r38531 r38535 1 1 #!/bin/bash 2 2 3 ansible-playbook -l localhost -u $USER greenstone3-svn-playbook.yml 3 . ./_local_config.bash 4 5 ansible-playbook -l localhost -u $localhost_username greenstone3-svn-playbook.yml -
main/trunk/greenstone3/src/ansible-playbooks/greenstone3-svn-playbook.yml
r38530 r38535 1 1 # Self-contained Ansible playbook to install required Unix 2 2 # command-line packages, and then configure, compile and install 3 # Greenstone3 3 # a basic Greenstone3, running tomcat over http, and accessed 4 # directly, e.g. http://localhost:8383/greenstone3/library 5 4 6 5 7 # Playbook currently designed to be run on computer where the … … 23 25 24 26 #### 25 # Edit variable values below as needed27 # Review and edit as needed the variables in the following file 26 28 #### 27 vars: 28 gsdl3srchome: /home/{{ ansible_user }}/greenstone3-svn 29 # gsdl3srchome: /mnt/<mydisk>/greenstone3-svn 30 # gsdl3srchome: /mnt/intermuse/greenstone3-ansible-svn 31 gsdl3port: 8383 29 vars_files: 30 - vars/default-core.yml 31 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 32 40 33 41 tasks: … … 39 47 set_fact: gsdl3port="{{ gsdl3port }}" 40 48 - debug: msg="gsdl3port = {{ hostvars['localhost']['gsdl3port'] }}" 41 49 50 - name: Setting gsdl3ports 51 set_fact: gsdl3ports="{{ gsdl3ports }}" 52 - debug: msg="gsdl3ports = {{ hostvars['localhost']['gsdl3ports'] }}" 42 53 43 54 - name: Installing required command-line tools … … 76 87 - hosts: localhost 77 88 connection: local 78 vars: 79 # #gsdl3srchome: /home/{{ ansible_user }}/greenstone3-svn 80 # # # gsdl3srchome: /mnt/<mydisk>/greenstone3-svn 81 # # gsdl3port: 8383 82 # gsdl3srchome: {{ hostvars['localhost']['gsdl3srchome'] }} 83 # gsdl3port: {{ hostvars['localhost']['gsdl3port'] }} 89 vars_files: 90 - vars/default-core.yml 84 91 85 92 tasks: … … 153 160 line: localhost.port.http={{ gsdl3port }} 154 161 162 - name: Setting ports in build.properties 163 ansible.builtin.lineinfile: 164 path: "{{ gsdl3srchome }}/build.properties" 165 regexp: '^{{ item }}=' 166 line: "{{ item }}={{ hostvars['localhost']['gsdl3ports'][item] }}" 167 with_items: 168 - "localhost.port.http" 169 - "tomcat.shutdown.port" 170 - "tomcat.ajp.port" 171 - "derby.server.port" 172 - "tomcat.port.https" 173 155 174 - name: Prepare Greenstone3 156 175 ansible.builtin.command:
Note:
See TracChangeset
for help on using the changeset viewer.