Per that article, it looks like you need to add metadata and not options to
extra_create_args.  extra_create_args are passed to the novaclient create
method.

Something like:

     - name: 1 GB General Purpose v1
       local_action:
         module: rax
         [snip]
         meta:
             build_config: "core,monitoring"

On Tue, Apr 14, 2015 at 5:45 AM, Dan Rough <dan.ro...@gmail.com> wrote:

> Hello,
>
> I'd like to be able to create servers at Rackspace which are free from any
> packages other than the ones installed by default as part of a Debian
> installation. In response to the support ticket I raised, I was pointed to
> this article in Rackspace's documentation:
> http://www.rackspace.com/knowledge_center/article/post-build-options-for-servers
> .
>
> The section "Build options for configuration management software (Chef,
> Puppet, Ansible, Salt)" in that article suggests to achieve the above, I
> need to provide additional information via the build_config parameter:
>
> --meta build_config=core
>
>
> I assumed that using the rax module, I could use the extra_create_args
> attribute to supply this information. I've tested that, and I haven't been
> able to get it working. I've copied my code below, I'd like to know whether
> I'm not using the module correctly, or if I've discovered a problem in the
> implementation (the docs suggest extra_create_args has only recently been
> added):
>
> ---
>  - name: Create base image
>    hosts: localhost
>    tasks:
>      - name: 1 GB General Purpose v1
>        local_action:
>          module: rax
>          credentials: ~/.rackspace_cloud_credentials
>          region: "LON"
>          name: "base-image"
>          files:
>            /root/.ssh/authorized_keys: "./id-rsa.pub"
>          flavor: general1-1
>          image: 04399432-ac55-4e0b-bcd1-6c90fa568a0f
>          extra_create_args:
>            build_config: "core,monitoring"
>
> Thanks, Dan.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/96fab471-0b40-455a-9ee1-e596ac054a9f%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/96fab471-0b40-455a-9ee1-e596ac054a9f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAD8N0v_VSLxfJV9OPHWU_L%3DHyNFh%2BCi2Zot47EoCBD0x%2BdrpjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to