Jakov Sosic
unread,Dec 28, 2015, 9:58:57 AM12/28/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi guys,
sorry if this is a newbie question, but looking around I couldn't find
an answer...
I have my own CA, and create x509 key and certificate for each server.
What is the best way to distribute them with ansible? Currently, they
are distributed via host_vars, and certificate contents i pasted within
variable. That seems to me like a cludgy solution, I would like to
rather have files within repository, then c/p within host_vars/group_vars.
These files are pure text by chance, what would happen if I wanted to
distribute for example java keystore files via Ansible?
How do you do it?
What I've come up so far is role called 'ca', which has structure
looking like this:
% find roles/ca/files
roles/ca/files
roles/ca/files/ca.crt.pem
roles/ca/files/private
roles/ca/files/private/myhost1.example.net.crt.pem
roles/ca/files/certs
roles/ca/files/certs/myhost1.example.net.key.pem
roles/ca/files/keystore
roles/ca/files/keystore/myhost1.example.net.ks
Then, I just use copy with {{ ansible_nodename }} to push files around...
Any smarter solutions for this problem?