mirror of
https://gitlab.com/tildes/tildes.git
synced 2026-04-28 20:07:00 +02:00
4cc100ab02
This changes the site to run on Debian 10 instead of Ubuntu 16.04. It also fully converts the previous Salt setup to use Ansible instead. Most of this was a relatively straightforward conversion, and it should be very close to equivalent. One notable difference is that I removed the setup for the "monitoring" server, since I wasn't confident that the way of setting up self-hosted Sentry and Grafana was working any more. I'll look to re-add that at some point, but it's not urgent.
27 lines
831 B
YAML
27 lines
831 B
YAML
---
|
|
- name: Create IPython profile
|
|
become_user: "{{ app_username }}"
|
|
command:
|
|
cmd: "{{ bin_dir }}/ipython profile create"
|
|
creates: /home/{{ app_username }}/.ipython/profile_default
|
|
|
|
- name: Create IPython config file
|
|
copy:
|
|
src: ipython_config.py
|
|
dest: /home/{{ app_username }}/.ipython/profile_default/ipython_config.py
|
|
owner: "{{ app_username }}"
|
|
group: "{{ app_username }}"
|
|
mode: 0744
|
|
|
|
- name: Automatically activate venv on login and in new shells
|
|
lineinfile:
|
|
path: /home/{{ app_username }}/.bashrc
|
|
line: source activate
|
|
owner: "{{ app_username }}"
|
|
group: "{{ app_username }}"
|
|
|
|
- name: Add invoke's tab-completion script to support completing invoke task names
|
|
lineinfile:
|
|
path: /home/{{ app_username }}/.bashrc
|
|
line: source <(invoke --print-completion-script bash)
|