Skip to content

Alekslomyarius/ansible_tls

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sbog/tls

Build Status Ansible Role Ansible Quality Score Ansible Role GitHub

Role to work with TLS certificates

Requirements

Ansible 2.4+

Role Variables

Role variables can be placed to a dictionary named tls_group for gropu vars and tls_host for host vars. Host vars will override group ones. There is an example for group vars:

tls_group:
  # Types: local
  type: local
  local_src_key: false
  local_src_cert: false
  target_dir: /etc/ssl_certs
  # Formats: nginx, haproxy
  target_format: nginx
  target_key_name: private.pem
  target_cert_name: fullchain.pem
  # If target_format is 'haproxy', this filename will be used
  target_bundle_name: bundle.pem

You can see all vars in default/main.yml vars file.

Dependencies

None

Example Playbook

- name: Place needed TLS keypairs to the right places
  hosts: tls
  remote_user: root

  roles:
    - tls

License

Apache 2.0

Author Information

This role was created by Stan Bogatkin.

About

Ansible role to work with TLS certificates

Resources

License

Stars

Watchers

Forks

Packages

No packages published