Class: Ansible::Ruby::Modules::Docker_secret

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb

Overview

Create and remove Docker secrets in a Swarm environment. Similar to ‘docker secret create` and `docker secret rm`. Adds to the metadata of new secrets ’ansible_key’, an encrypted hash representation of the data, which is then used in future runs to test if a secret has changed. If ‘ansible_key is not present, then a secret will not be updated unless the C(force) option is set. Updates to secrets are performed by removing the secret and creating it again.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

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

Constructor Details

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

Instance Method Details

#dataString?



16
# File 'lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb', line 16

attribute :data

#forceSymbol?



24
# File 'lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb', line 24

attribute :force

#labelsHash?



20
# File 'lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb', line 20

attribute :labels

#nameString



28
# File 'lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb', line 28

attribute :name

#state:absent, ...



32
# File 'lib/ansible/ruby/modules/generated/cloud/docker/docker_secret.rb', line 32

attribute :state