ОШИБКА!Неожиданное исключение: обновление ожидается не более 1 аргумента, получил 2 - PullRequest
0 голосов
/ 25 октября 2018

Я использовал это задание для создания GlusterFS Volum:

- name: Create Gluster volume
  gluster_volume:
    bricks: "{{ gluster_brick_dirs }}"
    force: true
    cluster: "{{gluster_ip_master}},{{gluster_ip_slave}}"
    replicas: "{{gluster_replic}}"
    name: "{{gluster_volum}}"
    state: present
  run_once: true

У меня есть эта ошибка:

ERROR! Unexpected Exception: update expected at most 1 arguments, got 2

полный возврат:

Traceback (most recent call last):
  File "/usr/bin/ansible-playbook", line 109, in <module>
    exit_code = cli.run()
  File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 154, in run
    results = pbex.run()
  File "/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 153, in run
    result = self._tqm.run(play=play)
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 284, in run
    play_return = strategy.run(iterator, play_context)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/linear.py", line 278, in run
    results += self._wait_on_pending_results(iterator)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 574, in _wait_on_pending_results
    results = self._process_pending_results(iterator)
  File "/usr/lib/python2.7/site-packages/ansible/plugins/strategy/__init__.py", line 508, in _process_pending_results
    self._variable_manager.set_host_facts(target_host, result_item['ansible_facts'].copy())
  File "/usr/lib/python2.7/site-packages/ansible/vars/__init__.py", line 677, in set_host_facts
    self._fact_cache.update(host.name, facts)
TypeError: update expected at most 1 arguments, got 2

PS: Ansible 2.3.0 Gluster 3.8.5

...