Add a pre_install tag for operations that are generic

This commit is contained in:
Michael Kaye 2018-08-17 14:40:32 +01:00
parent b424f60e75
commit 33609b4076

View file

@ -3,6 +3,8 @@
user:
name: synapse
state: present
tags:
- pre_install
- name: create directory
file:
@ -10,6 +12,8 @@
state: directory
owner: synapse
group: synapse
tags:
- pre_install
- name: Install dependencies
apt:
@ -28,6 +32,8 @@
- libxslt1-dev
- git
- libpq-dev
tags:
- pre_install
- name: Create virtualenv
pip:
@ -42,6 +48,8 @@
extra_args: --upgrade
become: true
become_user: synapse
tags:
- pre_install
- name: Clone synapse
git:
@ -52,6 +60,8 @@
become_user: synapse
become: true
register: clone_synapse
tags:
- pre_install
- name: Install Synapse
pip:
@ -63,3 +73,5 @@
when: clone_synapse.changed
tags:
- skip_ansible_lint # skip when clause
- pre_install