Skip to content

Commit

Permalink
offline docs for just hand (#290)
Browse files Browse the repository at this point in the history
* offline docs for just hand

* debug

* debug

* conditional fix

* change import to include

* fix

* fix

* fix

* fix
  • Loading branch information
ToivoS authored Oct 22, 2020
1 parent 447da8b commit f5825b8
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions ansible/roles/products/common/docker-container/tasks/reinstall.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f5825b8

Please sign in to comment.