Re: [ansible-project] Re: Working around lookup plugin limitation with environment variables

2020-07-28 Thread Nico H
Le vendredi 24 juillet 2020 12:42:34 UTC-7, Stefan Hornburg (Racke) a écrit : > > On 7/24/20 7:44 PM, Nico H wrote: > > not sure if that needs new topic but I see that other AWS modules also > fail to pickup variables in Environment as they > > should . > > > > You are sure these

Re: [ansible-project] Re: Working around lookup plugin limitation with environment variables

2020-07-28 Thread Nico H
same problem, assumed_role is not defined yet, so ansible failed for Undefined variable, although I couldn't get the syntax you provided to work for the ars var , is that the good syntax ? I got : An unhandled exception occurred while templating

[ansible-project] pass playbook vars to a python script

2020-07-28 Thread Jerry Hwang
hello, I am trying to have a python script (auto triggered when a playbook is run) to take from playbook extra_vars and uses it as var for the script. for example: ansible-playbook test.yml --extra-vars "win=True" something like in the script result = self.playbook.extra_vars['win'] any good

[ansible-project] ansible vmware_guest vm deployment issue

2020-07-28 Thread Gajendra Gaikwad
Hello Guys, !!Need help om vm deployment !! While deploying virtual machine below issue error has been encountered "Failed to clone virtual machine rhel7_vm to folder 'vim.Folder:group-'512 due to permission issue: Permission to perform this operation was denied." Note: with same username i

[ansible-project] Re: Kerberos authentication failed on windows

2020-07-28 Thread jbor...@gmail.com
That's because you are telling it to run on windows_server but have defined the username in the windows group. Based on your inventory 'windows_server' is not part of the 'windows' group so has no username/password defined. The reason why it may have worked before is if you've gotten the

[ansible-project] Re: Cant get ansible to properly route through bastion host

2020-07-28 Thread Emil Safonov
Hey Venu, I was able to resolve the issue using a linux module called sshpass. I'll show below: hosts.through_bastion [ios] 10.*.*.1 10.*.*.2 [ios:vars] ansible_user= ansible_password= ansible_become_pass= ansible_network_os=ios network_os=ios ansible_ssh_common_args=" -o

[ansible-project] Re: Openssh Issues in Ansible

2020-07-28 Thread Bernie Hoefer
I'm not familiar with the Ansible Comware module. Yet, from your output: debug2: key: /home/devops/.ssh/id_ed25519 (0x55565ef912b0) debug3: send packet: type 5 debug3: receive packet: type 6 debug2: service_accept: ssh-userauth ...it looks like it might be a SSH issue, not an issue with the

Re: [ansible-project] Need Guidance

2020-07-28 Thread Karl Auer
There needs to be a variable called "openjdk_yumlock_version7" containing the actual value that needs to follow the word "delete" in that command. You are seeing that error because there is no such variable. Regards, K. On Wed, Jul 29, 2020 at 1:45 AM Amar Subudhi wrote: > Hi Experts, > > I

[ansible-project] Re: Kerberos authentication failed on windows

2020-07-28 Thread Work Email
Oh! Here is the reported error: fatal: [test.domain.com]: UNREACHABLE! => {"changed": false, "msg": "kerberos: authGSSClientStep() failed: (('Unspecified GSS failure. Minor code may provide more information', 851968), ('No Kerberos credentials available (default cache: FILE:/tmp/krb5cc_0)',

Re: [ansible-project] Need Guidance

2020-07-28 Thread Dick Visser
Hi Amar On Tue, 28 Jul 2020 at 17:45, Amar Subudhi wrote: > > Hi Experts, > > I am getting the below error while executing the playbook. It says exactly what is wrong here: > The task includes an option with an undefined variable. The error was: > 'openjdk_yumlock_version7' is undefined

[ansible-project] Need Guidance

2020-07-28 Thread Amar Subudhi
Hi Experts, I am getting the below error while executing the playbook. Thanks in Advance. Playbook- - name: RedHat unlock OpenJdk version command: yum versionlock delete '{{openjdk_yumlock_version7}}' when: ansible_distribution_major_version == "7" ignore_errors: yes Error TASK [openjdk

Re: [ansible-project] Need help

2020-07-28 Thread Stefan Hornburg (Racke)
On 7/28/20 1:47 PM, Rahul Kumar wrote: > Hello Stefan , > Are registered variable information are available from tasks came as part of > include_role? > > - name: Get Active Rest server >       include_role: >         name:  web-server >         tasks_from: active-rest-server   > > I registered

[ansible-project] Openssh Issues in Ansible

2020-07-28 Thread miqdad patwa
can you please confirm what should we use for HP comware blade switches I used comware module but still it gives me Openssh error fatal: [BC1-ESM-A]: UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh: OpenSSH_7.4p1, OpenSSL 1.0.1e-fips 11 Feb

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Hello Stefan , Are registered variable information are available from tasks came as part of include_role? - name: Get Active Rest server include_role: name: web-server tasks_from: active-rest-server I registered some variable in this task active-rest-server.yml , can i

[ansible-project] Ansible error "msg": "'item' is undefined"

2020-07-28 Thread KSC
I'm trying to automate zone based firewall rules, like source_IP and destination_IP defined in "vars" belongs to which zone. the zones are defined in csv files. any idea what should i do to make it work? Thanks csv file:--- panos,192.168.0.0/24,Prod panos,192.168.100.0/24,Dev

Re: [ansible-project] Need help

2020-07-28 Thread Stefan Hornburg (Racke)
On 7/28/20 9:56 AM, Rahul Kumar wrote: > Logic is like if an application could not be deployed , forcefully shutdown > the application server  rather than stopping > before only! Sounds like bandaid logic to me. I would rather fix the deployment problem. Regards Racke > > On Tue, 28

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Logic is like if an application could not be deployed , forcefully shutdown the application server rather than stopping before only! On Tue, 28 Jul 2020 at 12:56, Stefan Hornburg (Racke) wrote: > On 7/28/20 9:20 AM, Rahul Kumar wrote: > > Ya stephan , it is bad approach I know ( Infact we

Re: [ansible-project] Need help

2020-07-28 Thread Stefan Hornburg (Racke)
On 7/28/20 9:20 AM, Rahul Kumar wrote: > Ya stephan , it is bad approach I know ( Infact we should avoid ignore_errors > as much as possible) ! But all tasks post > this task.. can be executed irrespective of its failure ! Ok but what is the point to call that task, if nothing depends on it?

Re: [ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Ya stephan , it is bad approach I know ( Infact we should avoid ignore_errors as much as possible) ! But all tasks post this task.. can be executed irrespective of its failure ! So i need to , can we do that ? On Tue, 28 Jul 2020 at 12:44, Stefan Hornburg (Racke) wrote: > On 7/28/20 9:01 AM,

Re: [ansible-project] Need help

2020-07-28 Thread Stefan Hornburg (Racke)
On 7/28/20 9:01 AM, Rahul Kumar wrote: > Hi Ansible Gurus, > I have a playbook like below: > - name: Get Active Rest server >       include_role: >         name:  web-server >         tasks_from: active-rest-server > > Now I have a playbook under the web-server role named active-rest-server.yml !

[ansible-project] Need help

2020-07-28 Thread Rahul Kumar
Hi Ansible Gurus, I have a playbook like below: - name: Get Active Rest server include_role: name: web-server tasks_from: active-rest-server Now I have a playbook under the web-server role named active-rest-server.yml ! So in case active-rest-server fails , can i use