Ставлю проект: https://github.com/mlandauer/cuttlefish
Не пойму, нужно ли мне что-то делать с provisioning/roles/cuttlefish-app/vars/main.yml? Он зашифрован, а вот должен ли? Не понимаю.
Обновил config/deploy.rb и provisioning/hosts - дописал свое доменное имя сервера.
Когда запускаю ansible, получаю ошибки:
root@sandbox:~/cuttlefish-master# ./provision_production.sh
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 307, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/bin/ansible-playbook", line 247, in main
pb.run()
File "/usr/lib/python2.7/dist-packages/ansible/playbook/__init__.py", line 252, in run
play = Play(self, play_ds, play_basedir, vault_password=self.vault_password)
File "/usr/lib/python2.7/dist-packages/ansible/playbook/play.py", line 85, in __init__
ds = self._load_roles(self.roles, ds)
File "/usr/lib/python2.7/dist-packages/ansible/playbook/play.py", line 344, in _load_roles
roles = self._build_role_dependencies(roles, [], self.vars)
File "/usr/lib/python2.7/dist-packages/ansible/playbook/play.py", line 203, in _build_role_dependencies
vars_data = utils.parse_yaml_from_file(vars, vault_password=self.vault_password)
File "/usr/lib/python2.7/dist-packages/ansible/utils/__init__.py", line 516, in parse_yaml_from_file
return parse_yaml(data)
File "/usr/lib/python2.7/dist-packages/ansible/utils/__init__.py", line 356, in parse_yaml
return smush_ds(yaml.safe_load(data))
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/lib/python2.7/dist-packages/yaml/__init__.py", line 69, in load
loader = Loader(stream)
File "/usr/lib/python2.7/dist-packages/yaml/loader.py", line 24, in __init__
Reader.__init__(self, stream)
File "/usr/lib/python2.7/dist-packages/yaml/reader.py", line 85, in __init__
self.determine_encoding()
File "/usr/lib/python2.7/dist-packages/yaml/reader.py", line 124, in determine_encoding
self.update_raw()
File "/usr/lib/python2.7/dist-packages/yaml/reader.py", line 178, in update_raw
data = self.stream.read(size)
AttributeError: 'NoneType' object has no attribute 'read'
root@sandbox:~/cuttlefish-master#
Сам скрипт вызова ansible:
ansible-playbook -i hosts --vault-password-file=~/.cuttlefish_ansible_vault_pass.txt -u root playbook.yml
Не пойму, в чем проблема. Нужен совет. Спасибо.
С Ansible тоже особо не работал.