- hosts: [{{host}}] sudo: yes vars: ip: {{ ip }} api_port: {{ api_port }} registry_port: {{ registry_port }} keystone_ip: {{ keystone_ip }} keystone_port: {{ keystone_port }} keystone_admin_user: {{ keystone_admin_user }} keystone_admin_password: {{ keystone_admin_password }} keystone_admin_port: {{ keystone_admin_port }} keystone_admin_tenant: {{ keystone_admin_tenant }} mysql_ip: {{ mysql_ip }} mysql_db: {{ mysql_db }} mysql_user: {{ mysql_user }} mysql_password: {{ mysql_password }} config_dir: {src: {{ config_dir.value['src'] }}, dst: {{ config_dir.value['dst'] }}} tasks: - file: path={{ config_dir.value['src'] }}/ state=directory - file: path={{ config_dir.value['src'] }}/glance-api.conf state=touch - file: path={{ config_dir.value['src'] }}/glance-api-paste.ini state=touch - file: path={{ config_dir.value['src'] }}/glance-cache.conf state=touch - file: path={{ config_dir.value['src'] }}/glance-registry.conf state=touch - file: path={{ config_dir.value['src'] }}/glance-registry-paste.ini state=touch - file: path={{ config_dir.value['src'] }}/glance-scrubber.conf state=touch - file: path={{ config_dir.value['src'] }}/policy.json state=touch - file: path={{ config_dir.value['src'] }}/schema-image.json state=touch - file: path={{ config_dir.value['src'] }}/exports state=touch - template: src={{templates_dir}}/glance-api.conf dest={{ config_dir.value['src'] }}/glance-api.conf - template: src={{templates_dir}}/glance-api-paste.ini dest={{ config_dir.value['src'] }}/glance-api-paste.ini - template: src={{templates_dir}}/glance-cache.conf dest={{ config_dir.value['src'] }}/glance-cache.conf - template: src={{templates_dir}}/glance-registry.conf dest={{ config_dir.value['src'] }}/glance-registry.conf - template: src={{templates_dir}}/glance-registry-paste.ini dest={{ config_dir.value['src'] }}/glance-registry-paste.ini - template: src={{templates_dir}}/glance-scrubber.conf dest={{ config_dir.value['src'] }}/glance-scrubber.conf - template: src={{templates_dir}}/policy.json dest={{ config_dir.value['src'] }}/policy.json - template: src={{templates_dir}}/schema-image.json dest={{ config_dir.value['src'] }}/schema-image.json - template: src={{templates_dir}}/exports dest={{ config_dir.value['src'] }}/glance-export