remove old loop syntax
This commit is contained in:
parent
3d24d6ce98
commit
737b83dc81
@ -12,7 +12,7 @@
|
|||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
password: "{{ item.password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
|
password: "{{ item.password | password_hash('sha512', 65534 | random(seed=inventory_hostname) | string) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
with_items: "{{ postgres_users }}"
|
loop: "{{ postgres_users }}"
|
||||||
no_log: True
|
no_log: True
|
||||||
when: item.pam_user | default(False)
|
when: item.pam_user | default(False)
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items: "{{ __postgres_packages }}"
|
loop: "{{ __postgres_packages }}"
|
||||||
|
|
||||||
- name: Ensure data directory exists
|
- name: Ensure data directory exists
|
||||||
file:
|
file:
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
port: "{{ item.port | default(omit) }}"
|
port: "{{ item.port | default(omit) }}"
|
||||||
state: "{{ item.state | default('present') }}"
|
state: "{{ item.state | default('present') }}"
|
||||||
no_log: True
|
no_log: True
|
||||||
with_items: "{{ postgres_users }}"
|
loop: "{{ postgres_users }}"
|
||||||
become: True
|
become: True
|
||||||
become_user: "{{ postgres_user }}"
|
become_user: "{{ postgres_user }}"
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: present
|
state: present
|
||||||
with_items:
|
loop:
|
||||||
- python-psycopg2
|
- python-psycopg2
|
||||||
become: True
|
become: True
|
||||||
become_user: root
|
become_user: root
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
owner: "{{ postgres_user }}"
|
owner: "{{ postgres_user }}"
|
||||||
group: "{{ postgres_group }}"
|
group: "{{ postgres_group }}"
|
||||||
recurse: True
|
recurse: True
|
||||||
with_items:
|
loop:
|
||||||
- "{{ __postgres_tls_key_path | dirname }}"
|
- "{{ __postgres_tls_key_path | dirname }}"
|
||||||
- "{{ __postgres_tls_cert_path | dirname }}"
|
- "{{ __postgres_tls_cert_path | dirname }}"
|
||||||
become: True
|
become: True
|
||||||
@ -19,7 +19,7 @@
|
|||||||
src: "{{ item.src }}"
|
src: "{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
with_items:
|
loop:
|
||||||
- { src: "{{ postgres_tls_key_source }}", dest: '{{ __postgres_tls_key_path }}', mode: '0600' }
|
- { src: "{{ postgres_tls_key_source }}", dest: '{{ __postgres_tls_key_path }}', mode: '0600' }
|
||||||
- { src: "{{ postgres_tls_cert_source }}", dest: '{{ __postgres_tls_cert_path }}', mode: '0750' }
|
- { src: "{{ postgres_tls_cert_source }}", dest: '{{ __postgres_tls_cert_path }}', mode: '0750' }
|
||||||
loop_control:
|
loop_control:
|
||||||
|
Loading…
Reference in New Issue
Block a user