# AWX Operator add new playbooks

**URL:** <https://forum.ansible.com/t/awx-operator-add-new-playbooks/38511>\
**Category:** AWX Project\
**Tags:** awx, kubernetes\
**Created:** [October 11, 2023, 10:34am UTC](https://forum.ansible.com/t/awx-operator-add-new-playbooks/38511 "2023-10-11T10:34:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stefano\_Percoco](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Stefano\_Percoco](https://forum.ansible.com/u/Stefano_Percoco)\
**Post date:** [October 11, 2023, 10:34am UTC](https://forum.ansible.com/t/awx-operator-add-new-playbooks/38511/1 "2023-10-11T10:34:04Z")

</div>

Hi, I’ve installed AWX Operator 23.2 based on K8s, I can access correctly to web UI, but now I want to add new playbooks.  
I’ve experience with RH Ansible Tower, where I copied the yml file in project folder and sync new file with git commands (git add, git commit and git push)  
But with AWX, after connecting to awx-web pod and copying the playbook in:  
/var/lib/awx/projects/myproject, I tried to launch git commands and received this errors:

git add myplaybook.yml → no output

git commit -m “insert new playbook” → Author identity unknown  
(\*\*\* Please tell me who you are. Run:  
git config --global user.email “[you@example.com](mailto:you@example.com)”  
git config --global user.name “Your Name”  
to set your account’s default identity.)

git push → fatal: You are not currently on a branch.  
(To push the history leading to the current (detached HEAD)  
state now, use  
git push origin HEAD:)

I’ve put user.email and user.name and the commit command works, but using git push origin, system asks me username and password for [github.com](http://github.com)

Is this the right way to add a new playbook? I’ve not any experience with AWX. Thanks.

---

<div class="post-metadata">

**Author:** ![lbrigman124](https://avatars.discourse-cdn.com/v4/letter/l/e19adc/32.png) [@lbrigman124](https://forum.ansible.com/u/lbrigman124)\
**Post date:** [October 17, 2023, 11:02pm UTC](https://forum.ansible.com/t/awx-operator-add-new-playbooks/38511/2 "2023-10-17T23:02:41Z")

</div>

You should be using an external git repository and placing your files/playbooks there.  
Then point AWX at your git repository.  
You should not be using git within the containers directly.
