Ask Ubuntu Asked by frank din on August 25, 2020
I’m using ubuntu 18 on GCP and I’m trying to run an ansible playbook. I’ve already successfully pinged my remote host but I get a connection error when trying to run the ansible playbook.
dinthebeatmaker@mastervmproj:~$ ansible-playbook project.yml --check
PLAY [Hosts] *******************************************************************
TASK [Gathering Facts] *********************************************************
fatal: [10.128.0.13]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: [email protected]: Permission denied (publickey).", "unreachable": true}
PLAY RECAP *********************************************************************
10.128.0.13 : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
Here’s the playbook
---
- hosts: Hosts
become: yes
tasks:
- name: install java
package:
name: openjdk-8-jdk
state: present
- name: copy chromedriver
copy:
src: /home/dinthebeatmaker
dest: /home/dinthebeatmaker
remote_src: yes
- name: install chromium browser
package:
name: chromium-browser
state: present
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP