Stop posting non-facter facts
No idea if these are breaking things, but maybe they are. Change-Id: Id9492d901439407a9ffe9976be1fc26afc035b45
This commit is contained in:
parent
36916f8622
commit
42c28a7456
@ -92,11 +92,6 @@ def main():
|
|||||||
for k, v in p['hostvars'].items():
|
for k, v in p['hostvars'].items():
|
||||||
if k.startswith('facter_'):
|
if k.startswith('facter_'):
|
||||||
facts[k[7:]] = v
|
facts[k[7:]] = v
|
||||||
for k, v in p['hostvars'].items():
|
|
||||||
if not k.startswith('facter_'):
|
|
||||||
# Go ahead and set the non-facter facts that ansible has gathered
|
|
||||||
# too - but let facter facts with the same name win
|
|
||||||
facts.setdefault(k, v)
|
|
||||||
|
|
||||||
# remove some problematic facts from facts (if they exist)
|
# remove some problematic facts from facts (if they exist)
|
||||||
# files can be a long list of files in a directory
|
# files can be a long list of files in a directory
|
||||||
|
Loading…
x
Reference in New Issue
Block a user