aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'rss.jinwei.me/config/roles/rss/tasks')
-rw-r--r--rss.jinwei.me/config/roles/rss/tasks/main.yaml12
1 files changed, 6 insertions, 6 deletions
diff --git a/rss.jinwei.me/config/roles/rss/tasks/main.yaml b/rss.jinwei.me/config/roles/rss/tasks/main.yaml
index d70729a..f62c897 100644
--- a/rss.jinwei.me/config/roles/rss/tasks/main.yaml
+++ b/rss.jinwei.me/config/roles/rss/tasks/main.yaml
@@ -4,25 +4,25 @@
4 - python3-pymysql 4 - python3-pymysql
5 update_cache: true 5 update_cache: true
6 6
7- name: create ttrss database if not exists 7- name: create rss database if not exists
8 community.mysql.mysql_db: 8 community.mysql.mysql_db:
9 login_host: "{{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}" 9 login_host: "{{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}"
10 login_port: "{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }}" 10 login_port: "{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }}"
11 login_user: "{{ lookup('aws_ssm', '/jinwei-me/mysql/username') }}" 11 login_user: "{{ lookup('aws_ssm', '/jinwei-me/mysql/username') }}"
12 login_password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/password') }}" 12 login_password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/password') }}"
13 name: "{{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_name') }}" 13 name: "{{ lookup('aws_ssm', '/jinwei-me/mysql/rss_db_name') }}"
14 state: present 14 state: present
15 15
16- name: create ttrss database user 16- name: create rss database user
17 community.mysql.mysql_user: 17 community.mysql.mysql_user:
18 login_host: "{{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}" 18 login_host: "{{ lookup('aws_ssm', '/jinwei-me/mysql/host') }}"
19 login_port: "{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }}" 19 login_port: "{{ lookup('aws_ssm', '/jinwei-me/mysql/port') }}"
20 login_user: "{{ lookup('aws_ssm', '/jinwei-me/mysql/username') }}" 20 login_user: "{{ lookup('aws_ssm', '/jinwei-me/mysql/username') }}"
21 login_password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/password') }}" 21 login_password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/password') }}"
22 name: "{{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_user') }}" 22 name: "{{ lookup('aws_ssm', '/jinwei-me/mysql/rss_db_user') }}"
23 host: "%" 23 host: "%"
24 password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_password') }}" 24 password: "{{ lookup('aws_ssm', '/jinwei-me/mysql/rss_user_password') }}"
25 priv: "{{ lookup('aws_ssm', '/jinwei-me/mysql/ttrss_db_name') }}.*:ALL" 25 priv: "{{ lookup('aws_ssm', '/jinwei-me/mysql/rss_db_name') }}.*:ALL"
26 state: present 26 state: present
27 27
28- name: create rss_home 28- name: create rss_home
Powered by cgit v1.2.3 (git 2.41.0)