Class: Ansible::Ruby::Modules::Htpasswd
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Htpasswd
- Defined in:
- lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb
Overview
Add and remove username/password entries in a password file using htpasswd. This is used by web servers such as Apache and Nginx for basic authentication.
Instance Method Summary collapse
-
#create ⇒ :yes, ...
Used with C(state=present).
-
#crypt_scheme ⇒ :apr_md5_crypt, ...
Encryption scheme to be used.
-
#name ⇒ String
User name to add or remove.
-
#password ⇒ String?
Password associated with user.,Must be specified if user does not exist yet.
-
#path ⇒ String
Path to the file that contains the usernames and passwords.
-
#state ⇒ :present, ...
Whether the user entry should be present or not.
Methods inherited from Base
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
#create ⇒ :yes, ...
33 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 33 attribute :create |
#crypt_scheme ⇒ :apr_md5_crypt, ...
25 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 25 attribute :crypt_scheme |
#name ⇒ String
17 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 17 attribute :name |
#password ⇒ String?
21 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 21 attribute :password |
#path ⇒ String
13 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 13 attribute :path |
#state ⇒ :present, ...
29 |
# File 'lib/ansible/ruby/modules/generated/web_infrastructure/htpasswd.rb', line 29 attribute :state |