ansible.community: linode_v4 module updates to support nodebalancers?

6 views
Skip to first unread message

John Stoffel

unread,
Mar 10, 2021, 11:16:14 AM3/10/21
to Ansible Project
Hi there,
Is anyone working on extending the ansible.community linode_v4: module to support more than just simple linode creation?  Or do I need to keep using

command:
  cmd:  linode-cli ....

to do all my work?  I tried using the uri: module instead to call the Linode API directly, but that was painful for me as a newbie Ansible user.  

My big stumbling block now is creating a Linode nodebalancer where I need to do:

1. create nodebalancer
2. create nodebalancer config
     with_items:  80, 443
3. add two seperate nodes to each config.

Since this is a double loop, I think I need to do something silly like multiple include_tasks:  loops, which just gets ugly fast.  

How do people do nested layers of devices in Ansible efficiently and clearly without having to use multiple tasks files?  

Thanks,
John

Reply all
Reply to author
Forward
0 new messages