??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177

Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
ó àUdac@`sïddlmZmZmZeZdZdZdZddl Z ddl m Z m Z ddl mZddlmZmZdd lmZy&ddlZdd lmZeZWnek rËeZnXeƒZd efd „ƒYZdS( i(tabsolute_importtdivisiontprint_functions+ lookup: rabbitmq author: John Imison <@Im0> version_added: "2.8" short_description: Retrieve messages from an AMQP/AMQPS RabbitMQ queue. description: - This lookup uses a basic get to retrieve all, or a limited number C(count), messages from a RabbitMQ queue. options: url: description: - An URI connection string to connect to the AMQP/AMQPS RabbitMQ server. - For more information refer to the URI spec U(https://www.rabbitmq.com/uri-spec.html). required: True queue: description: - The queue to get messages from. required: True count: description: - How many messages to collect from the queue. - If not set, defaults to retrieving all the messages from the queue. requirements: - The python pika package U(https://pypi.org/project/pika/). notes: - This lookup implements BlockingChannel.basic_get to get messages from a RabbitMQ server. - After retrieving a message from the server, receipt of the message is acknowledged and the message on the server is deleted. - Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. - More information about pika can be found at U(https://pika.readthedocs.io/en/stable/). - This plugin is tested against RabbitMQ. Other AMQP 0.9.1 protocol based servers may work but not tested/guaranteed. - Assigning the return messages to a variable under C(vars) may result in unexpected results as the lookup is evaluated every time the variable is referenced. - Currently this plugin only handles text based messages from a queue. Unexpected results may occur when retrieving binary data. s( - name: Get all messages off a queue debug: msg: "{{ lookup('rabbitmq', url='amqp://guest:guest@192.168.0.10:5672/%2F', queue='hello') }}" # If you are intending on using the returned messages as a variable in more than # one task (eg. debug, template), it is recommended to set_fact. - name: Get 2 messages off a queue and set a fact for re-use set_fact: messages: "{{ lookup('rabbitmq', url='amqp://guest:guest@192.168.0.10:5672/%2F', queue='hello', count=2) }}" - name: Dump out contents of the messages debug: var: messages s¬ _list: description: - A list of dictionaries with keys and value from the queue. type: list contains: content_type: description: The content_type on the message in the queue. type: str delivery_mode: description: The delivery_mode on the message in the queue. type: str delivery_tag: description: The delivery_tag on the message in the queue. type: str exchange: description: The exchange the message came from. type: str message_count: description: The message_count for the message on the queue. type: str msg: description: The content of the message. type: str redelivered: description: The redelivered flag. True if the message has been delivered before. type: bool routing_key: description: The routing_key on the message in the queue. type: str headers: description: The headers for the message returned from the queue. type: dict json: description: If application/json is specified in content_type, json will be loaded into variables. type: dict N(t AnsibleErrortAnsibleParserError(t LookupBase(t to_nativetto_text(tDisplay(tspect LookupModulecB`seZddddd„ZRS(cC`ststdƒ‚n|s*tdƒ‚n|s?tdƒ‚ntjd|||||fƒytj|ƒ}Wn)tk r}tdt|ƒƒ‚nXytj|ƒ}Wn)tk rÜ}tdt|ƒƒ‚nXy|j ƒ} Wnxtj j k rg}y|j ƒWn8tj j k rM} tdt|ƒt| ƒƒ‚nXtdt|ƒƒ‚nXg} d } x`trÖ| jd |ƒ\} }}| rÒtjd | |t|ƒfƒti t|ƒd 6| jd 6| jd6| jd6| jd6| jd6|jd6|jd6|jd6ƒ}|jdkr‰ytj|d ƒ|ds""'