diff --git a/molecule/ec2-centos-7/create.yml b/molecule/ec2-centos-7/create.yml index e4063cd..abedfc4 100644 --- a/molecule/ec2-centos-7/create.yml +++ b/molecule/ec2-centos-7/create.yml @@ -25,7 +25,7 @@ to_port: 0 cidr_ip: '0.0.0.0/0' - keypair_name: "molecule_key_{{ molecule_yml.platforms }}" + keypair_name: "molecule_key_{{ molecule_yml.platforms.name }}" keypair_path: "{{ lookup('env', 'MOLECULE_EPHEMERAL_DIRECTORY') }}/ssh_key" tasks: - name: Create security group