[ansible-project] Re: Need Cloudera Prerequuistes Ansible Playbook

2019-01-09 Thread Ilya Ulis
You can find my playbook here: https://github.com/bronweg/mordor_script I wrote it originally for HDP, but it is absolutely compatible with Cloudera also. четверг, 10 января 2019 г., 9:10:25 UTC+2 пользователь ashok kumar penumudi написал: > > Hi, > > Can anyone please share Ansible Playbooks

Re: [ansible-project] Need Ansible Playbook to install Cloudera Prerequistes

2019-01-09 Thread Jonathan Lozada De La Matta
You can look at the cloudera documentation and write one. On Thu, Jan 10, 2019 at 2:10 AM ashok kumar penumudi wrote: > Hi, > > Can anyone please share Ansible Playbooks to install Prerequisites and > cloudera Installation. > > > > Its Urgent, Thanks InAdvance > > -- > You received this message

[ansible-project] Need Cloudera Prerequuistes Ansible Playbook

2019-01-09 Thread ashok kumar penumudi
Hi, Can anyone please share Ansible Playbooks to install Prerequisites and cloudera Installation. Its Urgent, Thanks InAdvance -- 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

[ansible-project] Need Ansible Playbook to install Cloudera Prerequistes

2019-01-09 Thread ashok kumar penumudi
Hi, Can anyone please share Ansible Playbooks to install Prerequisites and cloudera Installation. Its Urgent, Thanks InAdvance -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails

[ansible-project] Re: win_domain_user and tree traversing

2019-01-09 Thread John Harmon
OK, it was an issue with credssp, but RHEL seems to have issues installing all of the necessary packages when on the latest code. I am on 7.6 with pip 18.1. I had to downgrade pip in order to install credssp: pip install --upgrade --force-reinstall pip==9.0.3 After that I upgraded pip again

Re: [ansible-project] Re: How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Karl Auer
Yes - so shuffle the pool, then use the first host from the pool for the first task, the second host from the pool for the second task, the third host from the pool for the third task and so on. You can either specify the offset in the pool for each successive task, or slice the pool between

[ansible-project] Re: [file-permissions] Getting permission denied with become: yes

2019-01-09 Thread Ajay Tripathi
*Update:* I ran the playbook as user root (however, i do not want to do that in production): ``` ansible-playbook -vvv -i inventory.yml playbook.yml -u *root *-K ``` I am still getiing output: ``` TASK [local/system-backup : Copy file]

[ansible-project] [file-permissions] Getting permission denied with become: yes

2019-01-09 Thread Ajay Tripathi
Hi, I am getting `[Errno 13] Permission denied` with `become: yes` and a user that can access the desired file with sudo. The file access permission is 0600 (root:root) and `connection: local` is set. Example: Consider machine with 2 users; `root` & `bob`. `bob` has privilege access with

[ansible-project] Are groups in host_vars the same groups as those in inventory

2019-01-09 Thread cyril . stoll
Hi there The short version: Are the group-names defined in the inventory file the same group-names as in a file below the host_vars folder or can I define separate groups that have nothing to do with each other? This is not clear from reading the documentation [1] but the group names they

Re: [ansible-project] Re: Find matched element in key value

2019-01-09 Thread Kai Stian Olstad
On Wednesday, 9 January 2019 18:10:43 CET Ramaswamy Rajavarapu wrote: > ah, again the same error with msg rather than var > TASK [debug] > ** > fatal: [localhost]:

[ansible-project] Re: win_domain_user and tree traversing

2019-01-09 Thread John Harmon
H this might be a credssp issue. Let me work on that for a while and get back to this. -- 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: Find matched element in key value

2019-01-09 Thread Ramaswamy Rajavarapu
ah, again the same error with msg rather than var TASK [debug] ** fatal: [localhost]: FAILED! => {"msg": "Unexpected failure during module execution."} On Wed, Jan

[ansible-project] Re: win_domain_user and tree traversing

2019-01-09 Thread John Harmon
My query: tasks: - name: Windows AD Testing win_domain_user: name: "{{ user }}" state: query register: username - debug: var: username -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To

[ansible-project] win_domain_user and tree traversing

2019-01-09 Thread John Harmon
I have two AD trees. One is a flat, test system--no frills. Users reside in the default windows container (CN=Users under the DC). The other is our production system, which has users all over the place. I am able to query the test system for users, but not the production system. Does

Re: [ansible-project] Re: Find matched element in key value

2019-01-09 Thread Kai Stian Olstad
On Tuesday, 8 January 2019 23:48:16 CET Rama wrote: > Hi, > > Enclosed the var and made PB as below and resulted FAILED output. > > PB: > --- > - hosts: localhost > connection: local > gather_facts: no > tasks: >- name: ILO Facts > hpilo_facts: > host: 10.20.64.51 >

Re: [ansible-project] Re: How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Francis Santos
Nop, the idea is to randomize all hosts. For example, POOL: host1 host2 host3 I randomize, host2 is chosen I randomize again, but now host2 cannot be selected. POOL: host1 host3 I randomize, host1 is chosen POOL: host3 I randomize, host3 is chosen Once all hosts are chosen I can start the pool

[ansible-project] Re: 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-09 Thread Tony Chia
I believe you need to have two spaces indentation for the telnet task On Wednesday, January 9, 2019 at 3:29:49 AM UTC-8, Eduardo Nunes Pereira wrote: > > Hi, > > First of all thanks for the answers, below is my playbook and then the > error message. > > > ## Playbook > > - name: Coletct

[ansible-project] Re: How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Tony Chia
Are you trying to run the playbook on a list of randomized hosts except the first and 2nd host? Maybe you can try - hosts: "{{ (groups['all'] | shuffle)[2:] }}" See the following for more details https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html On Wednesday, January 9,

[ansible-project] Re: Convert ps elapsed time format for long running processes

2019-01-09 Thread Tony Chia
This is not really an ansible question but rather a linux shell question. You can get the elapsed time in seconds using this one line shell command $ ps -p 50 -o etime= | sed 's/[:-]/ /g;' | awk '{print $4" " $3" " $2" " $1" " }'| awk '{print $1+$2*60+$3*3600+$4*86400}' 685608 On Wednesday,

[ansible-project] Regarding Issue 44013 - Junk after JSON on Termination

2019-01-09 Thread Randall Becker
G'day. I was looking at this particular closed case, https://github.com/ansible/ansible/issues/44013. In particular, the HPE NonStop platform's SSH always reports a termination message for SSH sessions that results in a warning: *[WARNING]: Module invocation had junk after the JSON data:

[ansible-project] Normal User can not create Inventory

2019-01-09 Thread shashank mishra
Hi, I have allowed my team to use already defined templates in AWX. All the members are logging as LDAP users and upon logging, they get assigned to a specific team. Now, these users can see the Templates, projects, inventories which I have granted permission. But these users can not create

Re: [ansible-project] How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Karl Auer
Do you mean that you want to work through all the hosts in a random order? If so, just shuffle the list, then work through the list in shuffled order. Regards, K. On Thu, Jan 10, 2019 at 12:50 AM Francis Santos wrote: > Hi all, > > With this script I can randomize any host: > > --- > > -

[ansible-project] How to randomize hosts but not repeat the ones that already were selected

2019-01-09 Thread Francis Santos
Hi all, With this script I can randomize any host: --- - hosts: "{{ (groups['all'] | shuffle)[0:1] }}" become: true vars: - ansible_sudo_pass: How can I add the proposition to skip the ones that were selected? So I can use the whole pool of hosts before selecting them again. --

Re: [ansible-project] Possible to update target OS from an ISO?

2019-01-09 Thread Benjamin Redling
On 08/01/2019 20:04, Todd Sampson wrote: > We have several remote target machines running Ubuntu 12.04. Is it > possible for Ansible to install Ubuntu 18.04 on the target machines from an > ISO? I'm trying to avoid an update to 14.04 and then 16.04 and then > 18.04. I'd like to avoid any

Re: [ansible-project] How to filter string in Ansible using jinja2?

2019-01-09 Thread Saravanan
Hi Piyush, Using the below Jinja2 filter, able to extract the value 2160063879L. However need to extract exact numeric value alone from sub String by eliminating the letter 'L' from the output. Any help much appreciated. - set_fact: upTime: "{{ status.stdout.split()[-2] }}" delegate_to:

[ansible-project] Convert ps elapsed time format for long running processes

2019-01-09 Thread Saravanan
I'm trying to capture the ps elapsed time format for long running Siteminder process from remote server using Ansible playbook. The output of elapsed time is in the format of [[dd-]hh:]mm:ss. Need help to convert this time into seconds. - name: Check Siteminder server status on remote host

Re: [ansible-project] Re: 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-09 Thread Karl Auer
Please repost using a fixed width font so we can check your indentation. Make sure you post your ENTIRE playbook. Also, YAML code should always start with three hyphens on a line by themselves. Regards, K. On Wed, Jan 9, 2019 at 10:30 PM Eduardo Nunes Pereira wrote: > Hi, > > First of all

[ansible-project] Re: 'ERROR!' Telnet 'is not a valid attribute to play

2019-01-09 Thread Eduardo Nunes Pereira
Hi, First of all thanks for the answers, below is my playbook and then the error message. ## Playbook - name: Coletct Information Switches connection: network_cli gather_facts: false hosts: lab_telnet tasks: - name: send configuration commands to IOS telnet: user: admin