role mastodon added
This commit is contained in:
9
roles/database/tasks/install_postgres.yml
Normal file
9
roles/database/tasks/install_postgres.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: database | postgres | install postgres packages
|
||||
package:
|
||||
name: "{{ item.package }}"
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
state: latest
|
||||
install_recommends: no
|
||||
become: yes
|
||||
with_items: "{{ postgres.packages }}"
|
||||
9
roles/database/tasks/install_redis.yml
Normal file
9
roles/database/tasks/install_redis.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
- name: database | redis | install redis packages
|
||||
package:
|
||||
name: "{{ item.package }}"
|
||||
update_cache: yes
|
||||
cache_valid_time: 3600
|
||||
state: latest
|
||||
install_recommends: no
|
||||
become: yes
|
||||
with_items: "{{ redis.packages }}"
|
||||
14
roles/database/tasks/main.yml
Normal file
14
roles/database/tasks/main.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
# Load distro-specific variables
|
||||
- include_vars: "{{ ansible_distribution }}.yml"
|
||||
tags: always
|
||||
|
||||
- block:
|
||||
- debug:
|
||||
msg: Debug
|
||||
# install software
|
||||
- import_tasks: install_mysql.yml
|
||||
when: mysql == true
|
||||
- import_tasks: install_postgres.yml
|
||||
when: postgres == true
|
||||
- import_tasks: install_redis.yml
|
||||
when: redis == true
|
||||
Reference in New Issue
Block a user