Hi all, I was trying to create servers using Ansible following the documentation, whitout any success.
Try #1:
Using a test.yml file with the following content:
---
- hosts: localhost
become: yes
connection: local
gather_facts: False
tasks:
- name: Provision a set of instances
profitbricks:
subscription_user: “myuser"
subscription_password: “mypass"
datacenter: mydatacenter
name: util-01.mydomain.com
cores: 4
ram: 4096
volume_size: 50
image: a3eae284-a2fe-11e4-b187-5f1f641608c8
location: de/fra
count: 1
assign_public_ip: true
wait_timeout: 300
register: profitbricks
- debug: msg="{{profitbricks}}"
Running with "ansible-playbook test.yml -vvv" getting the following error :
..."module_name": "profitbricks"}, "msg": "failed to set instance state: unsupported operand type(s) for +: 'int' and 'str'"}
Test #2: Created a role and using inventory file and group_vars with a "deploy-environment.yml" file with the following content:
---
- hosts: localhost
become: yes
connection: local
gather_facts: False
roles:
- { role: profitbricks, tags: ["profitbricks_create"] }
And running with "ansible-playbook -i inventory/myenvironment deploy-environment.yml -vvv" getting the following error:
"msg": "profitbricks required for this module"
Some basic infos:
ansible --version
ansible 2.1.1.0
pip list |grep profitbricks
profitbricks (2.3.4)
python -V
Python 2.7.10
Any hint would be appreciated.
Best regards,
Same for ansible 2.0 . Did anyone get this working ?
Thanks!