Safely parse the YAML file from disk
(filename)
| 90 | return hosts |
| 91 | |
| 92 | def parse_yaml(filename): |
| 93 | """ |
| 94 | Safely parse the YAML file from disk |
| 95 | """ |
| 96 | with open(filename, 'r') as stream: |
| 97 | return yaml.safe_load(stream) |
| 98 | |
| 99 | def create_host_string(hostname, host_vars, codename): |
| 100 | """ |