diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-06-01 17:52:28 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-06-01 17:52:28 +0200 |
commit | 22d4ec550391e5e013e46347a908179b0c769ff3 (patch) | |
tree | fdb33ea899b753295e29f433d35cf77f8eee6464 /roles/cloud-install/tasks/main.yml | |
parent | fix cloud-install role (diff) | |
parent | with_dict -> loop (diff) |
Merge branch 'no-more-with'
Diffstat (limited to 'roles/cloud-install/tasks/main.yml')
-rw-r--r-- | roles/cloud-install/tasks/main.yml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/roles/cloud-install/tasks/main.yml b/roles/cloud-install/tasks/main.yml index 94265382..6d9eb96e 100644 --- a/roles/cloud-install/tasks/main.yml +++ b/roles/cloud-install/tasks/main.yml @@ -1,14 +1,8 @@ --- -- include_tasks: "{{ item }}" - with_first_found: - - files: - - "install_{{ cloud_provider }}.yml" +- include_tasks: "install_{{ cloud_provider }}.yml" - name: force facts cache to get updated setup: -- include_tasks: "{{ item }}" - with_first_found: - - files: - - "post_{{ cloud_provider }}.yml" - skip: true +- when: lookup('first_found', ['post_' + cloud_provider + '.yml'], errors='ignore') + include_tasks: "post_{{ cloud_provider }}.yml" |