Hello Experts,
i have working command for creating self signed certificate for IHS
server's .kdb file and i was trying to use the same command through
ansible. Here my aim is that ansible should detect the hostname of
application servers and should use that name for the "-dn" of the command.
Below is the working command
[root@myhost bin]# ./gskcmd -cert -create -db /opt/myapp/key.kdb -label IHS
-expire 3650 -size 2048 -dn "CN=myserverFQDN" -default_cert yes -pw password
but below is my play and its giving syntax error
---
- name: installation
hosts: IHS
tasks:
- name: get hostname
shell: echo $HOSTNAME
register: hostname
- name: create self signed certificate for IHS
command: /opt/myapp/bin/gskcmd -cert -create -db /opt/myapp/key.kdb
-label IHS -expire 3650 -size 2048 -dn "CN={{ hostname}}" -default_cert yes
-pw password
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/471653e5-8d99-47a6-8b3d-e65795f3aaf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.