[ansible-project] Passing variables between hosts

2020-06-02 Thread Andrew Morgan
Hello all, I have a playbook that is 99% complete but fails on the last step.My inventory file and playbook are below. I only added the last parts [dev] dev_jenkins ansible_ssh_host=44.244.444.44 ansible_python_interpreter=/usr/bin/python27 will have multiple servers [dev:vars]

Re: [ansible-project] Choosing Cipher In openssl_privatekey Module With Cryptography Back End

2020-06-02 Thread B.H.
I missed that; thank you. That was super helpful. -- 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 view

Re: [ansible-project] Choosing Cipher In openssl_privatekey Module With Cryptography Back End

2020-06-02 Thread 'Felix Fontein' via Ansible Project
Hi, > > the reason is that cryptography (https://cryptography.io/en/latest/) > > only supports two states: unencrypted, and encrypted with its own > > choice of algorithm ("best available algorithm"): > >

Re: [ansible-project] Choosing Cipher In openssl_privatekey Module With Cryptography Back End

2020-06-02 Thread B.H.
On 2020-06-02 14:47 UTC-05:00, 'Felix Fontein' via Ansible Project wrote: the reason is that cryptography (https://cryptography.io/en/latest/) only supports two states: unencrypted, and encrypted with its own choice of algorithm ("best available algorithm"):

Re: [ansible-project] Choosing Cipher In openssl_privatekey Module With Cryptography Back End

2020-06-02 Thread 'Felix Fontein' via Ansible Project
Hi, > With the pyOpenSSL back end of the openssl_privatekey module > deprecated in Ansible 2.9, a colleague started looking at the > cryptography back end. According to the documentation: > > openssl_privatekey – Generate OpenSSL private keys >

Re: [ansible-project] With_items /pass var - string.

2020-06-02 Thread Adam McGill
Basically i have a include_vars file that has all my configs, want with_items to only pull back the required config. example / include_vars: --- small2019: - config: "DC2019" InstallMedia: Source: "someshare\\" SourceVHDX: "Virtual Hard Disks\\DC2019.vhdx"

Re: [ansible-project] With_items /pass var - string.

2020-06-02 Thread Adam McGill
If i remove the single quotes, in the debug i see it pull the information correctly from the include_vars. If I use the same with_items: "{{ vm_config }}" in the task i get this. "msg": "The task includes an option with an undefined variable. The error was:

[ansible-project] Choosing Cipher In openssl_privatekey Module With Cryptography Back End

2020-06-02 Thread Bernie Hoefer
With the pyOpenSSL back end of the openssl_privatekey module deprecated in Ansible 2.9, a colleague started looking at the cryptography back end. According to the documentation: openssl_privatekey – Generate OpenSSL private keys

Re: [ansible-project] With_items /pass var - string.

2020-06-02 Thread Stefan Hornburg (Racke)
On 6/2/20 5:55 PM, Adam McGill wrote: > I would like to take the value of the var and pass it into with_items and I > am running into an issue / error, how can i > pass just the value into with_items.  If i hardcode and put the value > with_items: {{ small2019 }} in there are no > issues.  Using

Re: [ansible-project] Re: how to use ansible tags with conditional includes?

2020-06-02 Thread Stefan Hornburg (Racke)
On 6/2/20 6:46 PM, misterT1958 wrote: > well I guess the number of replies says it all: I must be trying to do > something the language does not support.  Ansible > conditions operate on "include_vars" - include* statements in ansible are > dynamic.  Similarly, import* statements in > ansible

[ansible-project] Re: how to use ansible tags with conditional includes?

2020-06-02 Thread misterT1958
well I guess the number of replies says it all: I must be trying to do something the language does not support. Ansible conditions operate on "include_vars" - include* statements in ansible are dynamic. Similarly, import* statements in ansible are static. Tags are applicable to statically

[ansible-project] With_items /pass var - string.

2020-06-02 Thread Adam McGill
I would like to take the value of the var and pass it into with_items and I am running into an issue / error, how can i pass just the value into with_items. If i hardcode and put the value with_items: {{ small2019 }} in there are no issues. Using include_vars / file which has the data, want

[ansible-project] Re: Localhost unreachable on Windows Subsystem for Linux (WSL2, Ubuntu) (Git Issue #: 69765)

2020-06-02 Thread Leo
Thanks For pointing the direction Jordan! I was able to solve the problem by installing libc6_2.31 on my WSL Ubuntu. The steps are as following: Download libc6_2.31-0ubuntu9_amd64.deb.zip mv

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
ok got it working now On Tue, Jun 2, 2020 at 7:20 AM Tony Wong wrote: > ok I got the copy to work. > > instead of copying, cant I just run vcsa-deply directory from mnt/iso? > > On Tue, Jun 2, 2020 at 6:58 AM Tony Wong wrote: > >> I am trying to use iso_extract to copy the iso contents to a

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
ok I got the copy to work. instead of copying, cant I just run vcsa-deply directory from mnt/iso? On Tue, Jun 2, 2020 at 6:58 AM Tony Wong wrote: > I am trying to use iso_extract to copy the iso contents to a directory. > can i do that? Still getting error > > > TASK [Copy contents to working

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
I am trying to use iso_extract to copy the iso contents to a directory. can i do that? Still getting error TASK [Copy contents to working directory] * task path:

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Stefan Hornburg (Racke)
On 6/2/20 3:04 PM, Tony Wong wrote: > why do I keep failing on this copy task? > > TASK [Copying contents to working Directory] > *** > task path:

Re: [ansible-project] An exception occurred during task execution.

2020-06-02 Thread Tony Wong
why do I keep failing on this copy task? TASK [Copying contents to working Directory] *** task path: /home/tony/ansible-vmware/vcsa-deploy/vcsa-deploy.yml:28

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Vladimir Botka
On Tue, 2 Jun 2020 03:57:57 -0700 (PDT) Arko Köst wrote: > So what should i do? Collect facts from all hosts and find items that fit the purpose. -- Vladimir Botka -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Arko Köst
So what should i do? teisipäev, 2. juuni 2020 13:49.49 UTC+3 kirjutas Vladimir Botka: > > On Tue, 2 Jun 2020 03:37:06 -0700 (PDT) > Arko Köst > wrote: > > > Here it works, but on another environment it gives error > > Version is 2.9.9 > > What facts are available depends on the configuration

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Vladimir Botka
On Tue, 2 Jun 2020 03:37:06 -0700 (PDT) Arko Köst wrote: > Here it works, but on another environment it gives error > Version is 2.9.9 What facts are available depends on the configuration of the remote host. It might be tricky to find a working template in heterogeneous environment. --

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Arko Köst
{% for item in groups['docker_servers']-%} {{ hostvars[item]['ansible_default_ipv4']['address'] }} {% endfor %} - name: Configure pg_hba template:src: test.txt.j2dest: /tmp/groups.txt tags: - install_docker [root@worker-server ~]# cat /tmp/groups.txt 10.5.0.15 Here it works,

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Arko Köst
I've found a working one, it does work on another cluster, but doesn't work in my environment. Template: {% for item in groups['nodes']-%} {{ hostvars[item]['ansible_default_ipv4']['address'] }} {% endfor %} - hosts: opmon tasks: - name: Configure pg_hba template: src:

Re: [ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Vladimir Botka
On Tue, 2 Jun 2020 02:45:41 -0700 (PDT) Arko Köst wrote: > ... get ip addresses of hosts in specific group > - hosts: opmon > > I need, that node1.itarchive.home will be in IP > Something like that: > host 'op-monitor' opmonitor 192.168.0.95/24 md5' As a hint, try "template" shell> cat

[ansible-project] How can i get ip addresses of group hostnames

2020-06-02 Thread Arko Köst
I can't find anywhere, how can i get ip addresses of hosts in specific group - hosts: opmon tasks: - lineinfile: create: true line: "host\t'op-monitor'\topmonitor\t{{ item}}/24\t\tmd5" dest: /tmp/groups.txt with_items: "{{ groups.nodes }}" This playbook

[ansible-project] Re: "kerberos: HTTPSConnectionPool(host='win-xx.ca.local', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certif

2020-06-02 Thread Kiran Kumar
Thanks ! that was it Nice catch ... On Tuesday, June 2, 2020 at 12:49:08 AM UTC-7, Jordan Borean wrote: > > The key you want to use is ‘ansible_winrm_server_cert_validation’, you > were missing the server part >

Re: [ansible-project] PHPIPAM

2020-06-02 Thread Stefan Hornburg (Racke)
On 6/2/20 8:48 AM, Naresh Kasula wrote: > Hi Dick Visser, > > Am fine..thanks for asking and how about  > > I have launched instance(CentOs) in AWS then i have installed PHPIPAM on that > successfully and i have created subnets, > customers, etc. Now want to see the information of subnets by

[ansible-project] "kerberos: HTTPSConnectionPool(host='win-xx.ca.local', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificat

2020-06-02 Thread Jordan Borean
The key you want to use is ‘ansible_winrm_server_cert_validation’, you were missing the server part https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#https-certificate-validation. -- You received this message because you are subscribed to the Google Groups "Ansible

Re: [ansible-project] PHPIPAM

2020-06-02 Thread Naresh Kasula
Hi Dick Visser, Am fine..thanks for asking and how about I have launched instance(CentOs) in AWS then i have installed PHPIPAM on that successfully and i have created subnets, customers, etc. Now want to see the information of subnets by using Ansilble scripts. I have installed Ansible in the

[ansible-project] "kerberos: HTTPSConnectionPool(host='win-xx.ca.local', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificat

2020-06-02 Thread Kiran Kumar
Hello I am getting error below "msg": "kerberos: HTTPSConnectionPool(host='win-xx.ca.local', port=5986): Max retries exceeded with url: /wsman (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:618)'),))", Details : ansible 2.9.9