Fix deprecation warnings in Ansible 2.5 for state 'present'.

This commit is contained in:
Jeff Geerling 2018-04-04 14:03:04 -05:00
parent 2fbaa2d33e
commit c990c8ae35
2 changed files with 4 additions and 4 deletions

View File

@ -2,12 +2,12 @@
- name: Ensure PostgreSQL Python libraries are installed.
apt:
name: "{{ postgresql_python_library }}"
state: installed
state: present
- name: Ensure PostgreSQL packages are installed.
apt:
name: "{{ item }}"
state: installed
state: present
with_items: "{{ postgresql_packages }}"
- name: Ensure all configured locales are present.

View File

@ -2,12 +2,12 @@
- name: Ensure PostgreSQL packages are installed.
package:
name: "{{ item }}"
state: installed
state: present
enablerepo: "{{ postgresql_enablerepo }}"
with_items: "{{ postgresql_packages }}"
- name: Ensure PostgreSQL Python libraries are installed.
package:
name: "{{ postgresql_python_library }}"
state: installed
state: present
enablerepo: "{{ postgresql_enablerepo }}"