Commit Graph

6 Commits (master)

Author SHA1 Message Date
Andrea Lora 0755fa30b2
Update set_fact.sh to support multiple network
Currently the role will fail to regather fact if $network_count > 1

That's because without the quotes echo will suppress the \n writing everything in one line. Thus wc -l will return `1`, confusing the file_content function that will lead to an incorrect json being produced
2019-07-08 11:40:05 +01:00
Marcus Meurs 5431276c8e Missed a pretty important comma 2018-12-08 02:25:12 +01:00
Marcus Meurs 95d9213746 Adds network device to ansible_local.zerotier
Also removes the conditional for skipping installation based on ansible_local.zerotier value. Skipping tasks like that should be up to the user, not the role.
2018-12-07 23:40:48 +01:00
Marcus Meurs 046415b168 Fix for loop generating invalid json 2018-12-04 02:48:29 +01:00
Marcus Meurs 672c67e087 Reduce unnecessary API calls
The role will no longer make API calls to authorize already authorized members to a network.
2018-12-04 01:34:39 +01:00
Marcus Meurs c03c2b5a3f Set custom facts persistently
Create /etc/ansible/facts.d/zerotier.fact on each node containing custom facts in json format. This can then be used to prevent pointless reconfiguration of existing nodes whenever a new one is added to the inventory. In this commit it merely skips the installation tasks.
2018-12-03 07:05:37 +01:00