Skip to content

Commit

Permalink
Update cloudhistory-ec2.yml
Browse files Browse the repository at this point in the history
again new notation update
  • Loading branch information
teejalon committed Jun 10, 2014
1 parent cfc6a36 commit 1cdd911
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cloudhistory/cloudhistory-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@


- name: Wait for SSH to come up
local_action: wait_for host=${item.public_ip} port=22 delay=60 timeout=320 state=started
local_action: wait_for host={{ item.public_ip }} port=22 delay=60 timeout=320 state=started
with_items: ec2.instances

- name: Configure instance
Expand Down Expand Up @@ -95,10 +95,10 @@
action: shell su - postgres -c "/usr/pgsql-9.1/bin/initdb -D {{ pgdir }}/pgsql/9.1/data"

- name: Template pg_hba.conf
action: template src=templates/pg_hba.conf.j2 dest=${pgdir}/pgsql/9.1/data/pg_hba.conf owner=postgres mode=0600
action: template src=templates/pg_hba.conf.j2 dest={{pgdir}}/pgsql/9.1/data/pg_hba.conf owner=postgres mode=0600

- name: Change listen address to all
action: template src=templates/postgresql.j2 dest=${pgdir}/pgsql/9.1/data/postgresql.conf owner=postgres mode=0600
action: template src=templates/postgresql.j2 dest={{pgdir}}/pgsql/9.1/data/postgresql.conf owner=postgres mode=0600

- name: sed PGDATA /etc/init.d/postgresql-9.1
action: shell sed -i 's_^PGDATA=/var/lib/pgsql/9.1/data_PGDATA={{ pgdir }}/pgsql/9.1/data_' /etc/init.d/postgresql-9.1
Expand Down

0 comments on commit 1cdd911

Please sign in to comment.