ansible: lineinfile for several lines?
The same way there is a module lineinfile to add one line in a file, is there a way to add several lines? … Read more
The same way there is a module lineinfile to add one line in a file, is there a way to add several lines? … Read more
I’m running into an error I’ve never seen before. Here is the command and the error: $ ansible-playbook create_api.yml PLAY [straw] ****************************************************************** GATHERING … Read more
The below code only deletes the first file it gets inside the web dir. I want to remove all the files and folders … Read more
Is there a way to ignore the SSH authenticity checking made by Ansible? For example when I’ve just setup a new server I … Read more
Is there a way to only run one task in ansible playbook? For example, in roles/hadoop_primary/tasks/hadoop_master.yml. I have “start hadoop job tracker services” … Read more
How is it possible to move/rename a file/directory using an Ansible module on a remote system? I don’t want to use the command/shell … Read more
I’m using Ansible for some simple user management tasks with a small group of computers. Currently, I have my playbooks set to hosts: … Read more
How do I specify a sudo password for Ansible in non-interactive way? I’m running Ansible playbook like this: $ ansible-playbook playbook.yml -i inventory.ini … Read more
I’m new to ansible and wonder how to do so as the following didn’t work ansible-playbook -i ‘10.0.0.1,’ yada-yada.yml –tags ‘loaddata’ django_fixtures=”tile_colors” Where … Read more
Is it possible to run commands on the Ansible host? My scenario is that I want to take a checkout from a git … Read more