I am very new to ansible, about a few hours experience. I am currently trying to run an ansible-pull
command and it isn't working the way I am expecting it to. I have a git repo with a .yml file. Inside the repo I just have the .yml and the README file.
The command I am running is:
ansible-pull -d ./ansible_directory -U github.repo
I am receiving an error that says the local.yml file does not exist. Which in turn is giving me an error that reads ERROR! Could not find a playbook to run.
.
I am unsure of where/how to create a local.yml file. If anyone can point me in the right direction that would be much appreciated.
go through "README.md" and "pull.play" file in following repo.
git clone https://github.com/harshad007/ansible_pull.git
do necessary changes with git repository url and IP addresses in hosts file
first run pull.play script as "ansible-playbook pull.play" if everything goes right then after few minutess check /var/log/ansible-pull.log on "remote system". Here, local.yml file from GitHub repository has executed.