From 7baf589e8b184800c1a6a4c8d09da2a057ca2505 Mon Sep 17 00:00:00 2001 From: Jimmy McCrory Date: Thu, 11 Feb 2016 04:55:10 -0800 Subject: [PATCH] Resolve ansible-lint ANSIBLE0008 ansible-lint 2.3.7 added a rule checking for use of the deprecated 'sudo' and 'sudo_user' directives. They have been replaced with 'become' and 'become_user' respectively. Change-Id: I2271fe8468840884f19f41abba37e696c6296350 --- tasks/glance_db_setup.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/glance_db_setup.yml b/tasks/glance_db_setup.yml index d7bb8d09..9b42df6e 100644 --- a/tasks/glance_db_setup.yml +++ b/tasks/glance_db_setup.yml @@ -41,8 +41,8 @@ - name: Perform a Glance DB sync command: "{{ glance_bin }}/glance-manage db_sync" - sudo: yes - sudo_user: "{{ glance_system_user_name }}" + become: yes + become_user: "{{ glance_system_user_name }}" tags: - glance-db-sync - glance-setup @@ -50,8 +50,8 @@ - name: Load glance metadata definitions command: "{{ glance_bin }}/glance-manage db_load_metadefs {{ glance_etc_dir }}/metadefs" - sudo: yes - sudo_user: "{{ glance_system_user_name }}" + become: yes + become_user: "{{ glance_system_user_name }}" tags: - glance-db-sync - glance-setup