Help wanted: converting our GitLab CI scripts to modern Ansible

Andrew Bartlett abartlet at samba.org
Thu Dec 17 18:19:45 UTC 2020


On Thu, 2020-12-17 at 22:23 +1100, Martin Schwenke via samba-technical
wrote:
> On Thu, 17 Dec 2020 23:26:30 +1300, Andrew Bartlett via samba-
> technical
> <samba-technical at lists.samba.org> wrote:

> As far as I can tell the following 2 modules are identical:
> 
>   
> https://docs.ansible.com/ansible/latest/collections/openstack/cloud/os_volume_module.html#ansible-collections-openstack-cloud-os-volume-module
> 
>   
> https://docs.ansible.com/ansible/latest/collections/openstack/cloud/volume_module.html#ansible-collections-openstack-cloud-volume-module
> 
> However, the bootable parameter appears to be relatively new and
> defaults to "no".  So, this should fix it:
> 
> diff --git a/tasks/servers_create.yml b/tasks/servers_create.yml
> index e4d0582..c2857a0 100644
> --- a/tasks/servers_create.yml
> +++ b/tasks/servers_create.yml
> @@ -5,6 +5,7 @@
>      size: "{{ item.volume_size|int }}"
>      volume_type: "{{ item.volume_type }}"
>      image: "{{ item.image }}"
> +    bootable: yes
>    when: 'item.volume_size|int > 0'
>    loop: "{{ _OS_SERVERS|default([]) }}"
>  
> Have you tried that?

I hadn't, and I really appreciate your looking at this for me because
yes, that worked.  (I claimed this worked on Catalyst Cloud, but that
was historically, I've not built it there recently).  

Late nights might be good for some un-interrupted time, but they come
with downsides!

Thank you so much!

Andrew Bartlett

-- 
Andrew Bartlett (he/him)       https://samba.org/~abartlet/
Samba Team Member (since 2001) https://samba.org
Samba Team Lead, Catalyst IT   https://catalyst.net.nz/services/samba





More information about the samba-technical mailing list