Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-31 Thread Rajendra Rawat
Thanks a lot Mohan for your help. Thanks & Regards Rajendra Rawat On Wed, 31 Oct 2018 at 13:37, Mohan L wrote: > > You can create a directory called 'all' under your playbook group_vars > directory and use 'all' in your ad hoc command. This way the variables

Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-30 Thread Rajendra Rawat
/ansible/group_var/? Thanks & Regards Rajendra Rawat On Tue, 30 Oct 2018 at 17:06, Mohan L wrote: > > > I have already given you example. You can see If you closely read my first > replay to this thread. Ansible vault works the same way for both > ansible-playbook and ansible

Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-29 Thread Rajendra Rawat
Please note sshkey is not setup on target host. Thanks & Regards Rajendra Rawat On Tue, 30 Oct 2018 at 08:21, Mohan L wrote: > > You have to pass vault password to ansible command not vault file itself. > Vault file stores your secrets/variables in encrypted format and vault >

Re: [ansible-project] Re: ansible vault with ad hoc command line

2018-10-29 Thread Rajendra Rawat
efault): A vault password must be specified to decrypt data ERROR! A vault password must be specified to decrypt data Am i doing something wrong? Thanks & Regards Rajendra Rawat On Mon, 29 Oct 2018 at 21:19, Mohan L wrote: > Do you have any problem using vault with ad-hoc?? > > H

[ansible-project] ansible vault with ad hoc command line

2018-10-29 Thread Rajendra Rawat
"ansible_user= ansible_password=" But I want to do this with ansible-vault. Is it possible ? any help would be appreciated. Thanks & Regards Rajendra Rawat -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

Re: [ansible-project] become or sudo

2018-10-09 Thread Rajendra Rawat
Thanks Kai for the valuable information you shared with me. Thanks & Regards Rajendra Rawat On Sat, 6 Oct 2018 at 12:50, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 05.10.2018 08:14, Rajendra Rawat wrote: > > Output: ansible xyz.com -a id > >

Re: [ansible-project] become or sudo

2018-10-04 Thread Rajendra Rawat
Thanks & Regards Rajendra Rawat On Thu, 4 Oct 2018 at 15:56, Kai Stian Olstad < ansible-project+l...@olstad.com> wrote: > On 04.10.2018 11:47, Rajendra Rawat wrote: > > I have ran the playbook with - option. > > Bassed on the output i still thing something is missing w

Re: [ansible-project] become or sudo

2018-10-04 Thread Rajendra Rawat
Hi Kai, I have ran the playbook with - option. Output is as below . ansible-playbook 2.6.4 config file = /etc/ansible/ansible.cfg configured module search path = [u'/scratch/rajrawat/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/

[ansible-project] become or sudo

2018-10-03 Thread Rajendra Rawat
Hi All, I am facing issue while installing httpd into remote server from ansible control server. I have a control machine and a webserver machine. My playbook is given below --- - hosts: xyz.com sudo: yes tasks: - name: install apache2 yum: pkg=httpd state=latest ran the playbook