Class: Ansible::Ruby::Modules::Htpasswd
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Htpasswd
- Defined in:
- lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb
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, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#create ⇒ :yes, ...
Returns Used with C(state=present). If specified, the file will be created if it does not already exist. If set to “no”, will fail if the file does not exist.
30 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 30 attribute :create |
#crypt_scheme ⇒ :apr_md5_crypt, ...
Returns Encryption scheme to be used. As well as the four choices listed here, you can also use any other hash supported by passlib, such as md5_crypt and sha256_crypt, which are linux passwd hashes. If you do so the password file will not be compatible with Apache or Nginx.
22 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 22 attribute :crypt_scheme |
#name ⇒ String
Returns User name to add or remove.
14 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 14 attribute :name |
#password ⇒ String?
Returns Password associated with user.,Must be specified if user does not exist yet.
18 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 18 attribute :password |
#path ⇒ String
Returns Path to the file that contains the usernames and passwords.
10 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 10 attribute :path |
#state ⇒ :present, ...
Returns Whether the user entry should be present or not.
26 |
# File 'lib/ansible/ruby/modules/generated/core/web_infrastructure/htpasswd.rb', line 26 attribute :state |