- name: Check the required input when manila_backend is NFS when: manila_backend == "cephnfs" block: - name: Get ceph-nfs IP Address become: true ansible.builtin.shell: | {{ shell_header }} CONTROLLER1_SSH="{{ controller1_ssh }}" ${CONTROLLER1_SSH} "awk -F '[=;]' '/Bind_Addr/ {gsub(/ /, \"\", \$2); print \$2}' {{ ganesha_default_path }}" register: cephnfs_vip - name: Fail if the OLD Ganesha VIP is not a good input value when: - not (cephnfs_vip.stdout | ansible.builtin.ipaddr) ansible.builtin.fail: msg: "The (TRIPLEO) gathered Ganesha server IP is malformed" - name: Deploy Podified Manila - Ceph when: manila_backend == "cephfs" or manila_backend == "cephnfs" block: - name: Generate CR config based on the selected backend ansible.builtin.template: src: manila_cephfs.yaml.j2 dest: /tmp/manila_cephfs.yaml mode: "0600" vars: tripleo_ganesha_vip: "{{ cephnfs_vip.stdout }}" - name: Deploy podified Manila with cephfs backend ansible.builtin.shell: | {{ shell_header }} {{ oc_header }} oc patch openstackcontrolplane openstack --type=merge --patch-file=/tmp/manila_cephfs.yaml