Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,16 @@
file:
path: /tmp/index.html
state: absent

- name: Cleanup Postgres Data
hosts: appdbs
gather_facts: true
become: true
tasks:
- name: Remove postgres data directory
file:
#Default location for RHEL
path: /var/lib/pgsql
state: absent

...
6 changes: 6 additions & 0 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,12 @@
- name: tell user to finish setting up postgres
debug:
msg: "Either uncomment the postgres setup or manually login and initialize"
# Version File Created on initdb
# - name: Get Data File info
# stat:
# path: "/var/lib/pgsql/data/PG_VERSION"
# register: pg_version


# only run the next 2 tasks once!
# - name: initilize postgres
Expand Down