Re: [ansible-project] Ansible passwordless login not working

2020-01-20 Thread Yehuda Pinhas
*Hi Phil,* *Thank you for your help.* *Playbook:* - name: --- 1. Applying Layer 2 Configuration --- hosts: Snif_TEST connection: network_cli tasks: - include_vars: dir: /etc/ansible/roles/new_vlan/vars/ - include_role: name:

[ansible-project] Encrypted Password in Playbook

2020-01-20 Thread Srinivas Naram
Hi All, I am trying to use Ansible vault encrypted password in my playbook and don't see clear documentation on how to use it. Here is what I did so far - In ansible.cfg I have set the 'vault_password_file'. I have all my playbooks in a directory called devplaybooks. I have created a

[ansible-project] Can't contact LDAP server

2020-01-20 Thread Sandy Hung
Dear All: I run command ldapsearch not contact LDAP server but try open port 636 can't open it please help me thanks. ldapsearch -d 9 -D "cn=test,ou=users,dc=,dc=com"\ -w password -b "dc=xxx,dc=com" -H "ldaps://ldaptest.xxx.com" "objectClass=*"

[ansible-project] New Ansible release 2.9.4

2020-01-20 Thread Matt Davis
Hi all- we're happy to announce that the general release of Ansible 2.9.4 is now available! This release contains a single bugfix to a regression in the yum module, introduced in 2.9.3. How do you get it? -- $ pip install ansible==2.9.4 --user The tar.gz of the release can be

[ansible-project] Flatpak not installing via playbook

2020-01-20 Thread Edward Crosby
The following playbook doesn't seem to work: *- hosts: localhost tasks:- name: Enable flathub repo become: yes command: flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo- name: Install MakeMKV flatpak:name:

Re: [ansible-project] How to read binary file from ansible master to use it in k8s module

2020-01-20 Thread Jan Burian
Oh, didn't know it can be used this way. Thanks for tip. That's better then shell or command. Jan On Monday, January 20, 2020 at 5:52:33 PM UTC+1, Matt Martz wrote: > > You can use something like: > > - slurp: > path: /some/local/path > register: some_var > delegate_to: localhost > >

[ansible-project] Create file depending on the network

2020-01-20 Thread xxmlud gnu
Hi!, I need help. I want to deploy some file with some modifications. The deployment policy is that depending on the network the server belongs to, it will deploy some files or others. I can't compare the "ansible_facts" with "vars" # CONFIGURATION Example playbook: ``` --- - name:

Re: [ansible-project] How to setup multiple jumpbox with Ansible AWX

2020-01-20 Thread Kai Stian Olstad
On 19.01.2020 14:06, Blacksensei wrote: Hi Team, I have been heavily using Ansible Core for the past 4 years and totally loved it. We started a project in our office allowing everybody in dev team to start doing deployment themselves. We now need to migrate a number of things to be able to

Re: [ansible-project] ansible expect module not working with openshift installer prompt

2020-01-20 Thread Kai Stian Olstad
On 18.01.2020 07:30, vk wrote: It err with* "msg": "command exceeded timeout"*. Increasing timeout to higher value than default 30 sec doesn't help. Is there any change need to be done to get it working ? I am pretty sure you get more output than this when it times out and without it any

Re: [ansible-project] tower_wait_job module is not working

2020-01-20 Thread Kai Stian Olstad
On 17.01.2020 11:24, vinoth kumar wrote: Hi Folks, I got an issue with tower_job_wait module in anisble tower. This list is for Ansble not Tower, contact RedHat support. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group.

Re: [ansible-project] loop and pass variables from vars_files to task command

2020-01-20 Thread Kai Stian Olstad
On 15.01.2020 20:55, Matthew DeSantos wrote: My vars_file --- - vlan_name: Test1 vlan_id: 10 vlan_subnet: 10.3.10.2/24 - vlan_name: Test2 vlan_id: 20 vlan_subnet: 10.3.20.2/24 This (formatting mess, you should post plain text) is not a correct variable file. What you have here is a

Re: [ansible-project] unable to install vim plugin via shell module

2020-01-20 Thread Kai Stian Olstad
On 16.01.2020 03:19, Eric Chang wrote: I want to install vim plugins with ansible shell module the task is quite simple as follow - name: install vim vundle plugin shell: "vim +PluginInstall +qall" but the playbook will hang at this task like forever. even with -vv or -vvv , there`s no

Re: [ansible-project] Ansible passwordless login not working

2020-01-20 Thread Phil Griffiths
What happens when you setup your inventory to something like this: [all:vars]# these defaults can be overridden for any group in the [group:vars] sectionansible_connection=network_cliansible_user=ansible [ios]...

Re: [ansible-project] How to read binary file from ansible master to use it in k8s module

2020-01-20 Thread Matt Martz
You can use something like: - slurp: path: /some/local/path register: some_var delegate_to: localhost Then it would use localhost as the target. On Mon, Jan 20, 2020 at 10:47 AM Jan Burian wrote: > Thanks for quick response. > I understand now, that lookup is templating engine which

Re: [ansible-project] How to read binary file from ansible master to use it in k8s module

2020-01-20 Thread Jan Burian
Thanks for quick response. I understand now, that lookup is templating engine which works only with utf8 text. I don't need to do `{{ whatever.content|b64decode }}` - decode. I need only base64 encode binary file so I can pass the base64 string to k8s module. slurp would be fine except that

Re: [ansible-project] How to read binary file from ansible master to use it in k8s module

2020-01-20 Thread Matt Martz
In short, you cannot send binary data in a module argument. If you can send base64 data instead of binary, you can use the `slurp` module to get the base64 encoded data. But you won't be able to do `{{ whatever.content|b64decode }}` since that would try and produce binary data. Effectively you

[ansible-project] How to read binary file from ansible master to use it in k8s module

2020-01-20 Thread Jan Burian
Hi, I'm trying to read binary file from ansible master (localhost) to use it in k8s module. The task looks like this: - name: Create ConfigMap with keytab k8s: host: "{{ api_host }}" api_version: v1 kind: ConfigMap state: present definition: metadata:

Re: [ansible-project] Ansible passwordless login not working

2020-01-20 Thread Yehuda Pinhas
I think it has something to do with the publickey and that ansible tries to authenticate using the public key as primary method of authentication. For some reason it doesn't takes the username and password and just attempt SSH with it. I think that because of the log file. -- You received

[ansible-project] Re: openldap for ubuntu

2020-01-20 Thread Sandy Hung
Dear All: andyidea can help me thanks. PLAY [all] TASK [Gathering Facts] ok:

[ansible-project] Question: How do I get hostname as well as ansible_host in ansible module ??

2020-01-20 Thread Raja Shekar
Hi All, I develop and maintain the Ansible role: Juniper.junos( https://github.com/Juniper/ansible-junos-stdlib). For the context of the issue, please refer to https://github.com/Juniper/ansible-junos-stdlib/issues/468. Consider the following scenario wherein the user has provided both