Error during configure attributes for advanced resource
lukikawalec opened this issue · 2 comments
lukikawalec commented
I try to configure advanced resource with meta and I get error "'dict object' has no attribute 'name'".
Probably the cause is nvpair.name in loop_control.labal. Should be nvpair.key.
https://github.com/devgateway/ansible-role-pacemaker/blob/master/tasks/advanced-resource.yml#L22
cu12 commented
@lukikawalec this works for me:
- name: Configure NFS resource
include_role:
name: pacemaker
tasks_from: advanced-resource
vars:
pcmk_resource:
type: clone
id: clo_nfs
resources:
p_nfs_server:
class: lsb
type: nfs-kernel-server
meta:
globally-unique: "false"
target-role: "Started"
op:
- name: monitor
interval: 10s
timeout: 30s
joekhoobyar commented
See PR #15 - it has a fix.