diff options
| author | SamYaple <sam@yaple.net> | 2016-01-05 18:02:13 +0000 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2016-01-06 04:23:28 +0000 |
| commit | 9efc593c8f7124589a5e562139075447a4c84f24 (patch) | |
| tree | 7485bb5a10482d3e33008ffb490096646d7d1a64 | |
| parent | b7aca3f90eabc2c09ffdf793873b1c6589cf0db0 (diff) | |
| download | kolla-9efc593c8f7124589a5e562139075447a4c84f24.tar.gz kolla-9efc593c8f7124589a5e562139075447a4c84f24.zip | |
Allow keystone role to pull images
Change-Id: I64aff93368da7580b6cc1369a42be0904a670f98
Partially-Implements: blueprint pre-pull-images
| -rw-r--r-- | ansible/roles/keystone/tasks/deploy.yml | 14 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/main.yml | 14 | ||||
| -rw-r--r-- | ansible/roles/keystone/tasks/pull.yml | 7 |
3 files changed, 22 insertions, 13 deletions
diff --git a/ansible/roles/keystone/tasks/deploy.yml b/ansible/roles/keystone/tasks/deploy.yml new file mode 100644 index 000000000..10a7a1bf5 --- /dev/null +++ b/ansible/roles/keystone/tasks/deploy.yml @@ -0,0 +1,14 @@ +--- +- include: config.yml + when: inventory_hostname in groups['keystone'] + +- include: bootstrap.yml + when: inventory_hostname in groups['keystone'] + +- include: start.yml + when: inventory_hostname in groups['keystone'] + +- include: register.yml + when: inventory_hostname in groups['keystone'] + +- include: check.yml diff --git a/ansible/roles/keystone/tasks/main.yml b/ansible/roles/keystone/tasks/main.yml index 10a7a1bf5..b017e8b4a 100644 --- a/ansible/roles/keystone/tasks/main.yml +++ b/ansible/roles/keystone/tasks/main.yml @@ -1,14 +1,2 @@ --- -- include: config.yml - when: inventory_hostname in groups['keystone'] - -- include: bootstrap.yml - when: inventory_hostname in groups['keystone'] - -- include: start.yml - when: inventory_hostname in groups['keystone'] - -- include: register.yml - when: inventory_hostname in groups['keystone'] - -- include: check.yml +- include: "{{ action }}.yml" diff --git a/ansible/roles/keystone/tasks/pull.yml b/ansible/roles/keystone/tasks/pull.yml new file mode 100644 index 000000000..b8c067236 --- /dev/null +++ b/ansible/roles/keystone/tasks/pull.yml @@ -0,0 +1,7 @@ +--- +- name: Pulling keystone image + kolla_docker: + action: "pull_image" + common_options: "{{ docker_common_options }}" + image: "{{ keystone_image_full }}" + when: inventory_hostname in groups['keystone'] |
