Fix deprecation warnings in Ansible 2.5 for state 'present'.
This commit is contained in:
parent
2fbaa2d33e
commit
c990c8ae35
|
@ -2,12 +2,12 @@
|
||||||
- name: Ensure PostgreSQL Python libraries are installed.
|
- name: Ensure PostgreSQL Python libraries are installed.
|
||||||
apt:
|
apt:
|
||||||
name: "{{ postgresql_python_library }}"
|
name: "{{ postgresql_python_library }}"
|
||||||
state: installed
|
state: present
|
||||||
|
|
||||||
- name: Ensure PostgreSQL packages are installed.
|
- name: Ensure PostgreSQL packages are installed.
|
||||||
apt:
|
apt:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: present
|
||||||
with_items: "{{ postgresql_packages }}"
|
with_items: "{{ postgresql_packages }}"
|
||||||
|
|
||||||
- name: Ensure all configured locales are present.
|
- name: Ensure all configured locales are present.
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
- name: Ensure PostgreSQL packages are installed.
|
- name: Ensure PostgreSQL packages are installed.
|
||||||
package:
|
package:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
state: installed
|
state: present
|
||||||
enablerepo: "{{ postgresql_enablerepo }}"
|
enablerepo: "{{ postgresql_enablerepo }}"
|
||||||
with_items: "{{ postgresql_packages }}"
|
with_items: "{{ postgresql_packages }}"
|
||||||
|
|
||||||
- name: Ensure PostgreSQL Python libraries are installed.
|
- name: Ensure PostgreSQL Python libraries are installed.
|
||||||
package:
|
package:
|
||||||
name: "{{ postgresql_python_library }}"
|
name: "{{ postgresql_python_library }}"
|
||||||
state: installed
|
state: present
|
||||||
enablerepo: "{{ postgresql_enablerepo }}"
|
enablerepo: "{{ postgresql_enablerepo }}"
|
||||||
|
|
Loading…
Reference in New Issue