I am new to ansible and trying to write a new playbook which goes to
a) A certain folder b) clean the env c)pulls the code d) and builds it
Here is my playbook, help is deeply appreciated. :)
- name: Shell examples
hosts: all
tasks:
- name: mulitline shell
shell: |
cd /home/ec2-user/node
echo -e "\n pulling the code in here" 'pwd'
git clean -d -f .
git pull
npm install