[ansible-project] Ansible playbook for DNS addition for windows servers

2022-01-19 Thread Akshay Jadhav
Hi Guys, Please help me for windows dns addition playbook for adding A record, PTR record and Cname record. If anyone had any sample playbook that will be helpful. Thank you in advance. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

Re: [ansible-project] Re: Can I modify Ansible 'remote_tmp' on a per task basis?

2022-01-19 Thread jbor...@gmail.com
You can, just need to set the var to ansible_remote_tmp, see the var entry for it https://docs.ansible.com/ansible/latest/collections/ansible/builtin/sh_shell.html#parameter-remote_tmp. On Wednesday, January 19, 2022 at 3:26:51 AM UTC+10 chris.mcd...@sbcglobal.net wrote: > Roberto, > > Sorry,

[ansible-project] Re: Check for existing installed software

2022-01-19 Thread Nitrous
This is what I get: TASK [net481 : Check if .net 4.8 is installed] ** task path: /etc/ansible/roles/net481/tasks/main.yml:1

[ansible-project] Re: ansible_fqdn only contains the hostname

2022-01-19 Thread Murad Mammed
First it seems like it is dns issue- rDNS. For troubleshooting get the ip address of host manually, and try to run host ip, it should return something (fqdn, if it doesn't go fix DNS entry) On Thursday, October 15, 2015 at 12:04:29 AM UTC-5 kos...@gmail.com wrote: > ansible_fqdn = host >

Re: [ansible-project] A basic ansible command cannot go through

2022-01-19 Thread Kevin Y
Hi Dick, Thanks for your reply. I tried it with different quotes. all of them cannot work. any other suggestions? On Wednesday, January 19, 2022 at 5:51:58 AM UTC-5 dick@geant.org wrote: > looks like your installation is messed up. > What does 'ansible --version' say? > > On Wed, 19 Jan

Re: [ansible-project] is ~/.bashrc of a become_user read upon TASK execution?

2022-01-19 Thread dulhaver via Ansible Project
On 19.01.22 11:53, Stefan Hornburg (Racke) wrote: On 19/01/2022 11:34, dulhaver via Ansible Project wrote: can anybody tell me whether the ~/.bashrc of a become_user is being read on TASK execution, so you could rely on aliases, environment variables or PATH to be effective? As far as know

[ansible-project] Re: I cannot see your replies to my post

2022-01-19 Thread Kevin Y
Now i can see replies. thanks. so administrator can help to remove this post. On Wednesday, January 19, 2022 at 9:22:23 AM UTC-5 Kevin Y wrote: > Hi please see the below. It looks like my post has 3 replies. but when i > clicked on it, I can see no body's reply. what is wrong? Thank you > >

Re: [ansible-project] Help with acme_certificate / letsencrypt and empty challenge_data

2022-01-19 Thread Jason Wood
Thanks - I'm understanding much better now. The presence of challenge data is not necessarily required for certificate renewal, if previous challenge data is still valid, you can just skip the copy step and the second run will install a new certificate. If no certificate is needed because

[ansible-project] Install lxml for community.general.xml

2022-01-19 Thread Jason Wood
I am running Ansible on Ubuntu 20.04. I'd like to use the community.general.xml module. I get a "ModuleNotFoundError" relating to lxml when I try to run the playbook. I tried sudo apt-get install python3-lxml There were errors toward the end of the process: ... Setting up ansible

[ansible-project] I cannot see your replies to my post

2022-01-19 Thread Kevin Y
Hi please see the below. It looks like my post has 3 replies. but when i clicked on it, I can see no body's reply. what is wrong? Thank you [image: 1.PNG] -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and

Re: [ansible-project] is ~/.bashrc of a become_user read upon TASK execution?

2022-01-19 Thread Nico Kadel-Garcia
On Wed, Jan 19, 2022 at 5:53 AM Stefan Hornburg (Racke) wrote: > > On 19/01/2022 11:34, dulhaver via Ansible Project wrote: > > > > can anybody tell me whether the ~/.bashrc of a become_user is being read on > > TASK execution, so you could rely on aliases, environment variables or PATH > > to

[ansible-project] Error while re-directing ansible playbook output.

2022-01-19 Thread Marian Saldhana
Hi All, I have a simple playbook where I am re-directing output of crontab -l command. However its gives me an empty output file once the playbook is executed. Any suggestion please. +++ Ansible Playbook is:- +++ [root@ansible-master /]# cat test.yml --- - hosts: target_servers tasks: -

Re: [ansible-project] is ~/.bashrc of a become_user read upon TASK execution?

2022-01-19 Thread Stefan Hornburg (Racke)
On 19/01/2022 11:34, dulhaver via Ansible Project wrote: can anybody tell me whether the ~/.bashrc of a become_user is being read on TASK execution, so you could rely on aliases, environment variables or PATH to be effective? As far as know it is not being read. And I doubt that is a good

Re: [ansible-project] A basic ansible command cannot go through

2022-01-19 Thread Dick Visser
looks like your installation is messed up. What does 'ansible --version' say? On Wed, 19 Jan 2022 at 05:40, Kevin Y wrote: > Hi I am a little new to ansible. Anyone can take a look at the below why > the command cannot go through? Thank you! > > > admin1@Len:~$ *ansible lab-hosts -m raw -a

Re: [ansible-project] A basic ansible command cannot go through

2022-01-19 Thread dulhaver via Ansible Project
I have not used the raw module ever. That being said ... I believe generally ad hoc comands need the arduments to be quoted as a whole. Do I wonder whether this may work better? ansible lab-hosts -m raw -a "show run -u admin -k | grep 'hostname\| system mtu'" I am used to single quotes around

[ansible-project] is ~/.bashrc of a become_user read upon TASK execution?

2022-01-19 Thread dulhaver via Ansible Project
can anybody tell me whether the ~/.bashrc of a become_user is being read on TASK execution, so you could rely on aliases, environment variables or PATH to be effective? -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from