[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 t

[ansible-project] Re: Using variable in "hosts" definition

2018-12-17 Thread Ilya Ulis
I forgot to mention versions: ansible = 2.7.0 python version = 2.7.5 понедельник, 17 декабря 2018 г., 11:43:54 UTC+2 пользователь Ilya Ulis написал: > > I have a role with the following yaml: > [root@ansible playbooks]# head -n 4 roles/upgrade_couchbase/tasks/main.yml > - host

[ansible-project] Using variable in "hosts" definition

2018-12-17 Thread Ilya Ulis
I have a role with the following yaml: [root@ansible playbooks]# head -n 4 roles/upgrade_couchbase/tasks/main.yml - hosts: COUCHBASE-cluster-{{ couchbase_environment }} serial: 1 become: yes tasks: and a playbook: [root@ansible playbooks]# cat update_couchbase.yml - tasks: - import_role:

[ansible-project] Re: Cloudera Installation Playbook

2018-12-12 Thread Ilya Ulis
There is Cloudera's ansible playbook , but it looks abandoned (last commit 2y ago) and I haven't tried it yet. BTW,there is also Hortonworks installation playbook I already tried it several times

[ansible-project] Re: Variable in "body" parameter of "uri" module

2018-11-28 Thread Ilya Ulis
Ok, I have found a solution. First of all, for some bug in Ambari I have to use raw body format and no json. So I have changed the body_format to json and appended "Content-Type": "text/plain" to the headers parameter. Now my headers parameter looks like: headers: '{"X-Requested-By":"ambari", "Con

[ansible-project] Variable in "body" parameter of "uri" module

2018-11-27 Thread Ilya Ulis
Hi all! This is my task that works: - name: Stop services on ambari uri: url: http://{{ inventory_hostname }}:8080/api/v1/clusters/{{ hostvars[inventory_hostname].cluster_name }}/services/{{ service }} method: PUT force_basic_auth: yes user: "{{ ambari_admin_user }}" passwor