summaryrefslogtreecommitdiffstats
path: root/ansible/lemmy_dev.yml
diff options
context:
space:
mode:
authorFelix Ableitner <me@nutomic.com>2020-07-01 14:51:52 +0200
committerFelix Ableitner <me@nutomic.com>2020-07-01 14:51:52 +0200
commitfb2b8994c7b17b8cae0b9d562fce53cb7dbe660c (patch)
tree724fbe060a4d91034c931dfdd81335386fa26ed2 /ansible/lemmy_dev.yml
parent95f59a027248440b16107192cb507b7c182514de (diff)
Improve comments in ansible inventory
Diffstat (limited to 'ansible/lemmy_dev.yml')
-rw-r--r--ansible/lemmy_dev.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/lemmy_dev.yml b/ansible/lemmy_dev.yml
index 1e7369da..e8556665 100644
--- a/ansible/lemmy_dev.yml
+++ b/ansible/lemmy_dev.yml
@@ -7,6 +7,11 @@
# https://www.josharcher.uk/code/ansible-python-connection-failure-ubuntu-server-1604/
gather_facts: False
pre_tasks:
+ - name: check lemmy_base_dir
+ fail:
+ msg: "`lemmy_base_dir` is unset. if you are upgrading from an older version, add `lemmy_base_dir=/lemmy` to your inventory file."
+ when: lemmy_base_dir is not defined
+
- name: install python for Ansible
raw: test -e /usr/bin/python || (apt -y update && apt install -y python-minimal python-setuptools)
args: