@ -29,7 +29,7 @@ options:
name :
name :
description :
description :
- Name to give the instance ( alphanumeric , dashes , underscore ) .
- Name to give the instance ( alphanumeric , dashes , underscore ) .
- To keep sanity on the Linode Web Console , name is prepended with C ( LinodeID _ ) .
- To keep sanity on the Linode Web Console , name is prepended with C ( LinodeID - ) .
required : true
required : true
displaygroup :
displaygroup :
description :
description :
@ -367,7 +367,7 @@ def linodeServers(module, api, state, name,
PaymentTerm = payment_term )
PaymentTerm = payment_term )
linode_id = res [ ' LinodeID ' ]
linode_id = res [ ' LinodeID ' ]
# Update linode Label to match name
# Update linode Label to match name
api . linode_update ( LinodeId = linode_id , Label = ' %s _ %s ' % ( linode_id , name ) )
api . linode_update ( LinodeId = linode_id , Label = ' %s - %s ' % ( linode_id , name ) )
# Update Linode with Ansible configuration options
# Update Linode with Ansible configuration options
api . linode_update ( LinodeId = linode_id , LPM_DISPLAYGROUP = displaygroup , WATCHDOG = watchdog , * * kwargs )
api . linode_update ( LinodeId = linode_id , LPM_DISPLAYGROUP = displaygroup , WATCHDOG = watchdog , * * kwargs )
# Save server
# Save server