mirror of
https://github.com/ansible/awx.git
synced 2026-03-21 10:57:36 -02:30
Minor tweaks to the setup playbook.
This commit is contained in:
@@ -19,6 +19,8 @@
|
|||||||
- name: install packages from yum
|
- name: install packages from yum
|
||||||
yum: name=$item state=installed
|
yum: name=$item state=installed
|
||||||
with_items:
|
with_items:
|
||||||
|
- gcc
|
||||||
|
- python-pip
|
||||||
- postgresql # database client
|
- postgresql # database client
|
||||||
- postgresql-server # database server
|
- postgresql-server # database server
|
||||||
- python-psycopg2 # database library
|
- python-psycopg2 # database library
|
||||||
@@ -28,7 +30,7 @@
|
|||||||
pip: requirements=${working_dir}/requirements.txt
|
pip: requirements=${working_dir}/requirements.txt
|
||||||
|
|
||||||
- name: configure the database authentication more or less open for setup
|
- name: configure the database authentication more or less open for setup
|
||||||
template: src=templates/pg_hba_low.j2 dest=/var/lib/pgsql/data/pg_hba.conf
|
template: src=templates/pg_hba_low.j2 dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres
|
||||||
|
|
||||||
- name: restart postgresql
|
- name: restart postgresql
|
||||||
service: name=postgresql state=restarted
|
service: name=postgresql state=restarted
|
||||||
@@ -45,7 +47,7 @@
|
|||||||
postgresql_db: name=acom state=present
|
postgresql_db: name=acom state=present
|
||||||
|
|
||||||
- name: configure the database authentication for runtime mode
|
- name: configure the database authentication for runtime mode
|
||||||
template: src=templates/pg_hba.j2 dest=/var/lib/pgsql/data/pg_hba.conf
|
template: src=templates/pg_hba.j2 dest=/var/lib/pgsql/data/pg_hba.conf owner=postgres
|
||||||
|
|
||||||
- name: restart postgresql
|
- name: restart postgresql
|
||||||
service: name=postgresql state=restarted
|
service: name=postgresql state=restarted
|
||||||
|
|||||||
Reference in New Issue
Block a user