amazon web services - Failed Create Launch Config with Ansible -
i've try create new launch config @ aws ansible after new ami create, here's script playbook :
- hosts: localhost tasks: - name: create ami ec2_ami: region: "ap-southeast-x" instance_id: "i-xxxxxx" name: "my ami {{ ansible_date_time.date }} {{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}" wait: yes state: present register: ami - name: create lc ec2_lc: name: "my lc {{ ansible_date_time.date }} {{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}" image_id: "{{ ami.image_id }}" key_name: "my_key" security_groups: "sg-xxxx" instance_type: t2.medium register: lcnew
but when try run, i've got message :
error: ec2_lc not legal parameter in ansible task or handler
if have ansible 2.0.0, must have installed git guess. did clone repository recursive? modules implemented through git submodule. git clone git://github.com/ansible/ansible.git --recursive
http://docs.ansible.com/ansible/intro_installation.html#running-from-source
Comments
Post a Comment