forked from k-ta-yamada/postgres-ha-ansible
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.yml
More file actions
30 lines (30 loc) · 761 Bytes
/
site.yml
File metadata and controls
30 lines (30 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
- hosts:
- dbservers
become: yes
roles:
# - etc-hosts
# - postgresql # dependencies: etc-hosts
- pgpool-II # dependencies: etc-hosts, postgresql
# vars:
# vars_files:
# - "inventories/{{ env }}/vars/main.yml"
# vars_prompt:
# - name: is_rm_pgdata_dir
# prompt: "rm pgdata_dir ?"
# default: no
# pre_tasks:
# - tags: change_password
# name: change_password
# when: env | default("") == "vagrant"
# block:
# - user:
# name: "{{ item }}"
# password: "{{ 'a' | password_hash('sha512') }}"
# changed_when: false
# with_items:
# - vagrant
# - root
# - postgres
# tasks:
# - name: test
# debug: