Skip to content

Commit 5d5cb32

Browse files
authored
UnixPB: Override Default Pandoc Install Root For MacOS x64 (#4148)
1 parent cb9dca4 commit 5d5cb32

File tree

1 file changed

+6
-10
lines changed
  • ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/pandoc/tasks

1 file changed

+6
-10
lines changed

ansible/playbooks/AdoptOpenJDK_Unix_Playbook/roles/pandoc/tasks/main.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
- name: Override install root on macOS x64
5454
when:
5555
- supported
56-
- ansible_system == "Darwin"
56+
- ansible_facts['system'] == "Darwin"
5757
- arch_normalized == "amd64"
5858
set_fact:
5959
pandoc_install_root: "/usr/local"
@@ -73,7 +73,7 @@
7373
set_fact:
7474
archive_path: "{{ download_dir }}/{{ archive_name }}"
7575
bin_path: "{{ install_dir }}/bin/pandoc"
76-
mac_inner: "{{ install_dir }}/pandoc-{{ pandoc_version }}-{{ arch_normalized }}"
76+
mac_inner: "{{ install_dir }}/pandoc-{{ pandoc_version }}-{{ ansible_facts['architecture'] }}"
7777
changed_when: false
7878
tags: pandoc
7979

@@ -127,7 +127,7 @@
127127
when:
128128
- supported
129129
- need_install
130-
- ansible_system == "Darwin"
130+
- ansible_facts['system'] == "Darwin"
131131
become: true
132132
unarchive:
133133
src: "{{ archive_path }}"
@@ -140,7 +140,7 @@
140140
when:
141141
- supported
142142
- need_install
143-
- ansible_system == "Linux"
143+
- ansible_facts['system'] == "Linux"
144144
become: true
145145
unarchive:
146146
src: "{{ archive_path }}"
@@ -155,29 +155,25 @@
155155
when:
156156
- supported
157157
- need_install
158-
- ansible_system == "Darwin"
158+
- ansible_facts['system'] == "Darwin"
159159
become: true
160160
file:
161161
src: "{{ mac_inner }}/bin"
162162
dest: "{{ install_dir }}/bin"
163163
state: link
164164
force: true
165-
follow: false
166-
tags: pandoc
167165

168166
- name: Ensure macOS share symlink exists (share -> mac_inner/share)
169167
when:
170168
- supported
171169
- need_install
172-
- ansible_system == "Darwin"
170+
- ansible_facts['system'] == "Darwin"
173171
become: true
174172
file:
175173
src: "{{ mac_inner }}/share"
176174
dest: "{{ install_dir }}/share"
177175
state: link
178176
force: true
179-
follow: false
180-
tags: pandoc
181177

182178
# Configure & Verify Symlink To Pandoc
183179
# -------------------------------------------------------

0 commit comments

Comments
 (0)