Browse Source

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

"state: installed" is deprecated in Ansible 2.5
uvrrpd
11 changed files with 15 additions and 15 deletions
  1. +2
    -2
      apache/tasks/munin.yml
  2. +1
    -1
      evocheck/tasks/install_package.yml
  3. +1
    -1
      evolinux-base/tasks/hostname.yml
  4. +2
    -2
      haproxy/tasks/main.yml
  5. +2
    -2
      mongodb/tasks/main_jessie.yml
  6. +2
    -2
      mongodb/tasks/main_stretch.yml
  7. +1
    -1
      mysql-oracle/tasks/packages.yml
  8. +1
    -1
      newrelic/tasks/php.yml
  9. +1
    -1
      postgresql/tests/test.yml
  10. +1
    -1
      rabbitmq/tasks/nrpe.yml
  11. +1
    -1
      webapps/evoadmin-web/tasks/ftp.yml

+ 2
- 2
apache/tasks/munin.yml 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


+ 1
- 1
evocheck/tasks/install_package.yml View File

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

+ 1
- 1
evolinux-base/tasks/hostname.yml View File

@@ -2,7 +2,7 @@
- name: dbus is installed
apt:
name: dbus
state: installed
state: present

- name: Set hostname "{{ evolinux_hostname }}"
hostname:


+ 2
- 2
haproxy/tasks/main.yml 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


+ 2
- 2
mongodb/tasks/main_jessie.yml 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:


+ 2
- 2
mongodb/tasks/main_stretch.yml 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:


+ 1
- 1
mysql-oracle/tasks/packages.yml 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


+ 1
- 1
newrelic/tasks/php.yml View File

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

+ 1
- 1
postgresql/tests/test.yml View File

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

- name: Setting default locales


+ 1
- 1
rabbitmq/tasks/nrpe.yml View File

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

- include_role:
name: remount-usr


+ 1
- 1
webapps/evoadmin-web/tasks/ftp.yml View File

@@ -3,7 +3,7 @@
- name: patch must be installed
apt:
name: patch
state: installed
state: present

- name: Patch ProFTPd config file
patch:


Loading…
Cancel
Save