From d6855a3249fd884474dcd08733d29516832a4ce9 Mon Sep 17 00:00:00 2001 From: Matthieu Huin Date: Feb 04 2021 19:13:06 +0000 Subject: fix bad indentation --- diff --git a/tests/setup_zuul_prerequisites.yml b/tests/setup_zuul_prerequisites.yml index d5a2207..5d4c588 100644 --- a/tests/setup_zuul_prerequisites.yml +++ b/tests/setup_zuul_prerequisites.yml @@ -37,49 +37,49 @@ shell: /tmp/zookeeper/apache-zookeeper-{{ zookeeper_version }}-bin/bin/zkServer.sh start become: true - - name: Init postgreql DB - shell: /usr/bin/postgresql-setup --initdb - ignore_errors: true - become: true + - name: Init postgreql DB + shell: /usr/bin/postgresql-setup --initdb + ignore_errors: true + become: true - - name: Start postgres - service: - name: postgresql - state: started - become: true +- name: Start postgres + service: + name: postgresql + state: started + become: true - - name: Wait for the service to be up - pause: - seconds: 15 +- name: Wait for the service to be up + pause: + seconds: 15 - - name: Setup a postgres admin password - shell: psql -c "ALTER USER postgres WITH PASSWORD 'mypassword';" - become_user: postgres - become: true - environment: - PGPASSWORD: mypassword +- name: Setup a postgres admin password + shell: psql -c "ALTER USER postgres WITH PASSWORD 'mypassword';" + become_user: postgres + become: true + environment: + PGPASSWORD: mypassword - - name: Create the database for zuul - shell: createdb --owner=postgres zuul - register: cmd - failed_when: cmd.rc != 0 and not "'already exists' in cmd.stderr" - # ignore_errors: true - become_user: postgres - become: true - environment: - PGPASSWORD: mypassword +- name: Create the database for zuul + shell: createdb --owner=postgres zuul + register: cmd + failed_when: cmd.rc != 0 and not "'already exists' in cmd.stderr" + # ignore_errors: true + become_user: postgres + become: true + environment: + PGPASSWORD: mypassword - - name: Enable auth access - shell: sed -i 's|127.0.0.1/32 ident|127.0.0.1/32 md5|' /var/lib/pgsql/data/pg_hba.conf - become: true +- name: Enable auth access + shell: sed -i 's|127.0.0.1/32 ident|127.0.0.1/32 md5|' /var/lib/pgsql/data/pg_hba.conf + become: true - - name: Restart postgres - service: - name: postgresql - state: restarted - become: true +- name: Restart postgres + service: + name: postgresql + state: restarted + become: true - - name: Ensure postgres access - shell: psql -h 127.0.0.1 -U postgres zuul -c "\dt" - environment: - PGPASSWORD: mypassword +- name: Ensure postgres access + shell: psql -h 127.0.0.1 -U postgres zuul -c "\dt" + environment: + PGPASSWORD: mypassword