{"action":"created","issue":{"url":"https://api.github.com/repos/debops/ansible-pki/issues/80","repository_url":"https://api.github.com/repos/debops/ansible-pki","labels_url":"https://api.github.com/repos/debops/ansible-pki/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/debops/ansible-pki/issues/80/comments","events_url":"https://api.github.com/repos/debops/ansible-pki/issues/80/events","html_url":"https://github.com/debops/ansible-pki/issues/80","id":170902117,"number":80,"title":"Unexpected templating type error, coercing to Unicode: need string or buffer","user":{"login":"antoineco","id":3299086,"avatar_url":"https://avatars.githubusercontent.com/u/3299086?v=3","gravatar_id":"","url":"https://api.github.com/users/antoineco","html_url":"https://github.com/antoineco","followers_url":"https://api.github.com/users/antoineco/followers","following_url":"https://api.github.com/users/antoineco/following{/other_user}","gists_url":"https://api.github.com/users/antoineco/gists{/gist_id}","starred_url":"https://api.github.com/users/antoineco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoineco/subscriptions","organizations_url":"https://api.github.com/users/antoineco/orgs","repos_url":"https://api.github.com/users/antoineco/repos","events_url":"https://api.github.com/users/antoineco/events{/privacy}","received_events_url":"https://api.github.com/users/antoineco/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-12T15:51:15Z","updated_at":"2016-08-12T16:35:24Z","closed_at":null,"body":"The execution of the following playbook...\r\n\r\n```yaml\r\n---\r\n\r\n- name: PKI realms\r\n  hosts: all\r\n  become: True\r\n\r\n  vars:\r\n\r\n    custom_pki_realms:\r\n\r\n      - name: 'k8s'\r\n        subject_alt_names:\r\n          - 'ip:{{ ansible_default_ipv4.address }}'\r\n          - 'ip:{{ kubernetes_services_net | ipaddr(\"1\") | ipaddr(\"host\") | ipaddr(\"address\") }}'\r\n          - 'dns:kubernetes.default.svc.{{ kubernetes_cluster_domain }}'\r\n          - 'dns:kubernetes.default.svc'\r\n          - 'dns:kubernetes.default'\r\n          - 'dns:kubernetes'\r\n\r\n      - name: 'etcd'\r\n        subject_alt_names:\r\n          - 'ip:{{ ansible_default_ipv4.address }}'\r\n          - 'ip:{{ kubernetes_services_net | ipaddr(\"3\") | ipaddr(\"host\") | ipaddr(\"address\") }}'\r\n          - 'dns:etcd.kube-system.svc.{{ kubernetes_cluster_domain }}'\r\n          - 'dns:etcd.kube-system.svc'\r\n          - 'dns:etcd.kube-system'\r\n          - 'dns:etcd'\r\n\r\n  roles:\r\n\r\n    - role: debops.pki/env\r\n      tags: [ 'role::pki' ]\r\n      pki_dependent_realms: '{{ custom_pki_realms }}'  # see issue #78\r\n\r\n    - role: debops.secret\r\n      tags: [ 'role::pki' ]\r\n      secret_directories:\r\n        - '{{ pki_env_secret_directories }}'\r\n\r\n    - role: debops.pki\r\n      tags: [ 'role::pki' ]\r\n      pki_dependent_realms:\r\n        - '{{ custom_pki_realms }}'\r\n```\r\n\r\n..throws the following error:\r\n\r\n```\r\nTASK [debops.pki : Download public realm contents by host] *********************\r\nok: [noah] => (item=[{u'name': u'domain', u'acme': False}, u'external'])\r\nok: [noah] => (item=[{u'name': u'domain', u'acme': False}, u'internal'])\r\nfatal: [noah]: FAILED! => {\"failed\": true, \"msg\": \"Unexpected templating type error occurred on ({{ secret + \\\"/pki/realms/by-host/\\\" + pki_fqdn + \\\"/\\\" + item.0.name + \\\"/\\\" + item.1 + \\\"/\\\" }}): coercing to Unicode: need string or buffer, dict found\"}\r\n```"},"comment":{"url":"https://api.github.com/repos/debops/ansible-pki/issues/comments/239495181","html_url":"https://github.com/debops/ansible-pki/issues/80#issuecomment-239495181","issue_url":"https://api.github.com/repos/debops/ansible-pki/issues/80","id":239495181,"user":{"login":"antoineco","id":3299086,"avatar_url":"https://avatars.githubusercontent.com/u/3299086?v=3","gravatar_id":"","url":"https://api.github.com/users/antoineco","html_url":"https://github.com/antoineco","followers_url":"https://api.github.com/users/antoineco/followers","following_url":"https://api.github.com/users/antoineco/following{/other_user}","gists_url":"https://api.github.com/users/antoineco/gists{/gist_id}","starred_url":"https://api.github.com/users/antoineco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antoineco/subscriptions","organizations_url":"https://api.github.com/users/antoineco/orgs","repos_url":"https://api.github.com/users/antoineco/repos","events_url":"https://api.github.com/users/antoineco/events{/privacy}","received_events_url":"https://api.github.com/users/antoineco/received_events","type":"User","site_admin":false},"created_at":"2016-08-12T16:35:24Z","updated_at":"2016-08-12T16:35:24Z","body":"Done, I left only the 3 last *dns:* entries, without success."}}
{"actor":{"display_login":"antoineco"}}