Comments (6)
You need to check out the repository first. Use actions/checkout
.
from action-ansible-playbook.
So, where is your playbook.yml? ;p
from action-ansible-playbook.
I can't find mine either. It is supposed to be in the repository as I understand, but it doesn't seem to work.
from action-ansible-playbook.
Show me your workflows first. How should I know what are you really doing.
from action-ansible-playbook.
Thanks for replying @dawidd6
My workflow
name: Deploy
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
deploy_code:
runs-on: ubuntu-latest
steps:
- name: Run Ansible playbook
uses: dawidd6/[email protected]
with:
playbook: ansible/deploy.yml
key: ${{ secrets.ansible_private_key }}
inventory: ${{ secrets.ansible_inventory }}
The error I get
/opt/pipx_bin/ansible-playbook ansible/deploy.yml --inventory-file .ansible_inventory
ERROR! the playbook: ansible/deploy.yml could not be found
I tried different paths, and changed the playbook directory with the directory variable. I have the ansible playbook and roles in ansible directory in my repository. I'm I supposed to have them somewhere else?
from action-ansible-playbook.
Ups, for some reason I though I didn't need that when using your action. Thanks, solved.
from action-ansible-playbook.
Related Issues (20)
- NodeJS 12 is depreciated in GitHub Actions
- save-state command is depreciated warning HOT 3
- Feature request: ansible-galaxy install force flag HOT 2
- SSH Tunneling Bastion HOT 2
- Ansible Galaxy : command not found HOT 2
- Error on windows-latest runner HOT 2
- Ensure SSH private key uses LF and not CRLF HOT 4
- ansible-playbook not found on private runner HOT 1
- private key permission problem HOT 1
- How to pass multiple extra variables? HOT 1
- Galaxy SSH configuration? HOT 4
- extra_vars option: json format: string "true" turned into boolean "true" HOT 4
- make action fail if no hosts were updated HOT 1
- make separate location for ansible vault file possible HOT 2
- Node16 deprecated HOT 2
- vault_password not being set? HOT 1
- Ansible inventory requires additional Python packages HOT 1
- Playbook keeps failing when using GA HOT 3
- How to install pip package in the same environment where ansible run HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-ansible-playbook.