Centos7/RHEL7์ Postgres 9.6์ ์ค์นํ๊ธฐ ์ํด ์ด ์ญํ ์ ์ด๋ป๊ฒ ์กฐ์ ํ ์ ์์ต๋๊น?
๋ค์๊ณผ ๊ฐ์ด ์๋ํด์ผ ํฉ๋๋ค.
- hosts: all
tasks:
- yum:
name: "https://download.postgresql.org/pub/repos/yum/reporpms/EL-{{ ansible_distribution_major_version }}-x86_64/pgdg-redhat-repo-latest.noarch.rpm"
state: present
become: yes
- import_role:
name: geerlingguy.postgresql
vars:
postgresql_enablerepo: "pgdg96"
postgresql_version: 9.6
postgresql_packages:
- postgresql96
- postgresql96-server
- postgresql96-contrib
- postgresql96-libs
postgresql_data_dir: /var/lib/pgsql/9.6/data
postgresql_bin_path: /usr/pgsql-9.6/bin
postgresql_config_path: /var/lib/pgsql/9.6/data
postgresql_daemon: postgresql-9.6
become: yes
@kdhlab Beer on me ... ์๊ฐ์ ์ ์ฝํ์ต๋๋ค :) ์ด๊ฒ์ ์์ README์ ํฌํจ๋์ด์ผ ํฉ๋๋ค.
CentOS 7์ ๊ธฐ๋ณธ๊ฐ๊ณผ ๋ค๋ฅธ ๋ฒ์ ์ ์คํํ๋ ๋ฐ ํ์ํ var ์ฌ์ ์์ ์ข์ ์์ ๋๋ค. ์ ์๊ฒ ํจ๊ณผ์ ์ด์์ต๋๋ค.
์ด ๋ฌธ์ ๋ ์ต๊ทผ ํ๋์ด ์๊ธฐ ๋๋ฌธ์ '๋ถ์ค'๋ก ํ์๋์์ต๋๋ค. ๋ ์ด์์ ํ๋์ด ์์ผ๋ฉด 30์ผ ํ์ ๋ฌธ์ ๊ฐ ์ข ๋ฃ๋ฉ๋๋ค. ๋น์ ์ ๊ธฐ์ฌ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค!
์ด ๋ธ๋ก๊ทธ ๊ฒ์๋ฌผ ์ ์ฝ๊ณ ๋ฌธ์ ๋ฅผ ์ค๋๋ ๊ฒ์ผ๋ก ํ์ํ๋ ์ด์ ๋ฅผ ํ์ธํ์ญ์์ค.
์์ฒญ๋! ์ด๊ฒ์ ๋ํ์ด ์ ๋ ฅ์ ๊ฐ์ฌ๋๋ฆฝ๋๋ค! ๋์ํฉ๋๋ค. ์ด์ ๋ํ ์๊ฐ README์ ํฌํจ๋์ด์ผ ํฉ๋๋ค. :+1:
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ค์๊ณผ ๊ฐ์ด ์๋ํด์ผ ํฉ๋๋ค.