I have the following yaml file:
- hosts: all
- name: Check the date on the server.
action: command touch /opt/b
- name: cat the Content
action: command cat /opt/b
It gets executed without any errors but it's supposed to create a file but it hasn't.
Hey @Nisha, you've mentioned this line on your playbook:
It means this is getting executed in your local system and hence the file created must be in your local system.
Remove that line and try again.
You can use the flag ignore_errors ...READ MORE
Hey @Rajni, you can register the variable ...READ MORE
Hey, @Nishit seems like you've made a ...READ MORE
Hey @Kishore make sure, your folder directory ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE
It can work if you try to put ...READ MORE
When you use docker-compose down, all the ...READ MORE
When you execute the playbook under Jenkins, ...READ MORE
Here sudo_pass is where you're going wrong. ...READ MORE
Already have an account? Sign in.