mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
skip yarn add if installed, but allow yarn upgrade if set in local_vars
This commit is contained in:
parent
6e33566a61
commit
6d75d8265b
2 changed files with 9 additions and 0 deletions
|
@ -7,3 +7,4 @@
|
||||||
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
# If nec, change them by editing /etc/iiab/local_vars.yml prior to installing!
|
||||||
|
|
||||||
internetarchive_dir: '{{ iiab_base }}/internetarchive'
|
internetarchive_dir: '{{ iiab_base }}/internetarchive'
|
||||||
|
IA_upgrade: False
|
||||||
|
|
|
@ -22,7 +22,9 @@
|
||||||
command: sudo yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
command: sudo yarn add @internetarchive/dweb-archive @internetarchive/dweb-mirror
|
||||||
args:
|
args:
|
||||||
chdir: "{{ internetarchive_dir }}"
|
chdir: "{{ internetarchive_dir }}"
|
||||||
|
creates: "{{ internetarchive_dir }}/node_modules/@internetarchive/dweb-mirror/internetarchive"
|
||||||
when: internet_available | bool
|
when: internet_available | bool
|
||||||
|
register: IA_installing
|
||||||
|
|
||||||
- name: Create directory /library/archiveorg
|
- name: Create directory /library/archiveorg
|
||||||
file:
|
file:
|
||||||
|
@ -30,6 +32,12 @@
|
||||||
state: directory
|
state: directory
|
||||||
owner: "root"
|
owner: "root"
|
||||||
|
|
||||||
|
- name: Update pre-existing install
|
||||||
|
command: sudo yarn upgrade
|
||||||
|
args:
|
||||||
|
chdir: "{{ internetarchive_dir }}"
|
||||||
|
when: not IA_installing.changed and IA_upgrade
|
||||||
|
|
||||||
|
|
||||||
# CONFIG FILES
|
# CONFIG FILES
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue