Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@ansible:~/roles/zabbix# cat playbook.yml
- ---
- - hosts: new
- roles:
- - role: dj-wasabi.zabbix-agent
- agent_server: XXXXXX
- agent_serveractive: XXXXXX
- agent_listenport: XXXXXX
- zabbix_version: 3.0
- zabbix_url: XXXXXX
- zabbix_api_use: true
- zabbix_api_user: api
- zabbix_api_pass: XXXXXX
- zabbix_create_host: present
- zabbix_api_create_hosts: true
- zabbix_useuip: 0
- agent_hostnameitem: system.hostname
- zabbix_host_groups:
- - 00 - All Hosts
- - 01 - Linux Servers
- zabbix_link_templates:
- - Template OS Linux
- tasks:
- include: tasks.yml
- root@ansible:~/roles/zabbix# ansible-playbook -l n1 playbook.yml
- ERROR! A malformed block was encountered.
- The error appears to have been in '/root/roles/zabbix/playbook.yml': line 2, column 3, but may
- be elsewhere in the file depending on the exact syntax problem.
- The offending line appears to be:
- ---
- - hosts: new
- ^ here
- root@ansible:~/roles/zabbix# ansible-playbook --version
- ansible-playbook 2.2.0.0
- config file = /etc/ansible/ansible.cfg
- configured module search path = Default w/o overrides
- root@ansible:~/roles/zabbix#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement