Documentation
  
  
  
    
      
      
        
           
          Ansible 
        
       
      
        
        
        
          
  
    
      Docs  » 
        
      rabbitmq_exchange – Manage rabbitMQ exchanges 
    
    
      
        
            
            
              
                
                
                   
                
            
          
        
       
    
   
  
   
 
          
  
          
           
            
  
rabbitmq_exchange – Manage rabbitMQ exchanges 
The below requirements are needed on the host that executes this module.
 
    
        Parameter 
        Choices/Defaults  
                    Comments 
     
                
                                                            
                
                arguments 
                 
                
                    - 
                                                                
                                 
                            
                                                                                                                                                                Default: {}
                                 
                                                            
                                        extra arguments for exchange. If defined this argument is a key/value dictionary
                                                     
         
                            
                                                            
                
                auto_delete 
                 
                
                    boolean 
                                                                
                                 
                            
                                                                                                                                                                                                                
                                                                         
                                                            
                                        if the exchange should delete itself after all queues/exchanges unbound from it
                                                     
         
                            
                                                            
                
                ca_cert 
                 
                
                    path 
                                                                
                                 
                            
                                                                                                                                                         
                                                            
                                        CA certificate to verify SSL connection to management API.
                                                             aliases: cacert
                                 
         
                            
                                                            
                
                client_cert 
                 
                
                    path 
                                                                
                                 
                            
                                                                                                                                                         
                                                            
                                        Client certificate to send on SSL connections to management API.
                                                             aliases: cert
                                 
         
                            
                                                            
                
                client_key 
                 
                
                    path 
                                                                
                                 
                            
                                                                                                                                                         
                                                            
                                        Private key matching the client certificate.
                                                             aliases: key
                                 
         
                            
                                                            
                
                durable 
                 
                
                    boolean 
                                                                
                                 
                            
                                                                                                                                                                                                                
                                                                         
                                                            
                                        whether exchange is durable or not
                                                     
         
                            
                                                            
                
                exchange_type 
                 
                
                    - 
                                                                
                                 
                            
                                                                                                                        Choices: 
                                                                                                                                                                                            fanout 
                                                                                                                                                                                                                            direct  ←
 
                                                                                                                                                                                                                            headers 
                                                                                                                                                                                                                            topic 
                                                                                 
                                                                         
                                                            
                                        type for the exchange
                                                             aliases: type
                                 
         
                            
                                                            
                
                internal 
                 
                
                    boolean 
                                                                
                                 
                            
                                                                                                                                                                                                                
                                                                         
                                                            
                                        exchange is available only for other exchanges
                                                     
         
                            
                                                            
                
                login_host 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                                                                Default: "localhost"
                                 
                                                            
                                        RabbitMQ host for connection.
                                                     
         
                            
                                                            
                
                login_password 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                                                         
                                                            
                                        RabbitMQ password for connection.
                                                     
         
                            
                                                            
                
                login_port 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                                                                Default: "15672"
                                 
                                                            
                                        RabbitMQ management API port.
                                                     
         
                            
                                                            
                
                login_protocol 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                        
                                                                         
                                                            
                                        RabbitMQ management API protocol.
                                                     
         
                            
                                                            
                
                login_user 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                                                                Default: "guest"
                                 
                                                            
                                        RabbitMQ user for connection.
                                                     
         
                            
                                                            
                
                name 
                 
                
                    - 
                                             / required                     
                                 
                            
                                                                                                                                                         
                                                            
                                        Name of the exchange to create
                                                     
         
                            
                                                            
                
                state 
                 
                
                    - 
                                                                
                                 
                            
                                                                                                                        Choices: 
                                                                                                                                                                                            present  ←
 
                                                                                                                                                                                                                            absent 
                                                                                 
                                                                         
                                                            
                                        Whether the exchange should be present or absent
                                                     
         
                            
                                                            
                
                vhost 
                 
                
                    string 
                                                                
                                 
                            
                                                                                                                                                                Default: "/"
                                 
                                                            
                                        RabbitMQ virtual host.
                                                     
         
                    
 
# Create direct exchange 
-   rabbitmq_exchange : 
     name :   directExchange 
# Create topic exchange on vhost 
-   rabbitmq_exchange : 
     name :   topicExchange 
     type :   topic 
     vhost :   myVhost 
 
 
 
Authors 
Hint
If you notice any issues in this documentation, you can edit this document  to improve it.