You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
831 B

  1. ---
  2. - name: Create IPython profile
  3. become_user: "{{ app_username }}"
  4. command:
  5. cmd: "{{ bin_dir }}/ipython profile create"
  6. creates: /home/{{ app_username }}/.ipython/profile_default
  7. - name: Create IPython config file
  8. copy:
  9. src: ipython_config.py
  10. dest: /home/{{ app_username }}/.ipython/profile_default/ipython_config.py
  11. owner: "{{ app_username }}"
  12. group: "{{ app_username }}"
  13. mode: 0744
  14. - name: Automatically activate venv on login and in new shells
  15. lineinfile:
  16. path: /home/{{ app_username }}/.bashrc
  17. line: source activate
  18. owner: "{{ app_username }}"
  19. group: "{{ app_username }}"
  20. - name: Add invoke's tab-completion script to support completing invoke task names
  21. lineinfile:
  22. path: /home/{{ app_username }}/.bashrc
  23. line: source <(invoke --print-completion-script bash)