My solution is [rocky@kayobe src]$ diff kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2 /opt/kayobe/venvs/kolla-ansible/share/kolla-ansible/ansible/roles/hacluster/templates/hacluster_corosync.conf.j2 16c16 < name: {{ hostvars[host].ansible_facts.hostname }} --- > name: {{ hostvars[host].ansible_facts.fqdn }}
[rocky@kayobe src]$ diff kolla-ansible/ansible/roles/hacluster/tasks/bootstrap_service.yml /opt/kayobe/venvs/kolla-ansible/share/kolla-ansible/ansible/roles/hacluster/tasks/bootstrap_service.yml 18,20c18,20 < <primitive id="{{ ansible_facts.hostname }}" class="ocf" provider="pacemaker" type="remote"> < <instance_attributes id="{{ ansible_facts.hostname }}-instance_attributes"> < <nvpair id="{{ ansible_facts.hostname }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/> --- > <primitive id="{{ ansible_facts.fqdn }}" class="ocf" provider="pacemaker" type="remote"> > <instance_attributes id="{{ ansible_facts.fqdn }}-instance_attributes"> > <nvpair id="{{ ansible_facts.fqdn }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/> 23c23 < <op id="{{ ansible_facts.hostname }}-monitor" name="monitor" interval="60" timeout="30"/> --- > <op id="{{ ansible_facts.fqdn }}-monitor" name="monitor" interval="60" timeout="30"/>
My solution is ansible/ roles/hacluster /templates/ hacluster_ corosync. conf.j2 /opt/kayobe/ venvs/kolla- ansible/ share/kolla- ansible/ ansible/ roles/hacluster /templates/ hacluster_ corosync. conf.j2 host].ansible_ facts.hostname }} host].ansible_ facts.fqdn }}
[rocky@kayobe src]$ diff kolla-ansible/
16c16
< name: {{ hostvars[
---
> name: {{ hostvars[
[rocky@kayobe src]$ diff kolla-ansible/ ansible/ roles/hacluster /tasks/ bootstrap_ service. yml /opt/kayobe/ venvs/kolla- ansible/ share/kolla- ansible/ ansible/ roles/hacluster /tasks/ bootstrap_ service. yml facts.hostname }}" class="ocf" provider= "pacemaker" type="remote"> attributes id="{{ ansible_ facts.hostname }}-instance_ attributes" > facts.hostname }}-instance_ attributes- server" name="server" value="{{ 'api' | kolla_address }}"/> "pacemaker" type="remote"> attributes id="{{ ansible_facts.fqdn }}-instance_ attributes" > attributes- server" name="server" value="{{ 'api' | kolla_address }}"/> facts.hostname }}-monitor" name="monitor" interval="60" timeout="30"/>
18,20c18,20
< <primitive id="{{ ansible_
< <instance_
< <nvpair id="{{ ansible_
---
> <primitive id="{{ ansible_facts.fqdn }}" class="ocf" provider=
> <instance_
> <nvpair id="{{ ansible_facts.fqdn }}-instance_
23c23
< <op id="{{ ansible_
---
> <op id="{{ ansible_facts.fqdn }}-monitor" name="monitor" interval="60" timeout="30"/>