Better idempotence: apt pkg with present state

pull/6/head
Emilien Mantel 2015-08-21 16:16:10 +02:00
parent 5d6abb0dda
commit 3165a1d5ed
4 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@
when: mysql_origin == 'upstream' and mysql_vendor == 'percona' when: mysql_origin == 'upstream' and mysql_vendor == 'percona'
- name: APT | Install few MySQL related tools - name: APT | Install few MySQL related tools
apt: pkg={{ item }} state=latest apt: pkg={{ item }} state=present
with_items: with_items:
- mytop - mytop
- percona-toolkit - percona-toolkit

View File

@ -14,5 +14,5 @@
when: not mysql_exists.stat.exists when: not mysql_exists.stat.exists
- name: APT | Install MariaDB server - name: APT | Install MariaDB server
apt: pkg=mariadb-server state=latest apt: pkg=mariadb-server state=present

View File

@ -14,5 +14,5 @@
when: not mysql_exists.stat.exists when: not mysql_exists.stat.exists
- name: APT | Install MySQL server - name: APT | Install MySQL server
apt: pkg=mysql-server state=latest apt: pkg=mysql-server state=present

View File

@ -17,5 +17,5 @@
when: not mysql_exists.stat.exists when: not mysql_exists.stat.exists
- name: APT | Install Percona - name: APT | Install Percona
apt: update_cache=yes cache_valid_time=3600 pkg='percona-server-server-{{ percona_version }}' state=latest apt: update_cache=yes cache_valid_time=3600 pkg='percona-server-server-{{ percona_version }}' state=present