Advertisement
Guest User

Untitled

a guest
Dec 20th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.19 KB | None | 0 0
  1. root@ansible:~/roles/zabbix# cat playbook.yml
  2. ---
  3. - hosts: new
  4.   roles:
  5.     - role: dj-wasabi.zabbix-agent
  6.       agent_server: XXXXXX
  7.       agent_serveractive: XXXXXX
  8.       agent_listenport: XXXXXX
  9.       zabbix_version: 3.0
  10.       zabbix_url: XXXXXX
  11.       zabbix_api_use: true
  12.       zabbix_api_user: api
  13.       zabbix_api_pass: XXXXXX
  14.       zabbix_create_host: present
  15.       zabbix_api_create_hosts: true
  16.       zabbix_useuip: 0
  17.       agent_hostnameitem: system.hostname
  18.       zabbix_host_groups:
  19.        - 00 - All Hosts
  20.         - 01 - Linux Servers
  21.       zabbix_link_templates:
  22.        - Template OS Linux
  23.  
  24.   tasks:
  25.     include: tasks.yml
  26.  
  27. root@ansible:~/roles/zabbix# ansible-playbook -l n1 playbook.yml
  28. ERROR! A malformed block was encountered.
  29.  
  30. The error appears to have been in '/root/roles/zabbix/playbook.yml': line 2, column 3, but may
  31. be elsewhere in the file depending on the exact syntax problem.
  32.  
  33. The offending line appears to be:
  34. ---
  35. - hosts: new
  36.   ^ here
  37.  
  38. root@ansible:~/roles/zabbix# ansible-playbook --version
  39. ansible-playbook 2.2.0.0
  40.   config file = /etc/ansible/ansible.cfg
  41.   configured module search path = Default w/o overrides
  42. root@ansible:~/roles/zabbix#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement