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
This commit is contained in:
Jimmy McCrory 2016-02-11 04:55:10 -08:00
parent b17f918491
commit fd06a43483

View File

@ -62,8 +62,8 @@
--config-file {{ neutron_db_config }}
--config-file {{ neutron_db_plugin }}
upgrade --expand
sudo: yes
sudo_user: "{{ neutron_system_user_name }}"
become: yes
become_user: "{{ neutron_system_user_name }}"
when:
- (neutron_migrations is defined and neutron_migrations['run_expand']|bool)
- neutron_plugin_type == 'ml2'
@ -89,8 +89,8 @@
--config-file {{ neutron_db_config }}
--config-file {{ neutron_db_plugin }}
upgrade --contract
sudo: yes
sudo_user: "{{ neutron_system_user_name }}"
become: yes
become_user: "{{ neutron_system_user_name }}"
when:
- (neutron_migrations is defined and neutron_migrations['run_contract']|bool)
- neutron_plugin_type == 'ml2'
@ -107,8 +107,8 @@
--config-file {{ neutron_db_config }}
--config-file {{ neutron_db_plugin }}
upgrade heads
sudo: yes
sudo_user: "{{ neutron_system_user_name }}"
become: yes
become_user: "{{ neutron_system_user_name }}"
when:
- neutron_plugin_type != 'ml2'
tags: