/ansible-htpasswd

Ansible role which installs htpasswd and creates files

MIT LicenseMIT

Ansible Htpasswd Role

Build Status Stories in Ready

htpasswd is an ansible role which:

  • installs htpasswd
  • manages htpasswd files

Installation

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

Variables

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: []

Example playbook

- host: all
  roles: 
    - franklinkim.htpasswd
  vars:
    htpasswd:
      - name: myapp
        users:
        - { name: user, password: secret }

Testing

$ git clone https://github.com/weareinteractive/ansible-htpasswd.git
$ cd ansible-htpasswd
$ vagrant up

Contributing

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.

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

Copyright (c) We Are Interactive under the MIT license.