Re: [ansible-project] Understanding lookup task context

2018-04-06 Thread Brian Coca
No docs really, this is not something people normally hit as it is rare to try to do indirect lookups via hostvars. It has more to do on how hostvars works than anything else, it is a lazy object that is lazy loaded vars, pre 2.5 we woudl load all vars per host and keep that info (w/o it having

[ansible-project] Re: Ansible user privilege

2018-04-06 Thread Quang Truong
Another update, I use 'su root' and can access to: /home/[userX]/.ansible but got permission denied when open tmp or cp directories. On Friday, April 6, 2018 at 12:48:33 PM UTC-7, Quang Truong wrote: > > Dear all, > > I'm new to ansible and system admin on linux, I have a problem that I > don't

[ansible-project] Ansible user privilege

2018-04-06 Thread Quang Truong
Dear all, I'm new to ansible and system admin on linux, I have a problem that I don't understand what happen behind the scene. Here is my scenario: - I create a kvm (machine B) on my host machine, this is also an ansible control machine (machine A) - Then copy the ssh key of the user (user X

[ansible-project] Re: Backing up files from target to controller node.

2018-04-06 Thread Karl Auer
Hullo Julian. Sorry, can't figure out how to reply to your reply. Anyway: if you have the ability to do so, adjust the sshd config on the target to allow root users to log in, but only from localhost (127.0.0.0/8 or ::1). This is exactly as secure as allowing su or sudo, so does not breach

[ansible-project] Is it possible to tag an ENI in ansible?

2018-04-06 Thread Karl Auer
Not so much a question as a comment. I would like to tag the ENIs I create with Ansible. ENI's certainly support tags, but the ec2_eni module doesn't have a "tags" attribute. I was able to tag the interfaces using the ec2_tag module, but it seems an odd omission not to be able to tag on

[ansible-project] Re: Backing up files from target to controller node.

2018-04-06 Thread Karl Auer
On Friday, April 6, 2018 at 10:30:12 PM UTC+10, Julian Santander wrote: > The objective is to obtain a back-up of a directory in the target machine > (managed) and needs to be saved to the controller host (where ansible runs). > Why use Ansible? Something like rsync would seem to be the right

Re: [ansible-project] Re: Regarding site.yml

2018-04-06 Thread Nirmalya Paul
I am trying to install mysql in CentOs through Ansible. can anybody please tell me what is the procedure to install it ? On Fri, Apr 6, 2018 at 5:13 PM, Dick Visser wrote: > On 6 April 2018 at 11:36, Nirmalya Paul wrote: > > u just tell me to run

[ansible-project] Backing up files from target to controller node.

2018-04-06 Thread Julian Santander
Hello, I hope someone could offer some guidance on how to solve a scenario I'm trying to automate. The objective is to obtain a back-up of a directory in the target machine (managed) and needs to be saved to the controller host (where ansible runs). Now, the problems: 1. I feel I cannot

Re: [ansible-project] Re: Regarding site.yml

2018-04-06 Thread Biswadip Dutta
you may also need this Regards, Biswadip Dutta On Fri, Apr 6, 2018 at 6:37 PM, Biswadip Dutta wrote: > https://galaxy.ansible.com/geerlingguy/mysql/ > > Regards, > Biswadip Dutta > > On Fri, Apr 6, 2018 at

Re: [ansible-project] Re: Regarding site.yml

2018-04-06 Thread Biswadip Dutta
https://galaxy.ansible.com/geerlingguy/mysql/ Regards, Biswadip Dutta On Fri, Apr 6, 2018 at 5:56 PM, Nirmalya Paul wrote: > I am trying to install mysql in CentOs through Ansible. can anybody please > tell me what is the procedure to install it ? > > On Fri, Apr 6, 2018

[ansible-project] Re: Regarding site.yml

2018-04-06 Thread Nirmalya Paul
u just tell me to run site.yml what files i required and what exact code i need to paste under site.yml On Friday, 6 April 2018 13:27:48 UTC+5:30, Nirmalya Paul wrote: > > hello all I am not able to run -s site.yml.. > > error showing that -s site.yml could not found. can you please tell me

Re: [ansible-project] Re: Regarding site.yml

2018-04-06 Thread Dick Visser
On 6 April 2018 at 11:36, Nirmalya Paul wrote: > u just tell me to run site.yml what files i required and what exact code i > need to paste under site.yml Who is "u"? Or, who told you to "run site.yml"? And what did you actually run (as in: what commands did you type in)?

[ansible-project] Ansible and Packer

2018-04-06 Thread Saurabh
Hi Team, How can we call Packer from Ansible.( It's Same way we call Docker_Container from Ansible ) Ansible --> Packer --> Docker ( In Docker Image Configuration also will be done by Ansible ) Any Solutions for this Regards Saurabh -- You

Re: [ansible-project] Regarding site.yml

2018-04-06 Thread Biswadip Dutta
How are you trying to run it? That's not the way it's supposed to "run". Read the docs please. Regards, Biswadip Dutta On Fri, Apr 6, 2018 at 1:27 PM, Nirmalya Paul wrote: > hello all I am not able to run -s site.yml.. > > error showing that -s site.yml could not found.

[ansible-project] ec2.py runs, returns empty list - on ONE account

2018-04-06 Thread Karl Auer
If I run ec2.py against any of four different AWS accounts, it returns a list of instances etc. On one AWS account, it returns an empty list. It doesn't issue error messages, or take a particularly long to time to run, or take a particularly short time to run either. Using the same

[ansible-project] Intermittent failures when using easy_install

2018-04-06 Thread SurferL
Running Ansible 2.4.1. So sometimes running my task works, and other times it doesn't and I don't understand why this is happening... The task is: - name: mac | Install global python dependencies easy_install: name: "{{ item }}" state: latest become: true with_items: - pip

[ansible-project] Regarding site.yml

2018-04-06 Thread Nirmalya Paul
hello all I am not able to run -s site.yml.. error showing that -s site.yml could not found. can you please tell me why its showing and how i can solve the issue ? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

[ansible-project] Ansible 2.5 with ansible-hpe-cw7 module issue

2018-04-06 Thread EDDY BEN-KAISSA
Hi everyone, I've an issue with the hpe module comware 7. I'm trying to use it to establish netconf connection with equipments but unfortunately I obtained error message : fatal: [LAB]: UNREACHABLE! => { "changed": false, "msg": "Authentication or permission failure. In some cases,

Re: [ansible-project] Understanding lookup task context

2018-04-06 Thread Brian Coca
I forgot to add to the response, that hostvars is not 'task aware' while direct variable access IS task aware. -- -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving

Re: [ansible-project] Intermittent failures when using easy_install

2018-04-06 Thread Biswadip Dutta
I am a newbie so don't expect this to be the correct answer. Be sure to correct me if I am wrong. I'll suggest using apt or yum module to install pip and then pip module to install virtualenv and check if the problem persists. If these also fail then we can always use the shell module to directly

[ansible-project] Understanding lookup task context

2018-04-06 Thread Lihu Ber
I noticed odd behavior with Ansible lookups a while back and, thinking it was a bug, reported it here . Essentially, when I defined a lookup in host_vars, and referenced it in different ways from the same role, the lookup was executing with a

[ansible-project] Re: target uses selinux but python bindings (libselinux-python) aren't installed!

2018-04-06 Thread TT KKk
i tried to install by directly connecting that host but still couldnt. please help. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [ansible-project] Re: Backing up files from target to controller node.

2018-04-06 Thread Julian Santander
Hi Karl, Thanks for answering. synchronize is the module in ansible wrapping rsync. The systems I'm dealing with are configured (due to security policies) to not allow login through SSH to the root user. That precludes

[ansible-project] target uses selinux but python bindings (libselinux-python) aren't installed!

2018-04-06 Thread TT KKk
I could install selinux-python on my host -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscr...@googlegroups.com. To post to this

Re: [ansible-project] Understanding lookup task context

2018-04-06 Thread Lihu Ber
Hi Brian, thanks so much for being so responsive! Why the difference in 'task awareness' between the two access methods? Also, is there some documentation on which operations are task-aware, and which ones aren't? On Friday, April 6, 2018 at 11:40:56 AM UTC-4, Brian Coca wrote: > > I forgot to

[ansible-project] 1 server suddenly slow

2018-04-06 Thread John Harmon
Just wondering what I can look at for a slow server. It used to be just as fast as the others, but now it takes 3x as long when running Ansible playbooks against it (or even just gathering facts). It still works, just slow. My 50-60+ other servers are just fine. Where would you look to