Skip to content
Snippets Groups Projects
Commit b7162ab7 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

adding a role to mount from ceph

parent 14b47c53
No related branches found
No related tags found
1 merge request!486adding a role to mount from ceph
---
- name: install packages for ceph client Debian
package:
name: ceph-common
state: present
become: true
when: ansible_os_family == "Debian"
- name: install packages for ceph repo RHEL
package:
name: centos-release-ceph-nautilus.noarch
state: present
become: true
register: cephrepoinstall
when: ansible_os_family == "RedHat"
- name: install packages for ceph client Debian
yum:
name: libcephfs2
update_cache: yes
state: present
become: true
when: ansible_os_family == "RedHat" and cephrepoinstall.changed
- name: deploy secret file. this should not be hardcoded
lineinfile:
path: /root/cephfs-dev-hpc.secret
line: "{{ cephsecret_devhpc }}"
owner: root
group: root
mode: '0600'
create: yes
become: true
- name: "Mounting ceph mounts. code copied from nfs-client"
mount:
name: "{{ item.name }}"
src: "{{ item.ipv4 }}:{{ item.src }}"
fstype: "{{ item.fstype }}"
opts: "{{ item.opts }}"
state: mounted
loop: "{{ cephmounts }}"
become: true
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