2017-07-13 65 views
0

檢測我試圖運行一個劇本https://github.com/Datanexus/dn-cassandraAnsible錯誤!沒有行動的任務

並列出了有不同的部署方案,我將在這裏描述的多節點卡桑德拉設置:deployment scenarios

我已經設置了靜態庫存文件。

cassandra-seed-01 ansible_ssh_host=192.168.0.17 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='keys/id_rsa' 
cassandra-seed-02 ansible_ssh_host=192.168.0.18 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='keys/id_rsa' 
cassandra-non-seed-01 ansible_ssh_host=192.168.0.22 ansible_ssh_port=22 ansible_ssh_user='root' ansible_ssh_private_key_file='keys/id_rsa' 

[cassandra_seed] 
192.168.0.17 
192.168.0.18 

[cassandra] 
192.168.0.22 

然而,當我嘗試運行它引發以下錯誤的劇本:

ERROR! no action detected in task

The error appears to have been in '/home/laumair/workspace/dn-cassandra/provision-cassandra.yml': line 21, column 9, but may be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

# then, build the seed and non-seed host groups 
    - include_role: 
    ^here 

我很感激這個錯誤任何類型的方向,因爲我已經嘗試了類似的錯誤的解決方案,但沒有運氣遠。

回答

1

include_role自Ansible 2.2開始提供。 請升級您的Ansible安裝。

+0

非常感謝。 – Umair

相關問題