Re: [ansible-project] attempt to ansible -m ping into vagrant box fails

2015-10-01 Thread DEBORAH AKUOKO
-- > $ head vagrant/hosts > [all:vars] > ansible_ssh_user=vagrant > ansible_ssh_private_key_file=~/.vagrant.d/insecure_private_key > > > It might help to look at a working example, one of my public playbooks is > here if that

[ansible-project] How to create multiple folders with loop in ansible

2015-10-01 Thread DEBORAH AKUOKO
I am trying to create multiple directories with different names e.g tomacat-1, tomcat-2 etc.. But i want to do this in the form of a loop. Kindly help me with the yaml syntax. this is what i tried - name: Creating multiple tomcat instance file: dest=/var/lib/tomcat-instance{1..3}

Re: [ansible-project] How to create multiple folders with loop in ansible

2015-10-01 Thread DEBORAH AKUOKO
I want it to loop because, assuming i'm creating 1000 instances, it will be inconvenient to do it one by one. So I wish to know how to insert variables which specific the number to create or assign as port. Thanks On Thu, Oct 1, 2015 at 3:47 PM, DEBORAH AKUOKO < ewurama.minka.aku...@gmail.

[ansible-project] attempt to ansible -m ping into vagrant box fails

2015-09-25 Thread DEBORAH AKUOKO
I have a vagrant vm which i can successfully ping and ssh into from my host machine and vice versa. But I am not able to run ansible ping to the vagrant box, nether an i able to run my playbook which connects to the vagrant box. Please find the snapshot attached.

[ansible-project] {"failed": true} msg: Failed to lock apt for exclusive operation FATAL: all hosts have already failed -- aborting

2015-09-23 Thread DEBORAH AKUOKO
I get the error ({"failed": true} msg: Failed to lock apt for exclusive operationFATAL: all hosts have already failed -- aborting) as specified in the subject each time i run my playbook. But i can successfully ssh into the remote host this is the content of my playbook - hosts: