From d6549a70ed66167d920becf74053826012c387b9 Mon Sep 17 00:00:00 2001
From: caoyuan <cao.yuan@99cloud.net>
Date: Tue, 20 Mar 2018 22:22:24 +0800
Subject: [PATCH] Remove the duplicate dict key (become)

Change-Id: I5f9d3eb6bd42f43073704d1e8c2b8bd03fb9eb9b
---
 ansible/roles/ceph/tasks/distribute_keyrings.yml | 3 ---
 ansible/roles/ceph/tasks/start_osds.yml          | 1 -
 2 files changed, 4 deletions(-)

diff --git a/ansible/roles/ceph/tasks/distribute_keyrings.yml b/ansible/roles/ceph/tasks/distribute_keyrings.yml
index 7be4cb25db..f4aa389792 100644
--- a/ansible/roles/ceph/tasks/distribute_keyrings.yml
+++ b/ansible/roles/ceph/tasks/distribute_keyrings.yml
@@ -18,7 +18,6 @@
     dest: "{{ node_config_directory }}/ceph-osd/{{ item.filename }}"
     sha1: "{{ item.sha1 }}"
     mode: 0600
-  become: true
   with_items:
     - "{{ ceph_files['ceph.client.admin.keyring'] }}"
   when: inventory_hostname in groups['ceph-osd']
@@ -30,7 +29,6 @@
     dest: "{{ node_config_directory }}/ceph-mon/{{ item.filename }}"
     sha1: "{{ item.sha1 }}"
     mode: 0600
-  become: true
   with_items:
     - "{{ ceph_files['ceph.client.admin.keyring'] }}"
     - "{{ ceph_files['ceph.client.mon.keyring'] }}"
@@ -45,7 +43,6 @@
     dest: "{{ node_config_directory }}/ceph-rgw/{{ item.filename }}"
     sha1: "{{ item.sha1 }}"
     mode: 0600
-  become: true
   with_items:
     - "{{ ceph_files['ceph.client.admin.keyring'] }}"
     - "{{ ceph_files['ceph.client.radosgw.keyring'] }}"
diff --git a/ansible/roles/ceph/tasks/start_osds.yml b/ansible/roles/ceph/tasks/start_osds.yml
index cd51d9ce87..157879dc7d 100644
--- a/ansible/roles/ceph/tasks/start_osds.yml
+++ b/ansible/roles/ceph/tasks/start_osds.yml
@@ -20,7 +20,6 @@
     name: "/var/lib/ceph/osd/{{ item['fs_uuid'] }}"
     opts: "{{ ceph_osd_mount_options }}"
   with_items: "{{ osds }}"
-  become: true
   become_method: sudo
 
 - name: Gathering OSD IDs
-- 
GitLab