updating-deprecated-ansible-modules

* update ceph tasks
* update mariadb tasks
Closes-Bug: #1643633

Change-Id: Ib81789574843edba6e33394a7f66a2e8077075eb
This commit is contained in:
gardlt 2016-11-21 20:22:06 -06:00 committed by gardlt
parent 471a07c021
commit 529f202d00
3 changed files with 12 additions and 12 deletions

View File

@ -2,13 +2,13 @@
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_ceph_cluster state=absent
changed_when: False
always_run: True
check_mode: no
run_once: True
- name: Creating temp file on localhost
local_action: copy content=None dest=/tmp/kolla_ceph_cluster mode=0644
changed_when: False
always_run: True
check_mode: no
run_once: True
- name: Creating ceph_mon_config volume
@ -21,7 +21,7 @@
- name: Writing hostname of host with existing cluster files to temp file
local_action: copy content="{{ inventory_hostname }}" dest=/tmp/kolla_ceph_cluster mode=0644
changed_when: False
always_run: True
check_mode: no
when: not ceph_mon_config_volume.changed
- name: Registering host from temp file
@ -31,7 +31,7 @@
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_ceph_cluster state=absent
changed_when: False
always_run: True
check_mode: no
run_once: True
- include: generate_cluster.yml

View File

@ -2,13 +2,13 @@
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_mariadb_cluster state=absent
changed_when: False
always_run: True
check_mode: no
run_once: True
- name: Creating temp file on localhost
local_action: copy content=None dest=/tmp/kolla_mariadb_cluster mode=0644
changed_when: False
always_run: True
check_mode: no
run_once: True
- name: Creating mariadb volume
@ -21,7 +21,7 @@
- name: Writing hostname of host with existing cluster files to temp file
local_action: copy content={{ ansible_hostname }} dest=/tmp/kolla_mariadb_cluster mode=0644
changed_when: False
always_run: True
check_mode: no
when: not mariadb_volume | changed
- name: Registering host from temp file
@ -31,5 +31,5 @@
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_mariadb_cluster state=absent
changed_when: False
always_run: True
check_mode: no
run_once: True

View File

@ -17,12 +17,12 @@
- name: Cleaning up temp file on mariadb hosts
file: path=/tmp/kolla_mariadb_grastate.dat state=absent
changed_when: false
always_run: true
check_mode: no
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_mariadb_recover_inventory_name state=absent
changed_when: false
always_run: true
check_mode: no
run_once: true
- block:
@ -60,12 +60,12 @@
- name: Cleaning up temp file on mariadb hosts
file: path=/tmp/kolla_mariadb_grastate.dat state=absent
changed_when: false
always_run: true
check_mode: no
- name: Cleaning up temp file on localhost
local_action: file path=/tmp/kolla_mariadb_recover_inventory_name state=absent
changed_when: false
always_run: true
check_mode: no
run_once: true
- name: Starting first MariaDB container