htpasswd
is an ansible role which:
- installs
htpasswd
- manages
htpasswd
files
Using ansible-galaxy
:
$ ansible-galaxy install franklinkim.htpasswd
Using arm
(Ansible Role Manager):
$ arm install franklinkim.htpasswd
Using git
:
$ git clone https://github.com/weareinteractive/ansible-htpasswd.git
Here is a list of all the default variables for this role, which are also available in defaults/main.yml
.
# htpasswd:
# - name: myapp
# users:
# - { name: user1, password: secret1 }
# - { name: user1, password: secret2, crypt: [apr_md5_crypt | des_crypt | ldap_sha1 | plaintext] }
# list of entries
htpasswd: []
- host: all
roles:
- franklinkim.htpasswd
vars:
htpasswd:
- name: myapp
users:
- { name: user, password: secret }
$ git clone https://github.com/weareinteractive/ansible-htpasswd.git
$ cd ansible-htpasswd
$ vagrant up
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests and examples for any new or changed functionality.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Copyright (c) We Are Interactive under the MIT license.