Changeset 38528 for main/trunk/greenstone3
- Timestamp:
- 2024-01-12T13:20:21+13:00 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/ansible-playbooks/greenstone3-svn-playbook.yml
r38527 r38528 34 34 - name: Setting gsdl3srchome 35 35 set_fact: gsdl3srchome="{{ gsdl3srchome }}" 36 - debug: msg=" {{ hostvars['localhost']['gsdl3srchome'] }}"36 - debug: msg="gsdl3srchome = {{ hostvars['localhost']['gsdl3srchome'] }}" 37 37 38 38 - name: Setting gsdl3port 39 39 set_fact: gsdl3port="{{ gsdl3port }}" 40 - debug: msg=" {{ hostvars['localhost']['gsdl3port'] }}"40 - debug: msg="gsdl3port = {{ hostvars['localhost']['gsdl3port'] }}" 41 41 42 42 … … 91 91 dest: "{{ gsdl3srchome }}" 92 92 93 - name: Downloading and unpacking self-contained command-line tools for Greenstone3 (JDK, Apache Ant)93 - name: Downloading and unpacking self-contained command-line tools for Greenstone3 94 94 ansible.builtin.shell: 95 95 chdir: "{{ gsdl3srchome }}/ext-cli" 96 cmd: "./get-selfcontained-jdk.sh && ./get-selfcontained-ant.sh" 96 # cmd: "./get-selfcontained-jdk.sh && ./get-selfcontained-ant.sh" 97 cmd: "./get-selfcontained-{{ item }}.sh" 98 register: result 99 changed_when: 100 - '"Untarred" in result.stdout' 101 with_items: 102 - jdk 103 - ant 97 104 98 105 # The next two steps are equivalent to sourcing SETUP.bash … … 100 107 # https://stackoverflow.com/questions/60209185/ansible-environment-variables-from-env-file 101 108 # 109 - name: Source Greenstone3's SETUP.bash 110 ansible.builtin.shell: 111 executable: /bin/bash 112 chdir: "{{ gsdl3srchome }}" 113 cmd: . ./SETUP.bash 1>/dev/null 2>&1 && env 114 register: env_file_result 115 102 116 # - name: Source Greenstone3's SETUP.bash using newer ./SETUP-ENV.sh (Ultimately new appoach not needed) 103 117 # ansible.builtin.command: ./SETUP-ENV.sh … … 113 127 # register: env_file_result 114 128 115 - name: Source Greenstone3's SETUP.bash116 ansible.builtin.shell:117 executable: /bin/bash118 chdir: "{{ gsdl3srchome }}"119 cmd: . ./SETUP.bash 1>/dev/null 2>&1 && env120 register: env_file_result121 129 122 # - debug: var=env_file_result.stdout_lines130 # #- debug: var=env_file_result.stdout_lines 123 131 124 132 - name: Parse Greenstone3 environment variables … … 130 138 # environment: "{{ env_vars }}" 131 139 132 #- debug: var=env_vars140 #- debug: var=env_vars 133 141 134 142
Note:
See TracChangeset
for help on using the changeset viewer.