Browse Source

Merge "BnR Added a nfs validation when the nfs server is installed"

changes/15/795815/1
Zuul 4 days ago
committed by Gerrit Code Review
parent
commit
8d408f48da
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      tripleo_ansible/playbooks/prepare-nfs-backup.yaml

+ 11
- 1
tripleo_ansible/playbooks/prepare-nfs-backup.yaml View File

@ -13,8 +13,18 @@
# License for the specific language governing permissions and limitations
# under the License.
- name: Check BackupNode group
hosts: localhost
tasks:
- assert:
that:
- nfs_server_group_name | default("BackupNode") in groups
- ( groups[nfs_server_group_name | default("BackupNode") ] | length ) > 0
fail_msg: "There is no server on {{ nfs_server_group_name | default('BackupNode') }} groups"
tags: bar_setup_nfs_server
- name: TripleO BackupNode NFS installation and configuration.
hosts: BackupNode
hosts: '{{ nfs_server_group_name | default("BackupNode") }}'
remote_user: "{{ tripleo_target_user | default(lookup('env', 'USER')) }}"
become: true
roles:


Loading…
Cancel
Save