Install pmm-client using ansible playbook

16 views
Skip to first unread message

kaoutar idbelkacem

unread,
May 19, 2020, 6:54:48 AM5/19/20
to Ansible Project
Hi every one in the group :)

I m traying to deploye pmm-client  on my machine using this play book 



---
- hosts: all
  become: yes
  vars:
    pmm_client_install: true
    pmm_client_enabled: true
    pmm_client_server_host: *.*.*.*
    pmm_client_server_port: 80
    # If the PMM Server is using basic auth:
    # Type: Bool
    pmm_client_server_basic_auth: true
    # Type: Str
    pmm_client_server_basic_auth_username:***
        pmm_client_server_basic_auth_password: ******
    pmm_client_server_use_ssl: false    
    pmm_client_force_setup: true
    pmm_client_add_services:
      - mongodb
    pmm_client_start_services:
      - mongodb
    pmm_client_db:
      mongodb:
        host: ip-of-machine
        port: port-of-machine
        clustername: Prod-Data
  roles:
    - timorunge.pmm_client
# vim:ft=ansible:


In my /etc/ansible/hosts I have added just one machine (host)

when I execute the commande ansible-playbook name-of-playbook.yml

I have this problem

 FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'username'\n\nThe error appears to be in '/home/ops/.ansible/roles/timorunge.pmm_client/tasks/client-services.yml': line 41, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Adding MongoDB services to monitoring\n  ^ here\n"}


Please If any one can help  ?

Reply all
Reply to author
Forward
0 new messages