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:
parent
2a12ea385e
commit
9d15e882df
@ -41,8 +41,8 @@
|
|||||||
|
|
||||||
- name: Perform a horizon DB sync
|
- name: Perform a horizon DB sync
|
||||||
command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput"
|
command: "{{ horizon_bin }}/horizon-manage.py syncdb --noinput"
|
||||||
sudo: yes
|
become: yes
|
||||||
sudo_user: "{{ horizon_system_user_name }}"
|
become_user: "{{ horizon_system_user_name }}"
|
||||||
tags:
|
tags:
|
||||||
- horizon-db-setup
|
- horizon-db-setup
|
||||||
- horizon-db-sync
|
- horizon-db-sync
|
||||||
|
@ -70,8 +70,8 @@
|
|||||||
|
|
||||||
- name: Collect and compress static files
|
- name: Collect and compress static files
|
||||||
command: "{{ item }}"
|
command: "{{ item }}"
|
||||||
sudo: yes
|
become: yes
|
||||||
sudo_user: "{{ horizon_system_user_name }}"
|
become_user: "{{ horizon_system_user_name }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput"
|
- "{{ horizon_bin }}/horizon-manage.py collectstatic --noinput"
|
||||||
- "{{ horizon_bin }}/horizon-manage.py compress --force"
|
- "{{ horizon_bin }}/horizon-manage.py compress --force"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user