From the other GitHub questions about this it could be not possible with AS3 . You still can try using ansible to push the as3 and then another task to add the health monitors to the as3 created nodes. Keep in mind you may need to test if you update the as3 if the health monitors will remain as as3 could override them . Also ansible can add the nodes as variables inside the as3 template using jinja2 as this way the node up addresses could be in ansible variable that can be used by as3 and then the task that attaches the health monitors.