Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion roles/commands/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@ with at least one host in it - see the `cephadm` role for more details.

## Role variables

* `cephadm_commands`: A list of commands to pass to `cephadm shell -- ceph`

* `cephadm_command`: The command to use with the list of commands to execute - defaults to `ceph`, but can be any command found in the `quay.io/ceph/ceph:<tag>` image.
Example:
```
cephadm_command: radosgw-admin
```

* `cephadm_commands`: A list of commands to pass to `cephadm shell -- {{ cephadm_command }}`
Example:
```
cephadm_commands:
Expand Down
1 change: 1 addition & 0 deletions roles/commands/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
cephadm_command: ceph
cephadm_commands: []
2 changes: 1 addition & 1 deletion roles/commands/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
- name: Execute custom commands
command:
cmd: "cephadm shell -- ceph {{ item }}"
cmd: "cephadm shell -- {{ cephadm_command }} {{ item }}"
register: cephadm_commands_result
with_items: "{{ cephadm_commands }}"
become: true
Expand Down