From f5825b861b9aa6388da3ccd8846733d79a528b85 Mon Sep 17 00:00:00 2001 From: ToivoS <38542384+ToivoS@users.noreply.github.com> Date: Thu, 22 Oct 2020 09:58:30 +0100 Subject: [PATCH] offline docs for just hand (#290) * offline docs for just hand * debug * debug * conditional fix * change import to include * fix * fix * fix * fix --- .../common/docker-container/tasks/reinstall.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/ansible/roles/products/common/docker-container/tasks/reinstall.yml b/ansible/roles/products/common/docker-container/tasks/reinstall.yml index 39665a860..e38903c4e 100644 --- a/ansible/roles/products/common/docker-container/tasks/reinstall.yml +++ b/ansible/roles/products/common/docker-container/tasks/reinstall.yml @@ -153,13 +153,25 @@ - "'arm_' in product" - skip_molecule_task is not defined -- name: Update documentation inside the docker container for teleop images +- name: Update documentation inside the docker container for teleop or arm+hand import_tasks: modify-container.yml vars: modify_script_name: "update_documentation.sh" modify_script_commands: "roscd {{ documentation_repo }};curl -H 'Authorization: Token {{ readthedocs_token }}' https://shadow-robot-company-{{ documentation_product }}.readthedocs-hosted.com/_/downloads/en/latest/htmlzip/ -o temp.zip;unzip temp.zip;mv shadow-robot-company-{{ documentation_product }}-latest/ html/" when: - - glove == "haptx" or glove == "shadow_glove" or "'arm_' in product" + - "glove == 'haptx' or glove == 'shadow_glove' or 'arm_' in product" + - skip_molecule_task is not defined + - groups['server'] is defined and inventory_hostname==hostvars[groups['server'][0]]['inventory_hostname'] + ignore_errors: yes + +- name: Update documentation inside the docker container for hand only + import_tasks: modify-container.yml + vars: + modify_script_name: "update_documentation.sh" + modify_script_commands: "cd /home/user/projects/shadow_robot/base/src;git clone https://github.com/shadow-robot/sr_dexterous_hand_documentation;cd /home/user/projects/shadow_robot/base;catkin_make --only-pkg-with-deps sr_dexterous_hand_documentation;cd /home/user/projects/shadow_robot/base/src/sr_dexterous_hand_documentation;curl https://dexterous-hand.readthedocs.io/_/downloads/en/latest/htmlzip/ -o temp.zip;unzip temp.zip;mv dexterous-hand-latest html/" + when: + - "'arm_' not in product" + - "'hand' in product" - skip_molecule_task is not defined - groups['server'] is defined and inventory_hostname==hostvars[groups['server'][0]]['inventory_hostname'] ignore_errors: yes