diff --git a/cloud/softlayer/sl.py b/cloud/softlayer/sl_vm.py similarity index 99% rename from cloud/softlayer/sl.py rename to cloud/softlayer/sl_vm.py index f5a48bd4e93..8ef808d9a2e 100644 --- a/cloud/softlayer/sl.py +++ b/cloud/softlayer/sl_vm.py @@ -146,7 +146,7 @@ EXAMPLES = ''' tasks: - name: Build instance request local_action: - module: sl + module: sl_vm hostname: instance-1 domain: anydomain.com datacenter: dal09 @@ -167,7 +167,7 @@ EXAMPLES = ''' tasks: - name: Build instances request local_action: - module: sl + module: sl_vm hostname: "{{ item.hostname }}" domain: "{{ item.domain }}" datacenter: "{{ item.datacenter }}" @@ -193,7 +193,7 @@ EXAMPLES = ''' tasks: - name: Cancel by tag local_action: - module: sl + module: sl_vm state: absent tags: ansible-module-test ''' @@ -203,6 +203,7 @@ RETURN = '''# ''' import time +#TODO: get this info from API STATES = ['present', 'absent'] DATACENTERS = ['ams01','ams03','dal01','dal05','dal06','dal09','fra02','hkg02','hou02','lon2','mel01','mex01','mil01','mon01','par01','sjc01','sjc03','sao01','sea01','sng01','syd01','tok02','tor01','wdc01','wdc04'] CPU_SIZES = [1,2,4,8,16] @@ -345,4 +346,4 @@ def main(): from ansible.module_utils.basic import * if __name__ == '__main__': - main() \ No newline at end of file + main()