Class: Ansible::Ruby::Modules::Zabbix_hostmacro

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb

Overview

manages Zabbix host macros, it can create, update or delete them.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#force:yes, ...

Returns Only updates an existing macro if set to C(yes).

Returns:

  • (:yes, :no, nil)

    Only updates an existing macro if set to C(yes).



28
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb', line 28

attribute :force

#host_nameString

Returns Name of the host.

Returns:

  • (String)

    Name of the host.



12
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb', line 12

attribute :host_name

#macro_nameString

Returns Name of the host macro.

Returns:

  • (String)

    Name of the host macro.



16
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb', line 16

attribute :macro_name

#macro_valueString

Returns Value of the host macro.

Returns:

  • (String)

    Value of the host macro.



20
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb', line 20

attribute :macro_value

#state:present, ...

Returns State of the macro.,On C(present), it will create if macro does not exist or update the macro if the associated data is different.,On C(absent) will remove a macro if it exists.

Returns:

  • (:present, :absent, nil)

    State of the macro.,On C(present), it will create if macro does not exist or update the macro if the associated data is different.,On C(absent) will remove a macro if it exists.



24
# File 'lib/ansible/ruby/modules/generated/monitoring/zabbix/zabbix_hostmacro.rb', line 24

attribute :state