mirror of
https://github.com/famedly/ansible-collection-matrix
synced 2024-11-10 13:44:16 +00:00
Add a pre_install tag for operations that are generic
This commit is contained in:
parent
b424f60e75
commit
33609b4076
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue