ci: Use highest supported Ansible version during image prep
It was necessary to split setup.yml because there is no common subset of supported include/import keywords across Ansible 2.3 - 2.11. The yaml stdout callback is unavailabe in Ansible 2.3.pull/1254/head
parent
22e7046cf6
commit
01e24f9ddf
@ -1,6 +1,17 @@
|
|||||||
#!/usr/bin/env ansible-playbook
|
#!/usr/bin/env ansible-playbook
|
||||||
|
|
||||||
- include_playbook: _container_create.yml
|
- name: Get base images
|
||||||
- include_playbook: _container_setup.yml
|
hosts: all
|
||||||
- include_playbook: _user_accounts.yml
|
# strategy: mitogen_free
|
||||||
- include_playbook: _container_finalize.yml
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Fetch container base images
|
||||||
|
docker_image:
|
||||||
|
name: "{{ docker_base }}"
|
||||||
|
source: pull # Added in Ansible 2.8, required circa 2.12
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- import_playbook: _container_create.yml
|
||||||
|
- import_playbook: _container_setup.yml
|
||||||
|
- import_playbook: _user_accounts.yml
|
||||||
|
- import_playbook: _container_finalize.yml
|
||||||
|
|||||||
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
|
||||||
|
- name: Get base images
|
||||||
|
hosts: all
|
||||||
|
gather_facts: false
|
||||||
|
tasks:
|
||||||
|
- name: Fetch container base images
|
||||||
|
docker_image:
|
||||||
|
name: "{{ docker_base }}"
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
|
- include: _container_create.yml
|
||||||
|
- include: _container_setup.yml
|
||||||
|
- include: _user_accounts.yml
|
||||||
|
- include: _container_finalize.yml
|
||||||
Loading…
Reference in New Issue