apt module: Use "state: present" instead of "state: installed"

"state: installed" is deprecated in Ansible 2.5
This commit is contained in:
Jérémy Lecour 2018-05-18 09:33:25 +02:00 committed by Jérémy Lecour
parent f8babfd532
commit ec535b036c
11 changed files with 15 additions and 15 deletions

View File

@ -3,7 +3,7 @@
- name: "Install munin-node and core plugins packages"
apt:
name: "{{ item }}"
state: installed
state: present
with_items:
- munin-node
- munin-plugins-core
@ -28,7 +28,7 @@
- name: "Install fcgi packages for Munin graphs"
apt:
name: "{{ item }}"
state: installed
state: present
with_items:
- libapache2-mod-fcgid
- libcgi-fast-perl

View File

@ -2,4 +2,4 @@
- name: install evocheck from package
apt:
name: evocheck
state: installed
state: present

View File

@ -2,7 +2,7 @@
- name: dbus is installed
apt:
name: dbus
state: installed
state: present
- name: Set hostname "{{ evolinux_hostname }}"
hostname:

View File

@ -2,7 +2,7 @@
- name: ssl-cert package is installed
apt:
name: ssl-cert
state: installed
state: present
tags:
- haproxy
- packages
@ -13,7 +13,7 @@
- name: Install HAProxy package
apt:
name: haproxy
state: installed
state: present
tags:
- haproxy
- packages

View File

@ -16,12 +16,12 @@
apt:
name: mongodb-org
allow_unauthenticated: yes
state: installed
state: present
- name: install dependency for monitoring
apt:
name: python-pymongo
state: installed
state: present
- name: Custom configuration
template:

View File

@ -3,7 +3,7 @@
- name: Install packages
apt:
name: "{{ item }}"
state: installed
state: present
with_items:
- mongodb
- mongo-tools
@ -11,7 +11,7 @@
- name: install dependency for monitoring
apt:
name: python-pymongo
state: installed
state: present
- name: Custom configuration
template:

View File

@ -11,7 +11,7 @@
- name: MySQL APT config package is installed
apt:
deb: /root/mysql-apt-config_0.8.9-1_all.deb
state: installed
state: present
register: mysql_apt_config_deb
- name: Open firewall for MySQL.com repository

View File

@ -39,4 +39,4 @@
- name: Install package for PHP
apt:
name: newrelic-php5
state: installed
state: present

View File

@ -5,7 +5,7 @@
- name: Install locales
apt:
name: locales
state: installed
state: present
changed_when: false
- name: Setting default locales

View File

@ -3,7 +3,7 @@
- name: check_rabbitmq dependencies
apt:
name: python-requests
state: installed
state: present
- include_role:
name: remount-usr

View File

@ -3,7 +3,7 @@
- name: patch must be installed
apt:
name: patch
state: installed
state: present
- name: Patch ProFTPd config file
patch: