前提・実現したいこと
ansibleでディレクトリを作成したい。
発生している問題・エラーメッセージ
msg": "Timeout (12s) waiting for privilege escalation prompt:
該当のソースコード
ansible-playbook -i ./hosts ./playbooks/git/main.yml
上記の実行をしたところ以下の出力が得られました。
PLAY [build-server] ******************************************************************************************************************************************************************************************************************************************************************************************** TASK [Gathering Facts] ***************************************************************************************************************************************************************************************************************************************************************************************** ok: [192.168.232.129] TASK [Install git client] ************************************************************************************************************************************************************************************************************************************************************************************** ok: [192.168.232.129] TASK [Create Repository Directory] ***************************************************************************************************************************************************************************************************************************************************************************** fatal: [192.168.232.129]: FAILED! => {"msg": "Timeout (12s) waiting for privilege escalation prompt: "} PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************************************************** 192.168.232.129 : ok=2 changed=0 unreachable=0 failed=1
使用したファイルは以下の通りです。
main.yml
--- - hosts: build-server become: true become_method: sudo become_user: root tasks: - name: Install git client apt: name=git state=present - name: Create Repository Directory file: path: /git state: directory owner: root mode: 0755 - name: checkout glibc repository git: repo: 'https://github.molgen.mpg.de/git-mirror/glibc.git' dest: /git
hosts
[build-server] 192.168.0.100 [all:vars] ansible_ssh_port=22 ansible_ssh_user=user ansible_ssh_pass=pass ansible_sudo_pass=pass
~/.ansible.cfg
[defaults] forks = 15 log_path=$HOME/.ansible/ansible.log host_key_checking = False gathering = smart retry_files_enabled = False
バージョン
ローカルOS
OS: Windows10 (bash on windows)
ansible: 2.7.1
python: 2.7.15rc1
リモートOS
OS: Ubuntu 18.10
python: 2.7.15+
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。