Skip to content

Commit

Permalink
Revert ceph changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zenntrix authored and zenntrix committed Oct 18, 2021
1 parent da3af7b commit 97db517
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tasks/ceph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,13 @@
tags: ceph_volume

- name: Create Ceph OSDs
ceph_volume:
action: create
data: "{{ item.device }}"
db: "{{ item['block.db'] | default(omit) }}"
wal: "{{ item['block.wal'] | default(omit) }}"
dmcrypt: "{{ item.encrypted | default(omit) | bool }}"
command: >-
pveceph osd create {{ item.device }}
{% if "encrypted" in item and item["encrypted"] | bool %}--encrypted 1{% endif %}
{% if "block.db" in item %}--db_dev {{ item["block.db"] }}{% endif %}
{% if "block.wal" in item %}--wal_dev {{ item["block.wal"] }}{% endif %}
args:
creates: '{{ item.device }}1'
with_items: '{{ _ceph_osds_diff }}'

tags: create_osd
Expand Down

0 comments on commit 97db517

Please sign in to comment.