site-docker: fix undefined variable error

`mon_group_name` isn't defined here, we must hardcode it.

Typical error:

```
The task includes an option with an undefined variable. The error was: 'mon_group_name' is undefined
```

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/3130/head
Guillaume Abrioux 2018-09-14 07:51:03 +02:00 committed by mergify[bot]
parent 735e1917db
commit 98c210d757
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@
become: True
tasks:
- name: get ceph status from the first monitor
command: docker exec ceph-mon-{{ hostvars[groups[mon_group_name][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} -s
command: docker exec ceph-mon-{{ hostvars[groups['mons'][0]]['ansible_hostname'] }} ceph --cluster {{ cluster }} -s
register: ceph_status
changed_when: false
delegate_to: "{{ groups['mons'][0] }}"