Skip to content

Instantly share code, notes, and snippets.

@Znuff
Znuff / fix-me.md
Last active February 12, 2018 01:59

So, I'll say it now in full, and only if these EXACT conditions apply:

  1. If you followed the guide, and your config is something like (please notice masternodeaddr=):
rpcport=21527

port=21526
masternodeaddr=IP:21527
node# cat myuuid.fact
"e48aeb68-ebb7-4e53-971d-0b4b59d242c4"
---
master# ansible cloudini-hosts -m setup -a "filter=ansible_local"
bu-x40092.appnor.net | SUCCESS => {
"ansible_facts": {
"ansible_local": {
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary
---
- name: uuidgen for libvirtd config
hosts: cloudini-hosts
gather_facts: True
# facts.d will automatically be read, so that myuuidgen will be populated if it is defined
tasks:
- name: create directory for ansible custom facts
file: state=directory recurse=yes path=/etc/ansible/facts.d
- name: run uuidgen if necessary