Skip to content
Snippets Groups Projects
Commit a4e7a13a authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "Ansible lint: use command module instead of shell"

parents 4afb1841 5fb10e08
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@
- name: Copying MariaDB log file to /tmp
become: true
shell: "docker cp {{ mariadb_service.container_name }}:/var/log/kolla/mariadb/mariadb.log /tmp/mariadb_tmp.log"
command: "docker cp {{ mariadb_service.container_name }}:/var/log/kolla/mariadb/mariadb.log /tmp/mariadb_tmp.log"
# Look for sequence number in logs. Format is:
# WSREP: Recovered position: <UUID>:<seqno>.
......
......@@ -12,7 +12,7 @@
# NOTE(duonghq): it's only a basic check, should be refined later
- name: Check if ansible user can do passwordless sudo
shell: "true"
command: "true"
become: yes
register: result
failed_when: result is failed
......
......@@ -23,7 +23,7 @@
service_name: "rabbitmq"
service: "{{ rabbitmq_services[service_name] }}"
become: true
shell: "docker exec {{ service.container_name }} rabbitmqctl wait {{ rabbitmq_pid_file }}"
command: "docker exec {{ service.container_name }} rabbitmqctl wait {{ rabbitmq_pid_file }}"
when:
- inventory_hostname == groups[service.group]|first
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment